verify_evidence_pack
Validates an MTCP Evidence Pack by recomputing its evidence_pack_hash under RFC 8785 canonicalization and comparing it with the expected hash, returning validity plus computed and expected hashes.
Instructions
Verify the integrity of an MTCP Evidence Pack by recomputing its evidence_pack_hash. Returns valid (bool), computed_hash, and expected_hash. Canonicalization follows RFC 8785: keys sorted, no whitespace, comma-colon separators, UTF-8.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| evidence_pack | Yes | JSON string of the MTCP Evidence Pack including its evidence_pack_hash field. Hash is recomputed over the remaining fields and compared. |