Members
(static) flags :VerifyFlags
Script and locktime flags. See VerifyFlags.
Type:
Properties:
Name | Type | Description |
---|---|---|
VERIFY_NONE |
VerifyFlags | |
VERIFY_MINIMALDATA |
VerifyFlags | |
VERIFY_DISCOURAGE_UPGRADABLE_NOPS |
VerifyFlags | |
VERIFY_DISCOURAGE_UPGRADABLE_WITNESS_PROGRAM |
VerifyFlags | |
VERIFY_MINIMALIF |
VerifyFlags | |
VERIFY_NULLFAIL |
VerifyFlags |
- 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