pub trait KeyEnDe: Serialize + DeserializeOwned { fn encode(&self) -> Box<[u8]> { ... } fn decode(bytes: &[u8]) -> Result<Self> { ... } }
Methods used to encode and decode the KEY.
Encode original key type to bytes.
Decode from bytes to the original key type.