How Plaza works
A deposit gets a label, an ASP publishes a root of approved labels, the label follows the note, and every spend proves its label is under a root before SPP settles it.
Plaza is a Custom Ring on Solana Privacy Rings. Rings keeps balances as private notes in the Solana Privacy Program (SPP); a Custom Ring is a program that SPP lets spend notes it owns, once that program's own checks pass. Plaza's check is a membership proof: the note being spent descends from a deposit that an association set approved.
The five steps
- Deposit. A wallet deposits SOL or an SPL token through the
depositinstruction. Plaza computes the deposit's label, adds it as a leaf of its deposit tree, and passes the deposit on to SPP, which creates a note carrying that label. The deposit is public. - Approve. An Association Set Provider (ASP) looks at new deposits and publishes, through
publish_root, the Merkle root of the labels it approves. The program keeps each ASP's most recent roots. - Inherit. A private transfer spends a note and creates up to two new ones. The proof forces both outputs to carry the input's label, so the approval follows the money through any number of transfers.
- Spend. For a transfer or a withdrawal, the holder's browser proves in zero knowledge that the note's label is a leaf under a root of the set they chose.
transactchecks the root is in that ASP's window, checks the venue accepts the set when the destination is a venue, verifies the proof with Solana's alt_bn128 syscalls, then calls SPP, which verifies its own proof and updates private state. - Settle. For a withdrawal, SPP releases the amount to Plaza's payout account, and Plaza pays the destination the amount minus the protocol fee and pays the fee to the fee recipient.
What is public
| Fact | Public | Private |
|---|---|---|
| A deposit's depositor, mint, amount and label | yes | |
| The set and root a spend proved against | yes | |
| The spend's nullifier | yes | |
| A withdrawal's mint, amount and destination | yes | |
| Which deposit a spend came from | yes | |
| Which note was spent, and who holds it | yes | |
| A private transfer's amount and recipient | yes |
A spend sent through the relayer has the relayer as fee payer, so the holder's wallet appears in no account list. See POST /relay.
The two proofs
Every spend carries two Groth16 proofs. SPP's proof shows the spend is valid as money: the note exists, its nullifier is new, amounts balance. Plaza's proof, the policy proof, shows where the money came from. The policy proof is bound to the same nullifier and output commitments as SPP's, so one cannot be reused with another spend.