Trait did_key::KeyMaterial
source · pub trait KeyMaterial {
fn public_key_bytes(&self) -> Vec<u8>;
fn private_key_bytes(&self) -> Vec<u8>;
}
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 private_key_bytes(&self) -> Vec<u8>
fn private_key_bytes(&self) -> Vec<u8>
Returns the secret key bytes as slice