pub struct DerivedKey {
pub is_private: bool,
pub key_data: [u8; 33],
pub chain_code: Option<[u8; 32]>,
pub use_info: Option<CoinInfo>,
pub origin: Option<Keypath>,
pub children: Option<Keypath>,
pub parent_fingerprint: Option<NonZeroU32>,
pub name: Option<String>,
pub note: Option<String>,
}Expand description
A derived key.
Fields§
§is_private: booltrue if key is private, false if public.
key_data: [u8; 33]Key data bytes.
chain_code: Option<[u8; 32]>Optional chain code.
use_info: Option<CoinInfo>How the key is to be used.
origin: Option<Keypath>How the key was derived.
children: Option<Keypath>What children should/can be derived from this.
parent_fingerprint: Option<NonZeroU32>The fingerprint of this key’s direct ancestor.
name: Option<String>A short name for this key.
note: Option<String>An arbitrary amount of text describing the key.
Trait Implementations§
Source§impl Clone for DerivedKey
impl Clone for DerivedKey
Source§fn clone(&self) -> DerivedKey
fn clone(&self) -> DerivedKey
Returns a duplicate 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 Debug for DerivedKey
impl Debug for DerivedKey
Source§impl<'a> From<DerivedKeyRef<'a>> for DerivedKey
Available on crate feature alloc only.
impl<'a> From<DerivedKeyRef<'a>> for DerivedKey
Available on crate feature
alloc only.Source§fn from(derived_key: DerivedKeyRef<'a>) -> Self
fn from(derived_key: DerivedKeyRef<'a>) -> Self
Converts to this type from the input type.
Source§impl PartialEq for DerivedKey
impl PartialEq for DerivedKey
impl StructuralPartialEq for DerivedKey
Auto Trait Implementations§
impl Freeze for DerivedKey
impl RefUnwindSafe for DerivedKey
impl Send for DerivedKey
impl Sync for DerivedKey
impl Unpin for DerivedKey
impl UnwindSafe for DerivedKey
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