[][src]Trait miniscript::descriptor::InnerXKey

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

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

Required methods

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

Returns the fingerprint of the key

fn can_derive_hardened() -> bool[src]

Returns whether hardened steps can be derived on the key

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

Loading content...

Implementations on Foreign Types

impl InnerXKey for ExtendedPubKey[src]

impl InnerXKey for ExtendedPrivKey[src]

Loading content...

Implementors

Loading content...