Skip to content
MAINNET PILOT · CONTRACT REVIEW PENDING
SIDEHALL
DOCS · HOW IT WORKS · 04 / 11

What each party sees

The privacy table for the relay, invited makers, the requester and public chain observers.

SIDEHALL keeps prices and sizes away from everyone who does not need them before the trade. It is not an anonymity system: a filled trade is public on-chain.

Before a fill

ObserverLearns
RelayRequest id, requester and invited makers, deadlines, delivery and open times, envelope sizes
Invited makerIts own invitation: side, size and deadlines. Not who else was invited
RequesterEvery quote addressed to it, and which makers declined by staying silent
Uninvited makerNothing
Chain observerNothing

After a fill

The Filled event is public: requester, winning maker, side, size, gross amount, fee and quote digest. Losing quotes are never published anywhere.

How the sealing works

Envelopes use HPKE (RFC 9180) with DHKEM(X25519), HKDF-SHA256 and AES-128-GCM. The associated data binds each envelope to:

  • the message type and version,
  • the chain id and the settlement contract address,
  • the request id,
  • the recipient's address.

Change any of these, or any byte of the ciphertext, and the envelope does not open. A relay that tried to redirect an invitation to another maker, or replay it into another request, would produce envelopes that fail to decrypt.

What the relay can still do

The operator can delay or drop messages, and can see who invited whom. It cannot read or alter prices, and it cannot fill a quote: only the requester named in the quote can call fill.

Sealed envelopes are deleted 24 hours after the request's execute-by time.