Hidden1

Docs

Hidden1 lets you use Solana programs you already use, Jupiter, Kamino Lend and Jito, from a private balance on Solana Privacy Rings. One run is one Solana transaction, signed by a relayer, and your wallet is not in it.

MainnetProgram E1PsJeFsCmHhnU3pj39eKfZGeGwk5RFEkiTabn5f6kDg, read from chain at 16:58 UTC.

01Concepts

Notes and the private balance

A note is a private record of an amount you own in the Rings shielded pool. Hidden1's notes are co-owned: the program's authority PDA is their signing identity and your key is their nullifier key, so spending one needs the program and a secret only you hold. Runs spend notes and create new ones. You find your notes again on any device by signing one message with your wallet; every key is derived from that signature.

The stage

The stage is an account the Hidden1 program owns. During a run it receives the amount you spend, calls the protocol as the signer, and is measured afterwards. Between runs it holds only its rent-exempt base.

Hooks

A hook is a public on-chain record of one instruction of an existing program: which program, the first bytes of its instruction data, its accounts with the stage in place of yours, and the account where the output lands. A registered hook cannot be edited; a new version is a new hook id.

Relayers

A relayer signs and submits runs and leaves, so your wallet is not in the transaction. Only keys registered with the program can land a run. Any registered relayer can land any proof, so a run is not stuck behind one relayer. Today the admin keeps the list; listing by locking $HIDD is Next.

Seats

Some positions outlive a transaction: a Kamino loan is one. Holding such positions for a holder without tying them to a wallet is Next; the planned seat hooks are listed with the catalog below.

02A run, step by step

StopWhat happensWherePublic
01 EnterYour wallet signs once to move SOL or a token into a co-owned note. First the wallet is checked against the OFAC SDN list of Solana addresses (the daily list 0xB10C publishes on GitHub, ofac-sanctioned-digital-currency-addresses); a listed wallet is refused, and so is every enter from a wallet while the list cannot be loaded.On chainThe entering wallet and amount
02 Find notesYou sign one message. The app derives your keys from the signature and finds your notes.Your browserNothing
03 ProveA proof fixes your notes, the calls, the amount in, the minimum out, the output owner and a time window. The Rings prover makes the pool's part.Browser and Rings proverNothing on chain yet
04 RelayA registered relayer signs and submits the transaction.RelayerThe relayer
05 StageThe program verifies the proof and the window, withdraws the amount from your notes to the stage, and calls the hook's instruction as the stage.On chainHook, asset and amount in
06 CheckThe program measures what came back and checks the stage and its accounts are back where they started; if not, the whole transaction fails and the notes stay unspent.On chainAsset and amount out
07 New noteThe program checks what the holder receives against the minimum in the proof, then deposits it into a new note. Below the minimum, the whole transaction fails.On chainA new note, not its owner
08 LeaveA leave proof sends a bound amount to an address you choose, through a relayer.On chainThe receiving address and amount

The How a run works page takes one run apart with the accounts it carries.

03What the chain shows

For a run, the chain showsIt does not show
The hook record or records calledWho ran it
The asset and amount inWhat they hold
The asset and amount outWhich wallet entered the notes it spent
The relayer that signed itA holder field: there is none

Entering and leaving are public: the wallet that enters is visible at entry, and the address that receives is visible at leave. Amounts are public too. That is why the trail check exists.

What the program enforces

RuleEnforced by
A run moves nothing unless its proof verifies for exactly these inputsThe program (error 6010 otherwise)
A run lands only inside its earliest time and expiryThe program (6011, 6012)
A new note below the minimum the proof fixed fails the whole transactionThe program (6017)
Only a registered relayer key can land a run or a leaveThe program (6022)
A hook cannot target Hidden1, the shielded pool, the system program or a token programThe program (6005)
A hook record cannot be edited: no instruction changes oneThe program
Your wallet signs only to enterThe transaction layout
The trail checkNot enforced: it runs in the app, in your browser, and only advises

04Hooks

Each record is a program account at the PDA ["hook", hook_id], 959 bytes. It is written once by register_hook, which anyone can send: the author's wallet signs and pays, and its key is stored in the record. Protocol teams can draft one from their IDL on For protocols.

Hook record format

OffsetSizeFieldMeaning
01discriminator2 for a hook record
11bumpthe record PDA's bump
22hook_idu16, little endian; the PDA seed
432target_programthe program the hook calls
3632out_mintthe output mint; all zero for SOL
6832out_accountthe stage's account the run measures
10032authorthe hook author's key; all zero for none
1321prefix_lenbytes of data_prefix in use, at most 8
1338data_prefixthe call data must start with these bytes (the instruction's discriminator)
1411account_countaccounts in use, at most 24
14224 x 34accountsper account: role (0 fixed address, 1 the stage, 2 the stage's output account), writable, address (zero for stage roles)
9581flagsprogram steps around the call: 1 wrap the stage's SOL before it, 2 unwrap the stage's wrapped SOL after the calls

The run proof binds the SHA-256 of the whole record, so a proof never runs against a record it did not see.

The catalog

HookKindInstructionStatus
jito/stakeflowDepositSolRegistered, #1
jito/unstakeflowWithdrawSolRegistered, #2
kamino/supplyflowdeposit_reserve_liquidityRegistered, #3
kamino/withdrawflowredeem_reserve_collateralRegistered, #4
kamino/supplyflowdeposit_reserve_liquidityRegistered, #5
kamino/withdrawflowredeem_reserve_collateralRegistered, #6
jupiter/swapflowrouteRegistered, #7
kamino/collateral-depositseatdeposit_reserve_liquidity_and_obligation_collateral_v2Next
kamino/borrowseatborrow_obligation_liquidity_v2Next
kamino/repayseatrepay_obligation_liquidity_v2Next
kamino/collateral-withdrawseatwithdraw_obligation_collateral_and_redeem_reserve_collateral_v2Next
jupiter/swap+jito/stakerouteroute then DepositSolNext
jupiter-lend/supplyflowunverified (no on-chain IDL)Next
jupiter-lend/withdrawflowunverified (no on-chain IDL)Next
marinade/stakeflowdepositNext
marinade/unstakeflowliquid_unstakeNext

Read from the registry on chain at 16:58 UTC. Every launch hook is run once with house money and labeled House on Runs.

05Reference

Program instructions and accounts

The first byte of instruction data is the tag; arguments follow in wincode encoding (little-endian integers, a u64 length before each vector). Accounts are listed in order, from the program source.

0 init_config signed by 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.

#AccountFlagsWhat it is
0adminsigner, writablemust be the upgrade authority named in ProgramData
1configwritablePDA ["config"], created here
2stagewritablePDA ["stage"], funded to its rent-exempt base
3system_program
4program_datathis program's loader ProgramData
5program vault accountwritablea program vault account, funded to its rent-exempt base

Data: none

1 register_hook signed by 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.

#AccountFlagsWhat it is
0authorsigner, writablepays rent; must equal the author in the arguments (error 6026 otherwise)
1config
2hookwritablePDA ["hook", id as u16 LE], created here
3out_accountthe stage's output account the run measures
4system_program
5program vault accountwritablethis hook's program vault account, funded to its rent-exempt base
6dynamic_recordonly for a record with per-run accounts: the target's allowlist entry, PDA ["dynamic", target]

Data: hook_id u16, target_program, out_mint, out_account, author, data_prefix (up to 8 bytes), accounts (up to 24 of role, writable, address), flags u8 (1 wrap SOL before the call, 2 unwrap after, 4 per-run accounts)

2 enter signed by the holder's wallet

A proofless deposit of SOL into a note co-owned by the authority PDA and the holder's nullifier key.

#AccountFlagsWhat it is
0depositorsigner, writablethe holder's wallet: public at entry
1config
2treewritablethe shielded pool's state tree
3spp_programSolana Privacy Rings
4system_program
5sol_interfacewritablethe pool's SOL vault

Data: amount u64 (lamports), nullifier_pubkey [32]

10 enter_spl signed by the holder's wallet

The same proofless deposit as enter, for a token the pool has a vault for (USDC and others).

#AccountFlagsWhat it is
0depositorsigner, writablethe holder's wallet: public at entry
1config
2treewritablethe shielded pool's state tree
3spp_programSolana Privacy Rings
4token_program
5mintthe token entered
6depositor_tokenwritablethe wallet's token account of the mint
7spl_interfacewritablethe pool's vault for the mint

Data: amount u64 (base units), nullifier_pubkey [32], spl_interface_bump u8

3 run signed by 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.

#AccountFlagsWhat it is
0relayersigner, writablea registered relayer key, pays the network cost
1config
2relayer_recordthat key's registration
3stagewritablePDA ["stage"]: receives the withdrawal, signs the calls
4out_accountwritablethe last hook's output account
5relayer's accountwritablethe signing relayer's own account
6out_mintthe output mint (system program for SOL)
7token_program(system program for SOL)
8out_spl_interfacewritablethe pool's vault for the output mint
9sol_interfacewritablethe pool's SOL vault
10system_program
11–14program vault accountswritableprogram vault accounts and their token accounts for the output mint
..one hook record per call, in call order
..the shielded pool's transact accounts, one withdrawal group last
..per call: the hook's accounts in record order (a record with per-run accounts: then that run's remaining accounts of the call, at most 64 in all), then its target program

Data: proof (128 bytes), amount_in, min_out, output_owner [32], a relayer value (u64), earliest, expiry, out_spl_interface_bump, spp_accounts, calls (call data per hook), then the pool's transact data

4 leave signed by a registered relayer key

Verifies the leave proof and sends the bound amount from co-owned notes to the bound recipient.

#AccountFlagsWhat it is
0relayersigner, writablea registered relayer key
1config
2relayer_recordthat key's registration
3stagewritable
4recipientwritablepublic: a SOL account or a token account of the notes' mint
5relayer's accountwritablethe signing relayer's own account
6mint(system program for SOL)
7token_program(system program for SOL)
8system_program
..the shielded pool's transact accounts, one withdrawal group last

Data: proof (128 bytes), amount, a relayer value (u64), earliest, expiry, to_rings u8 (0 a public account, 1 the holder's own Rings balance), rings_owner [32], rings_view_tag [32], then the pool's transact data

5 add_relayer signed by the admin

Adds a key to the allowlist of keys that may land runs and leaves.

#AccountFlagsWhat it is
0adminsigner, writable
1config
2relayer_recordwritablePDA ["relayer", key], created here
3system_program

Data: the relayer key [32]

6 remove_relayer signed by the admin

Removes a key from the allowlist.

#AccountFlagsWhat it is
0adminsigner, writablereceives the record's rent
1config
2relayer_recordwritableclosed here

Data: the relayer key [32]

11 allow_dynamic_target signed by the admin

Lets hooks for this program be registered with per-run accounts (Jupiter v6 in v1). Checked at registration only.

#AccountFlagsWhat it is
0adminsigner, writablepays rent
1config
2dynamic_recordwritablePDA ["dynamic", program], created here
3system_program

Data: the target program [32]

12 remove_dynamic_target signed by 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.

#AccountFlagsWhat it is
0adminsigner, writablereceives the entry's rent
1config
2dynamic_recordwritableclosed here

Data: the target program [32]

7, 8, 9 vault instructions signed by 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.

API

The same numbers this site shows, as JSON. Every response carries its read times; nothing is sample data.

EndpointReturns
GET /api/healthRPC slot and latency, program deployed (read from chain), token launched (read from chain), indexer slot, prover, Photon and relayer reachability, last House run.
GET /api/hooksHook records read from the registry on chain, matched to the catalog, and the planned hooks not registered yet.
GET /api/hooks/:idOne hook by catalog id (for example jito/stake) or on-chain id, with its record and runs.
GET /api/runsRuns as the chain shows them: hook, asset and amount in and out, time, relayer, signature. No holder field exists.
GET /api/crowdDistinct wallets that entered in 7 and 30 days, runs in 24 hours, House left out.
GET /api/relayers?address=Registered relayers with runs landed and attempted; with an address, whether it is registered.
GET /api/programProgram id, deployed state, upgrade authority, config, PDAs, verifying key hashes.
GET /api/marketThe Rings network's hourly transaction counts and other public reads, each with source and read time.
GET /api/tokenThe token read from its mint address: chain facts, curve and lock schedule, market, holders. Not launched when no mint is set.
GET /api/idl/:programA program's Anchor IDL read from chain: its instructions.
GET /api/idl/:program/:instructionA hook draft for one instruction: arguments with sizes and roles, accounts with roles, lints.

Addresses

WhatAddress
Hidden1 programE1PsJeFsCmHhnU3pj39eKfZGeGwk5RFEkiTabn5f6kDg
Config PDA ["config"]Dvn5VeYyP7MMNeSbhk1W5AUYystDpqc4CDExnWoVdhz1
Authority PDA ["authority"]D7FTfq4fpiZuESZiSTk5iSqxA9Tu7bQkKC8c5KfPePFW
Stage PDA ["stage"]86yhWQNr5fsXwUPMj5ZDQgGpzbEpCbMCC2mMAWVY1mCp
Solana Privacy Ringsring1GaLCuJnkUMVkX2JeZLTTX17wKsV4fZmPVzXANW

06Recount the crowd

The numbers on Crowd come from public RPC calls anyone can make. Notes are not counted: change, padding outputs and House notes would inflate them. What is counted:

  • Wallets that entered: distinct first accounts of successful enter instructions (tag 2) in the last 7 and 30 days, minus the House wallets listed on Program.
  • Runs in 24 hours: successful run instructions (tag 3), minus the signatures marked House on Runs.

1. List the program's transactions, newest first. Repeat with "before": "<last signature>" to page back.

terminal
curl -s https://api.mainnet-beta.solana.com -H 'content-type: application/json' \
  -d '{"jsonrpc":"2.0","id":1,"method":"getSignaturesForAddress","params":["E1PsJeFsCmHhnU3pj39eKfZGeGwk5RFEkiTabn5f6kDg",{"limit":1000}]}'

2. Read each one. Hidden1 transactions are version 1 messages, so ask for version 1.

terminal
curl -s https://api.mainnet-beta.solana.com -H 'content-type: application/json' \
  -d '{"jsonrpc":"2.0","id":1,"method":"getTransaction","params":["<SIGNATURE>",{"encoding":"jsonParsed","maxSupportedTransactionVersion":1}]}'

3. In each, take the instructions whose programId is the Hidden1 program. Their data is base58; the first byte is the tag. For tag 2 the first account is the wallet that entered. The script below does all three steps.

recount.mjs
// recount.mjs: node recount.mjs   (Node 18 or later, no packages)
const RPC = "https://api.mainnet-beta.solana.com";
const PROGRAM = "E1PsJeFsCmHhnU3pj39eKfZGeGwk5RFEkiTabn5f6kDg";
const HOUSE = new Set(["A5JmYevS9uQx6C2zq6v1ntDTktDSffbjtVF1XMT2Vi67","3TzY7Q9FMNrwkCZCfsab6BEidBdpyAaiZbXjuHALrrYC"]); // House wallets, listed on /program
const A = "123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz";
const firstByte = (b58) => { let n = 0n; for (const c of b58) n = n * 58n + BigInt(A.indexOf(c));
  let hex = n.toString(16); if (hex.length % 2) hex = "0" + hex; const lead = b58.match(/^1*/)[0].length;
  return lead ? 0 : parseInt(hex.slice(0, 2), 16); };
const rpc = async (method, params) => (await (await fetch(RPC, { method: "POST",
  headers: { "content-type": "application/json" }, body: JSON.stringify({ jsonrpc: "2.0", id: 1, method, params }) })).json()).result;
const now = Date.now() / 1000, wallets7 = new Set(), wallets30 = new Set(); let runs24 = 0, before;
for (;;) {
  const page = await rpc("getSignaturesForAddress", [PROGRAM, { limit: 1000, ...(before && { before }) }]);
  for (const s of page) {
    if (s.err || !s.blockTime || now - s.blockTime > 30 * 86400) continue;
    const tx = await rpc("getTransaction", [s.signature, { encoding: "jsonParsed", maxSupportedTransactionVersion: 1 }]);
    for (const ix of tx.transaction.message.instructions) {
      if (ix.programId !== PROGRAM) continue;
      const tag = firstByte(ix.data);
      if (tag === 2 && !HOUSE.has(ix.accounts[0])) { wallets30.add(ix.accounts[0]); if (now - s.blockTime <= 7 * 86400) wallets7.add(ix.accounts[0]); }
      if (tag === 3 && now - s.blockTime <= 86400) runs24++; // subtract the House runs listed on /runs
    }
    await new Promise((r) => setTimeout(r, 250)); // the public RPC rate-limits
  }
  if (page.length < 1000 || now - page[page.length - 1].blockTime > 30 * 86400) break;
  before = page[page.length - 1].signature;
}
console.log({ wallets7d: wallets7.size, wallets30d: wallets30.size, runs24h: runs24 });

07The trail check

Amounts are public. If you enter 7.3 SOL and run 7.3 SOL a minute later, anyone can link the two. The trail check is part of the app (its rules are below). It compares a planned run or leave with your own entries, runs and leaves, in your browser, and suggests changes: split, round, wait, or route through another asset. Nothing it compares is sent to a server.

CheckFlags a run when
same amountThe amount is within 0.5% of one of your entries or outputs in the last 30 days.
amounts that add upThe amount is within 0.5% of two or more of your amounts added together.
close timingIt lands within 10 minutes (very close) or 2 hours (close) of the matching event, weighed by how many other runs land in a window that size.
small crowdFewer than 20 distinct wallets entered in the last 7 days.
rare hookFewer than 5 runs of the same hook in the last 24 hours.

What it cannot stop

  • Off-chain data: an exchange that knows your withdrawal, a payment processor, an accountant's records.
  • Exchange records of the wallet you enter from or the address you leave to.
  • Timing you reveal elsewhere: a post, a message, a screenshot with a time on it.
  • Amounts you name in public, and patterns across several of your wallets.
  • Network metadata: the RPC and the relayer you use see your IP address unless you hide it.

A clear result means none of these checks fired. It does not mean a run is unlinkable.

08What the prover sees

A run carries two proofs: the app's proof, which binds the run, and the shielded pool's proof, which spends notes. There is no browser prover for the pool's proof at this release, so it is made by the Rings prover service. Measured on a local validator, every pool-proof request carries the amounts, the assets, the owner hashes, the nullifier secret and which notes are spent together.

What it cannot do: spend. Runs and leaves also require a holder-only owner secret proven inside the app's circuit, which the prover never receives. With only what the prover receives, a changed output owner and an outright spend were both refused in tests.

What it can do: learn amounts and see when your notes are spent. That is a privacy exposure to the prover's operator, not a theft risk. The Rings SDK states its mainnet prover runs in an enclave; Hidden1 has not verified that claim. A native local prover removes that party.

09Token

Running Hidden1 never requires holding $HIDD, so holding it never ties a wallet to its runs.

No mint address is set, so there is no token to read. Supply, mint authority, freeze authority and any lock schedule appear here from chain once it is.

10SDK

No SDK package is published. What exists today is the public API in the reference above, which serves the same reads this site renders.