Prepaid RPC with no API key, login, or IP: buy credits, prove ownership in ZK, spend via Nox mixnet
anon-credit is an RPC gateway that takes no API key, no login, and no IP address.
Today every RPC provider hands you a key, and that key ties every request you make to your account, your card, and your IP. anon-credit replaces the key with prepaid credit batches. A customer pays 0.0001 ETH on a Sepolia contract for a batch of 100 requests. The issuer puts a commitment to that batch in an append-only Merkle Mountain Range and posts the root on chain every epoch. To use the credit, the browser makes a zero-knowledge proof that it owns one unspent batch in that tree, without saying which one, and opens a session at the gateway. Every request inside the session is signed with a fresh Ed25519 key and debited from the batch. All traffic from the browser to the gateway goes through the Nox mixnet, so the gateway sees an exit address, not yours.
What the gateway holds for a session: a batch id, a session public key, and units left. What it never holds: who paid, which leaf in the tree, or your IP. The anonymity set is the whole tree, and its size is public because the root commits to the leaf count.
It runs live on Sepolia. The customer app lets a judge buy a batch with any wallet or a key generated in the browser, watch the leaf land in the next 30 second epoch, prove in WASM in about 5 seconds, upload the proof through Nox, and send paid eth_call, eth_getBalance, and other reads. An operator dashboard shows what the gateway sees, side by side with what it does not.
The stack is Rust and TypeScript with one Noir circuit between them.
Cryptography: Poseidon2 over BN254 is implemented three times, in Rust, in TypeScript, and in Noir, and pinned by shared fixtures so all three agree bit for bit. The tree is a Merkle Mountain Range rather than a fixed-depth Merkle tree: appends never rewrite a node, a client can rebuild its path from events, and an on-chain append later costs two hashes instead of 32. The root commits to the leaf count, so the circuit learns the tree size as a public input instead of trusting the issuer.
Proving: the batch-open circuit is Noir, about 14,000 R1CS constraints, with ten public inputs. We prove with ProveKit, World's WHIR-based prover, compiled to WASM and run in the browser in hiding mode. The published ProveKit npm package was non-hiding and on old formats, so we build the WASM from a pinned commit with a small threads patch. Proving takes 3 to 6 seconds in Chrome. Verification runs in a Rust sidecar on loopback because ProveKit needs nightly Rust and the gateway stays on stable.
Transport: Nox, the Anon-RPC mixnet from the Ethereum Foundation, carries every client request. Nox refuses bodies over about 48 KB, and a proof is 318 KB, so the SDK uploads the proof as 8 raw 40 KB chunks in flight at once and the gateway reassembles them by SHA-256. Measured: 5 to 6 seconds through the live mixnet, 72 of 72 chunks accepted on the first try.
Services: the issuer indexes CreditSale purchases, appends leaves to SQLite, and posts a root to RootRegistry every epoch. The gateway verifies proofs, binds a batch to an Ed25519 session key, checks signature and sequence on every spend, debits units, and forwards to an upstream RPC. Contracts are Foundry with 38 tests. The whole flow runs in a 15-step integration harness on anvil in about 25 seconds, with the real prover in headless Chrome.
Hacky bits: Sepolia's current fork charges about 6.6 times what Foundry's local EVM estimates for contract creation, so our deploys ran out of gas until we set an 800 percent multiplier. Finality waits of 13 minutes made a 30 second epoch pointless on testnet, so a block tag setting runs the demo at latest and production at finalized.

