FrameCash

Private eCash on EIP-8141: the pool sends your payment and pays its gas.

FrameCash

Created At

ETHGlobal Mumbai

Project Description

framecash is a Chaumian eCash wallet in which the pool contract, not the user, sends every payment.

You deposit ETH from any wallet with a set of blinded points. A mint, running as a Chainlink CRE workflow, blind-signs them, and you unblind them into notes that nobody can link to the deposit. To pay, you send one EIP-8141 frame transaction whose sender is the pool. Its VERIFY frame checks the mint's BLS12-381 signature on chain, checks that the note key signed this exact transaction, and approves paying the gas from the note. The SENDER frame pays the payee and turns the rest into change, which the mint signs back into fresh notes. There is no relayer, and no fresh address ever needs funding.

The note's nonce key is its nullifier: the protocol consumes it when the pool approves, so a note can't be spent twice. Validation reads no storage that payments write, so pending payments never invalidate each other.

All of the wallet's traffic goes through Anon-RPC over the Nox mixnet: reads, deposits, the spent check, and the payment itself. The RPC node and the alt mempool never see the user's IP next to a payment.

Running on the EIP-8141 devnet (chain 1337). The browser app paid 0x8c7be807d1fc76e69a1b9b856d94aee26996b80c62a1990381a25b246d8f0410 (block 11030), with the pool as payer and 43 RPC calls, all via Nox.

How it's Made

  • Contract (Solidity, Foundry). FramePool combines teecash's blind-mint deposit and announce logic with a new pay path. Solidity can't emit the frame opcodes (APPROVE, TXPARAM, SIGPARAM, FRAMEPARAM, FRAMEDATACOPY), so the pool deploys raw-bytecode helpers of a few bytes each and calls them: APPROVE by delegatecall, the reads by staticcall.
  • Gas. VERIFY costs 317k gas: hash-to-G2 and a pairing on the EIP-2537 precompiles, plus introspection. That is over the canonical 100k cap. The pool stakes itself in the ERC-8421 registry from its constructor, and the Skandha alt mempool admits it.
  • Nullifier. The devnet doesn't support EIP-8250's single-use form, and we found that a consumed key can be reused at sequence 1. So the pool accepts only sequence 0.
  • Mint. A Chainlink CRE workflow in Go: a log trigger, blind signing in the confidential handler, and WriteReport back to the pool. CRE has no forwarder on chain 1337, so we declared it under the CLI's experimental-chains setting with a forwarder of our own. The workflow also mints change deposits emitted from inside frame transactions, live.
  • Client (TypeScript). Seed-derived note keys and blinding factors, so a new device restores every note from the seed and a chain scan. A frame-tx codec, and a browser app on @anon-rpc/browser-harness.
  • Anon-RPC. Nox is the default route. Nym drops the content-type header that Skandha requires, and the tor-js demo gateway was down. We documented both.
  • Tests. 22 forge tests, with BLS vectors produced by the TypeScript code over FFI, plus TypeScript and Go tests. Each feasibility question has a probe with its result in research/.
background image mobile

Join the mailing list

Get the latest news and updates

FrameCash | ETHGlobal