[−][src]Struct ed25519_dalek_bip32::ExtendedSecretKey
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)
secret_key: SecretKey
Secret Key
chain_code: [u8; 32]
Chain code
Implementations
impl ExtendedSecretKey
[src]
pub fn from_seed(seed: &[u8]) -> Result<Self>
[src]
Create a new extended secret key from a seed
pub fn derive<P: AsRef<[ChildIndex]>>(&self, path: &P) -> Result<Self>
[src]
Derive an extended secret key fom the current using a derivation path
pub fn derive_child(&self, index: ChildIndex) -> Result<Self>
[src]
Derive a child extended secret key with an index
pub fn public_key(&self) -> PublicKey
[src]
Get the associated public key
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for ExtendedSecretKey
impl Send for ExtendedSecretKey
impl Sync for ExtendedSecretKey
impl Unpin for ExtendedSecretKey
impl UnwindSafe for ExtendedSecretKey
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,