Skip to content

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.

ValidityError naming the first rule that fails.

Full rustdoc page