pub trait InnerXKey: Display + FromStr {
    // Required methods
    fn xkey_fingerprint<C: Signing>(&self, secp: &Secp256k1<C>) -> Fingerprint;
    fn can_derive_hardened() -> bool;
}
Expand description

Trait for “extended key” types like xpub and xprv. Used internally to generalize parsing and handling of bip32::ExtendedPubKey and bip32::ExtendedPrivKey.

Required Methods§

source

fn xkey_fingerprint<C: Signing>(&self, secp: &Secp256k1<C>) -> Fingerprint

Returns the fingerprint of the key

source

fn can_derive_hardened() -> bool

Returns whether hardened steps can be derived on the key

true for bip32::ExtendedPrivKey and false for bip32::ExtendedPubKey.

Implementations on Foreign Types§

source§

impl InnerXKey for ExtendedPubKey

source§

fn xkey_fingerprint<C: Signing>(&self, _secp: &Secp256k1<C>) -> Fingerprint

source§

fn can_derive_hardened() -> bool

source§

impl InnerXKey for ExtendedPrivKey

source§

fn xkey_fingerprint<C: Signing>(&self, secp: &Secp256k1<C>) -> Fingerprint

source§

fn can_derive_hardened() -> bool

Implementors§