Function signed::validate_pair
zaun_community_protocol::signed::validate_pair · Function
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
Section titled “Errors”ValidityError naming the first rule that fails.