# Enum signed::ValidityError

> A (descriptor, delegation) pair is not valid.

`zaun_community_protocol::signed::ValidityError` · Enum

```rust
pub enum ValidityError { … }
```

A (descriptor, delegation) pair is not valid.

## 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`

the protocol: 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

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

[Full rustdoc page](/docs/api/rust/zaun-community-protocol/zaun_community_protocol/signed/error/enum.ValidityError.html)
