# Function signed::validate_pair

> Whether a (descriptor, delegation) pair is valid at `now_ms`. `chain` is the full rotation chain from the genesis key; `accepted` is the verifier's stored state for the community, 

`zaun_community_protocol::signed::validate_pair` · Function

```rust
pub fn validate_pair(community_id: &CommunityId, descriptor: &SignedJson, delegation: &SignedJson, chain: &[SignedRootRotation], accepted: Option<&AcceptedState>, now_ms: u64) -> Result<ValidPair, ValidityError>
```

Whether a (descriptor, delegation) pair is valid at `now_ms`. `chain` is
the full rotation chain from the genesis key; `accepted` is the verifier's stored state
for the community, if any. On success the returned pair carries the state to store.

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

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