Skip to content

Function signed::validate_descriptor

zaun_community_protocol::signed::validate_descriptor · Function

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.

ValidityError naming the first rule that fails.

Full rustdoc page