   pubKey = util.joinByteArrays(pubKey, util.bigIntegerToByteArray(y));

            return pubKey;
        },
        getMiningKeyBytes: function () {
            var pubKey = this.getPublicKey();
            var pubKeySha = sha256(pubKey);
            var pubKeyRipdm = ripemd160(pubKeySha);
            return new Uint8Array(pubKeyRipdm);
        },
        getMiningKey: function () {
            return util.byteArrayToHex(this.getMiningKeyBytes());
        },
        getPrivateKeyHex: function () {
      