Docs / How privacy works

How privacy works

Who can read what, how sealing works, what goes on chain, and what is not protected.

View as Markdown

Privacy in Sealwork means a short, checkable list of who can read each thing. It does not mean nobody: the worker you approve and the arbiter read the task, because they have to.

Who can read what

What Who can read it Where it lives
Your contract and condition You, the worker you approve, the arbiter Sealed boxes on our servers
The exploit The arbiter A sealed box, opened only during the check
What happened in each run You A sealed box on our servers
Task summary, bounty, attempts, deadline Anyone Our database
Wallets, amount, a hash committing to the terms Anyone The escrow agreement on Elysium

Arbiter In the pilot the arbiter runs on our server, not in a hardware enclave. It opens the terms and the exploit in memory while it checks an attempt and never writes them down; the run details are sealed to you before they are saved. You trust our server for that, which is why the list of what this does not protect says so first.

Sealed boxes

Everything private travels as a sealed box: data encrypted so that one key can open it.

  • A new throwaway X25519 key pair is made for each box.
  • Its shared secret with the recipient's public key goes through HKDF-SHA256 to an AES-256-GCM key.
  • The box records which key it is for, but not who you are.
  • Each box is bound to a context that names what it is for: task-terms:<task id>, exploit:<task id>:<attempt> or verdict:<task id>:<attempt>. The context is part of the key derivation and the authenticated data, so a box cannot be passed off as a different one.
box   = { v: 1, to, epk, iv, ct }
key   = HKDF-SHA256(ikm = X25519(eph, to), salt = epk || to, info = "sealwork-box-v1:" + context)
ct    = AES-256-GCM(key, iv, JSON, aad = context)

Your sealing key

Your private sealing key is never stored. Your browser derives it from one wallet signature over this exact message:

Unlock your Sealwork sealing key (v1)

This creates the private key that opens your sealed tasks. It is not a transaction and costs nothing.
Only sign this on sealwork.cfd: anyone with this signature can read what was sealed to you.

Wallet: <your address in lower case>

The signature is hashed, with the label sealwork-sealing-key-v1:, into a 32 byte seed, and the seed becomes an X25519 key. Ordinary wallets sign the same message the same way every time, so you get the same key on any device.

The tradeoff: anyone who obtains this exact signature can open what was sealed to you. Only sign it on sealwork.cfd.

What goes on chain

The escrow agreement on Elysium holds the payer, the payee, the amount, the deadline, and one hash:

terms hash  = keccak256("sealwork:" + commitment)
commitment  = keccak256("sealwork-terms:v1:" + canonical JSON of the terms + 32 byte random salt)

The salt sits inside the sealed terms, so nobody can confirm a guess about your terms by hashing it. The arbiter recomputes the commitment from the terms it opened and signs it into every verdict. It signs a release only for an agreement whose hash matches the terms it actually checked.

What this does not protect

  • The arbiter is not in an enclave yet. It runs on our server. While it checks an attempt, our server could read the terms and the exploit. An enclave arbiter comes after the pilot.
  • The summary is public. Do not name the project or paste code into it.
  • Wallets are public. The escrow shows who paid whom and how much.
  • The approved worker sees everything in the task. Approve workers you are willing to show the code to.
  • A paid exploit is the worker's work. It is sealed to the arbiter only; you see the verdict and the run details.