[][src]Struct wagyu_ethereum::private_key::EthereumPrivateKey

pub struct 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]

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.

impl Ord for EthereumPrivateKey[src]

impl PartialEq<EthereumPrivateKey> for EthereumPrivateKey[src]

impl PartialOrd<EthereumPrivateKey> for EthereumPrivateKey[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]

Returns the address of the corresponding Ethereum private key.

impl StructuralEq for EthereumPrivateKey[src]

impl StructuralPartialEq for EthereumPrivateKey[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,