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:

node -e "const r=require('./receipts/a1-cap-race/gateway-20261101T171313Z.json');const{attack_id,target,verdict,per_account_deltas}=r;console.log(require('node:crypto').createHash('sha256').update(JSON.stringify({attack_id,target,verdict,per_account_deltas})).digest('hex'))"

expected output

7343f7caf9735b8461c41d0a1f5482211d73b02b3569d1c22be846dfcb053d20

The printed hash equals the verdict_hash field inside that 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.

Browse the attestation ledger on the testnet explorer

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:

statemeaning
matchon-chain verdict_hash equals the receipt's
mismatchon-chain verdict_hash differs
unattestedno attestation recorded for this attack and target
rpc-unreachablethe testnet RPC could not be queried