Measured figures
Transaction sizes, compute units and proving times, measured on the localnet.
Once's own figures, measured by running every money path end to end on the localnet against the real Solana Privacy Program, and every flow through the API. Rent is given at mainnet's rate.
Circuits
The size of each circuit's proving files, the median time to prove it with snarkjs in one Node process, and the time it took in the app in a desktop browser, once the files were cached. Circuits has their constraints and public inputs.
| Circuit | wasm | zkey | Node proving, median | Browser proving |
|---|---|---|---|---|
authorize (checked off chain by each OPRF node) | 4.2 MB | 8.8 MB | 0.50 s | 0.8 s |
enroll (verified on chain) | 7.3 MB | 23.8 MB | 2.09 s | 1.3 s |
claim (verified on chain) | 2.9 MB | 3.7 MB | 0.30 s | 0.4 to 0.5 s |
One enrollment in the browser, step by step: authorization proof 0.8 s, OPRF round 1.7 s (two of three nodes), unblinding 0.4 s, enrollment proof 1.3 s, wallet send 0.3 s. One claim: scope nullifier 0.1 s, Merkle path from the full leaf list under 0.1 s, membership proof 0.4 to 0.5 s, relayed and confirmed 0.9 s.
OPRF
| Figure | Value |
|---|---|
| Nodes, threshold | 3, any 2 |
| One enrollment's OPRF round (two node calls in parallel, each verifying the authorization proof and the holder's signature, then answering with a DLEQ proof) | median 2.05 s from Node (1.93 to 2.74 s over 4 rounds); 1.7 s from the browser |
| What a node sees | a blinded BabyJubJub point, the authorization proof, the holder's public key and the credential's expiry; never the credential, HashID or s |
Transactions
Each instruction's transaction as it landed: bytes on the wire with signatures, against the 4,096 bytes a v1 transaction may use, and compute units including Once's calls into SPP. A claim's range covers the claims of the run.
| Instruction | Version | Bytes | Compute units | Who signs and pays |
|---|---|---|---|---|
enroll | v0 | 756 | 127,493 | the enrolling wallet |
revoke | v0 | 993 | 51,697 | the enrolling wallet |
create_scope, SOL drop | v0 | 582 | 76,977 | the creator |
create_scope, USDC drop | v0 | 681 | 90,040 | the creator |
create_scope, poll | v0 | 472 | 23,939 | the creator |
claim, SOL drop (Once proof + SPP 1-in/2-out payout) | v1 | 1,577 | 273,532 to 279,838 | the relayer |
claim, USDC drop | v1 | 1,709 | 274,954 to 282,976 | the relayer |
claim, poll | v1 | 787 | 107,787 to 110,787 | the relayer |
close_scope, funded drop (refund through SPP) | v1 | 1,191 | 161,828 | the relayer |
close_scope, poll | v0 | 390 | 15,896 | anyone |
close_claims, two receipts | v0 | 354 | 11,750 | anyone |
withdraw, SOL (holder's SPP spend, two public legs) | v1 | 1,168 | 161,140 | the relayer |
withdraw, USDC | v1 | 1,304 | 169,528 | the relayer |
What the relayer spends per claim
The relay fee is set to what relaying a claim costs. It comes out of each drop payout, and out of a poll's relay budget for each vote.
| Item | Lamports on mainnet |
|---|---|
Claim receipt ["claim", scope, n], 114 bytes (returned to the relayer when the scope's receipts close) | 1,229,360 |
| Signature fee | 5,000 |
| SPP state-tree fee | 5,000 |
| Per-claim relay fee in SOL (set by init from the cluster's rent) | 1,239,360 |
Accounts
| Account | Bytes | Rent, lamports |
|---|---|---|
| Program data (ELF 557,680 B) | 557,725 | 2,833,893,240 |
| Config | 292 | 2,133,600 |
| Person tree (depth 20, 1,048,576 places, 64 roots) | 3,376 | 17,800,320 |
| OPRF registry | 304 | 2,194,560 |
| Issuer | 73 | 1,021,080 |
| Claim receipt | 114 | 1,229,360 |