use crate::{
error::Error,
secrets::{SecretBytes, SecretDecoder},
};
#[derive(Debug, Clone, Copy, Default)]
pub struct BinaryEncoding;
impl SecretDecoder for BinaryEncoding {
type Output = SecretBytes;
fn decode(&self, bytes: &[u8]) -> Result<Self::Output, Error> {
Ok(SecretBytes::new(bytes.to_vec()))
}
}