pub fn master_fingerprint(&self) -> bip32::Fingerprint {
        match *self {
            DescriptorPublicKey::XPub(ref xpub) => {
                if let Some((fingerprint, _)) = xpub.origin {
                    fingerprint
                } else {
                    xpub.xkey.fingerprint()
                }
            }
            DescriptorPublicKey::Single(ref single) => {
                if let Some((fingerprint, _)) = single.origin {
                    fingerprint
                } else {
                    let mut engine = XpubIdentifier::engine();
                    match single.key {
                        SinglePubKey::FullKey(pk) => {
                            pk.write_into(&mut engine).expect("engines don't error")
                        }
                        SinglePubKey::XOnly(x_only_pk) => engine.input(&x_only_pk.serialize()),
                    };
                    bip32::Fingerprint::from(&XpubIdentifier::from_engine(engine)[..4])
                }
            }
        }
    }
/// The fingerprint of the master key associated with this key, `0x00000000` if none.
The fingerprint of the master key associated with this key, `0x00000000` if none.
The fingerprint of the master key associated with this key ` 0x00000000 ` if none .
pub fn master_fingerprint(&self) -> bip32::Fingerprint {
        match *self {
            DescriptorPublicKey::XPub(ref xpub) => {
                if let Some((fingerprint, _)) = xpub.origin {
                    fingerprint
                } else {
                    xpub.xkey.fingerprint()
                }
            }
            DescriptorPublicKey::Single(ref single) => {
                if let Some((fingerprint, _)) = single.origin {
                    fingerprint
                } else {
                    let mut engine = XpubIdentifier::engine();
                    match single.key {
                        SinglePubKey::FullKey(pk) => {
                            pk.write_into(&mut engine).expect("engines don't error")
                        }
                        SinglePubKey::XOnly(x_only_pk) => engine.input(&x_only_pk.serialize()),
                    };
                    bip32::Fingerprint::from(&XpubIdentifier::from_engine(engine)[..4])
                }
            }
        }
    }
pub fn master_fingerprint ( & self ) -> bip32 :: Fingerprint { match * self { DescriptorPublicKey :: XPub ( ref xpub ) => { if let Some ( ( fingerprint , _ ) ) = xpub . origin { fingerprint } else { xpub . xkey . fingerprint ( ) } } DescriptorPublicKey :: Single ( ref single ) => { if let Some ( ( fingerprint , _ ) ) = single . origin { fingerprint } else { let mut engine = XpubIdentifier :: engine ( ) ; match single . key { SinglePubKey :: FullKey ( pk ) => { pk . write_into ( & mut engine ) . expect ( " " ) } SinglePubKey :: XOnly ( x_only_pk ) => engine . input ( & x_only_pk . serialize ( ) ) , } ; bip32 :: Fingerprint :: from ( & XpubIdentifier :: from_engine ( engine ) [ .. 4 ] ) } } } }
The fingerprint of the master key associated with this key, `0x00000000` if none.
The fingerprint of the master key associated with this key ` 0x00000000 ` if none .
&self
&self