Testnet: tokens have no value, and the vulnerable contracts are our own test fixtures. Limits

Practice program — a tutorial (testnet)

A tutorial whose bug and proof are public: anyone can run a try on testnet, with no account and no key.

Try it, no account

Practice program: a tutorialOpenround 0light-client confirmed

Overview

The program as near-antibody stores it. Its manifest hash commits the anchor, the targets, the rules and the terms; once it is open, the deployment's owner can change nothing it depends on.
Project
antibody.testnet, account: antibody.testnet · ours
Description
TUTORIAL TARGET: 24 vaults with one textbook bug (sweep has no access check), published with its proof (docs/practice.md).
as written in the committed manifest
Program key
bounty.antibody.testnet/14, program key: bounty.antibody.testnet/14
Phase
Open round 0this round since
Created
BKEimasH…, NEAR transaction: BKEimasHNRMSqFyJ7Q6KXuvoa1rxFpmPh6s69zFZBCm, opens an explorer in a new tab
Opened
EUsXjxH3…, NEAR transaction: EUsXjxH3NGUeXe5j1ajuS2BybkLswoUVpMihBHz2R1mP, opens an explorer in a new tab
Terms sha256
2a714747a7fe11e7…, terms sha256: 2a714747a7fe11e7c534424ec7c9f9b2baca7cb04928aa3aa3b69c32aeffae67
Manifest sha256
5561196dd6fe0e3f…, manifest sha256: 5561196dd6fe0e3f4e1a1e3c78759af72226ab53296a2a124a6a0d6e9adc4e67Uploaded in NEAR transaction 9dZ2mv22fB…, NEAR transaction: 9dZ2mv22fBH6FV7tx86MKpMMWLM9hnnao3BEjfatRYjg, opens an explorer in a new tab by antibody.testnet
Sealing key
a17388969a186cfc…, sealing public key: a17388969a186cfc804c5ad07b3a7f0980bc9df2a67f3ea08c0d7b8c68be880cProofs are sealed to it. It counts only once its activation run (run 184) is attested on NEAR: EWQJZruD…, NEAR transaction: EWQJZruDoXnMUdcyzQp5uNKxTEtRG17qVaMTUbdpgL7M, opens an explorer in a new tab

Its record

At stake
0.0152wNEAR available now
Verified attempts
18
Paid findings
15
First claim
47 safter it opened
Claimed in the first hour
46.66%of the escrow
Open for
15.7 h
view bounty.antibody.testnet.get_program({"program_id":14})

Holds if: the manifest hash shown here, as near-antibody stores it

antibody judge --program 14

Try it

A tutorial: its bug and its proof are public. Anyone can run the whole loop on testnet in a few minutes, with no account and no key; nothing here is a real vulnerability.

One rule, one textbook bug

Each of 24 small vaults holds a little ether, and its sweep(to) has no access check: anyone can send a vault's ether anywhere. The proof is one call to your vault; at the anchor the vault loses its ether, so vault_keeps_its_ether breaks. Each vault is its own target, so each try is its own finding.

antibody try --name <you>

The browser try and the CLI both use this program; each try lands in The tries, below. In the recorded run a try took about 44 s from vend to payout.

What a try does

  1. Vends you a practice account for a key your browser (or the CLI) generates; the key cannot withdraw or transfer.
  2. Builds the tutorial proof against the vault assigned to you, seals it to the program's key, commits and reveals it.
  3. Waits for the verdict and its attestation on NEAR.
  4. Allocates and pays (both permissionless), then closes the practice account: its NEAR goes back to the vending contract.

The payout goes to the vending contract's credit, which pays the next try's bond and run.

The rules as code

Each rule is one bit of the program's invariants contract. After a proof's calls, at the anchor, the verifier runs its check(): a set bit is a broken rule, paid by its severity. The verifier never reads a report.
The program's rules
RuleSeverityPayoutBudget per roundSource
vault_keeps_its_etherbit 0

No practice vault loses its ether.

Low
0.001 wNEAR
0.03 wNEAR

The budget caps what one rule pays per round, so many entry points into one root cause cannot drain the escrow. A finding's key is the rule and the entry point that broke it (by default, the target and function): the first proof of each key is paid.

The targets (25) on Sepolia

The terms

Committed in the manifest with the rules, their text fixed by the terms sha256, and enforced by near-antibody: no person decides a payout.

Payouts

The payout table
SeverityPayoutRules
Criticalnonenone
Highnonenone
Mediumnonenone
Low0.001 wNEARvault_keeps_its_ether
Bond per commit
0.0001 wNEAR · refunded, or forfeited to this program's escrow when the proof breaks nothing
Instant payments
up to 0.001 wNEAR
When a payout is instant

Paid in seconds when the verdict is attested on NEAR, within 0.024 wNEAR per 1 h. Otherwise a payout waits the challenge window; above the cap it also needs an agreeing second run.

Challenge bond
0.001 wNEAR
Protocol fee
none · pinned at 0 for this program
Release fee
none · pinned at 0 for this program
Verification deposit
0.03 NEAR per run, paid by whoever asks for it; OutLayer refunds the unused part

The escrow against the largest payout

13.2×the largest payout
0.0132 available / 0.001 wNEAR largest

The available escrow over the largest payout. Below 1× the status page raises an alert; a payout the escrow cannot cover is queued as debt, in commit order.

Pauses
No rule pauses anything.
Known issues
None allowed.
Gap lane
Off.
Unevaluable
A proof the rules cannot evaluate (check() reverts or runs out of gas) is refunded.

The windows

The program's windows
WindowLengthWhat it bounds
Reveal
10 min
A commit is revealed within this, or it expires and its bond goes to the escrow.
Challenge window
60 s
A verdict that is not paid instantly is final after this; anyone may challenge it within it, with the challenge bond.
Resolve
5 min
A challenge with no attested result within this voids the verdict; both bonds are refunded.
Run timeout
4 min
A run that never answered is void after this.
Infrastructure grace
10 min
An infrastructure failure is retried this long, then the commit closes with a refund.
Round minimum
2 min
A round runs at least this long before the next one opens.
Re-run window
10 min
Re-runs at a proposed fix may be asked for within this of its confirmed check.
Disclosure delay
10 min
A paid proof becomes public at most this long after its claim.
Exit grace
60 s
After the deadline plus this, anyone may settle the program (exit).
Deadline
No commit is accepted after it.

The anchor

Every proof runs on the state proven at one block. A pause ticket, and the verdict guard, act only on an anchor the light client confirmed: on a project-attested anchor a verdict is about state the project chose.
Chain
Sepolia (11155111)
Block
12094137 (opens an explorer)
Hash
0x5915bff62e6965c7150e0879aec73f9f3d641d3a19feb0de0b8b2ca2ff2eb337
Its check
confirmed by the light clientnear-antibody compared the hash with client-eth2.sepolia.testnet when the program was created.anchor_checked (LightClient): BKEimasH…, NEAR transaction: BKEimasHNRMSqFyJ7Q6KXuvoa1rxFpmPh6s69zFZBCm, opens an explorer in a new tab
Base witness
The anchor state the rules and the round-0 checks read, proven against the anchor and pinned at activation.d9a1bcaad13099ea…, base witness sha256: d9a1bcaad13099ea119b68cbd34e4ee1dc1426ab99d5956435d304e9a3728f4bUploaded in NEAR transaction 7kGFHKW678…, NEAR transaction: 7kGFHKW678dz4ABooJUiikhfn2Yn6TCVwur78AnWmjZT, opens an explorer in a new tab by antibody.testnet

Check the hash yourself

view client-eth2.sepolia.testnet.block_hash_safe(12094137 as 8 little-endian bytes: 0xb98ab80000000000)

Expected: byte 0 is 1 (the client holds the block), then 32 bytes equal to the anchor hash.

The same check from a terminal, and the one that also hashes the block header from a Sepolia RPC:

antibody judge --program 14
antibody anchor-check --block 12094137

Known issues

Declared sealed before open; a later proof with the same tag is not paid again. Their count, rules and severities are public; their content stays sealed for good.
0 sealed
No known issue declared: every key this program prices was open to the first proof.

The chains

Per chain: the program's adapter, the proxies it may pause or upgrade, and every permit near-guardian asked the MPC network to sign, with the transaction that carried it there.
No chains: a practice program pauses nothing and ships no fix. Its proofs are verified and paid; no permit is ever asked for.

The tries

Every proof committed to this tutorial, practice tries labelled as such: who, when, the state, the verdict and the payout; never the proof.
3 with a zero-knowledge proof
The tries, in commit order
CommitWhoWhenStateVerdictKeysPayout
Commit 85#0 · round 0
judge-1-p14.practice.antibody.testnet, account: judge-1-p14.practice.antibody.testnetour check of a fresh practice programpaid to practice.antibody.testnet (the practice vending contract)
Paid
ViolationAttested on NEAR
vault_keeps_its_etheraa7dfa4e…, tag of vault_keeps_its_ether: aa7dfa4ef9eb0130636a724d7952110fead0772baca6112f8fef9ea996da68b1
Commit 86#1 · round 0
judge-2-p14.practice.antibody.testnet, account: judge-2-p14.practice.antibody.testnetour check of a fresh practice programpaid to practice.antibody.testnet (the practice vending contract)
Paid
ViolationAttested on NEAR
vault_keeps_its_etherc5f4deaf…, tag of vault_keeps_its_ether: c5f4deaffcd593be8666be714a6fe573b0bae219c67273cfdc69f3c24f189215
Commit 87#2 · round 0
s062a0432.practice.antibody.testnet, account: s062a0432.practice.antibody.testneta visitor's practice trypaid to practice.antibody.testnet (the practice vending contract)
Paid
ViolationAttested on NEAR
vault_keeps_its_ether9ed1f292…, tag of vault_keeps_its_ether: 9ed1f29229b6b302bc067c67ce98e00b67f8196b3c52dbf2e54267efb8dacfa6
Commit 88#3 · round 0
j3qxvk.practice.antibody.testnet, account: j3qxvk.practice.antibody.testneta visitor's practice trypaid to practice.antibody.testnet (the practice vending contract)
Paid
ViolationAttested on NEAR
vault_keeps_its_ether5fa88607…, tag of vault_keeps_its_ether: 5fa886075e1c718ffdc3e07592612ef869c6654c3ebfe90058da485d73c073d1
Commit 89#4 · round 0
j2qzvn.practice.antibody.testnet, account: j2qzvn.practice.antibody.testneta visitor's practice trypaid to practice.antibody.testnet (the practice vending contract)
Paid
ViolationAttested on NEAR
vault_keeps_its_ether274ab866…, tag of vault_keeps_its_ether: 274ab866afd8fb689cb7efed9d867b84fe2eeccde2745aa0d363ebf32f72959e
Commit 90#5 · round 0
j1qzkw.practice.antibody.testnet, account: j1qzkw.practice.antibody.testneta visitor's practice trypaid to practice.antibody.testnet (the practice vending contract)
Paid
ViolationAttested on NEAR
vault_keeps_its_ether7e5310d0…, tag of vault_keeps_its_ether: 7e5310d05e0ea851ec72744aa506c6df93825d8713b379841cd9adbc2f7db290
Commit 91#6 · round 0
j4qmzv.practice.antibody.testnet, account: j4qmzv.practice.antibody.testneta visitor's practice trypaid to practice.antibody.testnet (the practice vending contract)
Paid
ViolationAttested on NEAR
vault_keeps_its_etheracb7fe50…, tag of vault_keeps_its_ether: acb7fe5043b422c78f8e6087da759fc40471290a7301c3460a8f8af12f32cb0d
Commit 92#7 · round 0
j3hwpd.practice.antibody.testnet, account: j3hwpd.practice.antibody.testneta visitor's practice trypaid to practice.antibody.testnet (the practice vending contract)
No violation · bond forfeited
No violationAttested on NEAR
no rule broken
—
Commit 93#8 · round 0
j5qvxm.practice.antibody.testnet, account: j5qvxm.practice.antibody.testneta visitor's practice trypaid to practice.antibody.testnet (the practice vending contract)
Paid
ViolationAttested on NEAR
vault_keeps_its_ether266c3e77…, tag of vault_keeps_its_ether: 266c3e77ee70ced46b50798ed536425601f51ff10139ed9a545bbf690216cbf8
Commit 94#9 · round 0
j5kpzr.practice.antibody.testnet, account: j5kpzr.practice.antibody.testneta visitor's practice trypaid to practice.antibody.testnet (the practice vending contract)
Paid
ViolationAttested on NEAR
vault_keeps_its_ether4629d3c2…, tag of vault_keeps_its_ether: 4629d3c298db52525243d98b72af3d8a61960867ebb7160d0cd163e06d245068
Commit 95#10 · round 0
j5mcph.practice.antibody.testnet, account: j5mcph.practice.antibody.testneta visitor's practice trypaid to practice.antibody.testnet (the practice vending contract)
Paid
ViolationAttested on NEAR
vault_keeps_its_ether62bef492…, tag of vault_keeps_its_ether: 62bef492d1a94cb597799b416174d088f222a8e72381bcf7cd4c2bc466ecb3bf
Commit 96#11 · round 0
j7bkmr.practice.antibody.testnet, account: j7bkmr.practice.antibody.testneta visitor's practice trypaid to practice.antibody.testnet (the practice vending contract)
Paid
ViolationAttested on NEAR
vault_keeps_its_ethercc8dfdd9…, tag of vault_keeps_its_ether: cc8dfdd9d152505937dabc824d0bde428c720a96a72192a59c67741ffb5ed4c8
Commit 97#12 · round 0
j6qvzk.practice.antibody.testnet, account: j6qvzk.practice.antibody.testneta visitor's practice trypaid to practice.antibody.testnet (the practice vending contract)
Paid
ViolationAttested on NEAR
vault_keeps_its_ether68363e48…, tag of vault_keeps_its_ether: 68363e487ef93b23a2cc22c59ded2c482044e85332e087e14b1fea8f05299236
Commit 98#13 · round 0
j8snqk.practice.antibody.testnet, account: j8snqk.practice.antibody.testneta visitor's practice trypaid to practice.antibody.testnet (the practice vending contract)
Paid
ViolationAttested on NEAR
vault_keeps_its_ethera0b98404…, tag of vault_keeps_its_ether: a0b98404781f6774c498ba8a64b935ce732dd5dc9d89fe0651748aff7a1517b9
Commit 99#14 · round 0
m0630519.practice.antibody.testnet, account: m0630519.practice.antibody.testneta visitor's practice trypaid to practice.antibody.testnet (the practice vending contract)
Paid
ViolationAttested on NEAR
vault_keeps_its_ether57eabd31…, tag of vault_keeps_its_ether: 57eabd3176da26015c8ba89238e92866e9ce62b011ab0de2191ec99f7ccde0c1
Commit 101#15 · round 0
film1109.practice.antibody.testnet, account: film1109.practice.antibody.testneta visitor's practice trypaid to practice.antibody.testnet (the practice vending contract)
Paid
ViolationAttested on NEARZero-knowledge proof
vault_keeps_its_ethere20de9c4…, tag of vault_keeps_its_ether: e20de9c416129c5c07eee6821e8c8b47af77d793e92788e7ef090470c8b7afd6
Commit 102#16 · round 0
filmv2-1109.practice.antibody.testnet, account: filmv2-1109.practice.antibody.testneta visitor's practice trypaid to practice.antibody.testnet (the practice vending contract)
Expired
no verdict yetno verdict yet
—
—
Commit 103#17 · round 0
filmv2b-1109.practice.antibody.testnet, account: filmv2b-1109.practice.antibody.testneta visitor's practice trypaid to practice.antibody.testnet (the practice vending contract)
Duplicate
ViolationAttested on NEARZero-knowledge proof
vault_keeps_its_etheraa7dfa4e…, tag of vault_keeps_its_ether: aa7dfa4ef9eb0130636a724d7952110fead0772baca6112f8fef9ea996da68b1
—
Commit 104#18 · round 0
filmv2c-1109.practice.antibody.testnet, account: filmv2c-1109.practice.antibody.testneta visitor's practice trypaid to practice.antibody.testnet (the practice vending contract)
Duplicate
ViolationAttested on NEARZero-knowledge proof
vault_keeps_its_etherc5f4deaf…, tag of vault_keeps_its_ether: c5f4deaffcd593be8666be714a6fe573b0bae219c67273cfdc69f3c24f189215
—

A key is a rule and the entry point that broke it: the first proof of each key is paid; a later one is a duplicate that keeps its own proof record. Each commit's page shows its proof card and how to check it.

antibody status --program 14

Rounds and the release gate

A round ships a fix as code overrides at the same anchor. The enclave checks it, every paid proof is re-run against it, and a release permit is signed only for code that every paid proof fails against.
No round yet: this program still runs its round-0 code. A round is how a fix ships, and only a fix every paid proof fails against is released.

The ledger

Every movement of the escrow keeps funded equal to available + reserved + paid + fees + returned. Amounts in wNEAR, which has no value on testnet.
balances

Where the escrow is

Available0.0132
Reserved0.0020
Paid0.0150
Fees0.0000
Returned0.0000
Funded0.0302

What came in

Deposits0.0300
Forfeited bonds0.0002
Challenge bonds0.0000
Funded0.0302

Forfeited bonds go to this program's escrow, where they pay future findings: never to us. Here, 0.0002 wNEAR came in that way.

The audit

Accounted
0.0302
Reservations
0.002 · held by the commits; equals reserved when it balances
Debt
0 · owed and not yet funded, queued in commit order
Defaulted
0
view bounty.antibody.testnet.audit({"program_id":14})

Holds if: ok: true (funded equals accounted, and reserved equals the commits' reservations)

antibody view --contract bounty.antibody.testnet --method audit --args '{"program_id":14}'