func Hash
Hash returns the hex-encoded SHA-256 over its parts, length-prefixed so that Hash("ab","c") != Hash("a","bc"). Use it to commit to structured off-chain material without revealing it.
Package commit provides small, deterministic commitment helpers shared by the agent demos. On-chain realms store \*co...
Package commit provides small, deterministic commitment helpers shared by the agent demos. On-chain realms store *commitments* to off-chain data (reports, patches, verdicts) rather than the data itself; this package is the one place that defines how those commitments are computed, so several realms agree on the scheme.
Hash returns the hex-encoded SHA-256 over its parts, length-prefixed so that Hash("ab","c") != Hash("a","bc"). Use it to commit to structured off-chain material without revealing it.
Short abbreviates a hex commitment for display.
Verdict is the canonical commitment used by commit-reveal voting: a hidden boolean plus a salt. Reveal the same (verdict, salt) later and any observer can recompute this and confirm the vote was not changed after the fact.