pub fn validate_pair(
community_id: &CommunityId,
descriptor: &SignedJson,
delegation: &SignedJson,
chain: &[SignedRootRotation],
accepted: Option<&AcceptedState>,
now_ms: u64,
) -> Result<ValidPair, ValidityError>Expand description
Whether a (descriptor, delegation) pair is valid at now_ms (§4.3 rules 1–5). 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.