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§