Onchain privacy is the ability to use a blockchain without publishing who you are, who you pay, how much you send, or what you hold. Most public blockchains, including Bitcoin, Ethereum and Solana, are transparent by default, so privacy has to be added with cryptography such as zero-knowledge proofs, stealth addresses, coinjoin or confidential computing.
This guide explains what leaks on a public ledger, the main ways projects hide it, and the trade-offs each approach makes. It is the starting point for the rest of the Privacy3 learn section.
Why public blockchains are not private
A blockchain works because everyone can verify every transaction. That same property makes it a permanent, searchable record of financial activity. Addresses are pseudonyms, not identities, but pseudonyms break easily:
- Exchange records. Buying crypto on a regulated exchange ties your identity to the withdrawal address. Everything that address touches afterwards can be traced.
- Names and social links. An ENS or SNS name, a donation address in a social profile, or an NFT shown in an avatar connects an address to a person.
- Clustering heuristics. Analytics firms group addresses that are likely controlled by one owner, for example Bitcoin inputs spent together or Ethereum accounts funded from the same source.
- Counterparties. Anyone you pay, and anyone who pays you, learns an address of yours and can read its balance and history.
The result is that a single link often exposes salary, savings, trading strategy, business suppliers and donations at once. Privacy here is not about hiding wrongdoing. It is the same baseline confidentiality people expect from a bank account.
What onchain privacy protects
Privacy tools differ in which fields they hide. Before choosing one, it helps to know what is visible by default.
| Data | Visible on a transparent chain? | Tools that can hide it |
|---|---|---|
| Sender address | Yes | Shielded pools, privacy chains, coinjoin |
| Recipient address | Yes | Stealth addresses, shielded pools, privacy chains |
| Amount | Yes | Shielded pools, confidential tokens, privacy chains |
| Token type | Yes | Multi-asset shielded pools (e.g. Railgun), Aztec |
| Balances | Yes | Shielded pools, confidential tokens, FHE and MPC apps |
| Contract state and logic inputs | Yes | Aztec private functions, MPC, FHE and TEE networks |
| IP address and timing | Seen by RPC providers and nodes | Tor, mixnets, private RPC, relayers |
Three terms come up often. Anonymity hides who took part. Confidentiality hides amounts or data but not the parties. Unlinkability means two actions, such as a deposit and a withdrawal, cannot be tied together. Solana’s Token-2022 Confidential Balances are a good example of confidentiality without anonymity: Solana’s own documentation states that amounts and balances are encrypted, while account addresses and owners stay public.
The main approaches
Privacy blockchains
Some networks are private at the base layer. Zcash uses zk-SNARK shielded pools, Monero combines one-time stealth addresses, ring signatures and confidential amounts, and Aztec is an Ethereum layer 2 where contracts have private functions that run and are proven on the user’s device. The advantage is that privacy is the default for everyone using the chain. The cost is that you leave the liquidity and apps of the larger chains.
Shielded pools on existing chains
A shielded pool is a smart contract that holds deposits and tracks ownership through encrypted notes in a Merkle tree. To spend, a user submits a zero-knowledge proof that they own an unspent note, without revealing which one. Railgun does this on Ethereum, Arbitrum, Polygon and BNB Chain, Privacy Pools on Ethereum and other chains, and Privacy Cash and Turbine Cash on Solana. See private transactions on Ethereum and private transactions on Solana for details.
Stealth addresses
A stealth address scheme lets a recipient publish one public identifier while every payment lands at a fresh, unlinkable address. Ethereum standardised this in ERC-5564, and Bitcoin’s version is silent payments (BIP-352). Stealth addresses hide the recipient but not the amount or the sender. Stealth addresses explained covers the mechanism.
CoinJoin
On Bitcoin, coinjoin combines inputs from many users into one transaction with equal-sized outputs, so observers cannot tell which output belongs to whom. It needs coordination and works best with many participants. The Bitcoin privacy guide covers current options.
Confidential computing
Hiding a transfer is different from running a whole application on private data, such as a sealed-bid auction or a lending market with hidden positions. That needs multi-party computation (MPC), fully homomorphic encryption (FHE) or trusted execution environments (TEEs). Projects such as Arcium, Zama, Secret Network and Phala Network take these routes. The comparison in ZK vs MPC vs FHE vs TEE explains the trust model of each.
Network-level privacy
Even a perfectly shielded transaction leaks your IP address to the RPC provider or node you send it through. Tor, mixnets and relayers (called broadcasters in Railgun) reduce that exposure. Network privacy is often the weakest link in practice.
Anonymity sets and why usage matters
Cryptography only hides which member of a set you are. If a pool has ten depositors, an observer has a one-in-ten guess before even looking at timing and amounts. Railgun’s documentation puts it plainly: privacy depends on the number of unique users, total value in the contracts, and how much activity happens inside the system, and common stablecoins give better cover than rare tokens.
This has practical consequences:
- New or small privacy protocols offer weak privacy regardless of their cryptography.
- Depositing an unusual amount and withdrawing the same amount soon after links the two.
- Applications that let users stay inside the private system (swaps, transfers, lending) increase the set for everyone, because fewer users need to exit right away.
Compliance-aware privacy
Since 2022, most new designs have tried to separate legitimate users from stolen funds without giving up user privacy. Common patterns include:
- Association sets. Privacy Pools lets users prove their withdrawal comes from a set of deposits approved by an Association Set Provider. Its v2 documentation describes 0xbow screening deposits, plus a public “ragequit” exit if a deposit is not approved.
- Proofs of innocence. Railgun’s Private Proofs of Innocence generate a zero-knowledge proof that shielded funds are not on lists published by providers such as Elliptic or the Chainalysis sanctions oracle. New shields wait through a one-hour standby period before they can be used beyond unshielding to the original address.
- Viewing keys and auditor keys. Zcash viewing keys, Privacy Pools receipts, and the optional auditor key on Solana Confidential Balances mints let users or issuers disclose specific activity to an accountant or regulator.
- Screening at entry and exit. Many newer Solana protocols, including Umbra, screen public addresses before funds enter or leave a private balance.
These features reduce some risks but add trust in list providers or screening operators. Read what each one can and cannot see.
Regulatory context
Laws and enforcement differ by jurisdiction and change over time. A few public facts set the context in the United States:
- The US Treasury sanctioned Tornado Cash in August 2022. On March 21, 2025, Treasury announced it had removed those sanctions.
- In August 2025 a federal jury convicted Tornado Cash developer Roman Storm on one count of conspiracy to operate an unlicensed money transmitting business and did not reach a verdict on the money laundering charge.
- In November 2025 the founders of Samourai Wallet, a Bitcoin wallet with a coinjoin service, were sentenced to five and four years in prison after pleading guilty to conspiracy to operate an unlicensed money transmitting business, according to the US Attorney’s Office for the Southern District of New York.
Many exchanges also screen deposits that come from privacy protocols. This guide is not legal advice.
How privacy usually leaks
Most de-anonymisation happens around the privacy tool, not inside it:
- Funding gas from a public address. Paying gas for a private withdrawal from your main wallet links the two. Relayers and broadcasters exist to avoid this.
- Matching amounts and timing. Withdrawing 3.27 ETH an hour after depositing 3.27 ETH defeats the pool.
- Address reuse. Sending private funds back to a known address, or reusing one Bitcoin address, rebuilds the link.
- RPC and wallet metadata. Default RPC endpoints can log IP addresses alongside the addresses you query.
- Off-chain identity. Telling a counterparty, or an exchange, where funds came from.
Where to start
Decide what you need to hide and from whom. For private payments to people, stealth addresses or a shielded wallet are usually enough. For keeping balances and trading activity out of view, use a shielded pool with a large anonymity set or a privacy chain. For applications that compute on private data, look at MPC, FHE and TEE networks and check their trust assumptions. Then browse the Privacy3 directory by category and read the trade-offs section on each listing before moving real funds.
Questions
Is Bitcoin or Ethereum anonymous?
No. Both are pseudonymous: addresses are not names, but every transaction is public and permanent. Once one address is linked to you, through an exchange, an ENS name or a payment, its whole history and its connections become readable.
What is the difference between onchain privacy and anonymity?
Anonymity means an observer cannot tell who took part in a transaction. Confidentiality means they can see who took part but not the amount or data. Onchain privacy tools offer one or both; Solana's Confidential Balances, for example, hide amounts but leave addresses public.
Are onchain privacy tools legal?
Using privacy software is legal in most jurisdictions, but rules differ by country and some services have faced enforcement. Tornado Cash was sanctioned by the US Treasury in 2022 and delisted in March 2025, and the Samourai Wallet founders were sentenced in 2025. This is not legal advice; check the rules where you live.
What is an anonymity set?
The group of users or deposits your transaction could plausibly belong to. A shielded pool with thousands of active users and common assets gives a larger anonymity set than a new pool with a handful of deposits.