Skip to main content

validate_descriptor

Function validate_descriptor 

Source
pub fn validate_descriptor(
    community_id: &CommunityId,
    descriptor: &SignedJson,
    chain: &[SignedRootRotation],
    accepted: Option<&AcceptedState>,
) -> Result<ValidDescriptor, ValidityError>
Expand description

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.

§Errors

ValidityError naming the first rule that fails.