Members
(static) flags :Number
Script and locktime flags. See VerifyFlags.
Type:
- Number
Properties:
Name | Type | Description |
---|---|---|
VERIFY_NONE |
Number | |
VERIFY_MINIMALDATA |
Number | |
VERIFY_DISCOURAGE_UPGRADABLE_NOPS |
Number | |
VERIFY_DISCOURAGE_UPGRADABLE_WITNESS_PROGRAM |
Number | |
VERIFY_MINIMALIF |
Number | |
VERIFY_NULLFAIL |
Number |
- Source:
(static) hashType :SighashType
Sighash Types.
Type:
Properties:
Name | Type | Description |
---|---|---|
ALL |
SighashType | |
NONE |
SighashType | |
SINGLE |
SighashType | |
SINGLEREVERSE |
SighashType | |
NOINPUT |
SighashType | |
ANYONECANPAY |
SighashType |
- Default Value:
{"ALL":1,"NONE":2,"SINGLE":3,"SINGLEREVERSE":4,"NOINPUT":64,"ANYONECANPAY":128}
- Source:
(static, constant) hashTypeByVal :Object
Sighash types by value.
Type:
- Object
- Source:
(static, constant) opcodes :Object
Opcodes by value.
Type:
- Object
- Source:
(static, constant) opcodesByVal :Object
Opcodes by value.
Type:
- Object
- Source:
(static, constant) small :Array.<Buffer>
Small ints (1 indexed, 1==0).
Type:
- Array.<Buffer>
- Source:
(static) types :Number
Output script types.
Type:
- Number
Properties:
Name | Type | Description |
---|---|---|
NONSTANDARD |
Number | |
PUBKEY |
Number | |
PUBKEYHASH |
Number | |
MULTISIG |
Number |
- Source:
(static, constant) typesByVal :Object
Output script types by value.
Type:
- Object
- Source:
Methods
(static) isKeyEncoding(key) → {Boolean}
Test whether the data element is a compressed key.
Parameters:
Name | Type | Description |
---|---|---|
key |
Buffer |
- Source:
Returns:
- Type
- Boolean
(static) isSignatureEncoding(sig) → {Boolean}
Test a signature to see if it abides by BIP66.
Parameters:
Name | Type | Description |
---|---|---|
sig |
Buffer |
- Source:
- See:
Returns:
- Type
- Boolean
(static) toASM(item, decodenullable) → {String}
Format stack item into bitcoind asm format.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
item |
Buffer | ||
decode |
Boolean |
<nullable> |
Attempt to decode hash types. |
- Source:
Returns:
Human-readable string.
- Type
- String