Struct ed25519_dalek_bip32::ExtendedSigningKey
source · pub struct ExtendedSigningKey {
pub depth: u8,
pub child_index: ChildIndex,
pub signing_key: SigningKey,
pub chain_code: [u8; 32],
}
Expand description
An expanded secret key with chain code and meta data
Fields§
§depth: u8
How many derivations this key is from the root (0 for root)
child_index: ChildIndex
Child index of the key used to derive from parent (Normal(0)
for root)
signing_key: SigningKey
Signing Key
chain_code: [u8; 32]
Chain code
Implementations§
source§impl ExtendedSigningKey
impl ExtendedSigningKey
sourcepub fn derive<P: AsRef<[ChildIndex]>>(&self, path: &P) -> Result<Self>
pub fn derive<P: AsRef<[ChildIndex]>>(&self, path: &P) -> Result<Self>
Derive an extended secret key fom the current using a derivation path
sourcepub fn derive_child(&self, index: ChildIndex) -> Result<Self>
pub fn derive_child(&self, index: ChildIndex) -> Result<Self>
Derive a child extended secret key with an index
sourcepub fn verifying_key(&self) -> VerifyingKey
pub fn verifying_key(&self) -> VerifyingKey
Get the associated verifying key
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for ExtendedSigningKey
impl Send for ExtendedSigningKey
impl Sync for ExtendedSigningKey
impl Unpin for ExtendedSigningKey
impl UnwindSafe for ExtendedSigningKey
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