pub trait InnerXKey: Display + FromStr {
// Required methods
fn xkey_fingerprint<C>(&self, secp: &Secp256k1<C>) -> Fingerprint
where C: Signing;
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>(&self, secp: &Secp256k1<C>) -> Fingerprintwhere
C: Signing,
fn xkey_fingerprint<C>(&self, secp: &Secp256k1<C>) -> Fingerprintwhere
C: Signing,
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.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".