Skip to main content

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.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl TaprootSpendInfoExt for TaprootSpendInfo

Implementors§