 = {
            fromBigInteger: function(x){
                return new ECFieldElement(this.q, x);
            },
            getInfinity: function(){
                return this.infinity;
            }
        };

        function ECFieldElement(q,x) {
            this.x = x;
            this.q = q;
        }
        ECFieldElement.prototype = {
            negate: function(){
                return new ECFieldElement(this.q, this.x.negate().mod(this.q));
            },
            toBigInteger: function(