Struct kaspa_bip32::ExtendedKey
source · pub struct ExtendedKey {
pub prefix: Prefix,
pub attrs: ExtendedKeyAttrs,
pub key_bytes: [u8; 33],
}
Expand description
Serialized extended key (e.g. xprv
and xpub
).
Fields§
§prefix: Prefix
Prefix
(a.k.a. “version”) of the key (e.g. xprv
, xpub
)
attrs: ExtendedKeyAttrs
Extended key attributes.
key_bytes: [u8; 33]
Key material (may be public or private).
Includes an extra byte for a public key’s SEC1 tag.
Implementations§
source§impl ExtendedKey
impl ExtendedKey
Trait Implementations§
source§impl Clone for ExtendedKey
impl Clone for ExtendedKey
source§fn clone(&self) -> ExtendedKey
fn clone(&self) -> ExtendedKey
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Display for ExtendedKey
impl Display for ExtendedKey
source§impl Drop for ExtendedKey
impl Drop for ExtendedKey
source§impl FromStr for ExtendedKey
impl FromStr for ExtendedKey
source§impl<K> TryFrom<ExtendedKey> for ExtendedPrivateKey<K>where
K: PrivateKey,
impl<K> TryFrom<ExtendedKey> for ExtendedPrivateKey<K>where
K: PrivateKey,
source§fn try_from(extended_key: ExtendedKey) -> Result<ExtendedPrivateKey<K>>
fn try_from(extended_key: ExtendedKey) -> Result<ExtendedPrivateKey<K>>
Performs the conversion.
source§impl<K> TryFrom<ExtendedKey> for ExtendedPublicKey<K>where
K: PublicKey,
impl<K> TryFrom<ExtendedKey> for ExtendedPublicKey<K>where
K: PublicKey,
source§fn try_from(extended_key: ExtendedKey) -> Result<ExtendedPublicKey<K>>
fn try_from(extended_key: ExtendedKey) -> Result<ExtendedPublicKey<K>>
Performs the conversion.
Auto Trait Implementations§
impl RefUnwindSafe for ExtendedKey
impl Send for ExtendedKey
impl Sync for ExtendedKey
impl Unpin for ExtendedKey
impl UnwindSafe for ExtendedKey
Blanket Implementations§
§impl<T> AnySync for T
impl<T> AnySync for T
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more