fn explicit_script(&self) -> Result<Script, Error>
    where
        Pk: ToPublicKey,
    {
        match *self {
            PreTaprootDescriptor::Bare(ref bare) => bare.explicit_script(),
            PreTaprootDescriptor::Pkh(ref pkh) => pkh.explicit_script(),
            PreTaprootDescriptor::Wpkh(ref wpkh) => wpkh.explicit_script(),
            PreTaprootDescriptor::Wsh(ref wsh) => wsh.explicit_script(),
            PreTaprootDescriptor::Sh(ref sh) => sh.explicit_script(),
        }
    }
/// Computes the "witness script" of the descriptor, i.e. the underlying
/// script before any hashing is done. For `Bare`, `Pkh` and `Wpkh` this
/// is the scriptPubkey; for `ShWpkh` and `Sh` this is the redeemScript;
/// for the others it is the witness script.
/// Errors:
/// - When the descriptor is Tr
Computes the "witness script" of the descriptor, i.e. the underlying
script before any hashing is done.
Computes the " witness script " of the descriptor i . e . the underlying script before any hashing is done .
fn explicit_script(&self) -> Result<Script, Error>
    where
        Pk: ToPublicKey,
    {
        match *self {
            PreTaprootDescriptor::Bare(ref bare) => bare.explicit_script(),
            PreTaprootDescriptor::Pkh(ref pkh) => pkh.explicit_script(),
            PreTaprootDescriptor::Wpkh(ref wpkh) => wpkh.explicit_script(),
            PreTaprootDescriptor::Wsh(ref wsh) => wsh.explicit_script(),
            PreTaprootDescriptor::Sh(ref sh) => sh.explicit_script(),
        }
    }
fn explicit_script ( & self ) -> Result < Script , Error > where Pk : ToPublicKey , { match * self { PreTaprootDescriptor :: Bare ( ref bare ) => bare . explicit_script ( ) , PreTaprootDescriptor :: Pkh ( ref pkh ) => pkh . explicit_script ( ) , PreTaprootDescriptor :: Wpkh ( ref wpkh ) => wpkh . explicit_script ( ) , PreTaprootDescriptor :: Wsh ( ref wsh ) => wsh . explicit_script ( ) , PreTaprootDescriptor :: Sh ( ref sh ) => sh . explicit_script ( ) , } }
Computes the "witness script" of the descriptor, i.e.
Computes the " witness script " of the descriptor i . e .
&self
&self