Skip to content

Enum signed::ValidityError

zaun_community_protocol::signed::ValidityError · Enum

pub enum ValidityError { … }

A (descriptor, delegation) pair is not valid.

Rule 1: the rotation chain does not verify.

Rule 1: the descriptor does not verify or decode.

Rule 1: community_id is not the expected community.

Rule 1: root_public_key is not the chain’s last key.

Rule 1: the descriptor’s latest rotation is not the chain’s last rotation.

the protocol: the root key’s suite is below the descriptor’s min_suite.

Rule 2: the descriptor authorises no host (suspended).

Rule 2: SHA3-256(delegation.bytes) differs from delegation_hash.

Rule 3: the delegation does not verify or decode.

Rule 2: the delegation epoch differs from the reference.

Rule 3: the delegation names another community.

Rule 4: now < not_before − 5 min.

Rule 4: now > expires_at + 5 min.

Rule 5: a lower descriptor revision than accepted.

Rule 5: an equal revision with different bytes.

Rule 5: a lower delegation epoch than accepted.

Rule 5: an equal epoch with another delegation_hash.

Rule 5: a shorter rotation chain than accepted.

Rule 5 (extended): the chain does not pass through the accepted root key.

Rule 5: a lower min_suite than accepted.

Clone, Copy, Debug, Display, Eq, Error, From<RotationError>, From<ValidityError>, PartialEq, StructuralPartialEq

Full rustdoc page