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§
- Input
- A key-value map for an input of the corresponding index in the unsigned transaction.
- Output
- A key-value map for an output of the corresponding index in the unsigned transaction.
- Partially
Signed Transaction - A Partially Signed Transaction.
- Psbt
Sighash Type - A Signature hash type for the corresponding input. As of taproot upgrade, the signature hash
type can be either
EcdsaSighashTypeorSchnorrSighashTypebut it is not possible to know directly which signature hash type the user is dealing with. Therefore, the user is responsible for converting to/fromPsbtSighashTypefrom/to the desired signature hash type they need. - TapTree
- Taproot Tree representing a finalized
TaprootBuilder(a complete binary tree).
Enums§
- Error
- Ways that a Partially Signed Transaction might fail.
- Incomplete
TapTree - Error happening when
TapTreeis constructed from aTaprootBuilderhaving hidden branches or not being finalized. - Psbt
Parse Error base64 - Error happening during PSBT decoding from Base64 string