0xpay

A privacy wallet for proof-backed payments and private blockchain reads via Anon-RPC.

0xpay

Created At

ETHGlobal Mumbai

Project Description

I built 0xPay to address two privacy leaks in a payment. An ordinary transfer can make the path from a funding wallet to a recipient easy to follow. At the same time, a wallet’s RPC provider can connect the addresses it queries with the user’s IP address.

In 0xPay, I deposit 0.1 test ETH into a payment pool and keep an encrypted note that I can back up and restore in another browser. When I pay someone, my browser proves I can spend a deposited note without identifying which deposit authorized the payment. A fresh account with zero ETH submits the transaction, while the pool covers gas and deducts the fee shown in the payment review.

Supported wallet reads go through Anon-RPC by default. If that route disconnects, the wallet stops those reads instead of silently using a direct RPC connection. There is also a wallet-free private lookup for checking an address or transaction. In our hosted devnet run, a recovered note paid 0.09614 test ETH to a fresh recipient; after reload, the note showed as spent.

The privacy boundaries are visible: deposits, recipients, payout amounts and timing remain public. The RPC endpoint still sees the content of a routed query, but does not receive that request directly from the browser’s IP.

How it's Made

I built the interface with React, TypeScript and Vite. For supported blockchain requests, it uses Ethereum Foundation’s Anon-RPC browser harness and the Nox privacy worker. The wallet encrypts payment notes in browser storage and lets users export a separate encrypted backup, so a note can be recovered in a clean browser profile.

The payment pool is a Solidity contract using a Poseidon Merkle tree. In the browser, snarkjs generates a Groth16 proof tied to the pool root, note nullifier, recipient and reviewed fee. The contract verifies the proof, prevents a note from being spent twice, sponsors gas and pays the recipient.

Payments use EIP-8141 frame transactions submitted by a fresh account with no ETH. The proof check needs more validation work than the ordinary mempool accepts. 0xPay therefore checks the exact signed transaction and sends it through the normal alternative-mempool sidecar. In the recorded devnet payment, the ordinary path rejected the transaction, the alternative mempool admitted it, and the payment was included in block 6078. Anon-RPC protects the request route; the alternative mempool makes that proof-backed payment possible.

background image mobile

Join the mailing list

Get the latest news and updates