Skip to content
Open app

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

  1. Deposit. A wallet deposits SOL or an SPL token through the deposit instruction. 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.
  2. 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.
  3. 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.
  4. 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. transact checks 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.
  5. 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

FactPublicPrivate
A deposit's depositor, mint, amount and labelyes
The set and root a spend proved againstyes
The spend's nullifieryes
A withdrawal's mint, amount and destinationyes
Which deposit a spend came fromyes
Which note was spent, and who holds ityes
A private transfer's amount and recipientyes

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.

Where to go next