Trait InnerXKey

Source
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.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl InnerXKey for Xpriv

Source§

impl InnerXKey for Xpub

Implementors§