KeyMaterial

Trait KeyMaterial 

Source
pub trait KeyMaterial {
    // Required methods
    fn public_key_bytes(&self) -> Result<[u8; 32], Error>;
    fn private_key_bytes(&self) -> Result<[u8; 32], Error>;
}
Expand description

A trait for types that hold key material bytes.

Required Methods§

Source

fn public_key_bytes(&self) -> Result<[u8; 32], Error>

Returns the public key bytes as a slice.

Returns a Result containing the public key bytes, or an Error if the operation fails.

Source

fn private_key_bytes(&self) -> Result<[u8; 32], Error>

Returns the secret key bytes as a slice.

Returns a Result containing the secret key bytes, or an Error if the operation fails.

Implementors§