Skip to main content

verify_did_op_log

Function verify_did_op_log 

Source
pub fn verify_did_op_log(
    expected_did: &str,
    log: &[DidOp],
) -> Result<VerifiedDidOpLog>
Expand description

Verify a complete linear operation log, failing closed on every discrepancy.

Verification pins Hybrid independently of any runtime crypto policy:

  • the genesis DID must match the hash-derived expected DID;
  • genesis must verify under one of its own declared hybrid key pairs;
  • every rotation must link to the immediately prior signed operation;
  • sequence values must increase by exactly one;
  • every rotation must verify under one complete pair from the prior state.