Trait miniscript::descriptor::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§
sourcefn xkey_fingerprint<C: Signing>(&self, secp: &Secp256k1<C>) -> Fingerprint
fn xkey_fingerprint<C: Signing>(&self, secp: &Secp256k1<C>) -> Fingerprint
Returns the fingerprint of the key
sourcefn can_derive_hardened() -> bool
fn can_derive_hardened() -> bool
Returns whether hardened steps can be derived on the key
true
for bip32::Xpriv
and false
for bip32::Xpub
.