Module breez_sdk_core::bitcoin::util::psbt

Expand description

Partially Signed Bitcoin Transactions.

Implementation of BIP174 Partially Signed Bitcoin Transaction Format as defined at https://github.com/bitcoin/bips/blob/master/bip-0174.mediawiki except we define PSBTs containing non-standard sighash types as invalid.

Modules§

Structs§

  • A key-value map for an input of the corresponding index in the unsigned transaction.
  • A key-value map for an output of the corresponding index in the unsigned transaction.
  • A Partially Signed Transaction.
  • A Signature hash type for the corresponding input. As of taproot upgrade, the signature hash type can be either EcdsaSighashType or SchnorrSighashType but it is not possible to know directly which signature hash type the user is dealing with. Therefore, the user is responsible for converting to/from PsbtSighashType from/to the desired signature hash type they need.
  • Taproot Tree representing a finalized TaprootBuilder (a complete binary tree).

Enums§

Type Aliases§

  • Partially signed transaction, commonly referred to as a PSBT.