){
                return this.x;
            }
        };


        var X9EC = X9ECTypes[X9ECName]();
        var point = X9EC.g.multiply(privateKeyBignum);

        this.getPoint = function () {
            return point;
        };

        return this;

    }

    global['EllipticCurve'] = EllipticCurve;

})(this);

(function (global) {

    /* SHA256 hashing from Digest.js
     https://github.com/jcsirot/digest.js
     digest.js is released under the terms of the GNU GENERAL PUBLIC LICENSE Version 3
   