fn script_code(&self) -> Result<Script, Error>
    where
        Pk: ToPublicKey,
    {
        match *self {
            PreTaprootDescriptor::Bare(ref bare) => bare.script_code(),
            PreTaprootDescriptor::Pkh(ref pkh) => pkh.script_code(),
            PreTaprootDescriptor::Wpkh(ref wpkh) => wpkh.script_code(),
            PreTaprootDescriptor::Wsh(ref wsh) => wsh.script_code(),
            PreTaprootDescriptor::Sh(ref sh) => sh.script_code(),
        }
    }
/// Get the `scriptCode` of a transaction output.
///
/// The `scriptCode` is the Script of the previous transaction output being serialized in the
/// sighash when evaluating a `CHECKSIG` & co. OP code.
/// Returns Error for Tr descriptors
Get the `scriptCode` of a transaction output.
The `scriptCode` is the Script of the previous transaction output being serialized in the
sighash when evaluating a `CHECKSIG` & co. OP code.
Returns Error for Tr descriptors
Get the ` scriptCode ` of a transaction output . The ` scriptCode ` is the Script of the previous transaction output being serialized in the sighash when evaluating a ` CHECKSIG ` & co . OP code . Returns Error for Tr descriptors
fn script_code(&self) -> Result<Script, Error>
    where
        Pk: ToPublicKey,
    {
        match *self {
            PreTaprootDescriptor::Bare(ref bare) => bare.script_code(),
            PreTaprootDescriptor::Pkh(ref pkh) => pkh.script_code(),
            PreTaprootDescriptor::Wpkh(ref wpkh) => wpkh.script_code(),
            PreTaprootDescriptor::Wsh(ref wsh) => wsh.script_code(),
            PreTaprootDescriptor::Sh(ref sh) => sh.script_code(),
        }
    }
fn script_code ( & self ) -> Result < Script , Error > where Pk : ToPublicKey , { match * self { PreTaprootDescriptor :: Bare ( ref bare ) => bare . script_code ( ) , PreTaprootDescriptor :: Pkh ( ref pkh ) => pkh . script_code ( ) , PreTaprootDescriptor :: Wpkh ( ref wpkh ) => wpkh . script_code ( ) , PreTaprootDescriptor :: Wsh ( ref wsh ) => wsh . script_code ( ) , PreTaprootDescriptor :: Sh ( ref sh ) => sh . script_code ( ) , } }
Get the `scriptCode` of a transaction output.
Get the ` scriptCode ` of a transaction output .
&self
&self