Ethereum & L2s
Shielded Token
Private ERC-20 transfers on EVM chains with Noir circuits and UltraHonk proofs.
Overview
A shielded token system where transfers inside the pool hide sender, receiver and amount. Notes are commitments in an on-chain Merkle tree, spends are authorised by zero-knowledge proofs, nullifiers stop double spends, and recipients find their notes by decrypting payloads with viewing keys.
The problem
ERC-20 balances and transfers are public forever. Payroll, treasury moves and supplier payments leak to anyone with an explorer.
What I built
- Two deployment patterns sharing one proof model: a monolithic ShieldedToken and a multi-token ShieldedERC20Pool for allowlisted ERC-20s
- A Noir transfer circuit, a Solidity UltraHonk verifier, an incremental Merkle tree and a nullifier set
- Routed encrypted note discovery (channel and subchannel) so recipients scan only what concerns them
- A relayer that submits shielded transfers so the sender's wallet never appears on-chain
- End-to-end scripts for local Hardhat, Sepolia and Arbitrum Sepolia, plus Base support, a faucet and a wallet extension
Decisions
UltraHonk over Groth16
I compared both. UltraHonk needs no per-circuit trusted setup and fits the Barretenberg toolchain the circuits already use.
Bind the proof to the token
The circuit takes the token's address as a field, so a proof for one token can never be replayed against another.
More screens

How it flows
ArchitectureLive
Shielded Token
01Deposit ERC-20
02Note commitment
03Noir proof
04Relayer submits
05Recipient decrypts
NoirSolidityBarretenberg / bb.jsFoundryTypeScriptNode relayer
