Reference

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.

CircuitwasmzkeyNode proving, medianBrowser proving
authorize (checked off chain by each OPRF node)4.2 MB8.8 MB0.50 s0.8 s
enroll (verified on chain)7.3 MB23.8 MB2.09 s1.3 s
claim (verified on chain)2.9 MB3.7 MB0.30 s0.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

FigureValue
Nodes, threshold3, 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 seesa 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.

InstructionVersionBytesCompute unitsWho signs and pays
enrollv0756127,493the enrolling wallet
revokev099351,697the enrolling wallet
create_scope, SOL dropv058276,977the creator
create_scope, USDC dropv068190,040the creator
create_scope, pollv047223,939the creator
claim, SOL drop (Once proof + SPP 1-in/2-out payout)v11,577273,532 to 279,838the relayer
claim, USDC dropv11,709274,954 to 282,976the relayer
claim, pollv1787107,787 to 110,787the relayer
close_scope, funded drop (refund through SPP)v11,191161,828the relayer
close_scope, pollv039015,896anyone
close_claims, two receiptsv035411,750anyone
withdraw, SOL (holder's SPP spend, two public legs)v11,168161,140the relayer
withdraw, USDCv11,304169,528the 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.

ItemLamports on mainnet
Claim receipt ["claim", scope, n], 114 bytes (returned to the relayer when the scope's receipts close)1,229,360
Signature fee5,000
SPP state-tree fee5,000
Per-claim relay fee in SOL (set by init from the cluster's rent)1,239,360

Accounts

AccountBytesRent, lamports
Program data (ELF 557,680 B)557,7252,833,893,240
Config2922,133,600
Person tree (depth 20, 1,048,576 places, 64 roots)3,37617,800,320
OPRF registry3042,194,560
Issuer731,021,080
Claim receipt1141,229,360