Docs / Verify Sealwork

Verify Sealwork

What you can check yourself, how to check it, and what you still have to trust.

View as Markdown

Sealwork asks you to trust as little as it can, and lists the rest. Everything on this page can be checked from a browser console or a short script.

Pilot The arbiter runs on our server, not in a hardware enclave. You can check which key decides, that the escrow obeys only that key, and every verdict it signs. You cannot check from outside that our server runs exactly the published code: that is the part you trust.

1. The key that decides

GET /api/arbiter returns the arbiter's public keys:

{
  "mode": "server",
  "sealingPublicKey": "<32 byte X25519 key, hex>",
  "signer": "0x...",
  "escrow": "0x...",
  "escrowArbiter": "0x...",
  "escrowMatches": true,
  "build": "<sha256 of the code that decides verdicts>",
  "chainId": 99901
}
  • sealingPublicKey is what your browser seals terms and exploits to.
  • signer signs verdicts and releases.
  • escrowArbiter is read live from the escrow contract's arbiter(). It is fixed at deploy: nobody, us included, can change it.

Check it yourself on chain: call arbiter() on the escrow (0xbe6d931f0461e801a4e97cc1f6fc9084e64bc0e1) and compare it with signer.

2. The escrow obeys only that key

The escrow contract has no owner and no admin function. It releases a bounty only with an EIP-712 signature from arbiter():

domain  = { name: "Sealwork Escrow", version: "1", chainId: 99901, verifyingContract: <escrow> }
Release(uint256 agreementId, bytes32 termsHash, address payee, uint256 amount)

So the money can go to the worker you approved, or back to you after the deadline, and nowhere else. Read the contract on the explorer before you lock anything.

3. Every verdict is signed

Each attempt on a task page shows the verdict, the exploit's hash and the arbiter's signature over:

domain  = { name: "Sealwork Arbiter", version: "1", chainId: 99901 }
Verdict(string task, uint256 attempt, bytes32 commitment, bytes32 exploitHash, string verdict)

With viem:

import { verifyTypedData } from "viem";

await verifyTypedData({
  address: signer,
  domain: { name: "Sealwork Arbiter", version: "1", chainId: 99901 },
  types: { Verdict: [
    { name: "task", type: "string" }, { name: "attempt", type: "uint256" },
    { name: "commitment", type: "bytes32" }, { name: "exploitHash", type: "bytes32" },
    { name: "verdict", type: "string" },
  ] },
  primaryType: "Verdict",
  message: { task, attempt, commitment, exploitHash, verdict },
});

The commitment is the task's public commitment hash. As the requester you can also recompute it from the terms you sealed (How privacy works), so a verdict cannot be about terms other than yours.

4. The run details are yours

The details of each run (compiler, gas, the condition before and after, the log) are sealed to your key before they are saved. Open verdict details on the task page opens them in your browser.

5. The runner is the same in your browser

Check in browser on the post form and on the task page runs the arbiter's own runner in your browser (the same Solidity compilers and the same EVM steps), so you can see what the arbiter will see before you seal or submit.

What you trust

  • Our server while it checks. It opens the terms and the exploit in memory during a check. It could, in principle, read them. The build hash names the code we say runs; you cannot attest it from outside.
  • The arbiter key stays ours. If it leaked, someone could sign releases for locked agreements. Bounties are capped at 50 USDC by the contract for this reason.
  • The escrow is unaudited. Read it, and keep bounties small.