pub struct KeyDerivation {
pub account: u32,
pub sub: u32,
pub kix: u32,
pub tweak: Option<Vec<u8>>,
pub csv: Option<u16>,
}Expand description
Key derivation detail information coordinates of a key as defined in BIP32 and BIP44
Fields§
§account: u32m / purpose’ / coin_type’ / account’ / sub / kix
sub: u32m / purpose’ / coin_type’ / account’ / sub / kix
kix: u32m / purpose’ / coin_type’ / account’ / sub / kix
tweak: Option<Vec<u8>>optional additive tweak to private key
csv: Option<u16>optional number of blocks this can not be spent after confirmation (OP_CSV)
Trait Implementations§
Source§impl Clone for KeyDerivation
impl Clone for KeyDerivation
Source§fn clone(&self) -> KeyDerivation
fn clone(&self) -> KeyDerivation
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 KeyDerivation
impl Debug for KeyDerivation
impl Eq for KeyDerivation
Source§impl PartialEq for KeyDerivation
impl PartialEq for KeyDerivation
Source§fn eq(&self, other: &KeyDerivation) -> bool
fn eq(&self, other: &KeyDerivation) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for KeyDerivation
Auto Trait Implementations§
impl Freeze for KeyDerivation
impl RefUnwindSafe for KeyDerivation
impl Send for KeyDerivation
impl Sync for KeyDerivation
impl Unpin for KeyDerivation
impl UnsafeUnpin for KeyDerivation
impl UnwindSafe for KeyDerivation
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