attestation_canonical_hash
Compute the SHA-256 canonical JSON hash of any value. Ensures identical hashes for semantically identical JSON, ignoring whitespace and key order.
Instructions
Compute the SHA-256 canonical-JSON hash of an arbitrary value (sorted keys, no whitespace). This is the structural hash convention used by procurement-decision-api, aeo-validator-service, aeo-graph-explorer-rs, and hash-attestation-rs. Identical JSON values produce identical hashes regardless of original whitespace or key order.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | Yes | Any JSON value to hash. |