pub enum CertificateVerifierError {
VerifyMultiSignature(String),
CertificateGenesis(ProtocolGenesisError),
CertificateHashUnmatch,
CertificateChainPreviousHashUnmatch,
CertificateProtocolMessageUnmatch,
CertificateChainAVKUnmatch,
CertificateChainInfiniteLoop,
InvalidGenesisCertificateProvided,
InvalidStandardCertificateProvided,
}
Expand description
CertificateVerifier related errors.
Variants§
VerifyMultiSignature(String)
Error raised when the multi signatures verification fails.
CertificateGenesis(ProtocolGenesisError)
Error raised when the Genesis Signature stored in a Certificate is invalid.
CertificateHashUnmatch
Error raised when the hash stored in a Certificate doesn’t match a recomputed hash.
CertificateChainPreviousHashUnmatch
Error raised when validating the certificate chain if a previous Certificate hash isn’t
equal to the current certificate previous_hash
.
CertificateProtocolMessageUnmatch
Error raised when validating the certificate chain if the current Certificate
signed_message
doesn’t match the hash of the protocol_message
of the current certificate
CertificateChainAVKUnmatch
Error raised when validating the certificate chain if the current Certificate
aggregate_verification_key
doesn’t match the signed next_aggregate_verification_key
of the previous certificate
(if the certificates are on different epoch) or the aggregate_verification_key
of the previous certificate
(if the certificates are on the same epoch).
CertificateChainInfiniteLoop
Error raised when validating the certificate chain if the chain loops.
InvalidGenesisCertificateProvided
Error raised when CertificateVerifier::verify_genesis_certificate was called with a certificate that’s not a genesis certificate.
InvalidStandardCertificateProvided
Error raised when CertificateVerifier::verify_standard_certificate was called with a certificate that’s not a standard certificate.
Trait Implementations§
source§impl Debug for CertificateVerifierError
impl Debug for CertificateVerifierError
source§impl Display for CertificateVerifierError
impl Display for CertificateVerifierError
source§impl Error for CertificateVerifierError
impl Error for CertificateVerifierError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
source§impl From<ProtocolGenesisError> for CertificateVerifierError
impl From<ProtocolGenesisError> for CertificateVerifierError
source§fn from(source: ProtocolGenesisError) -> Self
fn from(source: ProtocolGenesisError) -> Self
Auto Trait Implementations§
impl Freeze for CertificateVerifierError
impl RefUnwindSafe for CertificateVerifierError
impl Send for CertificateVerifierError
impl Sync for CertificateVerifierError
impl Unpin for CertificateVerifierError
impl UnwindSafe for CertificateVerifierError
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> CheckedAs for T
impl<T> CheckedAs for T
source§fn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
fn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
source§impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
source§fn checked_cast_from(src: Src) -> Option<Dst>
fn checked_cast_from(src: Src) -> Option<Dst>
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more