pub trait KeyEnDe: Serialize + DeserializeOwned {
    fn encode(&self) -> Box<[u8]> { ... }
fn decode(bytes: &[u8]) -> Result<Self> { ... } }
Expand description

Methods used to encode and decode the KEY.

Provided methods

Encode original key type to bytes.

Decode from bytes to the original key type.

Implementors