pub fn new(key: DescriptorPublicKey, secp: &'s SecpCtx) -> DerivedDescriptorKey<'s> {
        if let DescriptorPublicKey::XPub(xpub) = &key {
            assert!(xpub.wildcard == Wildcard::None)
        }

        DerivedDescriptorKey(key, secp)
    }
/// Construct a new derived key
///
/// Panics if the key is wildcard
Construct a new derived key
Panics if the key is wildcard
Construct a new derived key Panics if the key is wildcard
pub fn new(key: DescriptorPublicKey, secp: &'s SecpCtx) -> DerivedDescriptorKey<'s> {
        if let DescriptorPublicKey::XPub(xpub) = &key {
            assert!(xpub.wildcard == Wildcard::None)
        }
        DerivedDescriptorKey(key, secp)
    }
pub fn new ( key : DescriptorPublicKey , secp : & ' s SecpCtx ) -> DerivedDescriptorKey < ' s > { if let DescriptorPublicKey :: XPub ( xpub ) = & key { assert ! ( xpub wildcard Wildcard None ) } DerivedDescriptorKey ( key , secp ) }
Construct a new derived key
Panics if the key is wildcard
Construct a new derived key Panics if the key is wildcard
key
DescriptorPublicKey
secp
&'s SecpCtx
key
DescriptorPublicKey
secp
&'s SecpCtx