EIP-8141 privacy pool paymaster: a ZK proof pays your gas, so any account can transact privately
Nainokot Wallet is a Chrome extension wallet that keeps your money private by never showing it to the apps you use. Your funds sit as private notes in a shielded privacy pool. When you connect to a site, the wallet gives it a brand-new account with zero ETH, never your funds’ address, and allows switching to a fresh account after every transaction, so a site can’t link your actions to each other or to your balance.
How the gas gets paid: every transaction is an EIP-8141 frame transaction. The wallet makes a zero-knowledge proof on your device that you own a note in the pool, and the pool acts as the paymaster. A VERIFY frame checks the proof and approves payment, your calls run as SENDER frames from the empty account, and a final DEFAULT frame marks the note’s nullifiers spent and adds a change note back to the pool. The pool has a second, pre_verify shape, where the nullifiers are marked before payment is approved. A staked payer on the alternative mempool (ERC-8421) only admits one pending transaction per (payer, nullifier), so one note can’t be used to flood the pool with double spends.
Apps get more than a payer. Through ERC-5792 wallet_sendCalls, a dapp can ask for an expiry frame (the 0x8141 verifier: the transaction is only valid until a deadline) and for atomic batches, where several calls land together or not at all. The pool can also act as the sender itself, for withdrawals to any address and for private transfers between wallets, spending two notes at once.
To show it working we built Framecaster, a small X-style app with posts, threads, replies and likes. A three-post thread is one transaction: an expiry frame, then three calls in one atomic batch, paid from the pool. The wallet’s send window shows each frame as a card you can tap, and History shows every transaction’s frames as they ran on chain.
Built with Yul and Solidity contracts, a TypeScript client, and on-device proofs, on a local chain running forshtat/ethrex (the alt mempool client). The repo includes smoke tests (frame shapes, 10 attack cases refused before the pool pays, cross-shape double spends) and a full browser end-to-end test.
Nainokot runs on EIP-8141 frame transactions, on a local chain 1337 running forshtat/ethrex, the alternative mempool (ERC-8421) client. The shielded pool is based on minimal-shielded-pool: we reuse its note format, Merkle tree, circuit and TypeScript prover, so proofs are made in the browser (about 1.4 s on a MacBook).
Contracts: the pool is a small Yul dispatcher in front of a Solidity logic contract (PrivacyPoolLogic). The dispatcher reads the whole transaction with the frame opcodes (TXPARAM, FRAMEPARAM, FRAMEDATALOAD) and decides which shape it’s in:
Sponsored: [sender VERIFY] [pool VERIFY: 288-byte proof, approves payment] [your SENDER calls] [pool DEFAULT: settle]. The pay frame reads the proof’s statement (root, nullifiers, fee, change note) straight out of the last frame’s calldata, so proof and settlement can’t be split. It also pins settle as the last frame with enough gas, and refuses already-spent nullifiers before it pays. pre_verify: a DEFAULT frame checks the proof and marks the nullifiers before the VERIFY frame approves payment, the ERC-8421 pattern for a staked payer that writes during validation. Pool as sender: for withdrawals and private transfers. The two nullifiers double as the transaction’s EIP-8250 nonce keys, so the protocol itself refuses a replay. Expiry: if frame 0 targets the 0x8141 expiry verifier, every other index shifts by one.
The wallet is a Manifest V3 Chrome extension built with esbuild. It exposes EIP-1193 and ERC-5792 (wallet_sendCalls, getCapabilities, getCallsStatus) with a privacyPaymaster capability, atomicRequired for batches, and an expiry capability. Each site gets a new key with zero ETH. The send window builds the transaction, runs a dry run, and shows each frame as a tappable card with decoded calldata.
Partner tech: EIP-8141 frames gave us payment as a verify step, so an empty account can transact with no relayer, no bundler and no 4337 EntryPoint. The alt mempool’s staking rules let the pool use 2.5M gas for validation (the proof check alone uses 250k) and touch its own storage.

