pub struct EthereumExtendedPrivateKey<N> { /* private fields */ }Expand description
Represents a Ethereum Extended Private Key
Trait Implementations§
Source§impl<N: Clone> Clone for EthereumExtendedPrivateKey<N>
impl<N: Clone> Clone for EthereumExtendedPrivateKey<N>
Source§fn clone(&self) -> EthereumExtendedPrivateKey<N>
fn clone(&self) -> EthereumExtendedPrivateKey<N>
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<N: Debug> Debug for EthereumExtendedPrivateKey<N>
impl<N: Debug> Debug for EthereumExtendedPrivateKey<N>
Source§impl<N: EthereumNetwork> Display for EthereumExtendedPrivateKey<N>
impl<N: EthereumNetwork> Display for EthereumExtendedPrivateKey<N>
Source§impl<N: EthereumNetwork> ExtendedPrivateKey for EthereumExtendedPrivateKey<N>
impl<N: EthereumNetwork> ExtendedPrivateKey for EthereumExtendedPrivateKey<N>
Source§fn new(
seed: &[u8],
_format: &Self::Format,
path: &Self::DerivationPath,
) -> Result<Self, ExtendedPrivateKeyError>
fn new( seed: &[u8], _format: &Self::Format, path: &Self::DerivationPath, ) -> Result<Self, ExtendedPrivateKeyError>
Returns a new Ethereum extended private key.
Source§fn new_master(
seed: &[u8],
_format: &Self::Format,
) -> Result<Self, ExtendedPrivateKeyError>
fn new_master( seed: &[u8], _format: &Self::Format, ) -> Result<Self, ExtendedPrivateKeyError>
Returns a new Ethereum extended private key.
Source§fn derive(
&self,
path: &Self::DerivationPath,
) -> Result<Self, ExtendedPrivateKeyError>
fn derive( &self, path: &Self::DerivationPath, ) -> Result<Self, ExtendedPrivateKeyError>
Returns the extended private key of the given derivation path.
Source§fn to_extended_public_key(&self) -> Self::ExtendedPublicKey
fn to_extended_public_key(&self) -> Self::ExtendedPublicKey
Returns the extended public key of the corresponding extended private key.
Source§fn to_private_key(&self) -> Self::PrivateKey
fn to_private_key(&self) -> Self::PrivateKey
Returns the private key of the corresponding extended private key.
Source§fn to_public_key(&self) -> Self::PublicKey
fn to_public_key(&self) -> Self::PublicKey
Returns the public key of the corresponding extended private key.
Source§fn to_address(
&self,
_format: &Self::Format,
) -> Result<Self::Address, AddressError>
fn to_address( &self, _format: &Self::Format, ) -> Result<Self::Address, AddressError>
Returns the address of the corresponding extended private key.
type Address = EthereumAddress
type DerivationPath = EthereumDerivationPath<N>
type ExtendedPublicKey = EthereumExtendedPublicKey<N>
type Format = EthereumFormat
type PrivateKey = EthereumPrivateKey
type PublicKey = EthereumPublicKey
Source§impl<N: EthereumNetwork> FromStr for EthereumExtendedPrivateKey<N>
impl<N: EthereumNetwork> FromStr for EthereumExtendedPrivateKey<N>
Source§impl<N: Ord> Ord for EthereumExtendedPrivateKey<N>
impl<N: Ord> Ord for EthereumExtendedPrivateKey<N>
Source§fn cmp(&self, other: &EthereumExtendedPrivateKey<N>) -> Ordering
fn cmp(&self, other: &EthereumExtendedPrivateKey<N>) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl<N: PartialEq> PartialEq for EthereumExtendedPrivateKey<N>
impl<N: PartialEq> PartialEq for EthereumExtendedPrivateKey<N>
Source§fn eq(&self, other: &EthereumExtendedPrivateKey<N>) -> bool
fn eq(&self, other: &EthereumExtendedPrivateKey<N>) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl<N: PartialOrd> PartialOrd for EthereumExtendedPrivateKey<N>
impl<N: PartialOrd> PartialOrd for EthereumExtendedPrivateKey<N>
impl<N: Eq> Eq for EthereumExtendedPrivateKey<N>
impl<N> StructuralPartialEq for EthereumExtendedPrivateKey<N>
Auto Trait Implementations§
impl<N> Freeze for EthereumExtendedPrivateKey<N>
impl<N> RefUnwindSafe for EthereumExtendedPrivateKey<N>where
N: RefUnwindSafe,
impl<N> Send for EthereumExtendedPrivateKey<N>where
N: Send,
impl<N> Sync for EthereumExtendedPrivateKey<N>where
N: Sync,
impl<N> Unpin for EthereumExtendedPrivateKey<N>where
N: Unpin,
impl<N> UnwindSafe for EthereumExtendedPrivateKey<N>where
N: UnwindSafe,
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> 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