j-bitcoin
Version:
Comprehensive JavaScript cryptocurrency wallet library for Bitcoin (BTC), Bitcoin Cash (BCH), and Bitcoin SV (BSV) with custodial and non-custodial wallet support, threshold signatures, and multiple address formats
19 lines (14 loc) • 823 B
Plain Text
SIGH_HASH: {
SIGHASH_ALL: 0x41, // Sign all inputs and outputs
SIGHASH_NONE: 0x42, // Sign all inputs and no output
SIGHASH_SINGLE: 0x43, // Sign all inputs and the output with the same index
// SIGHASH_FORKID: 0x40,
ANYONECANPAY: {
SIGHASH_ALL: 0xC1, // Sign its own input and all outputs
SIGHASH_NONE: 0xC2, // Sign its own input and no output
SIGHASH_SINGLE: 0xC3 // Sign its own input and the output with the same index
}
},
// https://wiki.bitcoinsv.io/index.php/SIGHASH_flags
// NOTE: Currently all BitcoinSV transactions require an additional SIGHASH flag called SIGHASH_FORKID
// SIGHASH Values including SIGHASH_FORKID In HEX. Example: SIGHASH_FORKID(0x40) + SIGHASH_ALL(0x1) = 0x41