/building-a-cryptocurrency:coin-what-it-is-and-the-three-architecturesfrom building-a-cryptocurrency
Defines blockchain fundamentals and compares Bitcoin, Ethereum, and Monero reference architectures. Covers ledger models, consensus, programmability, privacy, and supply schedules for designing a new chain.
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 1 of 8 of the Building a Cryptocurrency reference (plugin
building-a-cryptocurrency), covering §1 — the replicated-state-machine definition and the Bitcoin / Ethereum / Monero reference architectures. Sibling skills: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-privacy-features(§6 — ring signatures, stealth addresses, confidential amounts and zero-knowledge approaches),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
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 part of the reference decides supply schedules, privacy models and distribution posture. Every one of those five decisions (§1.4) has a legal surface, not just a technical one — carry the disclaimer above into any launch discussion. The whole reference covers the cryptographic primitives, consensus mechanisms, ledger models, smart contract platforms, privacy features, networking, economics, and security of cryptocurrency design, with enough detail to build your own coin in the style of Bitcoin, Ethereum, or Monero.
A cryptocurrency is a replicated state machine with Sybil-resistant leader election and a fork-choice rule, producing eventual (or explicit) agreement on an ordered log of transactions. Everything else — the token, the wallets, the smart contracts, the governance — is built on top of that foundation.
THE CORE DEFINITION
A blockchain is a replicated ledger (every node has a copy), ordered by a consensus mechanism (how everyone agrees on the next block), with Sybil resistance (making it expensive to create fake identities to take over the network), and a fork-choice rule (what happens when two valid blocks conflict). The "crypto" in cryptocurrency is the cryptographic primitives that make the ledger tamper-evident and the identities key-based rather than name-based.
The four components of that definition, and where each is developed:
| Component | What it does | Developed in |
|---|---|---|
| Replicated ledger | Every node has a copy | §4 → coin-building-a-utxo-chain, §5 → coin-building-an-account-chain |
| Consensus mechanism | How everyone agrees on the next block | §3 → coin-consensus-and-finality |
| Sybil resistance | Makes it expensive to create fake identities to take over the network | §3 → coin-consensus-and-finality |
| Fork-choice rule | What happens when two valid blocks conflict | §3 → coin-consensus-and-finality |
| Cryptographic primitives | Make the ledger tamper-evident and identities key-based rather than name-based | §2 → coin-cryptographic-primitives |
Every major cryptocurrency is a variation on one of three architectural models, and understanding them deeply is the foundation for designing your own. The table in §1.3 is the reference grid; the five questions in §1.4 are what you answer before writing a line of code.
| Property | Bitcoin ($BTC) | Ethereum ($ETH) | Monero ($XMR) |
|---|---|---|---|
| Ledger model | UTXO (unspent outputs) | Account (balances + code) | UTXO (privacy-enhanced) |
| Consensus | Proof of Work (SHA-256d) | Proof of Stake (Gasper) | Proof of Work (RandomX) |
| Finality | Probabilistic (confirmations) | Explicit (~13 min, Casper FFG) | Probabilistic (confirmations) |
| Programmability | Script (not Turing-complete) | EVM (Turing-complete) | None (no smart contracts) |
| Privacy | Pseudonymous (transparent ledger) | Pseudonymous (transparent ledger) | Mandatory privacy (hidden sender, receiver, amount) |
| Supply | Capped at ~21M | No cap (issuance schedule) | Tail emission (0.6 XMR/block forever) |
| Block time | ~10 minutes | ~12 seconds | ~2 minutes |
| Block size | ~1-4 MB (weight-limited) | Dynamic (gas limit, ~36M gas) | Dynamic (expands under demand) |
Named parameters and mechanisms in that grid, kept exactly as given: SHA-256d and RandomX as proof-of-work functions; Gasper as Ethereum's proof-of-stake consensus and Casper FFG as its finality gadget with an explicit ~13-minute finality; the EVM as the Turing-complete virtual machine; Monero's 0.6 XMR/block perpetual tail emission; Bitcoin's ~21M cap; Ethereum's ~36M gas block limit; and Bitcoin's weight-limited ~1-4 MB blocks. Two of the three architectures (Bitcoin, Monero) are UTXO chains; Monero is the privacy-enhanced variant, not a different ledger family.
Before writing a line of code, you need to answer these questions, because each one cascades into dozens of implementation decisions downstream.
1. Ledger model: UTXO or Account?
UTXO (Bitcoin) means transactions consume and create discrete outputs — parallelizable,
simpler to verify, but no persistent state. Account (Ethereum) means persistent balances
and code — enables smart contracts, but every node must re-execute every transaction.
This is the most fundamental architectural choice. (§4 → coin-building-a-utxo-chain;
§5 → coin-building-an-account-chain)
2. Consensus mechanism: PoW, PoS, or BFT?
PoW is simple, robust, and energy-intensive. PoS is energy-efficient but adds complexity
(slashing, validator management, nothing-at-stake). BFT gives instant finality but scales
poorly beyond small validator sets. The trade-off that never goes away: decentralization,
security, and scalability pull against each other, and every design picks a point on that
triangle. (§3 → coin-consensus-and-finality)
3. Programmability: none, limited script, or full VM?
No programmability (Monero) is simplest and most secure. Limited script (Bitcoin) enables
multisig, timelocks, and payment channels without the attack surface of a full VM. A full
virtual machine (Ethereum) enables arbitrary smart contracts — but every function is
callable by anyone, in any order, at any time, by attackers who read your source.
(§5 → coin-building-an-account-chain; §9 → coin-security-and-the-build-guide)
4. Privacy: transparent, optional, or mandatory?
Transparent (Bitcoin/Ethereum) is simplest and most compliant but exposes all transaction
history. Optional privacy (Zcash shielded transactions) splits the anonymity set. Mandatory
privacy (Monero) gives uniform protection but creates regulatory friction — most
regulated exchanges will delist you. (§6 → coin-privacy-features)
5. Supply: capped, scheduled, or infinite?
Capped (Bitcoin's 21M) creates scarcity but relies entirely on transaction fees for
long-term security once mining subsidies end. Scheduled issuance (Ethereum) funds
validators indefinitely. Tail emission (Monero) provides perpetual miner revenue at the cost
of permanent low inflation. (§8 → coin-networking-and-tokenomics)
Restated from §1.4 — the options and the stated consequence of each.
| Decision | Options | What each buys you | What it costs you |
|---|---|---|---|
| 1. Ledger model | UTXO (Bitcoin) | Parallelizable, simpler to verify | No persistent state |
| Account (Ethereum) | Persistent balances and code; enables smart contracts | Every node must re-execute every transaction | |
| 2. Consensus | PoW | Simple, robust | Energy-intensive |
| PoS | Energy-efficient | Complexity: slashing, validator management, nothing-at-stake | |
| BFT | Instant finality | Scales poorly beyond small validator sets | |
| 3. Programmability | None (Monero) | Simplest and most secure | No smart contracts |
| Limited script (Bitcoin) | Multisig, timelocks, payment channels, without the attack surface of a full VM | Not a full VM; no arbitrary smart contracts | |
| Full VM (Ethereum) | Arbitrary smart contracts | Every function callable by anyone, in any order, at any time, by attackers who read your source | |
| 4. Privacy | Transparent (Bitcoin/Ethereum) | Simplest and most compliant | Exposes all transaction history |
| Optional (Zcash shielded transactions) | Shielded transactions alongside transparent ones | Splits the anonymity set | |
| Mandatory (Monero) | Uniform protection | Regulatory friction; most regulated exchanges will delist you | |
| 5. Supply | Capped (Bitcoin, 21M) | Scarcity | Relies entirely on transaction fees for long-term security once mining subsidies end |
| Scheduled issuance (Ethereum) | Funds validators indefinitely | No cap | |
| Tail emission (Monero) | Perpetual miner revenue | Permanent low inflation |
coin-building-a-utxo-chain; account/EVM →
§5 → coin-building-an-account-chain; mandatory privacy → §6 → coin-privacy-features.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.npx claudepluginhub the-vibey-project/vibey --plugin building-a-cryptocurrency