Trait KeyMaterial

Source
pub trait KeyMaterial {
    // Required methods
    fn public_key_bytes(&self) -> Vec<u8> ;
    fn secret_key_bytes(&self) -> Vec<u8> ;
    fn to_bytes(&self) -> Vec<u8> ;

    // Provided method
    fn to_str(&self) -> String { ... }
}
Expand description

Return key material bytes

Required Methods§

Source

fn public_key_bytes(&self) -> Vec<u8>

Returns the public key bytes as slice

Source

fn secret_key_bytes(&self) -> Vec<u8>

Returns the secret key bytes as slice

Source

fn to_bytes(&self) -> Vec<u8>

Returns bytes from key pair

Provided Methods§

Source

fn to_str(&self) -> String

Returns String from key pair encoded in base64

Implementors§