pub struct EthereumExtendedPublicKey<N: EthereumNetwork> { /* private fields */ }Expand description
Represents a Ethereum extended public key
Trait Implementations§
Source§impl<N: Clone + EthereumNetwork> Clone for EthereumExtendedPublicKey<N>
impl<N: Clone + EthereumNetwork> Clone for EthereumExtendedPublicKey<N>
Source§fn clone(&self) -> EthereumExtendedPublicKey<N>
fn clone(&self) -> EthereumExtendedPublicKey<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 + EthereumNetwork> Debug for EthereumExtendedPublicKey<N>
impl<N: Debug + EthereumNetwork> Debug for EthereumExtendedPublicKey<N>
Source§impl<N: EthereumNetwork> Display for EthereumExtendedPublicKey<N>
impl<N: EthereumNetwork> Display for EthereumExtendedPublicKey<N>
Source§impl<N: EthereumNetwork> ExtendedPublicKey for EthereumExtendedPublicKey<N>
impl<N: EthereumNetwork> ExtendedPublicKey for EthereumExtendedPublicKey<N>
Source§fn from_extended_private_key(
extended_private_key: &Self::ExtendedPrivateKey,
) -> Self
fn from_extended_private_key( extended_private_key: &Self::ExtendedPrivateKey, ) -> Self
Returns the extended public key of the corresponding extended private key.
Source§fn derive(
&self,
path: &Self::DerivationPath,
) -> Result<Self, ExtendedPublicKeyError>
fn derive( &self, path: &Self::DerivationPath, ) -> Result<Self, ExtendedPublicKeyError>
Returns the extended public key for the given derivation path.
Source§fn to_public_key(&self) -> Self::PublicKey
fn to_public_key(&self) -> Self::PublicKey
Returns the public key of the corresponding extended public 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 public key.
type Address = EthereumAddress
type DerivationPath = EthereumDerivationPath<N>
type ExtendedPrivateKey = EthereumExtendedPrivateKey<N>
type Format = EthereumFormat
type PublicKey = EthereumPublicKey
Source§impl<N: EthereumNetwork> FromStr for EthereumExtendedPublicKey<N>
impl<N: EthereumNetwork> FromStr for EthereumExtendedPublicKey<N>
Source§impl<N: Ord + EthereumNetwork> Ord for EthereumExtendedPublicKey<N>
impl<N: Ord + EthereumNetwork> Ord for EthereumExtendedPublicKey<N>
Source§fn cmp(&self, other: &EthereumExtendedPublicKey<N>) -> Ordering
fn cmp(&self, other: &EthereumExtendedPublicKey<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 + EthereumNetwork> PartialEq for EthereumExtendedPublicKey<N>
impl<N: PartialEq + EthereumNetwork> PartialEq for EthereumExtendedPublicKey<N>
Source§fn eq(&self, other: &EthereumExtendedPublicKey<N>) -> bool
fn eq(&self, other: &EthereumExtendedPublicKey<N>) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl<N: PartialOrd + EthereumNetwork> PartialOrd for EthereumExtendedPublicKey<N>
impl<N: PartialOrd + EthereumNetwork> PartialOrd for EthereumExtendedPublicKey<N>
impl<N: Eq + EthereumNetwork> Eq for EthereumExtendedPublicKey<N>
impl<N: EthereumNetwork> StructuralPartialEq for EthereumExtendedPublicKey<N>
Auto Trait Implementations§
impl<N> Freeze for EthereumExtendedPublicKey<N>
impl<N> RefUnwindSafe for EthereumExtendedPublicKey<N>where
N: RefUnwindSafe,
impl<N> Send for EthereumExtendedPublicKey<N>
impl<N> Sync for EthereumExtendedPublicKey<N>
impl<N> Unpin for EthereumExtendedPublicKey<N>where
N: Unpin,
impl<N> UnwindSafe for EthereumExtendedPublicKey<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