Crate psbt_v2

Source
Expand description

Partially Signed Bitcoin Transactions.

Implementation of the Partially Signed Bitcoin Transaction Format as defined in BIP-174 and PSBT version 2 as defined in BIP-370.

Re-exports§

pub extern crate bitcoin;
pub extern crate miniscript;

Modules§

raw
Raw PSBT key-value pairs.
serialize
PSBT serialization.
v0
Partially Signed Bitcoin Transactions Version 0.
v2
PSBT Version 2.

Structs§

InconsistentKeySourcesError
Error combining two PSBTs, global extended public key has inconsistent key sources.
ParseSighashTypeError
Error returned for failure during parsing one of the sighash types.
PsbtSighashType
A Signature hash type for the corresponding input. As of taproot upgrade, the signature hash type can be either EcdsaSighashType or TapSighashType 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.
UnsupportedVersionError
Unsupported PSBT version.
Version
The PSBT version.

Enums§

FeeError
An error while calculating the fee.
FundingUtxoError
An error getting the funding transaction for this input.
InvalidSighashTypeError
Integer is not a consensus valid sighash type.

Constants§

V0
PSBT version 0 - the original PSBT version.
V2
PSBT version 2 - the second PSBT version.