[−][src]Struct wagyu_ethereum::private_key::EthereumPrivateKey
Represents an Ethereum private key
Methods
impl EthereumPrivateKey
[src]
pub fn from_secp256k1_secret_key(secret_key: SecretKey) -> Self
[src]
Returns a private key given a secp256k1 secret key.
pub fn to_secp256k1_secret_key(&self) -> SecretKey
[src]
Returns the secp256k1 secret key of the private key.
Trait Implementations
impl Clone for EthereumPrivateKey
[src]
fn clone(&self) -> EthereumPrivateKey
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for EthereumPrivateKey
[src]
impl Display for EthereumPrivateKey
[src]
impl Eq for EthereumPrivateKey
[src]
impl FromStr for EthereumPrivateKey
[src]
type Err = PrivateKeyError
The associated error which can be returned from parsing.
fn from_str(private_key: &str) -> Result<Self, PrivateKeyError>
[src]
impl Ord for EthereumPrivateKey
[src]
fn cmp(&self, other: &EthereumPrivateKey) -> Ordering
[src]
#[must_use]fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn clamp(self, min: Self, max: Self) -> Self
[src]
impl PartialEq<EthereumPrivateKey> for EthereumPrivateKey
[src]
fn eq(&self, other: &EthereumPrivateKey) -> bool
[src]
fn ne(&self, other: &EthereumPrivateKey) -> bool
[src]
impl PartialOrd<EthereumPrivateKey> for EthereumPrivateKey
[src]
fn partial_cmp(&self, other: &EthereumPrivateKey) -> Option<Ordering>
[src]
fn lt(&self, other: &EthereumPrivateKey) -> bool
[src]
fn le(&self, other: &EthereumPrivateKey) -> bool
[src]
fn gt(&self, other: &EthereumPrivateKey) -> bool
[src]
fn ge(&self, other: &EthereumPrivateKey) -> bool
[src]
impl PrivateKey for EthereumPrivateKey
[src]
type Address = EthereumAddress
type Format = EthereumFormat
type PublicKey = EthereumPublicKey
fn new<R: Rng>(rng: &mut R) -> Result<Self, PrivateKeyError>
[src]
Returns a randomly-generated Ethereum private key.
fn to_public_key(&self) -> Self::PublicKey
[src]
Returns the public key of the corresponding Ethereum private key.
fn to_address(
&self,
_format: &Self::Format
) -> Result<Self::Address, AddressError>
[src]
&self,
_format: &Self::Format
) -> Result<Self::Address, AddressError>
Returns the address of the corresponding Ethereum private key.
impl StructuralEq for EthereumPrivateKey
[src]
impl StructuralPartialEq for EthereumPrivateKey
[src]
Auto Trait Implementations
impl RefUnwindSafe for EthereumPrivateKey
impl Send for EthereumPrivateKey
impl Sync for EthereumPrivateKey
impl Unpin for EthereumPrivateKey
impl UnwindSafe for EthereumPrivateKey
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,
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> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
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.
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.
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>,