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::Xpub and bip32::Xpriv.

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::Xpriv and false for bip32::Xpub.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl InnerXKey for Xpriv

source§

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

source§

fn can_derive_hardened() -> bool

source§

impl InnerXKey for Xpub

source§

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

source§

fn can_derive_hardened() -> bool

Implementors§