pub struct InputInfo {
pub in_type: InputType,
pub sequence: Sequence,
pub multisig_info: Option<MultisigInputInfo>,
pub signature_info: Vec<SignatureInfo>,
pub pubkey_stats: Vec<PubKeyInfo>,
}
Fields§
§in_type: InputType
§sequence: Sequence
§multisig_info: Option<MultisigInputInfo>
§signature_info: Vec<SignatureInfo>
§pubkey_stats: Vec<PubKeyInfo>
Implementations§
Source§impl InputInfo
impl InputInfo
pub fn new(input: &TxIn) -> Result<InputInfo, InputError>
Sourcepub fn is_spending_segwit(&self) -> bool
pub fn is_spending_segwit(&self) -> bool
Returns true if the input spends a SegWit output
Sourcepub fn is_spending_taproot(&self) -> bool
pub fn is_spending_taproot(&self) -> bool
Returns true if the input spends Taproot either with a key-path or script-path spend.
Sourcepub fn is_spending_nested_segwit(&self) -> bool
pub fn is_spending_nested_segwit(&self) -> bool
Returns true if the input spends either a P2SH-nested-P2WPKH or a P2SH-nested-P2WSH input
Sourcepub fn is_spending_native_segwit(&self) -> bool
pub fn is_spending_native_segwit(&self) -> bool
Returns true if the input spends either a native P2WPKH, a native P2WSH, a P2TR or P2A input
Sourcepub fn is_spending_legacy(&self) -> bool
pub fn is_spending_legacy(&self) -> bool
Returns true if the input spends a legacy output.
Sourcepub fn is_spending_multisig(&self) -> bool
pub fn is_spending_multisig(&self) -> bool
Returns true if the input spends a Multisig input.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for InputInfo
impl RefUnwindSafe for InputInfo
impl Send for InputInfo
impl Sync for InputInfo
impl Unpin for InputInfo
impl UnwindSafe for InputInfo
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more