Module BSV::Transaction::Sighash ¶
Sighash type constants for BIP-143 transaction signing.
BSV requires the FORK_ID flag (0x40) on all sighash types. The pre-combined constants (e.g. ALL_FORK_ID) are the most common values used when signing transactions.
Constants¶
ALL ¶
Sign all inputs and all outputs.
ALL_FORK_ID ¶
SIGHASH_ALL with FORKID — the default sighash type.
ALL_FORK_ID_ANYONE_CAN_PAY ¶
SIGHASH_ALL | ANYONE_CAN_PAY with FORKID.
ANYONE_CAN_PAY ¶
Sign only this input (others can be added/removed).
FORK_ID ¶
BSV fork ID flag (required on all BSV signatures).
MASK ¶
Mask for extracting the base sighash type (ALL/NONE/SINGLE).
NONE ¶
Sign all inputs, no outputs (outputs can be modified).
NONE_FORK_ID ¶
SIGHASH_NONE with FORKID.
NONE_FORK_ID_ANYONE_CAN_PAY ¶
SIGHASH_NONE | ANYONE_CAN_PAY with FORKID.
SINGLE ¶
Sign all inputs and only the output at the same index.
SINGLE_FORK_ID ¶
SIGHASH_SINGLE with FORKID.
SINGLE_FORK_ID_ANYONE_CAN_PAY ¶
SIGHASH_SINGLE | ANYONE_CAN_PAY with FORKID.