Docs · Concepts

What the chain shows

For every Mesa action, exactly what an observer of Solana can read, and what stays sealed.

Mesa runs on a public chain, so everything it does is a transaction anyone can fetch. This page lists what each of those transactions contains.

Deposit and withdrawal

your address

The person’s address, with the amount encrypted.

Everything between

the Mesa address

The Mesa address spending notes and creating notes for itself.

Each batch

clearing priceorders, no ownerpool totals

Clearing prices, opened actions without owners, pool totals.

Never on chainWho placed an order, who holds a position, any balance.

What the chain shows of one person's use of Mesa.

Per action

ActionPublicSealed
Deposit into MesaThe wallet's address. That it spent Privacy Rings notes.The asset and the amount
PlaceThat an action entered batch n, and its commitmentThe kind of action, its terms, who placed it
OpenThe action's terms: kind, side, target, amounts, limitWho placed it
ClearEach market's clearing price and matched volume, the vault's trade, each pool's and perp market's new totals
SettleThe amounts the opened terms imply, moving between notes and Mesa's public vault accountsWhose notes received them
RenewThat a position in some pool or perp market renewed to an epoch's deadline, and the oracle price usedWhich position, its collateral, its debt or size, its owner
RepayThe amount repaid to a poolWhich position, what remains
Close a borrowThe amount repaid to the poolThe collateral returned, the owner
LiquidateThe lapsed position's fields, the liquidator's repayment and bonusThe owner
ReclaimThat a sealed action of batch n was reclaimedIts terms, its owner
Withdraw from MesaThe recipient's addressThe asset and the amount

Between deposit and withdrawal

Every Mesa note is owned in the pool by one address, the Mesa authority. From the chain's side, everything between your deposit and your withdrawal is that one address spending notes and creating notes for itself. No instruction takes your address, and the relayer pays the fees, so your wallet signs nothing.

Spent notes are marked by nullifiers, and a nullifier does not reveal which note it spent. An observer cannot follow a balance from the note a deposit created to the order it later funded.

What opens, and when

An action's terms are sealed from the moment it is placed until its batch closes. After the close they are public for good. Nobody can act on an order before its price is fixed, and afterwards everyone can check the price against the orders that made it.

What opens is the action, without the account. Each action is placed from a holder key used once and settles to another used once, so two opened actions cannot be tied to each other.

A position's contents open only if it lapses.

The public accounts

These Solana accounts are readable by anyone, and are what the batch record and the market pages are built from.

AccountShows
ConfigBatch length, heartbeat, open window, protocol share, fee recipient, the timelock beacon
MarketThe pair, its vault, its fee, the last clearing price, cumulative volume
VaultReserves, total shares, protocol fees owed
PoolCash, borrows, indexes, total shares, reserves, the rate curve and risk parameters
PerpMarketOpen interest long and short, the funding index, fees and limits
BatchPer target: opened count, clearing price, matched volume, vault trade, pool deltas, oracle price

A total is the sum of sealed parts. The chain shows a pool's borrows and never a borrower, a vault's shares and never a holder.

At the edges

Moving funds between a public Solana account and a Privacy Rings private balance is a Privacy Rings deposit or withdrawal, and it shows the address, the asset and the amount. Moving between that private balance and Mesa shows the address and encrypts the asset and amount. Mesa on Privacy Rings covers both steps.

Never

The chain never shows who placed an order, who holds a position or a share, or any balance.