Whitepaper
Liora: auditable stealth addresses on Solana Privacy Rings
#Abstract
On the Default Ring of Solana Privacy Rings a transfer encrypts its asset and its amount and leaves its recipient in the open, so every payment a person receives can be linked by address. Liora is a Solana program that removes that link while keeping the recipient answerable to a compliance policy. It instantiates zkBSA, the auditable and compliant stealth address construction of Zheng and Han [1], over notes of the Default Ring. Each payment creates a note owned by a one-time address derived from the recipient's published meta-address. With it the sender submits a Groth16 proof that the address was derived from a member of a Merkle whitelist of depth 24 and that an accompanying ElGamal ciphertext encrypts that same member's identity to an auditor. The program verifies the proof before the Ring moves anything. The proof is 128 bytes, a payment's circuit has 28,979 constraints, and proof and transfer execute in one Solana transaction. This paper specifies the keys, the derivations, the two proof statements, the program's checks and the fee path, and argues the three zkBSA properties for this instantiation. Section 8 reports the measured cost.
#1 Introduction
Solana Privacy Rings are shielded pools on Solana [2]. Value inside a Ring sits in notes, each a commitment to an asset, an amount and an owner. One program, the Solana Privacy Program (SPP), verifies a Groth16 proof for every private state transition and executes it [3]. The Default Ring is the pool anyone may use without permission. It is confidential: the asset and the amount of a transfer are encrypted, and the addresses of its sender and its recipient are public [2]. Rings that also hide the parties, with a compliance policy and auditor access, are Custom Rings, which a business arranges with Helius and cannot open on its own.
A public recipient is enough to reconstruct who is paid by whom and how often, whatever the amounts. Stealth addresses, as standardised for EVM chains in ERC-5564 [6], remove the link: the recipient publishes one meta-address and each sender derives a fresh address from it. They hide the recipient from everyone, including a party that is obliged to know who is being paid, which keeps a regulated business from using them.
zkBSA [1] keeps the recipient hidden from the public while an auditor can still read it and a whitelist bounds who it can be. It combines a stealth address scheme, public-key encryption of the recipient's identity to an auditor, a commitment to a public whitelist, and a zero-knowledge proof that ties the three together. The proof of concept in [1] runs on an EVM chain with transparent amounts, using ERC-5564, EC-ElGamal, Merkle trees and the RISC Zero zkVM.
Liora carries the construction to the Default Ring. Rings already encrypts the amount side of a payment, and Liora adds the address side: the recipient is hidden from the public, provably whitelisted, and readable by the auditor. Table 1 sets the two instantiations beside each other.
Table 1. The four parts of zkBSA and the ledger beneath them, in the proof of concept of [1] and in Liora.
| Part | Proof of concept [1] | Liora |
|---|---|---|
| Stealth addresses | ERC-5564 | Dual-key scheme on Baby Jubjub, Section 4.4 |
| Audit encryption | EC-ElGamal | EC-ElGamal on Baby Jubjub, Section 4.5 |
| Whitelist commitment | Merkle tree | Sparse Poseidon Merkle tree of depth 24, Section 4.3 |
| Proof system | RISC Zero zkVM | Groth16 on BN254, Section 4.7 |
| Ledger | EVM, transparent amounts | Solana, notes of the Default Ring with encrypted asset and amount |
The program is deployed at 8i6Rs6mak6AoQH1Cd6asXpJoGMVqWP81iEux5kdnHbA4. Everything below describes program version 0.2.1 and the circuits it verifies. This version handles one asset, SOL.
#2 The Default Ring
A note commits to an asset, an amount, a hash of optional application data and an owner, and it sits in one of the Ring's trees, which SPP names by a tree identifier. The owner is published with the note as a tag that SPP resolves to a Solana address, and the note's contents are encrypted to a viewing key the owner holds [4]. Spending a note publishes its nullifier and takes a proof, verified by SPP, that the note exists in the Ring's tree, that it has not been spent and that the amounts of the transition balance. SPP also requires the owner of each note spent to sign the transaction that spends it.
An owner may be a program address. A program that holds notes at addresses it derives decides, in its own code, when to sign for them [3]. Liora is such a program: every note it holds belongs to a program-derived address, and the program signs for that address only against a proof of its own. Section 4.6 gives the derivation.
A program can also be called by a relayer that pays the network fee, so that the wallet of the person who authorised a transfer does not appear in the transaction [5].
Of a Default Ring transfer made directly, the public sees the sender's address and the recipient's address. Of the same transfer made through Liora, the public sees the relayer, the program addresses that own the notes spent, and an announcement, an event of the Liora program that names a one-time address. Section 7 lists this in full.
#3 Notation
Table 2 fixes the notation. Secret scalars are lower case and curve points upper case. always stands for a Solana address.
Table 2. Notation.
| Symbol | Meaning |
|---|---|
| The scalar field of BN254, in which both circuits are written | |
| , , | The prime-order subgroup of Baby Jubjub [9], its generator (circomlib's Base8) and its order |
| , | The affine coordinates of a point , elements of |
| The sign bit of : 1 when , as an integer, exceeds half the modulus of , and 0 otherwise | |
| The 32-byte packed form of : in little-endian bytes, with in the top bit | |
| Poseidon [8] over at arity , with circomlib's parameters | |
| , | Short for and |
The program address with seeds owner and under the Liora program | |
The Ring's identity hash of a Solana address : , where is the first 31 of the 33 bytes 0x53 followed by and the last two, each read as a big-endian integer | |
| , | A recipient's spend key |
| , | A recipient's view key |
| , | A balance key, which owns a holder's deposits |
| , | The auditor's key |
| , | The ephemeral key of one payment |
| The encryption randomness of one payment | |
| The shared secret of one payment, | |
| , | The stealth address of one payment and its one-time secret key |
| A whitelist root |
Byte strings in quotation marks, such as Liora/spend/v1, are their UTF-8 bytes.
#4 Construction
#4.1 Keys
A holder's keys all come from one wallet signature. The wallet signs a fixed two-line message with Ed25519:
Liora unlock v1
Sign to derive your private keys. This signature stays on this device.Ed25519 signing is deterministic, so one wallet yields one signature on any device. A master secret and every scalar follow by HKDF-SHA256 [10]:
The 64-byte output is read as a big-endian integer, and the result lies in . The spend key is and the view key is . Balance key number is with as eight big-endian bytes. A balance key owns the notes a holder deposits (Section 4.6).
The signature, the master secret and the scalars , and stay on the device that derived them.
#4.2 Meta-address and leaf
A recipient's meta-address is the pair , written as liora:1: followed by and in hexadecimal. Its whitelist leaf is
A directory, kept off chain by the service that indexes the program, maps a handle to a meta-address and records which wallet asked for it. A handle is a short name a recipient chooses. The directory is public: anyone can read every entry's handle, wallet, meta-address, status and leaf index.
The program admits a spend key at most once. The entry account of Section 4.3 sits at an address derived from and is never closed, so a second admission of the same fails, also after a removal. therefore names one admitted entry for the whole history of the whitelist, which makes it usable as the audited identity in Section 4.5.
#4.3 Whitelist
The whitelist is a sparse Merkle tree of depth 24 over , with room for leaves. An unassigned index holds the leaf , a parent is , and an empty subtree hashes the same way from empty leaves. The opening of a leaf at index is its 24 siblings, and bit of , counted from the least significant, selects left or right at height .
The program stores no tree. Its configuration account holds a list of accepted roots, a revision counter, the next free index and the number of active entries. The issuer changes the tree by supplying an opening, which the program checks against the current root before it computes the new one.
To admit a meta-address the issuer opens the empty leaf at the next free index. The program replaces it with and puts the new root first in the list, which keeps at most 32 roots. Indexes are assigned in order and never reused.
To remove an entry the issuer opens its leaf. The program replaces it with and makes the new root the only accepted root.
A payment may be proved against any accepted root. Keeping earlier roots through admissions lets a payment proved just before an admission still verify. A removal drops every earlier root, so no proof made for the removed recipient at any earlier time verifies afterwards. A payment to another recipient that was proved against an earlier root and has not yet executed is proved again against the new one.
Each admitted recipient also has an entry account at the program address with seeds entry and . It holds , , the index, the leaf and an active flag, and it is kept after removal.
#4.4 Stealth addresses
To pay the sender draws uniformly from and computes
is the stealth address and owns the note the payment creates. , and the view tag are published in the payment's announcement, an event the program emits (Section 5.2). Multiplying by as an element of gives the same point as reducing modulo first.
The recipient tests each announcement : compute , compare with , then check that . The view tag lets a scan discard a payment meant for someone else after one scalar multiplication and one hash in all but about one case in 256. On a match the one-time secret key is
The sender knows and does not know , so only the recipient can compute . The scheme has the dual-key structure of ERC-5564 [6]: and need alone, and needs . Figure 1 shows the values and who computes each.
#4.5 Audit ciphertext
The auditor's public key is in the program's configuration. The sender draws uniformly from , independently of , and encrypts the recipient's spend key with EC-ElGamal [11]:
The auditor recovers and reads the entry admitted under it (Section 4.2), which exists whether or not the recipient has since been removed.
#4.6 Note ownership
Every note Liora holds is owned by for some . The address has no private key. The program signs for it in its call into SPP after it has verified a proof of knowledge of the discrete logarithm of .
Two kinds of key own notes:
| Owner key | Note | Who knows the secret |
|---|---|---|
| A balance key | A deposit, or change | The holder |
| A stealth address | A received payment, or change from spending one | The recipient |
Inside the Ring, the owner of a note is the field element , where is the owner address and for a nullifier secret . The note commits to it under a blinding value . The note is encrypted to a 32-byte X25519 viewing key. For a deposit, and the viewing key come from the holder's master secret under labels indexed like the balance key. For a payment the sender's software derives them from the shared secret:
Sender and recipient can therefore both open the payment's note and read its amount. Spending it also takes the program's signature for , which needs . The Liora proof constrains who owns the note. The amount is constrained by SPP's proof, and the note keys are a convention between the sender's software and the recipient's scan that neither proof checks.
Change returns to the owner address of the first note spent. Its nullifier secret and viewing key are derived from the holder's master secret with that owner address as salt, so when a recipient spends a received payment, the sender of that payment cannot open the change.
#4.7 The two statements
Liora has two circuits, pay and withdraw, written in Circom over . Each exposes one public value, the statement. The prover computes it inside the circuit from private inputs, and the program computes it independently from the instruction, the accounts and its configuration, then verifies the proof against its own value. A proof made for one transfer is useless for any other, because the statement differs.
Transaction binding. The program hashes with SHA-256, in this order: the string Liora/authorize/v1; one action byte, 1 for a payment and 2 for a withdrawal; the program address and the configuration address; ; the fee recipient, the relayer and the public destination; the protocol fee, the relayer fee and the public amount as little-endian 64-bit integers; the length of the SPP instruction it will forward as a little-endian 32-bit integer, then the instruction's exact bytes from its tag byte to SPP's own proof; and the number of accounts of that call as a little-endian 16-bit integer, then each address in order. The digest is split into two 16-byte halves read as big-endian integers, and . The public destination and the public amount are the wallet a withdrawal pays and the lamports it pays. A payment pays nothing out in public, so its amount is zero and the relayer stands in as its destination.
Owners. A transfer names one to three owner keys , the keys whose notes it spends. The circuit has three owner slots. Each takes a secret as private input, requires , and computes . With the number of owners named, and the point hash of each slot beyond replaced by zero,
The program requires the owners named to be distinct.
First note. Change goes to . SPP requires the owner of every note spent to be among the signers of the call, but a signer need not own a note. So that change cannot be sent to an address that spent nothing, the circuit opens the first note spent under and recomputes its nullifier. With , and the note's nullifier secret , blinding , tree identifier , amount and application data hash as private inputs, it computes the blinded owner , the note commitment and the nullifier :
The constant 3 is the Ring's domain for a spendable note. The first is the asset commitment of SOL and the second is the field in which a Custom Ring commits to its own program and data, which is zero on the Default Ring. The circuit requires to be a positive 64-bit integer. The program takes from the account it checked and from the first nullifier in the forwarded instruction.
Transfer statement. With the private transaction hash, a field of the SPP instruction that the program reads and the prover supplies,
The statement of withdraw is .
Payment statement. The pay circuit takes in addition the leaf index with its 24 siblings, the scalars and , each non-zero and below , and the points , and . Each of the three points is supplied as a point on the curve. The circuit sets the key to and requires it to differ from the identity, which places the key in . It computes and the root of the opening as in Sections 4.2 and 4.3, and , , , , and as in Sections 4.4 and 4.5, and requires that neither nor is the identity. Then
The program builds from the announcement in the instruction, the auditor key in its configuration and a root it accepts. A verifying proof therefore establishes that one pair was used three times: as a leaf under , as the source of the announced , and , and as the plaintext of the announced under the auditor key in force. Neither nor nor any sibling is public. Figure 2 draws the statement.
Table 3. The two circuits, compiled with Circom at optimisation level 2.
| Circuit | Constraints | Public values | Private input signals |
|---|---|---|---|
pay | 28,979 | 1 | 46 |
withdraw | 8,428 | 1 | 13 |
Proof system. Proofs are Groth16 [7] over BN254, the family SPP's own proofs belong to. A proof is 128 bytes: the compressed points (32 bytes), (64) and (32) of the Groth16 proof , where is negated before compression as the verifier's pairing equation takes it. The program decompresses them and runs the pairing check through Solana's alt_bn128 system calls. The sender's device computes the witness and the proof with snarkjs from a witness calculator and a proving key for the circuit, and the private inputs of the Liora proof never leave the device.
The keys of each circuit come from a Groth16 setup run with snarkjs: a BN254 powers-of-tau accumulator of power 15, then a phase-two contribution per circuit. The verifying keys are compiled into the program as constants.
A transfer carries two proofs. SPP's proof shows that the notes exist, are unspent and balance. Liora's proof shows who may spend them and, for a payment, that the recipient is whitelisted and auditable. Because the SPP instruction is inside the digest, the SPP proof is made first and the Liora proof second, and the two cannot be separated or recombined.
#5 Protocol
#5.1 Roles and state
Table 4. The parties.
| Party | Holds | Does |
|---|---|---|
| Holder | A wallet, and the keys of Section 4.1 | Deposits, pays, receives, withdraws |
| Issuer | The issuer wallet named in the configuration | Admits and removes recipients |
| Auditor | The audit secret | Decrypts the recipient of each payment |
| Relayer | The relayer wallet named in the configuration | Submits payments and withdrawals and pays their network fee |
| Fee recipient | The wallet named in the configuration | Receives the protocol fee |
| Admin | The admin wallet named in the configuration | Sets the roles and the two fees |
The program keeps two kinds of account. The configuration account, at the program address with seed config, holds the admin, the issuer, , the fee recipient, the relayer, the protocol fee, the relayer fee, the revision, the next index, the size and the accepted roots. An entry account per admitted recipient is described in Section 4.3. Three further addresses hold no data: the owner addresses , a settlement address with seed settlement that fees and withdrawals pass through, and the event authority under which the program records its events.
The program has eight instructions: initialize and configure for the admin, admit and remove for the issuer, deposit for a holder's wallet, pay and withdraw for the relayer, and hash_vector, which returns a Poseidon hash so that a client can check its own implementation against the program's.
#5.2 Flows
Unlock. The holder's wallet signs the unlock message, and the device derives , , and the balance keys. Nothing is sent.
Deposit. The holder's wallet signs a transaction calling deposit with , and an SPP deposit instruction. The program checks that the instruction is one SOL deposit of more than zero lamports whose owner tag resolves to and whose owner is , then forwards it. The Ring gains a note at . The wallet, the amount and are public, and the program records them in a DepositRecorded event.
Register. The recipient's wallet signs a request carrying a handle and , and the directory stores it as pending. The issuer, signed in with the issuer wallet, admits or refuses it. An admission is a transaction calling admit with the revision the issuer read when deciding, , the coordinates of and and the opening of the next free index. The program requires the revision to be current, checks the opening, writes the new root, creates the entry account and emits WhitelistChanged. Two issuer actions prepared from the same revision cannot both land.
Pay. The sender's device reads the configuration and one snapshot of the directory, builds the recipient's opening itself and checks that it reproduces the snapshot's root. Which leaf it opened never leaves the device. It then draws and , computes the announcement and selects up to three notes to spend: notes of one owner key where that key's notes cover the amount and both fees, and of up to three keys otherwise. It has the SPP proof made by a Rings prover and then makes the Liora proof itself. The Rings prover runs on the same machine, or is an attested prover service to which the device encrypts its request. That request holds the amounts and nullifier secrets of the notes, and the API that forwards it cannot read it. The resulting transaction has the relayer as fee payer and sole signer. The relayer simulates it, signs it and submits it. Section 5.3 lists what the program checks. The Ring spends the selected notes and creates one note at and, where there is change, one at . The program emits a PaymentAnnouncement with , , , , and .
Receive. The recipient's device reads every announcement and applies the test of Section 4.4 to each. For a match it derives and the note keys of Section 4.6 and opens the note. The scan requests all announcements and filters on the device, so the service that answers does not learn which were kept.
Spend. A received note is spent like any other. Paying onward is the pay flow with and . A withdrawal is a transaction calling withdraw with the owner keys, an amount, a proof and the SPP instruction, submitted by the relayer. Its proof binds the destination wallet and the amount through the digest. The Ring pays the amount and both fees to the settlement address, the program pays the amount on to the destination, and a WithdrawalRecorded event names the destination and the amount.
Audit. The auditor reads the announcements, computes for each and looks up the entry admitted under . Nothing is sent to the chain.
Revoke. The issuer submits remove with the current revision and the opening of the entry's leaf. The program clears the leaf, replaces the accepted roots with the new root alone, marks the entry inactive and emits WhitelistChanged. Section 4.3 gives the effect on payments. Payments the recipient received earlier remain decryptable by the auditor, and the entry account still holds .
#5.3 What the program checks on a payment
Figure 3 shows a payment from the device to the chain. In pay the program performs these checks in order, and a failure at any of them reverts the whole transaction.
- The destination account is the relayer, and the announced root is among the accepted roots.
- The forwarded SPP instruction is a
transacton the Default Ring with one input tree, one to three input slots and two output slots, and its only public movement is one SOL withdrawal of exactly the protocol fee plus the relayer fee. - Each owner key is listed once and the account passed for it is its owner address. The address is neither the relayer nor any input owner.
- Exactly one output is tagged for . Every other output is tagged for .
- The program computes the statement of Section 4.7 and verifies the proof against it.
- The program calls SPP with a signature for each owner address. SPP verifies its own proof, records the nullifiers, appends the outputs and pays the fees to the settlement address.
- The settlement address has received exactly the two fees. The program pays the protocol fee to the fee recipient and the relayer fee to the relayer, and requires the relayer to end the instruction at least 5,000 lamports above its balance on entry, which is the signature fee the network had already charged it.
- The program emits the announcement.
withdraw differs in three places. The amount must be greater than zero. The one public movement is a SOL withdrawal of the amount plus both fees. Every output must be tagged for , so a withdrawal cannot create a note for a new owner.
Step 4 rests on a property of SPP: its circuit constrains the owner of each real output to the published owner tag, and the program resolves those tags against the accounts of the call. The one output tagged for is therefore a note that owns.
#5.4 Relayer and fees
A payment or a withdrawal pays two flat fees in lamports out of the notes spent, a protocol fee to the fee recipient and a relayer fee to the relayer. Both are set in the configuration and are the same for every transfer whatever its amount. A deposit carries no Liora fee. The fees leave the Ring in public, and a flat fee carries no information about the amount it accompanied.
The relayer signs as fee payer, so no wallet of the sender is part of the transaction. Before signing, the relayer requires the transaction to consist of one call to the Liora program with itself as the only signer, and simulates it. A transaction that fails simulation is not sent. While a submission is pending the relayer refuses a different transaction that spends the same first note.
The program rejects a transfer in which the relayer changed the recipient, the amount, the destination or a fee, because the digest of Section 4.7 covers all of them and the statement would no longer match the proof. What is left to the relayer is whether to submit a transfer.
The relayer fee repays the relayer for the signature fee of the transaction and for the fee SPP charges per transfer. The program refuses a configuration in which both fees are zero.
A change to the configuration takes effect for transfers that execute after it. A transfer proved before a change to the auditor key, the fee recipient, the relayer or a fee no longer verifies and is made again.
#6 Security properties
Zheng and Han define three properties for an auditable stealth address scheme, prove them for zkBSA from the security of its four parts, and treat the public and the auditor as separate adversaries [1]. This section states each property and gives the argument for Liora's instantiation. The arguments rest on four assumptions: decisional Diffie-Hellman in ; Poseidon behaving as a random oracle where it derives and and being collision resistant where it builds the tree and the statements; collision resistance of SHA-256; and knowledge soundness and zero knowledge of Groth16 for the two circuits under the keys of the setup in Section 4.7.
#6.1 Receiver unlinkability
From the public transcript, nobody can link a stealth address to the recipient behind it, or tell that two stealth addresses belong to one recipient.
The adversary knows the whole whitelist, since the directory is public, and the recipient of a payment is hidden among the meta-addresses under its root. The public transcript of a payment is its announcement , its proof and the Ring transaction around it. and are outputs of the oracle on , which under decisional Diffie-Hellman is indistinguishable from a random point given and . is an ElGamal ciphertext under fresh randomness, which hides under the same assumption from everyone but the holder of . The proof is zero knowledge and its one public value is a hash that contains no leaf, index or sibling. is shared by every payment made while it is accepted. The Ring transaction carries the relayer's signature and no wallet of the sender or the recipient. Section 7 states what the later spending of the note adds to the public record.
Two payments to one recipient use independent and and therefore share nothing but, possibly, .
#6.2 Compliance soundness
A payment is accepted only when its hidden recipient is on the whitelist.
The program emits an announcement and lets the Ring create the note at only after a proof has verified against a statement it computed from an accepted root . By knowledge soundness there is a witness for which the leaf opens to and . By collision resistance of Poseidon the leaf opened is one the issuer wrote into the tree that commits to. The note created is therefore spendable only with for a whitelisted . Step 4 of Section 5.3 excludes any other new owner in the same transfer, and a withdrawal admits no new owner at all.
After a removal the one accepted root has at the removed index (Section 4.3), so no opening of the removed leaf exists.
#6.3 Audit correctness
The ciphertext announced with a payment decrypts, under the auditor's key, to the recipient the payment went to.
The same witness satisfies and with the of the leaf and of , and in the statement is computed by the program from the auditor key in its configuration. Decryption with returns . The circuit requires , and to lie in , so no small-order component can shift the result. was admitted once (Section 4.2), so the auditor's answer names one identity.
#6.4 Spending authority
Only the holder of the secret key can spend a note at . SPP requires the signature of the owner address, the program gives it only after verifying a proof whose witness contains with , and for a stealth address is known to the recipient alone.
Nobody can alter an authorised transfer. The statement binds the forwarded SPP instruction, the accounts, the fees, the destination and the amount, and the opening of the first note binds the change address to an owner that holds a note in the transfer.
#7 Who sees what
Table 5. What each party learns from one payment.
| Public | Relayer | Issuer | Auditor | Sender | Recipient | |
|---|---|---|---|---|---|---|
| That a payment happened, and when | Yes | Yes | Yes | Yes | Yes | Yes |
| , , , , , | Yes | Yes | Yes | Yes | Yes | Yes |
| The owner addresses of the notes spent | Yes | Yes | Yes | Yes | Yes | Yes |
| That the recipient is whitelisted | Yes | Yes | Yes | Yes | Yes | Yes |
| Which recipient | No | No | No | Yes | Yes | Yes |
| Amount | No | No | No | No | Yes | Yes |
The issuer holds a wallet key and no decryption key, and learns nothing more about a payment than the public does. The auditor learns the recipient and never the amount, which Rings encrypts to the note's owner. The relayer handles the transaction before anyone else and sees only what becomes public. The amounts and nullifier secrets of the notes spent are also input to the Rings prover that makes the SPP proof (Section 5.2).
A deposit shows the wallet, the amount and the balance key that receives it. A withdrawal shows the destination wallet and the amount.
The sender of a payment knows the nullifier secret of its note and can therefore tell when the recipient spends it.
Spending shows which owner addresses were spent from. A transfer lists the owner key of every note it spends, and is computed from . When a recipient spends a received payment, the transfer names the stealth address of that payment. If the transfer is a withdrawal, it connects to the destination wallet. A balance key that funds several payments appears as the input owner of each, and a deposit has published that key beside the wallet that funded it.
#8 Measured figures
Measured on 2026-11-25 15:04 UTC, on a local network running the Rings programs, with the program at 8i6Rs6mak6AoQH1Cd6asXpJoGMVqWP81iEux5kdnHbA4, whitelist depth 24 and the proving keys of a setup as in Section 4.7, run on one machine.
Table 6. Cost of a payment and of a withdrawal.
| Payment | Withdrawal | |
|---|---|---|
| Transactions measured | 2 | 1 |
| Proving time, Node | 693 ms to 1,066 ms | 362 ms |
| Proving time, browser | 592 ms | 332 ms |
| Loading the proving files, browser | 201 ms | 87 ms |
| Proof size | 128 bytes | 128 bytes |
| Compute units | 286,814 to 290,309 | 273,287 |
| Transaction size | 1,518 bytes | 1,240 bytes |
Proving time runs from just before the witness is computed until Groth16 returns the Liora proof, with snarkjs under Node 22.23.4 and in a headless browser. Loading the proving files happens once per session and is reported separately. Compute units are those of the whole transaction: Liora's verification, the Ring transfer it calls and the fee settlement. Transaction size is the serialised version 1 transaction with its signature.
The proof's size and the verification cost do not depend on the size of the whitelist. The depth is fixed at 24, so proving time does not depend on how many recipients are admitted.
#9 The LIO token
LIO is Liora's token, with a supply of 1,000,000,000 at launch. The protocol fee of Section 5.4 is spent on buying it and burning it.
The program has no buyback instruction. It pays the protocol fee to the fee recipient, and a worker that signs as the fee recipient does the rest in ordinary public transactions:
- It adds up the protocol fees the program has paid to the fee recipient, as indexed from the chain, and subtracts what earlier buybacks cost. From the remainder it sets aside the network fees and account rent the buyback needs.
- It asks Jupiter for a direct route from SOL to LIO for the rest, with a bound on slippage.
- It sends one transaction that creates a new token account for the output, performs the swap into it and burns the route's guaranteed minimum output from it.
- It sends a second transaction that burns whatever the swap delivered above that minimum and closes the token account.
The output account is created for the one buyback, so the amount burned is exactly what the fee bought. The worker runs only while the configuration names its wallet as fee recipient.
#References
- Siyuan Zheng, Zhe Han (Ant International). Auditable and Compliant Stealth Addresses for Blockchains. IACR ePrint 2026/513.
- Helius. Privacy concepts: overview. Documentation of Solana Privacy Rings.
- Helius. Privacy concepts: architecture. Documentation of Solana Privacy Rings, with the specification in release
shielded-pool-v1.0.0. - Helius. Privacy guides: transfer. Documentation of Solana Privacy Rings.
- Solana Foundation. Solana Privacy Rings bring programmable privacy onchain. 2026-11-10.
- T. Wahrstätter, M. Solomon, B. DiFrancesco, V. Buterin. ERC-5564: Stealth Addresses. Ethereum Improvement Proposals, 2022.
- J. Groth. On the Size of Pairing-Based Non-interactive Arguments. EUROCRYPT 2016.
- L. Grassi, D. Khovratovich, C. Rechberger, A. Roy, M. Schofnegger. Poseidon: A New Hash Function for Zero-Knowledge Proof Systems. USENIX Security 2021.
- B. WhiteHat, M. Bellés, J. Baylina. EIP-2494: Baby Jubjub Elliptic Curve. Ethereum Improvement Proposals, 2020.
- H. Krawczyk, P. Eronen. HMAC-based Extract-and-Expand Key Derivation Function (HKDF). RFC 5869, 2010.
- T. ElGamal. A Public Key Cryptosystem and a Signature Scheme Based on Discrete Logarithms. IEEE Transactions on Information Theory 31(4), 1985.