openmls/credentials/
errors.rsuse crate::error::LibraryError;
use thiserror::Error;
#[derive(Error, Debug, PartialEq, Clone)]
pub enum CredentialError {
#[error(transparent)]
LibraryError(#[from] LibraryError),
#[error("Unsupported credential type.")]
UnsupportedCredentialType,
#[error("Invalid signature.")]
InvalidSignature,
}
#[derive(Error, Debug, PartialEq, Clone)]
pub enum BasicCredentialError {
#[error(transparent)]
TlsCodecError(#[from] tls_codec::Error),
#[error("Wrong credential type.")]
WrongCredentialType,
}