pub enum ValidityError {
Show 20 variants
Chain(RotationError),
Descriptor(SignedError),
Community,
RootKey,
EmbeddedRotation,
SuiteBelowMinimum,
NoDelegation,
DelegationHash,
Delegation(SignedError),
DelegationEpoch,
DelegationCommunity,
NotYetValid,
Expired,
RevisionRollback,
RevisionConflict,
EpochRollback,
EpochConflict,
ChainRollback,
RootKeyFork,
MinSuiteRollback,
}Expand description
A (descriptor, delegation) pair is not valid (specification §4.3).
Variants§
Chain(RotationError)
Rule 1: the rotation chain does not verify.
Descriptor(SignedError)
Rule 1: the descriptor does not verify or decode.
Community
Rule 1: community_id is not the expected community.
RootKey
Rule 1: root_public_key is not the chain’s last key.
EmbeddedRotation
Rule 1: the descriptor’s latest rotation is not the chain’s last rotation.
SuiteBelowMinimum
§3.3: the root key’s suite is below the descriptor’s min_suite.
NoDelegation
Rule 2: the descriptor authorises no host (suspended).
DelegationHash
Rule 2: SHA3-256(delegation.bytes) differs from delegation_hash.
Delegation(SignedError)
Rule 3: the delegation does not verify or decode.
DelegationEpoch
Rule 2: the delegation epoch differs from the reference.
DelegationCommunity
Rule 3: the delegation names another community.
NotYetValid
Rule 4: now < not_before − 5 min.
Expired
Rule 4: now > expires_at + 5 min.
RevisionRollback
Rule 5: a lower descriptor revision than accepted.
RevisionConflict
Rule 5: an equal revision with different bytes.
EpochRollback
Rule 5: a lower delegation epoch than accepted.
EpochConflict
Rule 5: an equal epoch with another delegation_hash.
ChainRollback
Rule 5: a shorter rotation chain than accepted.
RootKeyFork
Rule 5 (extended): the chain does not pass through the accepted root key.
MinSuiteRollback
Rule 5: a lower min_suite than accepted.
Trait Implementations§
Source§impl Clone for ValidityError
impl Clone for ValidityError
Source§fn clone(&self) -> ValidityError
fn clone(&self) -> ValidityError
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for ValidityError
Source§impl Debug for ValidityError
impl Debug for ValidityError
Source§impl Display for ValidityError
impl Display for ValidityError
impl Eq for ValidityError
Source§impl Error for ValidityError
impl Error for ValidityError
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
use the Display impl or to_string()