# Function signed::validate_descriptor

> Rule 1 and the descriptor parts of rule 5: `chain` is the full rotation chain from the genesis key (`community.rotations`), `accepted` the verifier's stored state, if any.

`zaun_community_protocol::signed::validate_descriptor` · Function

```rust
pub fn validate_descriptor(community_id: &CommunityId, descriptor: &SignedJson, chain: &[SignedRootRotation], accepted: Option<&AcceptedState>) -> Result<ValidDescriptor, ValidityError>
```

Rule 1 and the descriptor parts of rule 5: `chain` is the full rotation chain from the
genesis key (`community.rotations`), `accepted` the verifier's stored state, if any.

# Errors
`ValidityError` naming the first rule that fails.

[Full rustdoc page](/docs/api/rust/zaun-community-protocol/zaun_community_protocol/signed/validity/fn.validate_descriptor.html)
