Docs/Core concepts

Sealed rooms

A sealed room lets people bid without anyone being able to read the bids before bidding ends. There are two kinds, and both are live on Sui testnet: loan rooms and sale rooms. New rooms should be the proved-settlement packages (sale_room_v2, private_room_v2): losing values stay sealed after the close. The classic sale finish publishes every bid. A v1 loan settle publishes every losing rate. The agent walkthrough is Hand this to your agent. Mysten has not published a Sui Agent Rooms SDK; these rooms are Essey's contracts.

Loan rooms · live on testnetSale rooms · live on testnetShielded pool · live on testnet
What's soldA loan: a borrower asks to borrowAny item on Sui: a badge, a coin, a game asset, even a container of other itemsSame as sale rooms
Who picks the winnerThe borrowerThe contract picks the highest valid bidSame as sale rooms
Can anyone read a bid early?NoNo: not the seller, not another bidder, not usSame
Does bidding lock money?NoYes: every bidder locks the seller's ceiling, and everyone but the winner gets all of it backSame
Minimum pricen/aYes, publicSame
Who may bidAnyoneAny signed-in account, with the membership pass this site signs for itMembers holding a dregg credential, bound to the spend
How oftenn/aOnce per room, per accountOnce per room, per member, unlinkable across rooms
Is the bid amount hidden?YesYes, until bidding closesYes
Is the bidder hidden?No: bids come from fresh addresses, but timing can link a lender to its bid (below)No: anyone can see who bid, how many, and whenYes, among the pool's members

Loan rooms#

A loan room is a private auction for one loan. The borrower names the loan; lender agents bid a rate without seeing each other's bids; after bidding closes, only the borrower can open the bids, and settles the one it picks.

The four steps#

1. Open

The borrower escrows SUI collateral and sets the amount, a rate ceiling, the term, the bid size, when bidding closes and the deadline to settle. Bidding may last up to six hours and the settle window up to six more, because the collateral sits in escrow until settle, decline or refund. The room's terms are public.

2. Commit

A lender agent does two things for each bid.

  • Consent — in its own treasury, with its AgentCap, it records a digest of the room, the rate and a random salt. Without this consent no one can open a loan against its treasury at that rate, even one inside its mandate.
  • Bid — from a fresh address, it places a fixed-length ciphertext of {rate, salt, treasury, cap}, encrypted with Seal, plus a commitment to the same values. No money and no bond moves.

Every bid writes an object of the same size, so the gas a bid pays reveals nothing about it.

3. Open the bids

Seal's key servers release the keys for a room's bids only after bidding has closed, and only to the room's borrower. On testnet the bids are encrypted to two key servers with a threshold of two.

The bids are opened in the borrower's browser with the borrower's own passkey; the server only passes the ciphertext along and never asks for the keys.

4. Settle

The borrower proves the opening of one bid. The room checks it against the commitment, spends that lender's consent and fills the loan through the lender's live mandate. If the mandate refuses — the lender spent its budget in another room, or was revoked — the whole call aborts and the borrower settles the next bid. Settle must happen after close and before the settle deadline, at a rate within the ceiling.

Only the winning rate is written on chain.

Other exits#

  • Decline — the borrower may close the room at any time while it is open and take the collateral back, at no cost; no lender has moved capital.
  • Refund — once the settle deadline passes, anyone may return the collateral to the borrower.

Lifecycle#

  • open (0) — taking bids until close, then waiting for the borrower to settle.
  • settled (1) — a loan was opened at the chosen bid.
  • declined (2) — the borrower closed it.
  • refunded (3) — the settle deadline passed and the collateral went back.

The API splits open into three phases: bidding, open-bids (closed, waiting for a settle) and refundable.

A lender can restrict its agent to sealed rooms only, so its money is never lent from an open offer.

What stays private, and what does not#

Until close, no one but the bidder can read a bid's rate, and its sending address is a fresh one rather than the lender's. Some information is visible by design:

  • The borrower sees every bid after close, including the losing rates. All bids in a room are encrypted to one identity, so the key the borrower receives opens them all.
  • Consent timing can link a lender to a room. The consent is signed with the lender's own AgentCap, just before its bid is placed.
  • The number of bids and each bid's sending address are public. Bids come from fresh addresses.
  • The operator pays the gas for both the consent and the bid.
  • Bids carry no bond.
  • The winning rate is public once the room settles.

Sale rooms#

Open on testnet. Sale rooms run on Sui testnet with test money, in package 0x48db0307be9b6aadbf9f29c28561e1b450348ab2786ea4853a8d7249c22979a1, with bids sealed to three key servers, any two of which can open them. A bid needs a membership pass, which this site signs for your account's address when you sign in with a passkey or a wallet. A room that takes shielded bids only is listed here, but its bids go through the private pool, not this page.

A sale room sells one item to the highest sealed bid. Nobody opens the bids, not the seller, not the other bidders, not us. The contract opens them itself when bidding ends and picks the winner. A person never does.

The steps below describe the room in package 0x48db0307be9b6aadbf9f29c28561e1b450348ab2786ea4853a8d7249c22979a1. A second package, 0xeeacf6d88596fedfdcd66cc6510c3c84e08d249bdb1d2b956f3c931a33feb714, settles with a proof instead of opening the bids; see Settlement with a proof.

The steps#

  1. Open. The seller puts the item into the room and sets a public minimum price, a ceiling, the most bids the room takes (up to 50; up to 16 in the proved-settlement package) and when bidding closes. The item can be anything on Sui that can be transferred freely.
  2. Bid. A member encrypts a price in their browser and sends it with a deposit of exactly the ceiling. Every bid locks the same amount, so the money on chain tells you nothing about the bid. A member may bid once per room.
  3. Finish. After bidding closes, the seller finishes the room. The finish fetches the keys for the room's bids from the key servers, and the contract opens every bid itself. The highest bid between the minimum price and the ceiling wins; on equal bids, the earlier one wins. The seller pays the gas, and it grows with the number of bids: on 2026-10-30 a finish with 2 bids cost 66,574,433 MIST, about 0.067 SUI (33HKQkbi…j8or).
  4. Settle. In the same call, the winner's bid goes to the seller and the item goes to the winner. The winner gets the rest of its deposit back; everyone else gets all of theirs back. If no bid counts, the item goes back to the seller. If the seller called set_seller_note first, the price is inserted into the shielded pool as a note. Otherwise it is paid to the seller's address.

Other exits#

  • Cancel — the seller can take the item back while the room is open, but only if nobody has bid.
  • End and return everything — if nobody finishes the room within its finish window (30 minutes for a room opened on this site), anyone can end it: every deposit goes back to its bidder and the item to the seller. Expiry does not open the bids, so the prices stay sealed. A shielded deposit comes back into the pool when anyone collects it.

Membership#

To bid you need a membership pass. This site signs one for any signed-in account, for that account's own address. It cannot be passed to another account: the membership is tied to the address that sends the bid, so one account bids once in a room. Sign-up is open, though, so one person with many accounts can bid once from each, up to the room's bid limit, and fill its slots. Each of those bids still locks the full ceiling until the room ends, and every deposit comes back, less the price if it wins.

Containers#

Some items are containers: the key to a whole kiosk, for example. Selling one hands over everything inside it. Containers are allowed, and the room says plainly when an item is one and may hold other things.

What stays hidden, and what does not#

  • The bid amount is hidden until bidding closes. The key servers refuse the keys before the close, to everyone.
  • The bidder is not hidden. Anyone can see which account bid, how many bids came in, and when. Bids are not anonymous.
  • After the close, every amount can be read. Once bidding has closed, the key servers give the room's keys to the seller, and the finish posts them on chain, so the losing amounts become readable too. In the proved-settlement package the losing bids stay sealed: only the winner and the winning price reach the chain.
  • The winner and the price are public. The item moves to the winner on chain.
  • It depends on outside key servers. Opening the bids needs any two of the three testnet key servers the room names. If two are down, the room cannot finish; the sale simply does not happen, and once the finish window passes, everything goes back to everyone.

Settlement with a proof#

The sale-room package 0xeeacf6d88596fedfdcd66cc6510c3c84e08d249bdb1d2b956f3c931a33feb714 keeps the losing bids sealed after the close. It differs from the steps above in four places.

  • Open. A room takes up to 16 bids, the number of slots in the settlement circuit.
  • Finish. After the close, the seller finishes with a Groth16 proof over every bid's commitment. The chain verifies the proof and pays out; no bid plaintext and no key reaches the chain.
  • What is recorded. The winner and the winning price. The losing bids and their prices stay sealed.
  • Claim. A winner who bid from an address gets the item and its change at the finish. A winner who bid from the shielded pool committed to a claim address in its bid, and claims the item and the change there with the salt from that commitment. Every other bidder gets its deposit back.

The private loan room has the same proved settlement in package 0x5e2dbc14e6687bb550e2f69fcdd328c21b252fdcf9c9dddce0f8aa33f37e9050: the borrower settles with a proof over up to 16 sealed offers, and only the winning rate is revealed. Both packages are listed in Network and GET /v1/private/config (saleRoomV2, privateLoanV2).

On testnet#

A room with three bids from three members finished at 838, the highest of the three: HL5XY9Y5…Lq3A. A second bid from the same member was refused.

Sale room: a private bidStatic diagram · Open full size ↗
Sale room: a private bidDeposit, prove a dregg credential, seal the price, and let the relayer submit pool_bid. Finish carries a Groth16 proof. Only the winner and the winning price reach the chain. Losing bids stay sealed.DepositMember puts coinsinto ShieldedPool<C>STEP 1Prove membershipdregg credential, boundto the spend's n0STEP 2Seal the bidPrice encrypted withSeal in the browserSTEP 3Relayer submitspool_bid, not from themember's addressSTEP 4Prove the winnerGroth16 over the bidsonly winner and pricereach the chainSTEP 5Claim or refundWinner claims the item;others get theirdeposit backSTEP 6
Scroll sideways to see the whole diagram.
Deposit, prove membership, seal the price, and bid through the relayer. Finish carries a proof. Only the winner and the winning price reach the chain.Source: docs/concepts/private-rooms.md · docs/concepts/sealed-rooms.md

The shielded pool#

An open room shows which account bid. The shielded pool lets a member put money in once, then bid from it without the bid being traceable back to them: a relayer submits the proof, so the bidder's own address never appears on chain. There is one pool per coin, for Sui Dollar (USDsui), USDC and SUI. Each bid carries a dregg membership credential bound to the spend's nullifier, so a member bids once per room and, in PUBLIC, two rooms cannot link the same member. The winner is public, because the item moves to them, and privacy grows with the crowd of members.

The same pool funds the lender's side of the private loan room. See Private rooms for both rooms, the access stages and the testnet runs.