Private payments between banks, on a public blockchain. A live demo you run from your browser.
👉 https://hub.entethalliance.org/privateeth/
Two banks pay each other on Ethereum's Sepolia test network. Anyone watching the chain sees money go into a shared pool and come out again, but not who paid whom, or how much. A regulator holding viewing keys can still read every payment.
There is nothing to install and no server: everything runs in the web page. The privacy comes from zero-knowledge proofs, math that proves a payment is valid without revealing its details. The design is the open-source shielded pool from ethsystems/pocs, and every proof is checked on-chain.
⚠️ Testnet only. This is a research prototype with no professional audit. Use a MetaMask account that holds only Sepolia test ETH, never one with real funds. SECURITY.md explains what the site asks your wallet for.
The demo uses banks, but the pattern fits any case where companies settle on a shared ledger without showing their business to competitors:
- Payments between banks and tokenized-deposit networks
- Paying suppliers, without revealing prices or volumes to rivals
- Payroll and treasury moves that shouldn't be public
- Moving funds inside a group of companies
In every case, regulators and auditors can still read every payment through viewing keys. And only approved companies can put money in: in the demo, a compliance service approves both banks first, and the deposit proof checks that approval.
You need:
- a browser with MetaMask
- a little Sepolia test ETH. The setup page shows the exact amount, usually 0.05 ETH or less. Get it from a Sepolia faucet a day early, because faucets can be slow.
The day before, on the laptop and browser you will present from (a normal window, not a private one, because the demo is saved in this browser):
- Open https://hub.entethalliance.org/privateeth/#setup, read the safety notice and tick I understand.
- Connect MetaMask. If it is on another network, click Switch MetaMask to Sepolia.
- Fund the demo account. You confirm one transaction in MetaMask: test ETH to a demo account the page creates in your browser. The page then disconnects MetaMask.
- Deploy the contracts. About 5 minutes. This browser remembers them, so later demos skip this step.
- Create the demo session. About 2 minutes. Bank A gets 1,000 test dollars (tUSD), Bank B gets 500.
On the day:
- On the setup page, click Open the console on this screen. The page may reload once the first time.
- Wait until the top bar shows PROOF ENGINE · READY. Then click AUDIENCE QR (top right) so people can follow along on their phones.
- Press Run step six times, waiting for each step to finish (see below).
To run the story again, click Create a fresh session (about 2 minutes).
When you are completely done (not after a rehearsal), connect MetaMask again on the setup page and click Send all remaining ETH back to MetaMask. It collects what is left in the demo account, the banks and the relayer, and ends the session. No second transaction to sign.
| Step | What happens | What the public chain shows |
|---|---|---|
| 1. Bank A deposits | 1,000 tUSD goes into the pool | Bank A, 1,000 tUSD |
| 2. Bank B deposits | 500 tUSD goes into the pool | Bank B, 500 tUSD |
| 3. Bank A pays Bank B 700 | A proof is made in the browser and sent | No sender, no recipient, no amount |
| 4. Bank B withdraws | 700 tUSD leaves the pool to a new address | That address and 700 tUSD, but not where it came from |
| 5. A replay is rejected | The same withdrawal is sent again, and fails. That failure is the point: money can't be spent twice | A failed transaction |
| 6. The regulator reads it | No transaction: the console switches to "What the regulator sees" and opens the sealed notes with viewing keys | "Regulator: Bank A → Bank B · 700 tUSD (300 change)". The audience page, which has no keys, still shows nothing |
Steps 1 to 5 are real Sepolia transactions. The audience page (from the QR code) shows the same chain from the outside, the way any analyst or competitor would see it. It holds no keys and never asks for a wallet.
After step 3, the console and the audience page show "Is the payment really private?", filled in from the real transactions:
| A deposit (public on purpose) | The private payment | |
|---|---|---|
| "ERC-20 Tokens Transferred" on Etherscan | Yes: 1,000 tUSD | No, none |
| Amount visible | 1,000 tUSD | No |
| Who sent it ("From") | Bank A | Only the relayer, not the bank |
| Who received it | The shielded pool | Not on-chain |
The relayer is a shared account that submits private payments for the banks, so the bank's own address never appears.
Each column has an Open on Etherscan button, so anyone can confirm this on Etherscan itself. Example from a real run:
- a deposit: 1,000 tUSD moves, and you can see who sent it
- the private payment: no tokens move, the relayer sent it, and its data is hashes and sealed bytes of a fixed size, whatever the amount
The amount isn't hidden or redacted: the contract simply has no field for it.
Think of the pool as a vault full of identical sealed envelopes.
- Depositing puts money in the vault and gets back a sealed envelope (a note) that only its owner can open. This step is public.
- Paying swaps envelopes inside the vault. The bank proves that it owns enough and isn't spending anything twice, without showing which envelope is its own. The chain only records new sealed envelopes and "spent" tags.
- Withdrawing opens an envelope and takes money out to an address. This step is public too.
- Viewing keys let a regulator open the envelopes and read them, but not spend them.
- Two banks is a small crowd. The audience saw Bank A deposit 1,000, so "the 700 came from Bank A" is an easy guess. Privacy grows with the number of users.
- One demo account funds everything, and Etherscan shows that link.
- Testnet keys live in the presenter's browser. That's fine for test funds, not for anything real.
- One action at a time. Both banks share one relayer.
- Encryption added for the demo. The original project leaves the payment details blank in its tests, so this demo adds its own (see below).
You don't need any of this to run the demo. With Node.js 20 or newer:
npm installnpm run devEvery push to main builds the site and publishes it to GitHub Pages (.github/workflows/pages.yml).
Command-line versions of the setup also exist, for rehearsing without a browser: npm run setup (reads RPC_URL and DEPLOYER_KEY from .env, see .env.example), npm run selftest, and npm run local-a / local-b / local-regulator.
| Path | What it is |
|---|---|
web/app/setup.js |
Setup page: MetaMask funding, deployment, sessions |
web/app/console.js |
The one-screen story |
web/app/watch.js, feed.js |
Audience view and the public chain feed |
web/app/verify.js |
"Is the payment really private?" |
web/app/roles.js |
Separate Bank A, Bank B and Regulator screens |
lib/core.js |
Keys, notes, note encryption, chain scanning |
lib/actions.js, lib/deploy.js |
Deposit, pay, withdraw, replay; deployment and sessions |
contracts/src/ |
Contracts from ethsystems/pocs, with verifiers regenerated by the bb.js version that makes the proofs (5.0.0-nightly.20260324) |
web/public/circuits/ |
Compiled Noir circuits |
- Note encryption. Each note is encrypted to its owner with secp256k1 ECDH, HKDF-SHA256 and ChaCha20-Poly1305, padded to a fixed size. The original project uses a
sealringenvelope instead. - Approval. The attestation registry is checked by the deposit proof. Payments and withdrawals only move notes that came in through an approved deposit.
- Cross-origin isolation. Fast proving needs it, and GitHub Pages can't set the headers, so
web/public/coi-serviceworker.jsadds them. It reloads the page once on the first visit.
MIT licensed, by the Enterprise Ethereum Alliance. It includes code from ethsystems/pocs (MIT OR Apache-2.0). The generated verifiers in contracts/src/verifiers/ carry Barretenberg's Apache-2.0 header (see contracts/LICENSE-APACHE). coi-serviceworker and qrcode are MIT.