Privacy Coins
Monero (ring signatures, stealth addresses), Zcash (zk-SNARKs), confidential transactions, CoinJoin, and regulatory challenges.
Overview
Privacy coins implement cryptographic techniques to obscure transaction details, providing financial privacy beyond pseudonymous cryptocurrencies like Bitcoin.
Privacy Technologies
Monero (XMR)
Ring Signatures
Ring Signature Mathematics
Where:
- = key image for each participant
- = random nonce for each participant
- Real signer's key is hidden among decoys
Stealth Addresses
# Stealth address generation
def generate_stealth_address(recipient_public_spend, recipient_public_view):
# Sender generates random ephemeral keypair
ephemeral_private = random_scalar()
ephemeral_public = ephemeral_private * G
# Shared secret
shared_secret = ephemeral_private * recipient_public_view
# Stealth public key (one-time address)
stealth_public = recipient_public_spend + hash_to_curve(shared_secret)
# Only recipient can find this transaction
# Recipient scans all transactions with their view key
return ephemeral_public, stealth_public
RingCT (Ring Confidential Transactions)
| Component | Purpose | Privacy Provided |
|---|---|---|
| Ring Signatures | Hide sender | Sender anonymity |
| Stealth Addresses | Hide receiver | Receiver anonymity |
| Pedersen Commitments | Hide amounts | Amount privacy |
| Range Proofs | Prevent negative amounts | Soundness |
| Key Images | Prevent double-spending | Consensus |
Monero Transaction Structure
{
"version": 2,
"unlock_time": 0,
"vin": [
{
"key_image": "0x...",
"key_offsets": [42, 187, 531, ...],
"amount": 0
}
],
"vout": [
{
"amount": 0,
"target": {
"tag": "stealth_address",
"key": "0x..."
}
}
],
"rct_signatures": {
"type": "RingCT",
"ecdhInfo": [...],
"mgSigs": [...],
"p RangeProofs": [...]
}
}
Zcash (ZEC)
zk-SNARKs (Zero-Knowledge Succinct Non-Interactive Argument of Knowledge)
Zcash Transaction Types
| Type | Address Prefix | Privacy | Description |
|---|---|---|---|
| Transparent (t) | t1... | None | Like Bitcoin |
| Shielded (z) | zs... | Full | Complete privacy |
| Sprout (z) | zs... | Full | Legacy shielded |
| Sapling (z) | zs... | Full | Improved performance |
| Orchard (z) | zs... | Full | Halo 2 (no trusted setup) |
Shielded Pool Statistics
| Metric | Value (2024) |
|---|---|
| Shielded Supply | ~50% of ZEC |
| Shielded Transactions | ~60% of all txs |
| Orchard Pool | Growing |
| Sapling Pool | Stable |
| Transparent Pool | Declining |
Confidential Transactions
Pedersen Commitments
Where:
- = value (amount)
- = blinding factor (random)
- = generator points
Range Proofs
Prove: 0 ⤠v < 2^64
Without revealing: v
Technique: Bulletproofs
Proof Size: ~672 bytes (for 64 bits)
Verification: ~2ms
Confidential Transaction Comparison
| Implementation | Blockchain | Commitment | Range Proof |
|---|---|---|---|
| Monero (RingCT) | Monero | Pedersen | Borromean |
| Confidential Tx | Bitcoin (Liquid) | Pedersen | Borromean |
| Aztec Protocol | Ethereum | Pedersen | PLONK |
| Tornado Cash | Ethereum | Pedersen | Groth16 |
CoinJoin
How CoinJoin Works
CoinJoin Implementations
| Implementation | Blockchain | Technique | Privacy Level |
|---|---|---|---|
| JoinMarket | Bitcoin | CoinJoin | High |
| Wasabi Wallet | Bitcoin | ZeroLink | High |
| Whirlpool | Bitcoin | Mixmetrics | High |
| Tornado Cash | Ethereum | Mixer | High |
| Railgun | Ethereum | Shielded pool | High |
Regulatory Challenges
Global Regulatory Landscape
| Region | Status | Approach |
|---|---|---|
| USA | Hostile | FinCEN treats as money transmission |
| EU | MiCA | Must be identified for transactions |
| Japan | Banned | Cannot list privacy coins |
| South Korea | Delisted | Exchanges removed privacy coins |
| Australia | Restricted | AUSTRAC reporting required |
| UK | Unclear | FCA guidance pending |
Exchange Delistings
| Coin | Exchanges Delisted | Impact |
|---|---|---|
| XMR | Most major exchanges | Reduced liquidity |
| ZEC | Many exchanges | Partial impact |
| DASH | Some exchanges | Minimal impact |
| GRIN | All exchanges | Critical |
Privacy vs Compliance
| Aspect | Privacy Coins | Regulated Coins |
|---|---|---|
| User Freedom | Maximum | Limited |
| Regulatory Risk | High | Low |
| Exchange Access | Limited | Universal |
| Institutional Use | None | Growing |
| Innovation | High | Moderate |
Trade-offs
Privacy vs Scalability
| Technology | Privacy Level | Transaction Size | Verification Time |
|---|---|---|---|
| Ring Signatures | High | ~13 KB | ~100 ms |
| zk-SNARKs | Very High | ~2 KB | ~10 ms |
| CoinJoin | Medium | Variable | ~500 ms |
| Confidential Tx | High | ~5 KB | ~50 ms |
Privacy vs Usability
| Feature | High Privacy | Low Privacy |
|---|---|---|
| Setup Complexity | High | Low |
| Wallet Recovery | Difficult | Easy |
| Transaction Speed | Slower | Faster |
| Block Size | Larger | Smaller |
| User Experience | Complex | Simple |
Interview Questions
-
How do ring signatures hide the real sender among decoys?
- Answer: The real signer creates a signature that appears valid for all ring members. The mathematical construction ensures the signature is valid for the entire set, making it computationally infeasible to determine which member actually signed.
-
What is the trusted setup problem in zk-SNARKs and how does Zcash address it?
- Answer: Original SNARKs required a trusted setup ceremony to generate parameters. If compromised, fake proofs could be created. Zcash's Sapling upgrade uses a multi-party computation ceremony, and Halo 2 eliminates trusted setup entirely.
-
How does Tornado Cash differ from CoinJoin in terms of privacy guarantees?
- Answer: Tornado Cash uses a smart contract mixer with fixed denomination pools and Merkle trees, providing stronger privacy guarantees but requiring trust in the contract. CoinJoin is trustless but vulnerable to amount correlation and Sybil attacks.
Quiz Questions
-
What does RingCT stand for in Monero?
- A) Ring Confidential Transactions â
- B) Ring Cryptographic Tokens
- C) Random Confidential Transfers
- D) Ring Chain Transactions
-
Which proof system does modern Zcash use?
- A) zk-SNARKs (Groth16)
- B) zk-STARKs
- C) Halo 2 â
- D) Bulletproofs
-
What is the main advantage of CoinJoin?
- A) Faster transactions
- B) Trustless mixing â
- C) Lower fees
- D) Higher privacy
Practice
- Implement a simple ring signature in Python
- Build a basic zk-SNARK circuit for a privacy transaction
- Analyze a Monero transaction on xmrchain.net
- Compare privacy guarantees of different CoinJoin implementations