pub fn full_derivation_path(&self) -> bip32::DerivationPath {
        match *self {
            DescriptorPublicKey::XPub(ref xpub) => {
                let origin_path = if let Some((_, ref path)) = xpub.origin {
                    path.clone()
                } else {
                    bip32::DerivationPath::from(vec![])
                };
                origin_path.extend(&xpub.derivation_path)
            }
            DescriptorPublicKey::Single(ref single) => {
                if let Some((_, ref path)) = single.origin {
                    path.clone()
                } else {
                    bip32::DerivationPath::from(vec![])
                }
            }
        }
    }
/// Full path, from the master key
///
/// For wildcard keys this will return the path up to the wildcard, so you
/// can get full paths by appending one additional derivation step, according
/// to the wildcard type (hardened or normal)
Full path, from the master key
For wildcard keys this will return the path up to the wildcard, so you
can get full paths by appending one additional derivation step, according
to the wildcard type (hardened or normal)
Full path from the master key For wildcard keys this will return the path up to the wildcard so you can get full paths by appending one additional derivation step according to the wildcard type ( hardened or normal )
pub fn full_derivation_path(&self) -> bip32::DerivationPath {
        match *self {
            DescriptorPublicKey::XPub(ref xpub) => {
                let origin_path = if let Some((_, ref path)) = xpub.origin {
                    path.clone()
                } else {
                    bip32::DerivationPath::from(vec![])
                };
                origin_path.extend(&xpub.derivation_path)
            }
            DescriptorPublicKey::Single(ref single) => {
                if let Some((_, ref path)) = single.origin {
                    path.clone()
                } else {
                    bip32::DerivationPath::from(vec![])
                }
            }
        }
    }
pub fn full_derivation_path ( & self ) -> bip32 :: DerivationPath { match * self { DescriptorPublicKey :: XPub ( ref xpub ) => { let origin_path = if let Some ( ( _ , ref path ) ) = xpub . origin { path . clone ( ) } else { bip32 :: DerivationPath :: from ( vec ! [ ] ) } ; origin_path . extend ( & xpub . derivation_path ) } DescriptorPublicKey :: Single ( ref single ) => { if let Some ( ( _ , ref path ) ) = single . origin { path . clone ( ) } else { bip32 :: DerivationPath :: from ( vec ! [ ] ) } } } }
Full path, from the master key
For wildcard keys this will return the path up to the wildcard, so you
can get full paths by appending one additional derivation step, according
to the wildcard type (hardened or normal)
Full path from the master key For wildcard keys this will return the path up to the wildcard so you can get full paths by appending one additional derivation step according to the wildcard type ( hardened or normal )
&self
&self