fn sanity_check(&self) -> Result<(), Error> {
        match *self {
            PreTaprootDescriptor::Bare(ref bare) => bare.sanity_check(),
            PreTaprootDescriptor::Pkh(ref pkh) => pkh.sanity_check(),
            PreTaprootDescriptor::Wpkh(ref wpkh) => wpkh.sanity_check(),
            PreTaprootDescriptor::Wsh(ref wsh) => wsh.sanity_check(),
            PreTaprootDescriptor::Sh(ref sh) => sh.sanity_check(),
        }
    }
/// Whether the descriptor is safe
/// Checks whether all the spend paths in the descriptor are possible
/// on the bitcoin network under the current standardness and consensus rules
/// Also checks whether the descriptor requires signauture on all spend paths
/// And whether the script is malleable.
/// In general, all the guarantees of miniscript hold only for safe scripts.
/// All the analysis guarantees of miniscript only hold safe scripts.
/// The signer may not be able to find satisfactions even if one exists
Whether the descriptor is safe
Checks whether all the spend paths in the descriptor are possible
on the bitcoin network under the current standardness and consensus rules
Also checks whether the descriptor requires signauture on all spend paths
And whether the script is malleable.
In general, all the guarantees of miniscript hold only for safe scripts.
All the analysis guarantees of miniscript only hold safe scripts.
The signer may not be able to find satisfactions even if one exists
Whether the descriptor is safe Checks whether all the spend paths in the descriptor are possible on the bitcoin network under the current standardness and consensus rules Also checks whether the descriptor requires signauture on all spend paths And whether the script is malleable . In general all the guarantees of miniscript hold only for safe scripts . All the analysis guarantees of miniscript only hold safe scripts . The signer may not be able to find satisfactions even if one exists
fn sanity_check(&self) -> Result<(), Error> {
        match *self {
            PreTaprootDescriptor::Bare(ref bare) => bare.sanity_check(),
            PreTaprootDescriptor::Pkh(ref pkh) => pkh.sanity_check(),
            PreTaprootDescriptor::Wpkh(ref wpkh) => wpkh.sanity_check(),
            PreTaprootDescriptor::Wsh(ref wsh) => wsh.sanity_check(),
            PreTaprootDescriptor::Sh(ref sh) => sh.sanity_check(),
        }
    }
fn sanity_check ( & self ) -> Result < ( ) , Error > { match * self { PreTaprootDescriptor :: Bare ( ref bare ) => bare . sanity_check ( ) , PreTaprootDescriptor :: Pkh ( ref pkh ) => pkh . sanity_check ( ) , PreTaprootDescriptor :: Wpkh ( ref wpkh ) => wpkh . sanity_check ( ) , PreTaprootDescriptor :: Wsh ( ref wsh ) => wsh . sanity_check ( ) , PreTaprootDescriptor :: Sh ( ref sh ) => sh . sanity_check ( ) , } }
Whether the descriptor is safe
Checks whether all the spend paths in the descriptor are possible
on the bitcoin network under the current standardness and consensus rules
Also checks whether the descriptor requires signauture on all spend paths
And whether the script is malleable.
Whether the descriptor is safe Checks whether all the spend paths in the descriptor are possible on the bitcoin network under the current standardness and consensus rules Also checks whether the descriptor requires signauture on all spend paths And whether the script is malleable .
&self
&self