Enroll
Put your leaf in the person tree once, with a credential and one transaction from your wallet.
Enrolling puts your leaf in the person tree. You do it once, from one wallet, and after that every open scope takes one claim from you. It takes a credential, two proofs made in your browser and one transaction your wallet sends and pays for.
Before you start
- A Solana wallet with enough SOL for the network fee and the rent of your person account.
- The identity details the issuer asks for. On the localnet the demo issuer accepts any details after its stand-in check.
Enroll in the app
Connect and unlock
Open
/app, choose Connect a wallet, then Unlock. Your wallet signs the unlock message. From that signature your browser derives your holder key, your place secret and your payout keys; nothing is sent to the chain or the API.Get a credential
Fill in the form under Get a credential: document number (the credential's subject ID), full name, date of birth, sex, place of birth and nationality, then Request the credential. The issuer signs a credential to your holder key, and the app stores it on this device, encrypted under your unlock. The panel shows who signed it and until when it is valid.
Enroll
Choose Enroll. The app runs each step and shows it as it goes:
- Authorization proof: your browser proves your blinded query comes from your credential.
- OPRF nodes: the request goes to the 3 nodes; 2 of 3 answers are enough, and the panel shows which nodes answered.
- Your secret, unblinded: the answers are checked and combined into your secret
s. - Enrollment proof: your browser proves your person nullifier and leaf come from all of the above.
- Sent by your wallet: your wallet signs and sends
enroll. - Leaf in the person tree: the transaction lands.
Enrolled
The app shows Enrolled and then your place: since when, when your credential expires, how many people are in the tree, and the start of your person nullifier. Find a drop takes you to the open scopes.
What leaves your device
The issuer receives the details you type and your holder public key. After that, your credential, HashID, your secret s and your place secret stay on the device. The OPRF nodes receive a blinded point, a proof and your holder key's signature. The chain receives the enrollment proof, your person nullifier, your leaf, the issuer's key and your credential's expiry, in a transaction from your wallet. How Once works has the whole list.
Recover on another device
Your secret lives only on the device that made it. On a new device, connect the same wallet, unlock, and request the credential again with the same details. The app sees that the wallet is already enrolled and offers Recover on this device: it runs the first three steps again, nothing goes to the chain, and the device holds your secret again. The reissued credential carries the same seven identity fields, so the OPRF gives the same secret. Its valid-until time is new, but your leaf committed the first credential's expiry, so the app rebuilds the leaf with the expiry the API records for your enrollment (expiresAt from GET /v1/people/wallet/{wallet}). Claims keep proving against that first expiry.
If it stops
| What you see | What happened | What to do |
|---|---|---|
| Already enrolled | This person is already in the tree under another wallet, so the program refused a second N (AlreadyEnrolled) | Claim from that wallet, or revoke there and enroll here |
| No credential | The issuer refused the details | Correct the fields it marks and request again |
| Stopped at: OPRF nodes | Fewer than 2 nodes answered | Try again; any two of the 3 are enough |
| Stopped at: another step | The step named failed; the message says why | Back, then Enroll again |
Enrolling again after a revoke opens 24 hours after it; before then the program refuses with RevokeCooldown.
From code
The same flow runs outside the app with @once/zk and the API: authorizeInputs and prove for the authorization proof, POST /v1/oprf/{nodeId}/evaluate at two nodes, combine for s, enrollInputs and prove for the enrollment proof, then POST /v1/enroll/build for the transaction your wallet signs. API has every request and response.