pub trait CredentialCodec {
// Required methods
fn encode(&self, credential: &Credential) -> Result<Vec<u8>, CodecError>;
fn decode(&self, payload: &[u8]) -> Result<Credential, CodecError>;
}Expand description
Encode/decode a Verifiable Credential to/from a transport representation.