fn max_satisfaction_weight(&self) -> Result<usize, Error> {
        match *self {
            PreTaprootDescriptor::Bare(ref bare) => bare.max_satisfaction_weight(),
            PreTaprootDescriptor::Pkh(ref pkh) => pkh.max_satisfaction_weight(),
            PreTaprootDescriptor::Wpkh(ref wpkh) => wpkh.max_satisfaction_weight(),
            PreTaprootDescriptor::Wsh(ref wsh) => wsh.max_satisfaction_weight(),
            PreTaprootDescriptor::Sh(ref sh) => sh.max_satisfaction_weight(),
        }
    }
/// Computes an upper bound on the weight of a satisfying witness to the
/// transaction. Assumes all signatures are 73 bytes, including push opcode
/// and sighash suffix. Includes the weight of the VarInts encoding the
/// scriptSig and witness stack length.
Computes an upper bound on the weight of a satisfying witness to the
transaction. Assumes all signatures are 73 bytes, including push opcode
and sighash suffix. Includes the weight of the VarInts encoding the
scriptSig and witness stack length.
Computes an upper bound on the weight of a satisfying witness to the transaction . Assumes all signatures are 73 bytes including push opcode and sighash suffix . Includes the weight of the VarInts encoding the scriptSig and witness stack length .
fn max_satisfaction_weight(&self) -> Result<usize, Error> {
        match *self {
            PreTaprootDescriptor::Bare(ref bare) => bare.max_satisfaction_weight(),
            PreTaprootDescriptor::Pkh(ref pkh) => pkh.max_satisfaction_weight(),
            PreTaprootDescriptor::Wpkh(ref wpkh) => wpkh.max_satisfaction_weight(),
            PreTaprootDescriptor::Wsh(ref wsh) => wsh.max_satisfaction_weight(),
            PreTaprootDescriptor::Sh(ref sh) => sh.max_satisfaction_weight(),
        }
    }
fn max_satisfaction_weight ( & self ) -> Result < usize , Error > { match * self { PreTaprootDescriptor :: Bare ( ref bare ) => bare . max_satisfaction_weight ( ) , PreTaprootDescriptor :: Pkh ( ref pkh ) => pkh . max_satisfaction_weight ( ) , PreTaprootDescriptor :: Wpkh ( ref wpkh ) => wpkh . max_satisfaction_weight ( ) , PreTaprootDescriptor :: Wsh ( ref wsh ) => wsh . max_satisfaction_weight ( ) , PreTaprootDescriptor :: Sh ( ref sh ) => sh . max_satisfaction_weight ( ) , } }
Computes an upper bound on the weight of a satisfying witness to the
transaction.
Computes an upper bound on the weight of a satisfying witness to the transaction .
&self
&self