rohan_verify_commitment
Verifies whether a plaintext payload matches an on-chain commitment by canonicalizing JSON (RFC 8785) and comparing its SHA-256 digest to the expected commitment. Runs locally with zero gas.
Instructions
Cryptographically audits and verifies whether a plaintext payload matches an on-chain commitment using RFC 8785 JSON Canonicalization and SHA-256. Zero gas cost, executes instantly in local RAM.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| payload | Yes | The plaintext contract, agreement, or intent data to be verified. | |
| expectedDigest | Yes | The 64-character hexadecimal SHA-256 intent commitment (accepts raw hex, 0x, or sha256: prefixes). |