Program
Which keys can do what, the most each can lose, and the keys a proof is checked against.
Read from chain 16:58 UTC
Addresses by key role
| Role | Address | The most it can lose |
|---|---|---|
| Program | E1PsJe…5f6kDg | The code that enforces every rule on this site. Native Solana program (no Anchor IDL); the instruction list below is from its source. |
| Upgrade authority | 3KEhUW…rK88s1 | Can replace the program's code. A replaced program could sign for the authority PDA without any of the run checks, so it could stop every run and leave, and spend co-owned notes for anyone who also holds those notes' nullifier secrets (each holder has their own; the Rings prover sees them per request). This is the key with the most power; who holds it, and whether it becomes a multisig or is removed, is the owner's decision. |
| Admin (config) | 3KEhUW…rK88s1 | Adds or removes relayers and changes program settings within limits fixed in the program; cannot register, edit or delete a hook record and cannot move notes. Worst case: by removing every relayer it stops all runs and relayed leaves until a relayer is added again. |
| Hook authors | 86yhWQ…VY1mCp | Anyone can register a hook: the author's wallet signs and pays, and its key is stored in the record (error 6026 if the signer is not that key). A record cannot be edited or deleted. Worst case: a hook runs only for holders who choose it, the program still refuses forbidden targets and protected accounts (6005), and every run still has to leave the holder the minimum in the proof. |
| Vault key | 3KEhUW…rK88s1 and each hook's author | Can withdraw the program vault account; cannot move notes. Each hook's author key can withdraw that hook's vault account the same way. Worst case: the balance of that vault account; neither can touch notes, the stage or a run in progress. |
| Relayer keys | 2 registered, list | Sign and submit runs and leaves. Cannot change any value a proof binds (refused with 6010). Worst case: refuse to submit (any other registered relayer can land the same proof) and learn the timing of what they relay. |
| Authority PDA | D7FTfq…fPePFW | The signing identity of every co-owned note. A program address with no private key; only the program can sign for it, and only after a run or leave proof verifies. |
| Stage PDA | 86yhWQ…VY1mCp | Receives a run's input and signs the hook's call. A program address with no private key; holds only its rent-exempt base between runs. |
House wallets and relayers
House runs use house money so the first rows on the site are real. These wallets are left out of every crowd count.
A5JmYevS9uQx6C2zq6v1ntDTktDSffbjtVF1XMT2Vi673TzY7Q9FMNrwkCZCfsab6BEidBdpyAaiZbXjuHALrrYC
Registered relayers, read from chain:
9Y4MHqs6aXCWMWyPHGxuKVptLWM3GDC7mF3j5JZgakpe7MD72Sd4XoQozguEBynf3XXXSHatBHwNpr7w31SeXCMD
Instructions
| Tag | Instruction | Signed by | What it does |
|---|---|---|---|
| 0 | init_config | the program's upgrade authority, once | Creates the config with the upgrade authority as admin and funds the stage to the base every run returns it to. |
| 1 | register_hook | the hook's author (anyone; registration is permissionless) | Writes one immutable hook record. There is no instruction that edits or closes a record; a changed hook is a new id. A record with per-run accounts pins the target, the instruction and the first accounts; each run supplies the rest, and the proof binds their addresses. Only targets the admin allows may have one. |
| 2 | enter | the holder's wallet | A proofless deposit of SOL into a note co-owned by the authority PDA and the holder's nullifier key. |
| 10 | enter_spl | the holder's wallet | The same proofless deposit as enter, for a token the pool has a vault for (USDC and others). |
| 3 | run | a registered relayer key; the holder's wallet is not an account | Verifies the proof, checks the time window, withdraws amount_in to the stage through the pool, calls each hook as the stage, measures the output and deposits it to a new note. If the new note would get less than min_out, the whole run fails. |
| 4 | leave | a registered relayer key | Verifies the leave proof and sends the bound amount from co-owned notes to the bound recipient. |
| 5 | add_relayer | the admin | Adds a key to the allowlist of keys that may land runs and leaves. |
| 6 | remove_relayer | the admin | Removes a key from the allowlist. |
| 11 | allow_dynamic_target | the admin | Lets hooks for this program be registered with per-run accounts (Jupiter v6 in v1). Checked at registration only. |
| 12 | remove_dynamic_target | the admin | Closes the allowlist entry; new hooks with per-run accounts for that program are refused from then on. Records already registered keep working. |
| 7, 8, 9 | vault instructions | the admin, a hook's author key, or the key the config names | Three instructions that change program settings within limits fixed in the program and withdraw the program vault accounts. They cannot touch a holder's notes or the stage. |
Accounts and argument layouts for each are in the docs reference.
Circuit verifying keys and their setup
| Circuit | Inputs | Key SHA-256 | File SHA-256 | Setup |
|---|---|---|---|---|
| leave | 1 | d57633e361193c0a8bd9b260ba77b16112d3322b8370975c846fe06b5dffbe4f | a0be5f308e5533cbf8507b0970d5670319a0aa39c41433d93fc11613eccb9507 | phase 2, 1 contributor |
| run | 1 | af089d65ae5c8269249df3c3f02eb961be52c997ebae26e716dd06941d268087 | 1398e4e9d8418e59577ef5322d3eb2484abf277f23eb1504dfa81ccc30e9efd4 | phase 2, 1 contributor |
Key SHA-256 is over every key byte in deploy/mainnet-zk/<circuit>.vk.rs, in file order (alpha, beta, gamma, delta, then IC). These keys come from a phase-2 setup with a single contribution, made by the Hidden1 developer from operating-system randomness that was not stored, on top of the public Perpetual Powers of Tau transcript (ppot_0080_14, 80 contributions). They are sound as long as that one contribution's randomness is gone, so you are trusting the developer for it. This is not a multi-party ceremony. The contribution record, the transcript's hash and the commands to check them (xark ceremony verify) are kept with the deployment; more contributors can be added later, and the program upgraded to their keys.
Refused test transactions
Deliberately refused transactions (a forbidden account, an amount below the minimum, an expired run, another holder's proof) are listed here, one each, once the program is on mainnet.