Atmos RPC

Private, verified, anonymous Ethereum RPC over Nym, fast enough to be the default

Atmos RPC

Created At

ETHGlobal Mumbai

Winner of

Ethereum Foundation

Ethereum Foundation - Best Use of Anon-RPC 2nd place

Project Description

Every RPC call a wallet makes shows the provider the user's IP address and the accounts they look up, and the wallet trusts whatever comes back. anon-rpc, the Ethereum Foundation standard, hides the IP by sending a wallet's calls through an anonymity network such as Nym, from a sandboxed, hash-pinned worker. On its own, that path is slow when a page loads, can trust a route that is already dead, and still believes the provider and the network exit.

Atmos RPC is a client layer on top of anon-rpc that makes the anonymous path faster, verified and more private:

  1. Faster. When a page loads, a burst of 10 reads finishes 5.5–6.6× faster than with stock anon-rpc (2.7–3.6 s against 14.7–22.0 s), and the slowest calls are 3–5× faster. A typical single call is 1.2–1.7× faster.
  2. Verified. A beacon light client gives a verified head, and balances, nonces, code, storage, eth_call results and receipts are checked against it. A lying provider or exit can cause a failure, never a wrong answer.
  3. Private. The provider sees a Nym exit, not your IP, and routes rotate about every 10 minutes. An optional constant-rate schedule hides when the wallet is busy.
  4. Easy to use. An SDK gives apps a standard EIP-1193 provider, and a one-line install gives MetaMask a plain local RPC URL.

The weak spot: the first answer takes 17–71 s, against 16–33 s for stock anon-rpc. Atmos runs on Sepolia only for now, and it is unaudited research code.

How it's Made

We built Atmos in JavaScript in four parts, all around Nym's anon-rpc worker, which we never modify.

  • Routing client. We choose routes from Nym's public performance data and trust a route only after a probe call succeeds through it. A warm standby route takes over on failure. Calls to a provider leave as JSON-RPC batches. A pinned specifier means booting makes no clear-net RPC calls.
  • Verifier. A beacon light client checks sync-committee BLS signatures with noble, covering the Electra and Gloas layouts, and gets a verified head from the Lodestar beacon API. Balances, nonces, code and storage are checked with eth_getProof against its state root, using ethereumjs's MPT. eth_call runs in a local ethereumjs EVM on proven state. Receipts are checked by rebuilding the receipts trie, and eth_blockNumber is answered from the verified head in 0 ms. estimateGas and a block's transaction list are partly proven. Every other method passes through unchecked and is counted.
  • SDK and host. createAtmos() returns an EIP-1193 provider for the browser and Node. The local host serves it to MetaMask at http://127.0.0.1:8545/11155111, using publicnode and tenderly as keyless RPCs.
  • Node harness. Our fork of anon-rpc's Node harness runs the Nym worker in a V8 isolate with isolated-vm, so no browser is needed.

Partner technologies:

  • Nym provides the mixnet, so the provider sees a Nym exit instead of the user.
  • anon-rpc provides the sandboxed, hash-pinned worker, so Atmos never handles the user's network identity itself.

The hacky parts:

  • The 10 MB Nym wasm worker runs under isolated-vm with a synchronous WebAssembly shim, because async instantiate never resolves there.
  • A Blob-send bug in our WebSocket bridge silently broke the Nym IPR handshakes. We found it by comparing frames against a Chromium run.
  • An audit of the harness fork found and fixed a redirect allowlist bypass, a WebSocket flood, lost frames, and a getRandomValues partial-fill weakness inherited from upstream (reported privately to the author). In the verifier, the audit fixed trust in provider-supplied block hashes, and a wrong blob fee and BLOCKHASH in the EVM.
  • An experimental EIP-7928 mode keeps proven accounts current from verified per-block access lists, so repeat reads name nothing to a provider. It works only while it keeps pace with the chain, which it did in some sessions and not others.
background image mobile

Join the mailing list

Get the latest news and updates

Atmos RPC | ETHGlobal