Struct ethkey::KeyPair [−][src]
pub struct KeyPair { /* fields omitted */ }secp256k1 key pair
Methods
impl KeyPair[src]
impl KeyPairpub 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) -> Selfpub fn secret(&self) -> &Secret[src]
pub fn secret(&self) -> &Secretpub fn public(&self) -> &Public[src]
pub fn public(&self) -> &Publicpub fn address(&self) -> Address[src]
pub fn address(&self) -> AddressTrait Implementations
impl Debug for KeyPair[src]
impl Debug for KeyPairfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Clone for KeyPair[src]
impl Clone for KeyPairfn clone(&self) -> KeyPair[src]
fn clone(&self) -> KeyPairReturns 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 KeyPairfn eq(&self, other: &KeyPair) -> bool[src]
fn eq(&self, other: &KeyPair) -> boolThis 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) -> boolThis method tests for !=.
impl Display for KeyPair[src]
impl Display for KeyPair