Enum signed::ValidityError
zaun_community_protocol::signed::ValidityError · Enum
pub enum ValidityError { … }A (descriptor, delegation) pair is not valid.
Variants
Section titled “Variants”Chain(RotationError)
Section titled “Chain(RotationError)”Rule 1: the rotation chain does not verify.
Descriptor(SignedError)
Section titled “Descriptor(SignedError)”Rule 1: the descriptor does not verify or decode.
Community
Section titled “Community”Rule 1: community_id is not the expected community.
RootKey
Section titled “RootKey”Rule 1: root_public_key is not the chain’s last key.
EmbeddedRotation
Section titled “EmbeddedRotation”Rule 1: the descriptor’s latest rotation is not the chain’s last rotation.
SuiteBelowMinimum
Section titled “SuiteBelowMinimum”the protocol: the root key’s suite is below the descriptor’s min_suite.
NoDelegation
Section titled “NoDelegation”Rule 2: the descriptor authorises no host (suspended).
DelegationHash
Section titled “DelegationHash”Rule 2: SHA3-256(delegation.bytes) differs from delegation_hash.
Delegation(SignedError)
Section titled “Delegation(SignedError)”Rule 3: the delegation does not verify or decode.
DelegationEpoch
Section titled “DelegationEpoch”Rule 2: the delegation epoch differs from the reference.
DelegationCommunity
Section titled “DelegationCommunity”Rule 3: the delegation names another community.
NotYetValid
Section titled “NotYetValid”Rule 4: now < not_before − 5 min.
Expired
Section titled “Expired”Rule 4: now > expires_at + 5 min.
RevisionRollback
Section titled “RevisionRollback”Rule 5: a lower descriptor revision than accepted.
RevisionConflict
Section titled “RevisionConflict”Rule 5: an equal revision with different bytes.
EpochRollback
Section titled “EpochRollback”Rule 5: a lower delegation epoch than accepted.
EpochConflict
Section titled “EpochConflict”Rule 5: an equal epoch with another delegation_hash.
ChainRollback
Section titled “ChainRollback”Rule 5: a shorter rotation chain than accepted.
RootKeyFork
Section titled “RootKeyFork”Rule 5 (extended): the chain does not pass through the accepted root key.
MinSuiteRollback
Section titled “MinSuiteRollback”Rule 5: a lower min_suite than accepted.
Trait implementations
Section titled “Trait implementations”Clone, Copy, Debug, Display, Eq, Error, From<RotationError>, From<ValidityError>, PartialEq, StructuralPartialEq