fn address(&self, network: bitcoin::Network) -> Result<bitcoin::Address, Error>
    where
        Pk: ToPublicKey,
    {
        match *self {
            PreTaprootDescriptor::Bare(ref bare) => bare.address(network),
            PreTaprootDescriptor::Pkh(ref pkh) => pkh.address(network),
            PreTaprootDescriptor::Wpkh(ref wpkh) => wpkh.address(network),
            PreTaprootDescriptor::Wsh(ref wsh) => wsh.address(network),
            PreTaprootDescriptor::Sh(ref sh) => sh.address(network),
        }
    }
/// Computes the Bitcoin address of the descriptor, if one exists
Computes the Bitcoin address of the descriptor, if one exists
Computes the Bitcoin address of the descriptor if one exists
fn address(&self, network: bitcoin::Network) -> Result<bitcoin::Address, Error>
    where
        Pk: ToPublicKey,
    {
        match *self {
            PreTaprootDescriptor::Bare(ref bare) => bare.address(network),
            PreTaprootDescriptor::Pkh(ref pkh) => pkh.address(network),
            PreTaprootDescriptor::Wpkh(ref wpkh) => wpkh.address(network),
            PreTaprootDescriptor::Wsh(ref wsh) => wsh.address(network),
            PreTaprootDescriptor::Sh(ref sh) => sh.address(network),
        }
    }
fn address ( & self , network : bitcoin :: Network ) -> Result < bitcoin :: Address , Error > where Pk : ToPublicKey , { match * self { PreTaprootDescriptor :: Bare ( ref bare ) => bare . address ( network ) , PreTaprootDescriptor :: Pkh ( ref pkh ) => pkh . address ( network ) , PreTaprootDescriptor :: Wpkh ( ref wpkh ) => wpkh . address ( network ) , PreTaprootDescriptor :: Wsh ( ref wsh ) => wsh . address ( network ) , PreTaprootDescriptor :: Sh ( ref sh ) => sh . address ( network ) , } }
Computes the Bitcoin address of the descriptor, if one exists
Computes the Bitcoin address of the descriptor if one exists
&self
network
bitcoin::Network
&self
network
bitcoin::Network