Trait taple_core::crypto::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§
sourcefn public_key_bytes(&self) -> Vec<u8> ⓘ
fn public_key_bytes(&self) -> Vec<u8> ⓘ
Returns the public key bytes as slice
sourcefn secret_key_bytes(&self) -> Vec<u8> ⓘ
fn secret_key_bytes(&self) -> Vec<u8> ⓘ
Returns the secret key bytes as slice