add script types.

This commit is contained in:
Christopher Jeffrey 2016-07-02 00:19:44 -07:00
parent 727dc66252
commit afa7862e55
No known key found for this signature in database
GPG Key ID: 8962AB9DE6666BBD
2 changed files with 19 additions and 0 deletions

View File

@ -662,6 +662,23 @@ exports.BAN_TIME = 24 * 60 * 60;
exports.BAN_SCORE = 100;
/**
* Output script types.
* @enum {Number}
*/
exports.scriptTypes = {
NONSTANDARD: 0,
PUBKEY: 1,
PUBKEYHASH: 2,
SCRIPTHASH: 3,
MULTISIG: 4,
NULLDATA: 5,
WITNESSSCRIPTHASH: 6,
WITNESSKEYHASH: 7,
WITNESSMAST: 8
};
/**
* Script and locktime flags. See {@link VerifyFlags}.
* @enum {Number}

View File

@ -4848,6 +4848,8 @@ exports = Script;
exports.opcodes = constants.opcodes;
exports.opcodesByVal = constants.opcodesByVal;
exports.types = constants.scriptTypes;
exports.flags = constants.flags;
exports.Script = Script;
exports.Opcode = Opcode;