Struct psbt::Psbt [−][src]
pub struct Psbt {
pub global: Global,
pub inputs: Vec<Input, Global>,
pub outputs: Vec<Output, Global>,
}
Expand description
A Partially Signed Transaction.
Fields
global: Global
The key-value pairs for all global data.
inputs: Vec<Input, Global>
The corresponding key-value map for each input in the unsigned transaction.
outputs: Vec<Output, Global>
The corresponding key-value map for each output in the unsigned transaction.
Implementations
Create a PartiallySignedTransaction from an unsigned transaction, error if not unsigned
Extract the Transaction from a PartiallySignedTransaction by filling in the available signature information in place.
Trait Implementations
fn construct<C: Verification>(
secp: &Secp256k1<C>,
descriptor: &Descriptor<TrackingAccount>,
lock_time: LockTime,
inputs: &[InputDescriptor],
outputs: &[(PubkeyScript, u64)],
change_index: UnhardenedIndex,
fee: u64,
tx_resolver: &impl ResolveTx
) -> Result<Psbt, Error>
Decode an object with a well-defined format
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Signs all PSBT inputs using all known keys provided by
SecretProvider
. This includes signing legacy, segwit and taproot
inputs; including inputs coming from P2PK, P2PKH, P2WPKH,
P2WPKH-in-P2SH, bare scripts, P2SH, P2WSH, P2WSH-in-P2SH and P2TR
outputs with both key- and script- spending paths. Supports all
consensus sighash types. Read more
impl Strategy for PartiallySignedTransaction
impl Strategy for PartiallySignedTransaction
Returns transaction with empty scriptSig
and witness
Auto Trait Implementations
impl RefUnwindSafe for PartiallySignedTransaction
impl Send for PartiallySignedTransaction
impl Sync for PartiallySignedTransaction
impl Unpin for PartiallySignedTransaction
impl UnwindSafe for PartiallySignedTransaction
Blanket Implementations
Mutably borrows from an owned value. Read more