ece::crypto

Trait LocalKeyPair

Source
pub trait LocalKeyPair:
    Send
    + Sync
    + 'static {
    // Required methods
    fn pub_as_raw(&self) -> Result<Vec<u8>>;
    fn raw_components(&self) -> Result<EcKeyComponents>;
    fn as_any(&self) -> &dyn Any;
}

Required Methods§

Source

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

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

Source

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

Export the raw components of the keypair.

Source

fn as_any(&self) -> &dyn Any

For downcasting purposes.

Implementors§