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: PrefixPrefix (a.k.a. “version”) of the key (e.g. xprv, xpub)
attrs: ExtendedKeyAttrsExtended 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§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 Freeze for ExtendedKey
impl RefUnwindSafe for ExtendedKey
impl Send for ExtendedKey
impl Sync for ExtendedKey
impl Unpin for ExtendedKey
impl UnsafeUnpin for ExtendedKey
impl UnwindSafe for ExtendedKey
Blanket Implementations§
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more