Skip to main content

validate_identity_updates

Function validate_identity_updates 

Source
pub async fn validate_identity_updates(
    old_updates: Vec<IdentityUpdate>,
    new_updates: Vec<IdentityUpdate>,
    verifier: impl SmartContractSignatureVerifier,
) -> Result<AssociationValidation, ValidationError>
Expand description

Validate a new identity suffix against one complete history snapshot.

old_updates must be the ordered state read from storage, and new_updates must be the proposed suffix. This function performs signature verification and pure state transitions only; it does not read storage. A verifier error is returned unchanged so callers can preserve retryability.