Module breez_sdk_core::bitcoin::util::sighash

Expand description

Generalized, efficient, signature hash implementation.

Implementation of the algorithm to compute the message to be signed according to Bip341, Bip143 and legacy (before Bip143).

Structs§

  • The Annex struct is a slice wrapper enforcing first byte is 0x50.
  • Information related to the script path spending.
  • Efficiently calculates signature hash message for legacy, segwit and taproot inputs.
  • Error returned for failure during parsing one of the sighash types.

Enums§

  • Hashtype of an input’s signature, encoded in the last byte of the signature.
  • Possible errors in computing the signature message.
  • Contains outputs of previous transactions. In the case SchnorrSighashType variant is SIGHASH_ANYONECANPAY, Prevouts::One may be used.
  • Hashtype of an input’s signature, encoded in the last byte of the signature. Fixed values so they can be cast as integer types for encoding.