TaprootSpendInfoExt

Trait TaprootSpendInfoExt 

Source
pub trait TaprootSpendInfoExt: Borrow<TaprootSpendInfo> {
    // Provided methods
    fn script_pubkey(&self) -> ScriptBuf { ... }
    fn psbt_tap_scripts(
        &self,
    ) -> BTreeMap<ControlBlock, (ScriptBuf, LeafVersion)> { ... }
}
Expand description

An extension trait for taproot::TaprootSpendInfo.

Provided Methods§

Source

fn script_pubkey(&self) -> ScriptBuf

The p2tr output scriptPubkey for this taproot.

Source

fn psbt_tap_scripts(&self) -> BTreeMap<ControlBlock, (ScriptBuf, LeafVersion)>

Return the existing tapscripts in the format that PSBT expects.

Implementations on Foreign Types§

Source§

impl TaprootSpendInfoExt for TaprootSpendInfo

Implementors§