What Is Tornado Cash Crypto and How It Works Under the Hood

Where Is Bitcoin Mined and What Mining Really Means

Tornado Cash is an open-source, non-custodial privacy protocol deployed on Ethereum and several other EVM chains. Its function is narrow: sever the on-chain link between the address that sends funds in and the address that receives them out. No operator holds custody. Deposits sit in an immutable smart contract, one pool per fixed denomination, and withdrawals are authorized by a zero-knowledge proof that vouches the spender deposited at some point without revealing which deposit was theirs.

The mechanics matter because they explain the protocol’s limits. Once you see what the contract actually stores and what the proof actually attests, you understand why amounts are locked at fixed sizes, why privacy degrades in thin pools, and why regulators struggled to fit a set of unchangeable contracts into a framework built for service providers.

Why ordinary Ethereum transactions are linkable

Ethereum keeps a permanent, publicly queryable record of every transfer, and addresses cluster into recognizable behavior: DEX trading, NFT activity, exchange interactions. Analytics firms build graphs from these patterns and anchor clusters to real identities wherever a single KYC’d transaction touches them, then trace value hop by hop from that anchor. A mixer breaks the edge in that graph. Where custodial mixers rely on an operator shuffling funds — and on trusting that operator not to keep records — Tornado Cash replaces the operator with cryptography and code that nobody can change or pause.

What is tornado cash crypto? Follow one deposit through the contract

Start with a deposit into one of the mainnet pools, which accept 0.1, 1, 10, or 100 ETH. The client software generates two random 32-byte values: a secret and a nullifier. Hashing them together produces a commitment, and the commitment — not the secret — is what gets submitted to the contract alongside the ETH. The contract appends that commitment as a new leaf in a Merkle tree it maintains and emits an event recording it. The interface then hands the depositor a “note”: a text string encoding the secret and nullifier. Nothing on-chain records those values, so the note is the sole access credential — effectively the money itself.

The Merkle structure keeps later verification cheap. The contract only tracks the tree’s root; every leaf is recoverable from the deposit events, so any client can reconstruct the full tree. A withdrawal must prove that the spender’s secret corresponds to a leaf under a root the contract recognizes, without the contract ever seeing the leaf.

The zero-knowledge proof that authorizes a withdrawal

Withdrawal uses a Groth16 zk-SNARK. The proven statement is compact: I know a secret and nullifier whose hash exists somewhere in the Merkle tree with root R, and here is the hash of my nullifier, N. The proof reveals neither the leaf, its position, nor the underlying values. The contract verifies the proof, confirms R is among the recent roots it stores (a rolling window of thirty in the reference implementation), and confirms N has never appeared before. It then marks N as spent and transfers one fixed denomination to whatever recipient address the caller supplied.

Two details are easy to miss. The published nullifier hash uses a Pedersen hash while the commitment used keccak256, so an observer cannot derive the nullifier from a public deposit. And the proof binds the recipient address, which is why nobody — including a third party submitting the transaction — can redirect someone else’s withdrawal. The circuits required a trusted setup, which Tornado Cash ran as a public multi-party ceremony with over a thousand contributions; security holds as long as at least one participant destroyed their randomness.

Fixed denominations, anonymity sets, and the relayer workaround

Fixed amounts exist because transfer size is the strongest fingerprint an analyst has. If deposits and withdrawals could be any size, matching them one-to-one by amount would be trivial. Every pool therefore enforces a single denomination, and every withdrawal in that pool is the same size as every deposit. Privacy comes from the anonymity set: everyone who deposited that denomination and has not yet withdrawn. A pool with thousands of deposits gives each withdrawal thousands of possible sources; a pool with a few dozen gives statistical cover only until timing analysis closes in. The later “Nova” pool added support for custom amounts, at the cost of splitting liquidity across more configurations.

Gas payment is its own leak. If the withdrawal’s gas comes from the depositing address, the transaction alone re-links the two. Relayers exist to break this: a third party submits the withdrawal and takes a fee, set by each relayer, out of the withdrawn funds. Relayers cannot steal because the proof already fixes the recipient, but they can refuse to submit, and they do observe the nullifier and the destination.

What an observer sees at each step

On-chain, a deposit is just an amount entering the pool plus an opaque commitment; a withdrawal is a proof, a nullifier hash, a root, and a recipient. The table contrasts the two transactions and shows where analytical pressure actually lands.

Deposit transaction Withdrawal transaction
Funds move from user wallet into the pool contract Funds move from the pool contract to the recipient address
One fixed denomination Same denomination, minus any relayer fee
A keccak256 commitment hash A nullifier hash plus a Groth16 proof
Stays hidden: secret, nullifier, leaf position Stays hidden: which deposit the funds came from
Analysts attack: timing correlation with later withdrawals Analysts attack: address freshness and downstream destination

Since the protocol’s own artifacts carry no usable link, the exploitable surface is everything around them: time gaps between deposit and withdrawal, address hygiene, and where the funds finally surface — most decisively at a KYC exchange.

Sanctions, prosecutions, and the March 2025 delisting

In August 2022 the US Treasury’s OFAC added Tornado Cash’s contract addresses to its sanctions list, the first time code rather than a person or entity was designated, and froze the USDC held in the pools. Prosecutors also pursued individuals: developer Alexey Pertsev was convicted of money laundering in the Netherlands in 2024, and co-founder Roman Storm stood trial in the United States in 2025. Readers who want the plain-language version of the subject rather than the contract internals can find a direct answer to what is tornado cash crypto in the crypto FAQ archive on this site.

The legal logic eventually shifted. In Van Loon v. Treasury, the Fifth Circuit ruled in November 2024 that immutable smart contracts are not the kind of property OFAC can designate, and the Treasury removed the sanctions in March 2025. Through the entire episode the pools kept working, because there was no admin key to enforce anything. That was demonstrated again in May 2023, when an attacker exploited a flawed governance proposal to seize control of the DAO’s voting — yet could not touch the immutable mixer contracts holding the funds, since they had no upgrade path.

What the mechanics mean in practice

Three conclusions follow from the design. First, the privacy is inherited, not owned: your anonymity equals the size and behavior of the pool’s anonymity set, so a thinly used 100 ETH pool protects far less than its denomination suggests. Second, the note is the money — there is no account to recover and no administrator to appeal to, so a lost note means lost funds and a leaked note means someone else withdraws them, which is why notes belong offline. Third, immutability cuts both ways: nobody can freeze or drain the pools, and nobody can correct a mistake or honor a court order either, which is precisely why the sanctions fight resolved the way it did. Anyone examining a withdrawal directly can read its inputs — the Merkle root, nullifier hash, recipient, and fee — and the meaningful risk questions are pool size, timing, and downstream destination, not the cryptography itself.