Whitepaper

Liora: auditable stealth addresses on Solana Privacy Rings

Version
Protocol 0.2.1
Published
25 November 2026
Length
30 min read

#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.

PartProof of concept [1]Liora
Stealth addressesERC-5564Dual-key scheme on Baby Jubjub, Section 4.4
Audit encryptionEC-ElGamalEC-ElGamal on Baby Jubjub, Section 4.5
Whitelist commitmentMerkle treeSparse Poseidon Merkle tree of depth 24, Section 4.3
Proof systemRISC Zero zkVMGroth16 on BN254, Section 4.7
LedgerEVM, transparent amountsSolana, 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. KK always stands for a Solana address.

Table 2. Notation.

SymbolMeaning
F\mathbb{F}The scalar field of BN254, in which both circuits are written
G\mathbb{G}, GG, qqThe prime-order subgroup of Baby Jubjub [9], its generator (circomlib's Base8) and its order
X.xX.x, X.yX.yThe affine coordinates of a point XX, elements of F\mathbb{F}
sgn(X)\mathsf{sgn}(X)The sign bit of XX: 1 when X.xX.x, as an integer, exceeds half the modulus of F\mathbb{F}, and 0 otherwise
pack(X)\mathsf{pack}(X)The 32-byte packed form of XX: X.yX.y in little-endian bytes, with sgn(X)\mathsf{sgn}(X) in the top bit
H(a1,…,am)\mathsf{H}(a_1, \dots, a_m)Poseidon [8] over F\mathbb{F} at arity mm, with circomlib's parameters
H(Q)\mathsf{H}(Q), H(1,Q)\mathsf{H}(1, Q)Short for H(Q.x,Q.y)\mathsf{H}(Q.x, Q.y) and H(1,Q.x,Q.y)\mathsf{H}(1, Q.x, Q.y)
ph(X)\mathsf{ph}(X)H(X.y,sgn(X))\mathsf{H}(X.y, \mathsf{sgn}(X))
own(X)\mathsf{own}(X)The program address with seeds owner and pack(X)\mathsf{pack}(X) under the Liora program
id(K)\mathsf{id}(K)The Ring's identity hash of a Solana address KK: H(u,w)\mathsf{H}(u, w), where uu is the first 31 of the 33 bytes 0x53 followed by KK and ww the last two, each read as a big-endian integer
ss, S=sGS = sGA recipient's spend key
vv, V=vGV = vGA recipient's view key
bb, B=bGB = bGA balance key, which owns a holder's deposits
aa, A=aGA = aGThe auditor's key
rr, R=rGR = rGThe ephemeral key of one payment
kkThe encryption randomness of one payment
QQThe shared secret of one payment, rV=vRrV = vR
PP, ppThe stealth address of one payment and its one-time secret key
ρ\rhoA 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 sig\mathit{sig} on any device. A master secret and every scalar follow by HKDF-SHA256 [10]:

m=HKDF(sig, salt=wallet address, info=Liora/master/v1, 32 bytes)scalar(ℓ)=1+(HKDF(m, info=ℓ, 64 bytes) mod (q−1))\begin{aligned} m &= \mathsf{HKDF}(\mathit{sig},\ \text{salt} = \text{wallet address},\ \text{info} = \texttt{Liora/master/v1},\ 32\ \text{bytes}) \\ \mathsf{scalar}(\ell) &= 1 + \big(\mathsf{HKDF}(m,\ \text{info} = \ell,\ 64\ \text{bytes}) \bmod (q - 1)\big) \end{aligned}

The 64-byte output is read as a big-endian integer, and the result lies in [1,q−1][1, q - 1]. The spend key is s=scalar(Liora/spend/v1)s = \mathsf{scalar}(\texttt{Liora/spend/v1}) and the view key is v=scalar(Liora/view/v1)v = \mathsf{scalar}(\texttt{Liora/view/v1}). Balance key number ii is bi=scalar(Liora/balance/v1/ ∥ i)b_i = \mathsf{scalar}(\texttt{Liora/balance/v1/} \,\|\, i) with ii 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 ss, vv and bib_i stay on the device that derived them.

#4.2 Meta-address and leaf

A recipient's meta-address is the pair (S,V)(S, V), written as liora:1: followed by pack(S)\mathsf{pack}(S) and pack(V)\mathsf{pack}(V) in hexadecimal. Its whitelist leaf is

λ=H(S.x, S.y, V.x, V.y).\lambda = \mathsf{H}(S.x,\ S.y,\ V.x,\ V.y).

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 SS and is never closed, so a second admission of the same SS fails, also after a removal. SS 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 F\mathbb{F}, with room for 2242^{24} leaves. An unassigned index holds the leaf 00, a parent is H(left,right)\mathsf{H}(\text{left}, \text{right}), and an empty subtree hashes the same way from empty leaves. The opening of a leaf at index jj is its 24 siblings, and bit tt of jj, counted from the least significant, selects left or right at height tt.

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 λ\lambda 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 00 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 pack(S)\mathsf{pack}(S). It holds SS, VV, the index, the leaf and an active flag, and it is kept after removal.

#4.4 Stealth addresses

To pay (S,V)(S, V) the sender draws rr uniformly from [1,q−1][1, q - 1] and computes

R=rG,Q=rV,h=H(Q.x, Q.y),P=S+hG,τ=H(1, Q.x, Q.y) mod 28.\begin{aligned} R &= rG, \qquad Q = rV, \\ h &= \mathsf{H}(Q.x,\ Q.y), \\ P &= S + hG, \\ \tau &= \mathsf{H}(1,\ Q.x,\ Q.y) \bmod 2^8 . \end{aligned}

PP is the stealth address and owns the note the payment creates. PP, RR and the view tag τ\tau are published in the payment's announcement, an event the program emits (Section 5.2). Multiplying GG by hh as an element of F\mathbb{F} gives the same point as reducing hh modulo qq first.

The recipient tests each announcement (P,R,τ)(P, R, \tau): compute Q=vRQ = vR, compare τ\tau with H(1,Q) mod 28\mathsf{H}(1, Q) \bmod 2^8, then check that (s+H(Q)) G=P(s + \mathsf{H}(Q))\,G = P. 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

p=s+h mod q,pG=P.p = s + h \bmod q, \qquad pG = P.

The sender knows hh and does not know ss, so only the recipient can compute pp. The scheme has the dual-key structure of ERC-5564 [6]: QQ and τ\tau need vv alone, and pp needs ss. Figure 1 shows the values and who computes each.

Senderr, k drawn at randomR = rGQ = rVP = S + H(Q)·Gτ = H(1, Q) mod 256C1​ = kGC2​ = S + kAAnnouncementP stealth addressR ephemeral keyτ view tagC1​, C2​ ciphertextρ whitelist rootRecipientQ = vRτ matches(s + H(Q))·G = Pp = s + H(Q) mod qAuditorS = C2​ − a·C1​S names one entry
Figure 1. The values of one payment. The sender computes them from the recipient's meta-address (S, V) and the auditor's key A. The announcement is public. The recipient opens it with v and s, the auditor with a.

#4.5 Audit ciphertext

The auditor's public key AA is in the program's configuration. The sender draws kk uniformly from [1,q−1][1, q - 1], independently of rr, and encrypts the recipient's spend key with EC-ElGamal [11]:

C1=kG,C2=S+kA.C_1 = kG, \qquad C_2 = S + kA .

The auditor recovers S=C2−aC1S = C_2 - aC_1 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 own(X)\mathsf{own}(X) for some X∈GX \in \mathbb{G}. 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 XX.

Two kinds of key own notes:

Owner keyNoteWho knows the secret
A balance key BBA deposit, or changeThe holder
A stealth address PPA received payment, or change from spending oneThe recipient

Inside the Ring, the owner of a note is the field element H(id(K),η)\mathsf{H}(\mathsf{id}(K), \eta), where KK is the owner address and η=H(ν)\eta = \mathsf{H}(\nu) for a nullifier secret ν\nu. The note commits to it under a blinding value β\beta. The note is encrypted to a 32-byte X25519 viewing key. For a deposit, ν\nu 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:

ν=HKDF(pack(Q), Liora/nk/stealth/v1, 31 bytes), viewing key=HKDF(pack(Q), Liora/vk/stealth/v1, 32 bytes).\begin{aligned} \nu &= \mathsf{HKDF}(\mathsf{pack}(Q),\ \texttt{Liora/nk/stealth/v1},\ 31\ \text{bytes}), \ \text{viewing key} &= \mathsf{HKDF}(\mathsf{pack}(Q),\ \texttt{Liora/vk/stealth/v1},\ 32\ \text{bytes}). \end{aligned}

Sender and recipient can therefore both open the payment's note and read its amount. Spending it also takes the program's signature for own(P)\mathsf{own}(P), which needs pp. 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 F\mathbb{F}. 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; pack(A)\mathsf{pack}(A); 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, dhid_{hi} and dlod_{lo}. 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 X0,X1,X2X_0, X_1, X_2, the keys whose notes it spends. The circuit has three owner slots. Each takes a secret xix_i as private input, requires 0<xi<q0 \lt x_i \lt q, and computes Xi=xiGX_i = x_i G. With c∈{1,2,3}c \in \{1, 2, 3\} the number of owners named, and the point hash of each slot beyond cc replaced by zero,

ω=H(c, ph(X0), ph(X1), ph(X2)).\omega = \mathsf{H}\big(c,\ \mathsf{ph}(X_0),\ \mathsf{ph}(X_1),\ \mathsf{ph}(X_2)\big).

The program requires the owners named to be distinct.

First note. Change goes to own(X0)\mathsf{own}(X_0). 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 X0X_0 and recomputes its nullifier. With ι0=id(own(X0))\iota_0 = \mathsf{id}(\mathsf{own}(X_0)), and the note's nullifier secret ν\nu, blinding β\beta, tree identifier ee, amount uu and application data hash δ\delta as private inputs, it computes the blinded owner oo, the note commitment cm\mathit{cm} and the nullifier ϕ\phi:

o=H(H(ι0, H(ν)), β),cm=H(3, e, H(0,0), u, δ, H(0,0), o),ϕ=H(cm, β, ν).\begin{aligned} o &= \mathsf{H}\big(\mathsf{H}(\iota_0,\ \mathsf{H}(\nu)),\ \beta\big), \\ \mathit{cm} &= \mathsf{H}\big(3,\ e,\ \mathsf{H}(0,0),\ u,\ \delta,\ \mathsf{H}(0,0),\ o\big), \\ \phi &= \mathsf{H}(\mathit{cm},\ \beta,\ \nu). \end{aligned}

The constant 3 is the Ring's domain for a spendable note. The first H(0,0)\mathsf{H}(0,0) 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 uu to be a positive 64-bit integer. The program takes ι0\iota_0 from the account it checked and ϕ\phi from the first nullifier in the forwarded instruction.

Transfer statement. With θ\theta the private transaction hash, a field of the SPP instruction that the program reads and the prover supplies,

tx=H(dhi, dlo, θ, ω, ι0, ϕ).\mathsf{tx} = \mathsf{H}\big(d_{hi},\ d_{lo},\ \theta,\ \omega,\ \iota_0,\ \phi\big).

The statement of withdraw is tx\mathsf{tx}.

Payment statement. The pay circuit takes in addition the leaf index jj with its 24 siblings, the scalars rr and kk, each non-zero and below qq, and the points SS, VV and AA. Each of the three points is supplied as a point WW on the curve. The circuit sets the key to 8W8W and requires it to differ from the identity, which places the key in G\mathbb{G}. It computes λ\lambda and the root ρ\rho of the opening as in Sections 4.2 and 4.3, and RR, QQ, PP, τ\tau, C1C_1 and C2C_2 as in Sections 4.4 and 4.5, and requires that neither PP nor C2C_2 is the identity. Then

α=H(ρ, ph(P), ph(R), ph(C1), ph(C2), ph(A), τ),statement=H(tx, α).\begin{aligned} \alpha &= \mathsf{H}\big(\rho,\ \mathsf{ph}(P),\ \mathsf{ph}(R),\ \mathsf{ph}(C_1),\ \mathsf{ph}(C_2),\ \mathsf{ph}(A),\ \tau\big), \\ \mathsf{statement} &= \mathsf{H}(\mathsf{tx},\ \alpha). \end{aligned}

The program builds α\alpha 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 (S,V)(S, V) was used three times: as a leaf under ρ\rho, as the source of the announced PP, RR and τ\tau, and as the plaintext of the announced (C1,C2)(C_1, C_2) under the auditor key in force. Neither λ\lambda nor jj nor any sibling is public. Figure 2 draws the statement.

statement = H(tx, α)txαdhi​, dlo​SHA-256 of the public transferθprivate transaction hash of the SPP callωthe owner keys, one to threeι0​identity of the first owner addressφnullifier of the first note spentρan accepted whitelist rootph(P), ph(R)stealth address, ephemeral keyph(C1​), ph(C2​)the audit ciphertextph(A)the auditor key in forceτthe view tag
Figure 2. The statement of a payment, the one public value of its proof. The circuit computes it from the witness and the program computes it from the instruction, the accounts and its configuration. A withdrawal's statement is tx alone.

Table 3. The two circuits, compiled with Circom at optimisation level 2.

CircuitConstraintsPublic valuesPrivate input signals
pay28,979146
withdraw8,428113

Proof system. Proofs are Groth16 [7] over BN254, the family SPP's own proofs belong to. A proof is 128 bytes: the compressed points −π1-\pi_1 (32 bytes), π2\pi_2 (64) and π3\pi_3 (32) of the Groth16 proof (π1,π2,π3)(\pi_1, \pi_2, \pi_3), where π1\pi_1 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.

PartyHoldsDoes
HolderA wallet, and the keys of Section 4.1Deposits, pays, receives, withdraws
IssuerThe issuer wallet named in the configurationAdmits and removes recipients
AuditorThe audit secret aaDecrypts the recipient of each payment
RelayerThe relayer wallet named in the configurationSubmits payments and withdrawals and pays their network fee
Fee recipientThe wallet named in the configurationReceives the protocol fee
AdminThe admin wallet named in the configurationSets 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, pack(A)\mathsf{pack}(A), 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 own(X)\mathsf{own}(X), 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 mm, ss, vv and the balance keys. Nothing is sent.

Deposit. The holder's wallet signs a transaction calling deposit with pack(B)\mathsf{pack}(B), η\eta 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 own(B)\mathsf{own}(B) and whose owner is H(id(own(B)),η)\mathsf{H}(\mathsf{id}(\mathsf{own}(B)), \eta), then forwards it. The Ring gains a note at own(B)\mathsf{own}(B). The wallet, the amount and BB are public, and the program records them in a DepositRecorded event.

Register. The recipient's wallet signs a request carrying a handle and (S,V)(S, V), 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, pack(S)\mathsf{pack}(S), the coordinates of SS and VV 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 rr and kk, 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 own(P)\mathsf{own}(P) and, where there is change, one at own(X0)\mathsf{own}(X_0). The program emits a PaymentAnnouncement with PP, RR, τ\tau, C1C_1, C2C_2 and ρ\rho.

Receive. The recipient's device reads every announcement and applies the test of Section 4.4 to each. For a match it derives pp 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 X0=PX_0 = P and x0=px_0 = p. 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 S=C2−aC1S = C_2 - aC_1 for each and looks up the entry admitted under SS. 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 SS.

#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.

DeviceRelayerLiora programSPPannouncement,SPP proof,Liora prooftransactionsimulates, signspayroot, shape, owners,outputsverifies the prooftransact, signedSPP proof, nullifiers,new notesfees to settlementpays fee recipient,relayer; announces
Figure 3. A payment. The device makes the Liora proof and has the SPP proof made by a Rings prover, the relayer signs as fee payer, and the program verifies the Liora proof before it signs for the owner addresses in its call into SPP.
  1. The destination account is the relayer, and the announced root is among the accepted roots.
  2. The forwarded SPP instruction is a transact on 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.
  3. Each owner key is listed once and the account passed for it is its owner address. The address own(P)\mathsf{own}(P) is neither the relayer nor any input owner.
  4. Exactly one output is tagged for own(P)\mathsf{own}(P). Every other output is tagged for own(X0)\mathsf{own}(X_0).
  5. The program computes the statement of Section 4.7 and verifies the proof against it.
  6. 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.
  7. 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.
  8. 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 own(X0)\mathsf{own}(X_0), 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 own(P)\mathsf{own}(P) is therefore a note that own(P)\mathsf{own}(P) 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 G\mathbb{G}; Poseidon behaving as a random oracle where it derives hh and τ\tau 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 (P,R,τ,C1,C2,ρ)(P, R, \tau, C_1, C_2, \rho), its proof and the Ring transaction around it. P=S+H(Q)GP = S + \mathsf{H}(Q)G and τ\tau are outputs of the oracle on Q=rVQ = rV, which under decisional Diffie-Hellman is indistinguishable from a random point given RR and VV. (C1,C2)(C_1, C_2) is an ElGamal ciphertext under fresh randomness, which hides SS under the same assumption from everyone but the holder of aa. The proof is zero knowledge and its one public value is a hash that contains no leaf, index or sibling. ρ\rho 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 rr and kk and therefore share nothing but, possibly, ρ\rho.

#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 own(P)\mathsf{own}(P) only after a proof has verified against a statement it computed from an accepted root ρ\rho. By knowledge soundness there is a witness (S,V,j,siblings,r,k)(S, V, j, \text{siblings}, r, k) for which the leaf H(S.x,S.y,V.x,V.y)\mathsf{H}(S.x, S.y, V.x, V.y) opens to ρ\rho and P=S+H(rV)GP = S + \mathsf{H}(rV)G. By collision resistance of Poseidon the leaf opened is one the issuer wrote into the tree that ρ\rho commits to. The note created is therefore spendable only with s+H(rV)s + \mathsf{H}(rV) for a whitelisted SS. 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 00 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 C1=kGC_1 = kG and C2=S+kAC_2 = S + kA with the SS of the leaf and of PP, and ph(A)\mathsf{ph}(A) in the statement is computed by the program from the auditor key in its configuration. Decryption with aa returns C2−aC1=SC_2 - aC_1 = S. The circuit requires SS, VV and AA to lie in G\mathbb{G}, so no small-order component can shift the result. SS 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 own(X)\mathsf{own}(X). SPP requires the signature of the owner address, the program gives it only after verifying a proof whose witness contains xx with xG=XxG = X, and for a stealth address x=s+hx = s + h 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.

PublicRelayerIssuerAuditorSenderRecipient
That a payment happened, and whenYesYesYesYesYesYes
PP, RR, τ\tau, C1C_1, C2C_2, ρ\rhoYesYesYesYesYesYes
The owner addresses of the notes spentYesYesYesYesYesYes
That the recipient is whitelistedYesYesYesYesYesYes
Which recipientNoNoNoYesYesYes
AmountNoNoNoNoYesYes

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 BB 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 own(X)\mathsf{own}(X) is computed from XX. When a recipient spends a received payment, the transfer names the stealth address PP of that payment. If the transfer is a withdrawal, it connects PP 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.

PaymentWithdrawal
Transactions measured21
Proving time, Node693 ms to 1,066 ms362 ms
Proving time, browser592 ms332 ms
Loading the proving files, browser201 ms87 ms
Proof size128 bytes128 bytes
Compute units286,814 to 290,309273,287
Transaction size1,518 bytes1,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:

  1. 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.
  2. It asks Jupiter for a direct route from SOL to LIO for the rest, with a bound on slippage.
  3. 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.
  4. 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

  1. Siyuan Zheng, Zhe Han (Ant International). Auditable and Compliant Stealth Addresses for Blockchains. IACR ePrint 2026/513.
  2. Helius. Privacy concepts: overview. Documentation of Solana Privacy Rings.
  3. Helius. Privacy concepts: architecture. Documentation of Solana Privacy Rings, with the specification in release shielded-pool-v1.0.0.
  4. Helius. Privacy guides: transfer. Documentation of Solana Privacy Rings.
  5. Solana Foundation. Solana Privacy Rings bring programmable privacy onchain. 2026-11-10.
  6. T. Wahrstätter, M. Solomon, B. DiFrancesco, V. Buterin. ERC-5564: Stealth Addresses. Ethereum Improvement Proposals, 2022.
  7. J. Groth. On the Size of Pairing-Based Non-interactive Arguments. EUROCRYPT 2016.
  8. L. Grassi, D. Khovratovich, C. Rechberger, A. Roy, M. Schofnegger. Poseidon: A New Hash Function for Zero-Knowledge Proof Systems. USENIX Security 2021.
  9. B. WhiteHat, M. Bellés, J. Baylina. EIP-2494: Baby Jubjub Elliptic Curve. Ethereum Improvement Proposals, 2020.
  10. H. Krawczyk, P. Eronen. HMAC-based Extract-and-Expand Key Derivation Function (HKDF). RFC 5869, 2010.
  11. T. ElGamal. A Public Key Cryptosystem and a Signature Scheme Based on Discrete Logarithms. IEEE Transactions on Information Theory 31(4), 1985.