Struct tapyrus::util::psbt::Input [−][src]
A key-value map for an input of the corresponding index in the unsigned transaction.
Fields
non_witness_utxo: Option<Transaction>The non-witness transaction this input spends from. Should only be std::option::Option::Some for inputs which spend non-segwit outputs or if it is unknown whether an input spends a segwit output.
witness_utxo: Option<TxOut>The transaction output this input spends from. Should only be std::option::Option::Some for inputs which spend segwit outputs, including P2SH embedded ones.
partial_sigs: BTreeMap<PublicKey, Vec<u8>>A map from public keys to their corresponding signature as would be pushed to the stack from a scriptSig or witness.
sighash_type: Option<SigHashType>The sighash type to be used for this input. Signatures for this input must use the sighash type.
redeem_script: Option<Script>The redeem script for this input.
witness_script: Option<Script>The witness script for this input.
hd_keypaths: BTreeMap<PublicKey, (Fingerprint, DerivationPath)>A map from public keys needed to sign this input to their corresponding master key fingerprints and derivation paths.
final_script_sig: Option<Script>The finalized, fully-constructed scriptSig with signatures and any other scripts necessary for this input to pass validation.
final_script_witness: Option<Vec<Vec<u8>>>The finalized, fully-constructed scriptWitness with signatures and any other scripts necessary for this input to pass validation.
unknown: BTreeMap<Key, Vec<u8>>Unknown key-value pairs for this input.
Trait Implementations
impl Clone for Input[src]
impl Debug for Input[src]
impl Decodable for Input[src]
fn consensus_decode<D: Read>(d: D) -> Result<Self, Error>[src]
impl Default for Input[src]
impl Encodable for Input[src]
impl Map for Input[src]
fn insert_pair(&mut self, pair: Pair) -> Result<(), Error>[src]
fn get_pairs(&self) -> Result<Vec<Pair>, Error>[src]
fn merge(&mut self, other: Self) -> Result<(), Error>[src]
impl PartialEq<Input> for Input[src]
impl StructuralPartialEq for Input[src]
Auto Trait Implementations
impl RefUnwindSafe for Input[src]
impl Send for Input[src]
impl Sync for Input[src]
impl Unpin for Input[src]
impl UnwindSafe for Input[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Az for T[src]
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<T> CheckedAs for T[src]
pub fn checked_as<Dst>(self) -> Option<Dst> where
T: CheckedCast<Dst>, [src]
T: CheckedCast<Dst>,
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> OverflowingAs for T[src]
pub fn overflowing_as<Dst>(self) -> (Dst, bool) where
T: OverflowingCast<Dst>, [src]
T: OverflowingCast<Dst>,
impl<T> SaturatingAs for T[src]
pub fn saturating_as<Dst>(self) -> Dst where
T: SaturatingCast<Dst>, [src]
T: SaturatingCast<Dst>,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn clone_into(&self, target: &mut T)[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
impl<T> UnwrappedAs for T[src]
pub fn unwrapped_as<Dst>(self) -> Dst where
T: UnwrappedCast<Dst>, [src]
T: UnwrappedCast<Dst>,
impl<T> WrappingAs for T[src]
pub fn wrapping_as<Dst>(self) -> Dst where
T: WrappingCast<Dst>, [src]
T: WrappingCast<Dst>,