What the vault is
A contract that holds NFTs, and next to it one that holds tokens. Each NFT that goes in gets a box: a token of its own whose holder is encrypted, like the game's boxes. The NFT stays inside until the box's holder takes it out, sells it on Seaport (listed, or to a buyer's offer), or sells the box privately. Tokens (cUSDC, a confidential dollar, or cUSDT, cWETH, cZAMA) go in a pocket instead: a balance locked by a key, not by an address.
The vault takes any ERC-721; its owner can only shut a collection out. On the test network the page offers a free test collection anyone can mint.
The first time you open the vault, a guided tour walks you through it: the two sides, what stays encrypted, then each tab in the order you would use them, from sealing an NFT to what leaks. The “?” in the vault's bar plays it again.
Sealing an NFT
Sealing is one transaction: the NFT moves into the vault and a box is made for it, held by you. It is public, since it is a plain NFT transfer: anyone sees who sealed which NFT. What happens to the box afterwards is not.
The deposit names its depositor, but it can also send the new box on at once, in the same transaction, to a few other wallets where each transfer moves nothing (decoys: you pick how many, 0 to 5, 3 by default). Anyone sees the transfers, nobody sees which moved, so even the depositor is no longer the obvious holder. Without decoys, they are until the box moves. The decoys are picked among the wallets that hold an NFT of the same collection (its recent buyers, still holding) and the wallets that use the vault (those that sealed an NFT, took one out, set a box's key, offered or took a private sale, or fed a pocket): a wallet that owns the same kind of NFT or acts on the vault could be the holder, while a fresh random address, which never acts and holds nothing, fools nobody for long. So a box hides in its collection from the first day, not only among the few who already use the vault. When both are thinner than the decoys asked, the rest go to fresh addresses and the page says so. On each of your boxes, the page shows how many wallets may hold it, as far as the chain tells: an honest count, not a promise.
To find your boxes again, the page reads your own receipts and decrypts, for you alone, which ones really reached you. One signature. Each value read this way spends one of your decryptions: the meter beside your balances counts them, with a free allowance each day (generous on the test network, most likely much smaller on mainnet) and credits after it.
The box's key
Each box has a key: a 256-bit secret, stored encrypted, that nobody can read, you included. The vault only ever compares it. Anything that leaves the vault (the NFT, a listing, the ETH of a sale) is asked with the key, never with your address.
You never type the key. Your wallet signs one fixed message, free, and the page derives each box's key from that signature: the same wallet makes the same keys on any device. Sign that message only on DO NOT OPEN: whoever gets the signature can take your NFTs out.
A key is never sent as is: it is mixed with the exact terms of the request (the box, the action, the address, the price, the end date, the offer it accepts if any, and a counter). Change one term, or send the same request again later, and the key no longer matches: the request is refused.
A box that changes hands gets a random key, so its previous holder can do nothing more with it. Its new holder makes the key theirs with one transaction ("Make the key mine"). Anyone may try, but it only takes effect for the holder, and from the outside both look the same.
Asking for something
Taking an NFT out, listing it, taking a listing down, collecting a sale's ETH, accepting an offer and naming a delegate all go the same way, in two steps. A request on-chain: the vault checks the key under encryption. Then a proof from Zama's key management service that the key matched, which anyone can bring back.
The request settles one of four ways: done; refused, when the key did not match (nothing happens, nothing reverts, so a stranger learns nothing); missed, when the box changed in between (sold on Seaport meanwhile, say); or expired, when no proof came within a day (nothing happens).
Requests do not lock each other out: a stranger who sends requests with a wrong key cannot stop you taking your NFT out, listing it or collecting. Each is decided on its own, and the counter the key is mixed with moves on only when a key matched, so a stranger's try spoils nothing you prepared. While any request waits for its proof, the box cannot change hands; the page settles the waiting ones first (anyone may), and one whose proof never comes can be expired by anyone after a day. No box stays stuck.
While an action runs, the page shows it step by step: what it waits for, and every transaction with its block, its gas and a link to the explorer. "Keep browsing" folds it to the foot of the screen. The last steps, the proof, run in your browser: if you close the page or go elsewhere on the site, the foot of that page says where it stopped, and the vault settles the box's waiting requests the next time you open it.
At the sealed vault. The relayer carries your request, the key is checked blind, and the NFT goes where you said. Your address appears nowhere.
- Ciphertext
- Transaction
- Value with proof
- Clear value
Selling on Seaport
A listing is a real Seaport order, OpenSea's protocol, written the way OpenSea shows a contract's listing: on mainnet, OpenSea reads it from the chain and shows it on opensea.io, with the vault as the seller. Your address appears nowhere: the vault validates the order on-chain, so it signs nothing, and only the orders it validated can sell its NFTs.
On mainnet the listing is bought on OpenSea, with its "Buy now" (OpenSea signs each purchase on its side, and may take a listing down on its side too); the vault's page links to it. On the test network, where OpenSea is not, the listing is an open order anyone fills, from the page's "Buy now" or any Seaport script. Either way the buyer pays in ETH and gets the NFT straight away, and sees the NFT, the price and the end date, like any listing.
The price you set is what the buyer pays. On mainnet, OpenSea's fee and the collection creator's fee come off it when the sale fills, as for any listing there, then the vault's fee (2.5%, never more than 10%) comes off the rest; on the test network there is only the vault's. The rest waits in the box for whoever holds the key. You collect it to any address. A listing lasts up to 180 days; one that ran out without a buyer goes back to sealed.
Accepting an offer
Anyone can make an offer on an NFT in the vault, in WETH (ETH wrapped as a token), as on any marketplace. Offers are real Seaport orders posted to a public board on the chain, so the page shows them under "Offers" on each of your boxes, with their amount, their buyer and their end date. An offer on any NFT of the collection shows there too.
Accepting is a request like the others, made with the key, through the relayer if you like. You pick the address the ETH goes to. Once the proof is back, the vault fills the offer itself: the NFT goes to the buyer, and the ETH, minus the vault's fee (2.5%, as for a listing), goes straight to your address. A listed box is taken down first. If that address cannot take ETH, the ETH waits in the box for you to collect.
What shows is what any Seaport sale shows: the buyer, the NFT, the amount and the address the ETH went to. You do not: the vault is the seller. Take the ETH to a fresh address and nothing links it to you.
If the offer is gone by the time the proof is back (cancelled, already filled, ended, or worth less than when you accepted), nothing happens and you keep the box: the request settles as missed. If the buyer is only short of WETH for now, the request waits: it can be tried again, or expired by anyone after a day.
Only Seaport offers paid in WETH can be accepted. Offers made on OpenSea's own site go through OpenSea's signed zone; on mainnet the page shows them next to the board's (marked "on OpenSea"), read from OpenSea by the API with its own key, and when you accept one the API asks OpenSea, right before the proof is sent, for the order signed for the vault. The vault's contracts fill them unchanged (checked by filling a live one on a copy of mainnet). On the test network OpenSea is not there: only the board's offers show. Offers on some of a collection's NFTs only (by trait, say) are not taken.
Making an offer
Every NFT in the vault's grid opens its own page, with its offers and a "Make an offer" button, whether it is listed or not. You pick an amount and how long the offer lasts (1, 7 or 30 days). You do not know who holds the box, and you do not need to: the offer is for the NFT, and only its holder can accept it.
The page wraps your ETH into WETH, lets Seaport take that WETH, and has you sign the offer, then posts it to the board. The WETH stays in your wallet: Seaport takes it only if the holder accepts, and the NFT reaches you in the same move. WETH you no longer need stays yours, and turns back into ETH at any time. A click on your address shows your profile: your ETH, WETH, USDC and cUSDC (cUSDC decrypted for you alone, with one signature), live, your boxes, and the way to switch wallets or disconnect.
Your address shows with the offer, as on any marketplace. You can cancel it at any time, in one transaction; it also ends by itself on its end date.
Private sales
Offer a box to one buyer, for a price in cUSDC (a confidential dollar) that only the two of you can read. The buyer reads it in the page, then pays and takes the box in one transaction.
Everything settles under encryption: if the price arrived and the seller still held the box, the box moves with a key that is the buyer's, and the seller is paid; otherwise nothing moves and the buyer gets their cUSDC back. To everyone else, a sale that went through and one that did not look the same.
Anyone may offer any box, so an offer proves nothing about who holds it. The seller can cancel an open offer; only the named buyer can accept it, once.
Pockets: tokens nobody can trace
A confidential dollar like cUSDC already hides balances and amounts, but every transfer still names who sent it and who received it. A pocket hides that too. It is a number (your code, like P-12) with an encrypted balance and a key: what is in it, and who holds it, nobody can read.
On the vault's page, a switch at the top picks the side: NFTs (non-fungible, in boxes) or Tokens (fungible, in your pocket). Opening your pocket takes one signature, free: from it the page makes the pocket's key and a second address that only ever reads its balance, never your wallet's. Nothing is stored; the same wallet finds the same pocket on any device. The relayer sends the opening, so your address is not on it.
Putting tokens in comes from your wallet's confidential token (the page can wrap the plain token first, USDC into cUSDC say, and that amount shows). The deposit names your wallet and your pocket's group: which one received, and how much, stays encrypted. Anyone can pay any pocket this way, from a wallet.
To be paid, give your code. Every action names a group, not a pocket: pockets make groups of a fixed size by number (ten on today's pockets: P-0 to P-9, P-10 to P-19...; five on the earlier ones), and every action of a pocket names its whole group, always the same pockets. A set then says which group acted, never which pocket, however many actions are compared; decoys picked at random would not, since the real pocket is the one in every set. The page shows your group, how many of its pockets exist (the last group fills as pockets open) and how many addresses have put tokens into it. Sending names your group and the receiver's; the vault checks your key under encryption, takes the amount from the pocket it opens and adds it to the pocket whose number matches, also under encryption. Nothing public says who paid whom, or how much. A wrong key or a short balance moves nothing, without an error. No decryption is needed, so it takes one transaction and waits for nobody.
Taking tokens out sends them, still confidential (cUSDC stays cUSDC), to any address, the amount still encrypted. The address shows. Pick "A fresh address of mine" (the form's first choice) and the page draws a stealth address for you instead: a fresh address nothing ties to anyone, that only your page finds and spends (see Fresh addresses below).
With the vault's boxes: a seller can offer a box privately to your pocket by typing your code. You read the price, then buy with your pocket: first a check under encryption that only says yes or no in public (so a stranger cannot spend the sale with a wrong key), then the purchase. The box then sits in the vault for a desk every pocket shares, with your key: take the NFT out, list it, accept an offer or delegate it, as for any box. It cannot be given or sold privately again from there. After selling a box privately, "Into my pocket" puts the price, less the fee, in your pocket.
Limits: a group is public, so a pocket hides among its group at most (ten on today's pockets, five on the earlier ones; the size is fixed when the pockets are deployed, and measured up to twelve), and a deposit ties the address that fed it to the group (not to a pocket): the fewer addresses feed a group, the thinner its cover, and a group still filling hides among fewer. Pockets have no fee of their own. They are not audited.
Four tokens go in pockets: cUSDC, cUSDT, cWETH and cZAMA, Zama's confidential versions of USDC, USDT, WETH and ZAMA. Each has its own pockets: pick the token above your pocket, its logo shows on the pouch and on every action. The same signature opens your pocket of every token, each with its own code and its own reading address, so nothing on-chain ties them together. Which token an action moves is public, and a pocket hides among the pockets of its own token only. Boxes sell privately in cUSDC, so only the cUSDC pocket buys them. On Sepolia, the page mints test USDT, WETH and ZAMA (Zama's own test tokens, not the WETH offers pay in) and wraps them for you.
Fresh addresses, out: a withdrawal shows the address it pays, so paying your own wallet links the pocket's group to it. The page holds a stealth meta-address for you (ERC-5564, two keys made from the same signature as your pocket): pick "A fresh address of mine" on the withdrawal and it draws a fresh address only you can spend, pays it, and has the relayer announce it (the public announcement carries a one-byte tag and a throwaway key; your page alone recognises its own). To pay someone else the same way, type their meta-address, or their wallet address once they have published it in the public registry (one transaction, which ties the meta-address to the wallet, never the addresses paid). "Received on fresh addresses" lists what landed on yours, read with their own keys. Each fresh address acts as itself: give it a little ETH (the relayer sends some once, to an address a pocket paid) and "Into my pocket" has it put what it holds in your pocket, a deposit that names the fresh address and never your wallet. Any other address typed is paid in the open, as before.
Fresh addresses, in: a deposit from your wallet ties your wallet to your pocket's group. The entry address breaks that link: the page derives a fresh address from your signature (the first never used) and shows it; send USDC to it from somewhere that is not your wallet (a privacy pool such as Privacy Pools, an exchange, a friend), with a little ETH or the relayer's gas (it fuels an address holding USDC once), and "Into my pocket" wraps and deposits it as that address. Nothing on-chain says the address is yours. What still shows: the amount wrapped (USDC into cUSDC is public), and the timing, so round amounts and a pause after the pool's withdrawal hide best. Once used, the entry address is retired and the page shows the next one.
Savings: cUSDC put to work
Savings put part of your cUSDC pocket to work in one of Zama's confidential vaults on Morpho (Steakhouse USDC Prime, a lending vault), through a savings contract next to the pockets. Where it is deployed, a “Savings” card shows under your cUSDC pocket, and nowhere else: the other tokens' pockets have none. What you put aside earns that vault's yield, and comes back to your pocket when you ask.
A save travels in four steps. It leaves your pocket at once, like a send: the action names your group, the vault checks your key under encryption and takes the amount from the pocket it opens. The cUSDC then waits in the open window, held by the savings contract. The relayer joins the window to Zama's next batch; Zama's batcher takes the batch's total to Morpho and brings back shares of the vault, confidential too. Once the batch has settled, the window hands each pocket its shares in proportion, under encryption: your savings then show as shares, worth their value at the vault's public price, which grows with the yield.
So a save takes time. A window joins a batch when the next one is made (about one an hour on Sepolia), and the batch is dispatched once it is old enough: the card says how long, in minutes or hours. Until then the page lists what is on the way: waiting for the next batch, in a batch, or being handed back once settled. A batch Zama cancels hands the pockets their cUSDC back the same way. Meanwhile the amount is neither in your pocket nor in your savings.
Taking back goes the same way, in reverse. You ask an amount in cUSDC; the page converts it to shares at today's price (or “All of it”, which asks your exact shares), the shares leave at once and wait in the take-back window, which joins the next batch of redemptions. Once settled, the cUSDC lands in your pocket's balance. The batch's rate decides what comes back exactly; today's price is an estimate.
Savings are put aside, not spendable. A private sale is paid from the pocket's balance, never from its savings: to buy a box with money you put aside, take it back first, wait for the batch, then buy. Plan a purchase around the batch.
Nothing public says which pocket saved, nor how much. Zama's batcher sees one participant, the savings contract, with one encrypted total for the window; that is how the batch keeps every pocket out of sight. The chain shows what a send shows, the group named, plus the window a save went to and when the window joined a batch, and once settled the batch's decrypted total and rate. That total bounds what all the window's pockets saved together, never one pocket's share. Two caveats: when no other participant is in Zama's batch, the batch's total is exactly the sum of the window's saves; and when one group alone saved in that window, it is the sum of that group's saves. The more pockets save in the same window, the better each hides.
The yield is the Morpho vault's, and so is the risk: what you put aside is lent through that vault, with its curator and its contracts, and a loss there is a loss on your savings only. The cUSDC you leave in your pocket is not exposed: it never leaves the pockets contract. The savings are not audited.
Giving a box
Send a box to any address. It only moves if you hold it, and it arrives without a key: the receiver finds it in their receipts and makes the key theirs. Until then nobody can take anything out of it.
Keeping the perks: delegation
While your NFT is in the vault, its owner on-chain is the vault, so airdrops and holder-only sites would not see you. Delegation fixes that: "Delegate" on your box names one wallet in delegate.xyz, the public registry most claim sites and token gates check. That wallet can then claim airdrops and pass holder checks for the NFT, without ever holding it. One wallet per box, with every right; "Clear the delegate" takes it away. It is a request like the others, made with the key. Sites that do not read delegate.xyz will not see it.
The delegate is public: anyone can read which wallet acts for which NFT. Name a fresh wallet that has never dealt with your main one; your main wallet as the delegate would name you as the holder.
A box keeps its delegate when it changes hands, since nobody may see whether it moved. If you receive a box, check its delegate on the page and name your own. Taking the NFT out, selling it on Seaport or accepting an offer clears it.
The relayer
A request sent from your wallet shows your address. So the site's API can send your requests and their proofs from its own wallet, and pay the gas: then your address appears in no transaction.
It learns nothing the chain does not show. The key reaches it encrypted for the vault and bound to the request's terms: it can neither read it, nor change a term, nor reuse it. It sees, like any web server, the IP a request comes from.
It can refuse, not cheat. It has limits a day and a minute; if it is down or says no, the page sends the request from your wallet, and tells you your address then shows.
What is public, what is not
Public
- Who sealed which NFT (the deposit is an NFT transfer), and the addresses its decoys went to
- The NFT inside each box, its state, its listing
- Seaport listings, purchases and accepted offers, with the vault as the seller; on mainnet the listing shows on OpenSea
- The address an NFT or a sale's ETH goes out to, and the amount
- That a request was made, on which box, for what, and whether it was done, refused, missed or expired
- The two addresses of a transfer or a private sale
- The offers on each NFT and who made them, and an accepted offer's buyer and amount
- A box's delegate, the wallet that acts for the NFT in delegate.xyz
- Which wallet deposited into which group of pockets, the groups each pocket payment names, and the address a withdrawal from a pocket goes to
- Which token each pocket action moves (cUSDC, cUSDT, cWETH or cZAMA): each has its own pockets
- A save's or a take-back's window, when it joined one of Zama's batches, the group it names, and the batch's decrypted total and rate, for every pocket together
- A stealth address a pocket paid (as any withdrawal's address) and its announcement on ERC-5564's announcer, sent by the relayer; a published meta-address and the wallet that published it; the entry address that fed a group, and the amount it wrapped from plain USDC
Never public
- Who holds a box
- The box's key
- A private sale's price, and whether it went through
- Whether a transfer moved anything
- Who asked for a listing, a withdrawal, a payout, an accepted offer or a delegate, when the relayer sends it
- A pocket's balance, the amounts it moves, which pocket of a group moved, and who holds a pocket
- Which pocket saved or took back, how much, and what each pocket's savings are worth
- Whose a stealth address or an entry address is: which wallet's page holds its key
In practice: take NFTs and ETH out to an address with no history, name a fresh wallet as the delegate, let the relayer send your requests, and know that timing can still give hints (a "Make the key mine" right after a transfer to the same address, say).
On the test network
The vault runs on Sepolia, Ethereum's test network, with the real Seaport, OpenSea's conduit, the WETH offers pay in and delegate.xyz's registry. OpenSea closed its testnets, so a listing shows on no marketplace site there: it is bought from the page. Its fee is 2.5%. The test collection is free to mint from the vault's page; nothing here is worth money.
- The sealed vault0xb707…5abC
- The free test collection0xf72E…6f9b
- Seaport0x0000…B395
- The listings (written the way OpenSea shows them)0x6b9C…8Fa6
- The offer board0xADaE…FE59
- WETH, what offers pay in0x7b79…E7f9
- delegate.xyz's registry0x0000…d493
- The pockets0x73F0…794C
- The desk that buys from pockets0x3BA5…4Aa3
- The savings (a pocket's cUSDC in Zama's vault on Morpho)0xE84c…A670
- The cUSDT pockets0xB586…c35D
- The cWETH pockets0x731E…FAb5
- The cZAMA pockets0x0cf7…Cf9a
Further reading
- About DO NOT OPENThe idea, the encryption, who you trust.
- The design notesEvery flow, every check, every leak, for developers.
- The contracts' codeThe vault's contracts, their tests and their Sepolia addresses, open source on GitLab
- The contractSealedVault.sol, open source.