fn script_pubkey(&self) -> Script
    where
        Pk: ToPublicKey,
    {
        match *self {
            PreTaprootDescriptor::Bare(ref bare) => bare.script_pubkey(),
            PreTaprootDescriptor::Pkh(ref pkh) => pkh.script_pubkey(),
            PreTaprootDescriptor::Wpkh(ref wpkh) => wpkh.script_pubkey(),
            PreTaprootDescriptor::Wsh(ref wsh) => wsh.script_pubkey(),
            PreTaprootDescriptor::Sh(ref sh) => sh.script_pubkey(),
        }
    }
/// Computes the scriptpubkey of the descriptor
Computes the scriptpubkey of the descriptor
Computes the scriptpubkey of the descriptor
fn script_pubkey(&self) -> Script
    where
        Pk: ToPublicKey,
    {
        match *self {
            PreTaprootDescriptor::Bare(ref bare) => bare.script_pubkey(),
            PreTaprootDescriptor::Pkh(ref pkh) => pkh.script_pubkey(),
            PreTaprootDescriptor::Wpkh(ref wpkh) => wpkh.script_pubkey(),
            PreTaprootDescriptor::Wsh(ref wsh) => wsh.script_pubkey(),
            PreTaprootDescriptor::Sh(ref sh) => sh.script_pubkey(),
        }
    }
fn script_pubkey ( & self ) -> Script where Pk : ToPublicKey , { match * self { PreTaprootDescriptor :: Bare ( ref bare ) => bare . script_pubkey ( ) , PreTaprootDescriptor :: Pkh ( ref pkh ) => pkh . script_pubkey ( ) , PreTaprootDescriptor :: Wpkh ( ref wpkh ) => wpkh . script_pubkey ( ) , PreTaprootDescriptor :: Wsh ( ref wsh ) => wsh . script_pubkey ( ) , PreTaprootDescriptor :: Sh ( ref sh ) => sh . script_pubkey ( ) , } }
Computes the scriptpubkey of the descriptor
Computes the scriptpubkey of the descriptor
&self
&self