pub struct PsbtInputSatisfier<'psbt> {
    pub psbt: &'psbt Psbt,
    pub index: usize,
}
Expand description

Psbt satisfier for at inputs at a particular index Takes in &psbt because multiple inputs will share the same psbt structure All operations on this structure will panic if index is more than number of inputs in pbst

Fields

psbt: &'psbt Psbt

pbst

index: usize

input index

Implementations

create a new PsbtInputsatisfier from psbt and index

Trait Implementations

Given a public key, look up a signature with that key to_pk_ctx denotes the ToPkCtx required for deriving bitcoin::PublicKey from MiniscriptKey using ToPublicKey. If MiniscriptKey is already is bitcoin::PublicKey, then the context would be NullCtx and [descriptor.DescriptorPublicKeyCtx] if MiniscriptKey is [descriptor.DescriptorPublicKey] Read more

Given a keyhash, look up the signature and the associated key Even if signatures for public key Hashes are not available, the users can use this map to provide pkh -> pk mapping which can be useful for dissatisfying pkh. to_pk_ctx denotes the ToPkCtx required for deriving bitcoin::PublicKey from MiniscriptKey using ToPublicKey. If MiniscriptKey is already is bitcoin::PublicKey, then the context would be NullCtx and [descriptor.DescriptorPublicKeyCtx] if MiniscriptKey is [descriptor.DescriptorPublicKey] Read more

Assert whether a absolute locktime is satisfied

Assert whether an relative locktime is satisfied

Given a Pkh, lookup corresponding Pk

Given a SHA256 hash, look up its preimage

Given a HASH256 hash, look up its preimage

Given a RIPEMD160 hash, look up its preimage

Given a HASH160 hash, look up its preimage

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.