[][src]Trait ece::crypto_backend::LocalKeyPair

pub trait LocalKeyPair {
    fn generate_random() -> Result<Self>
    where
        Self: Sized
;
fn pub_as_raw(&self) -> Result<Vec<u8>>;
fn from_raw_components(components: &EcKeyComponents) -> Result<Self>
    where
        Self: Sized
;
fn raw_components(&self) -> Result<EcKeyComponents>; }

Required methods

fn generate_random() -> Result<Self> where
    Self: Sized

Generate a random local key pair.

fn pub_as_raw(&self) -> Result<Vec<u8>>

Export the public key component in the binary uncompressed point representation.

fn from_raw_components(components: &EcKeyComponents) -> Result<Self> where
    Self: Sized

Import a keypair from its raw components.

fn raw_components(&self) -> Result<EcKeyComponents>

Export the raw components of the keypair.

Loading content...

Implementors

impl LocalKeyPair for OpenSSLLocalKeyPair[src]

fn generate_random() -> Result<Self>[src]

Generate a random local key pair using OpenSSL ECKey::generate.

fn pub_as_raw(&self) -> Result<Vec<u8>>[src]

Export the public key component in the binary uncompressed point representation using OpenSSL PointConversionForm::UNCOMPRESSED.

Loading content...