Struct ethkey::KeyPair [−][src]
pub struct KeyPair { /* fields omitted */ }
secp256k1 key pair
Methods
impl KeyPair
[src]
impl KeyPair
pub fn from_secret(secret: Secret) -> Result<KeyPair, Error>
[src]
pub fn from_secret(secret: Secret) -> Result<KeyPair, Error>
Create a pair from secret key
pub fn from_secret_slice(slice: &[u8]) -> Result<KeyPair, Error>
[src]
pub fn from_secret_slice(slice: &[u8]) -> Result<KeyPair, Error>
pub fn from_keypair(sec: SecretKey, publ: PublicKey) -> Self
[src]
pub fn from_keypair(sec: SecretKey, publ: PublicKey) -> Self
pub fn secret(&self) -> &Secret
[src]
pub fn secret(&self) -> &Secret
pub fn public(&self) -> &Public
[src]
pub fn public(&self) -> &Public
pub fn address(&self) -> Address
[src]
pub fn address(&self) -> Address
Trait Implementations
impl Debug for KeyPair
[src]
impl Debug for KeyPair
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Clone for KeyPair
[src]
impl Clone for KeyPair
fn clone(&self) -> KeyPair
[src]
fn clone(&self) -> KeyPair
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl PartialEq for KeyPair
[src]
impl PartialEq for KeyPair
fn eq(&self, other: &KeyPair) -> bool
[src]
fn eq(&self, other: &KeyPair) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &KeyPair) -> bool
[src]
fn ne(&self, other: &KeyPair) -> bool
This method tests for !=
.
impl Display for KeyPair
[src]
impl Display for KeyPair