pub fn verify_record_proof(
commit: &Commit,
signing_key: &VerifyingKey,
path: &Proof,
record: &ModelRecord,
) -> Result<()>Expand description
verifyRecordProof(commit, signingKey, path, record) — offline D5 verification.
Checks, in order:
- Commit signature:
commitis signed bysigning_key(the account’s published#atprotoP-256 verifying key). - MST path:
pathis a valid inclusion proof from the commit’sdata(MST root) down to an entry whose value is the record’s CID. - Record CID: the
record’s computed CID equals the entry value the path addresses.
If all three pass, the host’s claim (“this account’s repo contains this record at this MST root, signed by this DID”) is trustworthy without needing to trust the host.