Verify
Every verdict receipt commits a SHA-256 hash over a canonical core. Recompute it locally, then read the same commitment on NEAR testnet.
The canonical core
A verdict hash covers exactly four fields, serialized in this order:
attack_idtargetverdictper_account_deltas
Everything else in the receipt file (ran_at, tx_hashes, block_heights) is excluded from the hash. Equal core in, equal hash out, on any machine (docs/ARCHITECTURE.md, Receipt schema).
Recompute one
This command hashes the canonical core of a committed gateway receipt:
Read it on-chain
The same commitment is readable straight from NEAR testnet: a view call to get_attestation on contract attest-ledger.testnet with args {"attack_id": "...", "target": "..."} at finality "final". View calls need no account and no key, getAttestation in packages/web/lib/attest.ts reads the ledger exactly this way.
Who can write
The shared ledger is read-only for everyone, and the on-chain attester field shows whose attestation you are trusting. Posting is append-once per (attack_id, target): re-attesting the same hash is an idempotent no-op, and a conflicting hash panics (contracts/attest/src/lib.rs). That refusal is the tamper evidence.
Builders can attest to their own deployed copy by pointing ARENA_ATTEST_CONTRACT at it (packages/harness/src/config.ts).
The four states
Each receipt cell resolves to one of four states, mirroring the AttestationState union in packages/web/lib/attest.ts:
| state | meaning |
|---|---|
match | on-chain verdict_hash equals the receipt's |
mismatch | on-chain verdict_hash differs |
unattested | no attestation recorded for this attack and target |
rpc-unreachable | the testnet RPC could not be queried |