/building-a-cryptocurrency:coin-privacy-featuresfrom building-a-cryptocurrency
Guides adding sender, receiver, or amount privacy to a blockchain using ring signatures, stealth addresses, and confidential transactions. Covers Monero's design including Pedersen commitments, Bulletproofs+, FCMP++, and Dandelion++.
Ships in building-a-cryptocurrency. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Part 6 of 8 of the Building a Cryptocurrency reference (plugin
building-a-cryptocurrency), covering §6 — ring signatures, stealth addresses, confidential amounts and zero-knowledge approaches. Sibling skills:coin-what-it-is-and-the-three-architectures(§1 — the replicated-state-machine definition and the Bitcoin / Ethereum / Monero reference architectures),coin-cryptographic-primitives(§2 — the hashes, signatures, key derivation and commitment schemes a chain is built from),coin-consensus-and-finality(§3 — proof of work, proof of stake, Sybil resistance, fork choice and what finality actually means),coin-building-a-utxo-chain(§4 — the UTXO ledger model, script, transaction validation and what a fork of Bitcoin actually involves),coin-building-an-account-chain(§5 — the account/world-state model, the EVM, gas, and building a chain with smart contracts),coin-networking-and-tokenomics(§7–§8 — peer-to-peer gossip and propagation, then issuance, fees, supply schedules and incentive design),coin-security-and-the-build-guide(§9–§10 — what actually loses money, and the ordered guide to building and launching a chain),Section numbers are shared across the whole set: a reference written as §N →
skillpoints into that sibling skill. This is an engineering reference, not investment, legal or tax advice — deploying a chain that handles real value carries securities, AML/KYC and consumer-protection obligations that are a question for counsel in your jurisdiction.
SCOPE AND DISCLAIMER (carried from the front of the reference). This is an engineering reference, not investment advice. Creating a cryptocurrency is a legitimate software engineering exercise with well-documented open-source reference implementations. However: deploying a cryptocurrency that handles real value carries serious legal, financial, and security responsibilities. Consult counsel regarding securities law, AML/KYC requirements, and consumer protection regulations in your jurisdiction before launching anything that distributes tokens to the public. This section in particular ends in live regulation — read the privacy trade-off below before committing to mandatory privacy.
If you want your cryptocurrency to have privacy — where sender, receiver, and amount are hidden — the Monero architecture is the reference implementation.
Privacy is not a feature you bolt on; it is a design decision that pervades every layer of the
protocol. Treat it as a ledger-model commitment (§4 → coin-building-a-utxo-chain), a consensus
commitment (§3 → coin-consensus-and-finality), and a networking commitment (§7 →
coin-networking-and-tokenomics) simultaneously, not as a wallet feature.
Each of the three properties needs its own mechanism. None substitutes for another.
| Hidden property | Mechanism | Verification / recognition | Principal cost |
|---|---|---|---|
| Receiver | Stealth addresses — a one-time output address derived from the published address | Only the recipient private view key can recognize the funds as theirs | Wallet must trial-decrypt every output on the chain |
| Sender | Ring signatures — the real input signed together with decoys pulled from the chain | Network verifies one of the outputs was spent, but cannot tell which | Anonymity set limited to the ring size (currently 16) |
| Amount | Confidential transactions — Pedersen commitments | Network verifies inputs + fee = outputs without seeing the actual values | Range proofs required for every committed amount |
The sender derives a one-time output address from the recipient's published address. Only the recipient's private view key can recognize funds as theirs. An outside observer cannot tell that two payments went to the same person. Since no address is ever reused on-chain, there is no "address book" to analyze.
Mechanically:
This is computationally expensive — the wallet must trial-decrypt every output on the chain — but it is the foundation of receiver privacy. Budget for it in wallet design: scan cost grows with the whole chain's output set, not with the user's own activity.
Each spent input is signed together with decoy outputs pulled from the chain. The network verifies that one of the outputs was spent (the real one), but cannot tell which.
| Sender-privacy approach | Anonymity set | Status |
|---|---|---|
| Ring signatures, ring size 16 | 1 real + 15 decoys | What Monero uses currently |
| FCMP++ full-chain membership proofs | The entire chain's output set | In development; zero-knowledge proof that an output is unspent and yours |
The ring-signature primitive itself — a group of possible signers with the actual signer hidden
among them — is catalogued in §2 → coin-cryptographic-primitives.
Amounts are hidden in Pedersen commitments. The network verifies that inputs + fee = outputs without seeing the actual values.
To prove no value is created from nothing — that committed amounts are non-negative — range proofs are required. Monero uses Bulletproofs+: compact zero-knowledge range proofs that prove each committed amount is in [0, 2^64) without revealing the amount.
Pedersen commitment: C = r*G + v*H (r = blinding, v = value, G/H = generators)
Verification: ΣC_inputs = ΣC_outputs + fee*H (homomorphic property)
Range proof: prove v ∈ [0, 2^64) without revealing v
Reading the equation above (not an additional source claim): the fee enters the balance check
explicitly as fee*H rather than as a commitment, so the homomorphic sum closes without any party
learning v.
Three layers sit outside the sender/receiver/amount triad and are part of the same design commitment:
| Layer | What it does | What it defends against |
|---|---|---|
| Dandelion++ | Transaction broadcast first propagates through a private "stem" phase over a chain of peers before flooding the network | Network-level IP-to-transaction linkage — makes it harder |
| Subaddresses | Unlimited unlinkable receive addresses from one wallet seed, so each counterparty gets a unique address | On-chain linkage between a counterparty address and your other addresses |
| RandomX PoW | A CPU-optimized proof-of-work algorithm deliberately designed so that ASICs are uneconomic | Hashpower centralization — keeps mining decentralized on commodity hardware |
Dandelion++ is a networking-layer decision; the gossip and propagation mechanics it modifies are in
§7 → coin-networking-and-tokenomics. RandomX as a proof-of-work choice is in §3 →
coin-consensus-and-finality.
Mandatory privacy (Monero's approach) means no anonymity-set fragmentation — every transaction looks the same, so the protection is uniform. But it also means the coin cannot be selectively made transparent for compliance, which is why most regulated exchanges have delisted Monero.
This is the concrete downstream cost of the transparent / optional / mandatory privacy decision that
§1 → coin-what-it-is-and-the-three-architectures lists as one of the five key design decisions.
| Decision | Consequence recorded in this section |
|---|---|
| Choose mandatory privacy | Uniform protection, no anonymity-set fragmentation; regulated-exchange delisting and EU AMLR Article 79 exposure from July 2027 |
| Choose stealth addresses | Wallet must trial-decrypt every output on the chain; no address reuse, so no on-chain address book to analyze |
| Choose ring signatures | Anonymity set is the ring size — currently 16 in Monero, 1 real plus 15 decoys — until FCMP++ replaces it with full-chain membership proofs |
| Choose confidential amounts | Every output needs a Bulletproofs+ range proof over [0, 2^64); balance is checked homomorphically with the fee added explicitly as fee*H |
| Choose RandomX | ASICs are uneconomic by design; mining stays on commodity CPU hardware |
| Choose Dandelion++ | Broadcast gains a private stem phase before flooding, raising the cost of IP-to-transaction linkage |
Bottom line: privacy is three separate mechanisms plus three supporting layers, every one of which has to be designed in from the start — and the whole package is the thing regulators, not cryptographers, will decide the fate of.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
8 skills in this plugin
/coin-building-an-account-chainUse when deciding between shipping an ERC-20 token, a new account-model chain, or an L2 rollup, and when designing or reviewing account state, EVM data locations, gas budgets, call semantics, or a fungible token contract. Covers the account world-state model, the EVM stack machine and its storage costs, the EIP-1559 gas system, the ERC-20 interface and its integration hazards. Part 5 of the Building a Cryptocurrency reference./coin-building-a-utxo-chainUse when designing or implementing a UTXO-based chain, modelling transaction inputs and outputs, writing or auditing Bitcoin Script locking and unlocking scripts, deciding which address formats a wallet or node must support, or forking Bitcoin. Covers the UTXO ledger model, block structure and chain linkage, the coinbase transaction and its maturity rule, Script validation, and the four Bitcoin address types. Part 4 of 8 of the Building a Cryptocurrency reference./coin-consensus-and-finalityUse when choosing a consensus mechanism for a new chain, sizing confirmation counts before releasing value, reasoning about 51 percent attacks and chain reorganizations, tuning difficulty retargeting, picking a proof-of-work algorithm, or deciding between probabilistic, explicit and instant finality. Covers proof of work, proof of stake, Gasper, BFT and DAG designs, slashing, nothing-at-stake and validator economics. Part 3 of 8 of the Building a Cryptocurrency reference./coin-cryptographic-primitivesUse when choosing a hash function, signature scheme, address format or key-derivation path for a chain, when building Merkle proofs or SPV inclusion checks, or when reviewing a nonce, seed-phrase or multisig design for hazards. Covers hash properties and current status, ECDSA against Schnorr, EdDSA and ring signatures, Merkle trees and the Merkle-Patricia trie, and BIP-32/39/44/380 key derivation. Part 2 of the Building a Cryptocurrency reference./coin-networking-and-tokenomicsUse when designing or debugging the peer-to-peer layer of a chain — DNS seeds, peer exchange, inv and getdata gossip, compact block relay, mempool and relay policy — or when setting issuance, supply caps, tail emission, fee markets, token distribution and the security budget. Covers the policy versus consensus distinction and the trade-offs of each distribution method. Part 7 of 8 of the Building a Cryptocurrency reference./coin-security-and-the-build-guideUse when auditing a chain or a contract for the failures that actually drain funds, choosing between an ERC-20 token, an L2 rollup and a new blockchain, picking the language, consensus, signature, wallet and explorer stack for a custom chain, or working a pre-mainnet launch checklist. Covers the 2025-2026 loss data, the design principles and key-management rules that prevent most bugs, and the three build paths with their timelines. Part 8 of 8 of the Building a Cryptocurrency reference.npx claudepluginhub the-vibey-project/vibey --plugin building-a-cryptocurrency