[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7AMHRTFGYFB74F7389E6G78":3,"skill-same:01M7AMHRTFGYFB74F7389E6G78":48},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":24,"commitSha":25,"skillDirectory":26,"forksCount":27,"repositoryHtmlUrl":28,"repositoryHomepageUrl":29,"ownerHtmlUrl":30,"ownerBlogUrl":31,"ownerDescription":32,"updatedAt":33,"install":34,"resources":47},"01M7AMHRTFGYFB74F7389E6G78","blockchain-protocol-layer",null,"Use when working on or reasoning about blockchain protocol development rather than smart contracts: what a blockchain actually is, Ethereum's post-Merge architecture (execution and consensus layers, finality, slashing), client diversity as systemic risk, node types and working with nodes, how protocol changes happen (the EIP process, recent and upcoming hard forks, the changed fee environment), the rollup model and building an L2 or app-chain, and cross-chain bridges and their failure modes. Includes the router for the whole cryptocurrency-development reference.","the-vibey-project\u002Fvibey","the-vibey-project","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F329298758?v=4","01M7AJHGZ9722CTJ4JNQZVRH0Q","the vibey project","01M7AJHGZVMG2K7TGXQ6XFHVG3",5,"MIT","https:\u002F\u002Fgithub.com\u002Fthe-vibey-project\u002Fvibey\u002Fblob\u002Fdevelop\u002Fsrc\u002Fvibey_tools\u002Fskills\u002Fplugins\u002Fcryptocurrency-development\u002Fskills\u002Fblockchain-protocol-layer\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: blockchain-protocol-layer\ndescription: \"Use when working on or reasoning about blockchain protocol development rather than smart contracts: what a blockchain actually is, Ethereum's post-Merge architecture (execution and consensus layers, finality, slashing), client diversity as systemic risk, node types and working with nodes, how protocol changes happen (the EIP process, recent and upcoming hard forks, the changed fee environment), the rollup model and building an L2 or app-chain, and cross-chain bridges and their failure modes. Includes the router for the whole cryptocurrency-development reference.\"\n---\n\n# Blockchain Development: Protocol Layer, Clients, Upgrades, L2s, and Cross-Chain\n\n> **Part 1 of 4** of the *Cryptocurrency and Blockchain Development* reference (plugin `cryptocurrency-development`), covering §0–§3 and §11–§12. Sibling skills: `blockchain-smart-contract-development` (§4–§8), `blockchain-security-testing-and-ops` (§9–§10 and §13), `blockchain-reference` (§14–§19). Section numbers are shared across the set; a reference written as §N → `skill` points into that sibling skill.\n>\n> **Currency:** Verified August 2026. See §16 → `blockchain-reference` for the currency snapshot and what goes stale first.\n\n> **How to read this.** Reference, not tutorial. Sections are independent. Three markers:\n> - **[DURABLE]** — cryptography, distributed systems, or a security lesson the industry\n>   has paid for repeatedly. Does not expire.\n> - **[VERSIONED]** — protocol state, client versions, tooling, upgrade schedules. Moving\n>   fast; verify before relying on it.\n> - **[CONTESTED]** — genuine technical or design disagreement.\n>\n> **⚠️ GOTCHA** boxes mark the mistakes that lose money irreversibly. This domain has an\n> unusually direct mapping from bug to financial loss, so those boxes carry more weight\n> here than in an ordinary engineering reference.\n>\n> **Scope note:** this is an engineering document. It covers how these systems are built\n> and how they fail. **It is not investment advice, and does not evaluate any asset as an\n> investment.**\n>\n> **The three framings that organize everything below:**\n> 1. **Deployed code is adversarial code running in public with money attached.** Every\n>    function is callable by anyone, in any order, at any time, composed with contracts\n>    that don't exist yet, by attackers who read your source and have unlimited attempts.\n>    This is a fundamentally harsher environment than ordinary software.\n> 2. **You cannot patch it.** Immutability is the point and also the problem. Upgradeability\n>    is a design decision with its own large attack surface (§6 → `blockchain-smart-contract-development`), and \"we'll fix it in the\n>    next release\" is not available to you.\n> 3. **The expensive failures are boring.** Not exotic cryptography — **access control,\n>    business logic, and stolen keys.** §10 → `blockchain-security-testing-and-ops`'s data is unambiguous on this, and it should\n>    reorder your security priorities.\n\n---\n\n## §0. Routing\n\n### 0.1 Two very different jobs\n\n**[DURABLE] \"Crypto development\" means two largely disjoint skill sets**, and conflating\nthem is the most common orientation error:\n\n| | **Protocol development** | **Application development** |\n|---|---|---|\n| You build | Clients, consensus, VMs, L2 stacks, cryptography | Smart contracts and the systems around them |\n| Languages | Go, Rust, C#, Java, Zig, Nim | Solidity, Vyper, Huff, Yul |\n| Failure mode | Chain splits, finality failures, mass slashing | Drained contracts |\n| Review culture | Multi-client testing, devnets, spec conformance | Audits, fuzzing, formal verification |\n| Sections | §1, §2, §3, §11, §12 | §4–§10 → `blockchain-smart-contract-development`, `blockchain-security-testing-and-ops`, §13 → `blockchain-security-testing-and-ops` |\n\n### 0.2 The question router\n\n| Asked about... | Go to |\n|---|---|\n| Consensus, finality, the protocol layer | §1 |\n| Ethereum clients and node operation | §2 |\n| The upgrade process, EIPs, hard forks | §3 |\n| The EVM execution model, gas, storage | §4 → `blockchain-smart-contract-development` |\n| Solidity and the contract languages | §5 → `blockchain-smart-contract-development` |\n| Contract architecture: proxies, upgrades, access control | §6 → `blockchain-smart-contract-development` |\n| Standards: ERC-20\u002F721\u002F1155\u002F4626, account abstraction | §7 → `blockchain-smart-contract-development` |\n| DeFi primitives, oracles, MEV | §8 → `blockchain-smart-contract-development` |\n| Testing: Foundry, Hardhat, fuzzing, formal verification | §9 → `blockchain-security-testing-and-ops` |\n| Security: the vulnerability canon and what actually loses money | §10 → `blockchain-security-testing-and-ops` |\n| L2s, rollups, and building a chain | §11 |\n| Cross-chain and bridges | §12 |\n| Deployment, keys, ops, indexing, frontends | §13 → `blockchain-security-testing-and-ops` |\n| Interpretability of on-chain data, analytics | §13.4 → `blockchain-security-testing-and-ops` |\n| \"Don't do this\" | §14 → `blockchain-reference` |\n| \"Which approach is better?\" | §15 → `blockchain-reference` (contested) |\n| \"Is this still current?\" | §16 → `blockchain-reference` |\n| Docs, books, people | §17 → `blockchain-reference` |\n\n---\n\n## §1. The Protocol Layer\n\n### 1.1 What a blockchain actually is\n\n**[DURABLE]** A replicated state machine with **Sybil-resistant leader election** and a\n**fork-choice rule**, producing eventual (or explicit) agreement on an ordered log.\nEverything else is engineering detail.\n\n```\nmempool → block proposer selected → block built → propagated\n  → validated by every node independently → fork choice → finality\n```\n\n**Consensus families:**\n- **Proof of Work** — Sybil resistance by burned energy. Probabilistic finality (confirmations).\n  Simple, robust, expensive. Bitcoin.\n- **Proof of Stake** — Sybil resistance by bonded capital, with **slashing** for provable\n  misbehaviour. Ethereum uses **Gasper** (LMD-GHOST fork choice + Casper FFG finality),\n  giving **explicit finality** after two epochs (~13 minutes).\n- **BFT-style** (Tendermint\u002FCometBFT, HotStuff derivatives) — instant finality, smaller\n  validator sets, liveness fails if >1\u002F3 are offline.\n- **DAG \u002F leaderless** and other designs — real, less battle-tested.\n\n**[DURABLE] The trade-off that never goes away**: decentralization, security, and\nscalability pull against each other, and every design picks a point. **Be suspicious of any\nclaim to have escaped it** — usually the escape is a validator set small enough to be a\ndistributed database with extra steps.\n\n### 1.2 Ethereum's post-Merge architecture\n\n```\n┌─────────────────────────┐        ┌──────────────────────────┐\n│ CONSENSUS CLIENT        │ Engine │ EXECUTION CLIENT         │\n│ (beacon chain, PoS)     │◄──API─►│ (EVM, state, mempool)    │\n│ Lighthouse, Prysm, Teku,│        │ Geth, Nethermind, Reth,  │\n│ Nimbus, Lodestar,       │        │ Besu, Erigon, ethrex     │\n│ Grandine                │        │                          │\n└─────────────────────────┘        └──────────────────────────┘\n```\n**[DURABLE] You must run both.** This split, formalized at The Merge (September 2022), is\nthe single most important structural fact about running Ethereum infrastructure, and it\nsurprises people who last looked before 2022.\n\n**Validator economics**: 32 ETH per validator (**EIP-7251 raised the effective max balance\nto 2048 ETH**, allowing consolidation), duties are attesting and occasionally proposing,\nand **slashing** punishes provable equivocation while **inactivity leaks** punish being\noffline during non-finality.\n\n### 1.3 Client diversity — a genuine systemic risk\n\n**[DURABLE] If one client runs a supermajority of validators, a bug in it can finalize an\ninvalid chain or cause mass slashing.** The thresholds that matter: **>1\u002F3 breaks\nfinality; >2\u002F3 can finalize a bad chain.** This is not theoretical — **Reth suffered a\nsevere network-wide outage on 2 September 2025** processing a specific block, taking down\nmost Reth nodes on mainnet; operators running a multi-client setup stayed up.\n\n**[VERSIONED]** Execution-layer diversity has genuinely improved. Geth's share has fallen\nfrom a historic ~84% to roughly **36–41%**, with **Nethermind ~23–32%**, **Reth ~14–15%**,\n**Besu ~7–12%**, and **Erigon ~2–5%** depending on the measurement source. ⚠️ **The\nsources disagree substantially** because they measure different populations (peer-visible\nnodes vs. self-reported validators vs. staking-community surveys) — one 2026 staking survey\nfound **Nethermind ~45%, Geth ~33%, Besu ~15%** within that community. **The consensus\nlayer is the bigger worry**, with Lighthouse and Prysm both large.\n\n**⚠️ If you run validators, run a minority client, and consider running more than one.**\nThis is the rare case where the socially responsible choice is also the operationally\nsafer one.\n\n---\n\n## §2. Nodes and Clients\n\n### 2.1 Node types\n\n| Type | Stores | Use |\n|---|---|---|\n| **Full node** | Current state + recent history; verifies everything | The default. What you should run |\n| **Archive node** | All historical state at every block | Analytics, indexers, `eth_call` at old blocks. **Very large** |\n| **Light client** | Headers + proofs | Mobile, embedded; the Verge roadmap's target |\n| **Validator** | Full node + consensus client + signing keys | Staking |\n\n**[VERSIONED] Reth is notably fast to sync** — substantially faster than Geth's baseline on\nequivalent NVMe hardware. **NVMe SSD is non-negotiable** for any client; spinning disks and\nmost SATA SSDs cannot keep up with state access patterns.\n\n### 2.2 Working with nodes\n\n**JSON-RPC** is the universal interface: `eth_call` (simulate, no state change),\n`eth_estimateGas`, `eth_sendRawTransaction`, `eth_getLogs` (⚠️ heavily rate-limited by\nproviders and the usual source of \"why is my indexer slow\"), `eth_getStorageAt`,\n`debug_traceTransaction` (⚠️ archive\u002Fdebug-enabled nodes only, and the most useful\ndebugging tool you have).\n\n**Libraries**: **viem** (TypeScript — the modern default, better typing and DX than its\npredecessor), **ethers.js** (still widely used), **web3.js** (legacy), **web3.py**,\n**Alloy** (Rust — the Foundry\u002FReth ecosystem's stack), **Nethereum** (.NET), **web3j** (Java).\n\n**⚠️ Running your own node vs. using a provider is a real architectural decision**, not a\npurity question. Providers (Alchemy, Infura, QuickNode, Chainstack) are operationally\nsimpler; your own node removes a trust and censorship dependency and removes rate limits.\n**Anything that must not be censorable should not depend on one provider.**\n\n---\n\n## §3. Protocol Upgrades and the EIP Process\n\n### 3.1 How changes happen\n\n```\nidea → EIP draft → ACD calls (All Core Devs, Execution + Consensus)\n  → devnets → public testnets (Sepolia, Holesky\u002FHoodi) → MAINNET FORK\n```\n**EIP tracks**: **Core** (consensus-breaking), **Networking**, **Interface**, and **ERC**\n(application-layer standards — §7 → `blockchain-smart-contract-development`). **[DURABLE] ERCs are the ones application developers\ncare about; Core EIPs are the ones that break your node if you don't upgrade.**\n\n**[DURABLE] Hard forks are coordinated flag days.** Every execution client (Geth,\nNethermind, Besu, Erigon, Reth) and every consensus client (Lighthouse, Prysm, Teku,\nNimbus, Lodestar, Grandine) ships a **mandatory release**, and **testnets always fork\nfirst** — that gap is your window to find problems while they're cheap.\n\n**⚠️ A network upgrade never requires users to \"migrate\" or \"upgrade\" their tokens.**\nBalances, addresses, and keys are unaffected. **Anyone telling holders to upgrade their ETH\nfor a fork is running a scam** — and this recurs at every single fork.\n\n### 3.2 The recent and upcoming forks\n\n**[VERSIONED]** Ethereum has settled into a roughly **twice-yearly** cadence:\n\n| Fork | Date | Headline |\n|---|---|---|\n| **The Merge** | Sept 2022 | PoW → PoS; ~99.95% energy reduction |\n| **Shapella** | Apr 2023 | Staking withdrawals |\n| **Dencun** | Mar 2024 | **EIP-4844 proto-danksharding** — blobs; cut L2 data costs ~90% |\n| **Pectra** | May 2025 | **EIP-7702** (EOAs can act like smart accounts, §7.3 → `blockchain-smart-contract-development`); **EIP-7251** validator consolidation |\n| **Fusaka** | **3 Dec 2025** | **PeerDAS** — validators sample blob data instead of downloading all of it; gas limit to ~60M |\n| **Glamsterdam** | **targeted 2026** | **EIP-7732 (ePBS)** and **EIP-7928 (Block-Level Access Lists)**; **EIP-7904** gas repricing |\n| **Hegotá** | 2027 | **FOCIL** headlining; Verkle discussed |\n\n**⚠️ Glamsterdam's date is genuinely unsettled and the sources conflict** — official\nEthereum roadmap material has listed **Q4 2026**, other coverage has said H1 2026 or \"second\nhalf of 2026,\" and developers consistently stress it depends on testnet validation.\n**Treat any specific date as provisional and check Forkcast or ethereum.org.**\n\n**Why Glamsterdam matters to builders**: **Block-Level Access Lists** declare what state a\nblock touches *before* execution, enabling **parallel transaction execution**; **ePBS**\nbrings proposer-builder separation into the protocol (currently it depends on out-of-protocol\nrelays, a real centralization dependency — §8.4 → `blockchain-smart-contract-development`) and lays groundwork for inclusion lists;\nand **EIP-7904 reprices gas** to realign costs with actual computational resources, since\nmany current gas prices were set years ago and no longer reflect modern hardware.\n\n### 3.3 The fee environment has changed\n\n**[VERSIONED, and it invalidates a very common mental model.]** If your assumptions about\nEthereum were formed in 2021–2023, they're out of date. **As of May 2026, standard gas has\nrun around 0.15 gwei with daily averages near 0.5 gwei** — a basic ETH transfer costing\nunder a cent, with typical days in the low single-digit cents. **\"Ethereum mainnet is too\nexpensive for most apps\" is now a stale default assumption.** Do the gas math for your\nactual workload rather than relying on folklore.\n\n---\n\n## §11. Layer 2 and Building a Chain\n\n### 11.1 The rollup model\n\n**[DURABLE]** Execute off-chain, post data and proofs to L1, inherit L1 security for data\navailability and settlement.\n\n| Type | Validity | Withdrawal | Notes |\n|---|---|---|---|\n| **Optimistic** | Assumed valid; **fraud proofs** during a challenge window | **~7 days** (or fast via a liquidity provider) | OP Stack, Arbitrum. Simpler; the delay is the cost |\n| **ZK \u002F validity** | **Validity proof** verified on L1 | Minutes to hours | zkSync, Starknet, Scroll, Linea, Polygon zkEVM. Proving cost and complexity are the trade |\n| **Validium \u002F volition** | Validity proof, **data off-chain** | Fast | Cheaper; **weaker data-availability guarantees** |\n\n**[DURABLE] The security question for any L2 is always the same three things**: who can\ncensor you, who can steal from you, and can you exit without permission? **L2Beat's stage\nclassification** is the honest scoring of exactly that, and it's the right first stop before\ntrusting any chain's marketing.\n\n**⚠️ The centralized sequencer is the current reality.** Most rollups rely on a single\nsequencer to order and execute transactions — a censorship risk and single point of failure.\n**Forced-inclusion via L1 is the escape hatch**, and you should verify it exists and works.\n**Decentralized sequencer designs are under active development but remain largely\nunshipped.**\n\n**Blobs (EIP-4844) are how L2 data gets cheap**, and **PeerDAS (Fusaka)** is what lets blob\ncapacity grow — validators sample columns rather than downloading every blob in full.\n\n### 11.2 Building a chain\n\n**[DURABLE] Ask first whether you need one.** A new chain means bootstrapping validators or\nsequencers, liquidity, bridges, tooling, indexers, wallets, and users — and fragmenting\nliquidity is usually a larger cost than whatever it buys.\n\nIf you do: **rollup-as-a-service stacks** (OP Stack, Arbitrum Orbit, ZK Stack, Polygon CDK,\nStarknet's stack) are how most L2s are built now. **Cosmos SDK \u002F CometBFT** for a sovereign\napp-chain. **Polkadot parachains.** Fully custom is a multi-year effort.\n\n**[VERSIONED] The client layer is adapting to this**: Nethermind implements each supported\nL2 as a plugin with an OP Stack rollup node built directly into the client (replacing a\nseparate `op-node`), and **ethrex** is a Rust client whose same codebase runs as both an L1\nexecution client and a multi-prover ZK-rollup. **ZK-proving is being built into production\nexecution clients**, which is a meaningful shift in what a \"client\" is.\n\n---\n\n## §12. Cross-Chain\n\n**[DURABLE] Bridges are the most-exploited category in the field's history, and the reason\nis structural**: they hold concentrated value and must verify claims about a chain they\ncan't natively see.\n\n**The models**: **lock-and-mint** (⚠️ the lockbox is a honeypot), **burn-and-mint**,\n**liquidity networks**, **light-client \u002F native verification** (the most secure, most\nexpensive), and **optimistic bridges**.\n\n**The trust question to ask about any bridge**: *who attests that the source-chain event\nhappened?* A multisig? An external validator set? A light client? **A bridge secured by a\n5-of-9 multisig has the security of a 5-of-9 multisig, regardless of what the marketing\nsays.**\n\n**⚠️ Cross-chain message verification is where bridges break in practice.** A 2026 example:\nan attacker crafted **fake Axelar messages that passed validation** and tricked a receiver\ncontract into releasing funds without a matching deposit — **missing access control in the\nmessage receiver**, ~$3M across chains. The pattern (trusting an inbound message without\nverifying the sender and the source chain) recurs constantly.\n\n**Messaging protocols**: LayerZero, CCIP, Axelar, Wormhole, Hyperlane — each with a\ndifferent trust model you should be able to state in one sentence before integrating.\n","# Blockchain Development: Protocol Layer, Clients, Upgrades, L2s, and Cross-Chain\n\n> **Part 1 of 4** of the *Cryptocurrency and Blockchain Development* reference (plugin `cryptocurrency-development`), covering §0–§3 and §11–§12. Sibling skills: `blockchain-smart-contract-development` (§4–§8), `blockchain-security-testing-and-ops` (§9–§10 and §13), `blockchain-reference` (§14–§19). Section numbers are shared across the set; a reference written as §N → `skill` points into that sibling skill.\n>\n> **Currency:** Verified August 2026. See §16 → `blockchain-reference` for the currency snapshot and what goes stale first.\n\n> **How to read this.** Reference, not tutorial. Sections are independent. Three markers:\n> - **[DURABLE]** — cryptography, distributed systems, or a security lesson the industry\n>   has paid for repeatedly. Does not expire.\n> - **[VERSIONED]** — protocol state, client versions, tooling, upgrade schedules. Moving\n>   fast; verify before relying on it.\n> - **[CONTESTED]** — genuine technical or design disagreement.\n>\n> **⚠️ GOTCHA** boxes mark the mistakes that lose money irreversibly. This domain has an\n> unusually direct mapping from bug to financial loss, so those boxes carry more weight\n> here than in an ordinary engineering reference.\n>\n> **Scope note:** this is an engineering document. It covers how these systems are built\n> and how they fail. **It is not investment advice, and does not evaluate any asset as an\n> investment.**\n>\n> **The three framings that organize everything below:**\n> 1. **Deployed code is adversarial code running in public with money attached.** Every\n>    function is callable by anyone, in any order, at any time, composed with contracts\n>    that don't exist yet, by attackers who read your source and have unlimited attempts.\n>    This is a fundamentally harsher environment than ordinary software.\n> 2. **You cannot patch it.** Immutability is the point and also the problem. Upgradeability\n>    is a design decision with its own large attack surface (§6 → `blockchain-smart-contract-development`), and \"we'll fix it in the\n>    next release\" is not available to you.\n> 3. **The expensive failures are boring.** Not exotic cryptography — **access control,\n>    business logic, and stolen keys.** §10 → `blockchain-security-testing-and-ops`'s data is unambiguous on this, and it should\n>    reorder your security priorities.\n\n---\n\n## §0. Routing\n\n### 0.1 Two very different jobs\n\n**[DURABLE] \"Crypto development\" means two largely disjoint skill sets**, and conflating\nthem is the most common orientation error:\n\n| | **Protocol development** | **Application development** |\n|---|---|---|\n| You build | Clients, consensus, VMs, L2 stacks, cryptography | Smart contracts and the systems around them |\n| Languages | Go, Rust, C#, Java, Zig, Nim | Solidity, Vyper, Huff, Yul |\n| Failure mode | Chain splits, finality failures, mass slashing | Drained contracts |\n| Review culture | Multi-client testing, devnets, spec conformance | Audits, fuzzing, formal verification |\n| Sections | §1, §2, §3, §11, §12 | §4–§10 → `blockchain-smart-contract-development`, `blockchain-security-testing-and-ops`, §13 → `blockchain-security-testing-and-ops` |\n\n### 0.2 The question router\n\n| Asked about... | Go to |\n|---|---|\n| Consensus, finality, the protocol layer | §1 |\n| Ethereum clients and node operation | §2 |\n| The upgrade process, EIPs, hard forks | §3 |\n| The EVM execution model, gas, storage | §4 → `blockchain-smart-contract-development` |\n| Solidity and the contract languages | §5 → `blockchain-smart-contract-development` |\n| Contract architecture: proxies, upgrades, access control | §6 → `blockchain-smart-contract-development` |\n| Standards: ERC-20\u002F721\u002F1155\u002F4626, account abstraction | §7 → `blockchain-smart-contract-development` |\n| DeFi primitives, oracles, MEV | §8 → `blockchain-smart-contract-development` |\n| Testing: Foundry, Hardhat, fuzzing, formal verification | §9 → `blockchain-security-testing-and-ops` |\n| Security: the vulnerability canon and what actually loses money | §10 → `blockchain-security-testing-and-ops` |\n| L2s, rollups, and building a chain | §11 |\n| Cross-chain and bridges | §12 |\n| Deployment, keys, ops, indexing, frontends | §13 → `blockchain-security-testing-and-ops` |\n| Interpretability of on-chain data, analytics | §13.4 → `blockchain-security-testing-and-ops` |\n| \"Don't do this\" | §14 → `blockchain-reference` |\n| \"Which approach is better?\" | §15 → `blockchain-reference` (contested) |\n| \"Is this still current?\" | §16 → `blockchain-reference` |\n| Docs, books, people | §17 → `blockchain-reference` |\n\n---\n\n## §1. The Protocol Layer\n\n### 1.1 What a blockchain actually is\n\n**[DURABLE]** A replicated state machine with **Sybil-resistant leader election** and a\n**fork-choice rule**, producing eventual (or explicit) agreement on an ordered log.\nEverything else is engineering detail.\n\n```\nmempool → block proposer selected → block built → propagated\n  → validated by every node independently → fork choice → finality\n```\n\n**Consensus families:**\n- **Proof of Work** — Sybil resistance by burned energy. Probabilistic finality (confirmations).\n  Simple, robust, expensive. Bitcoin.\n- **Proof of Stake** — Sybil resistance by bonded capital, with **slashing** for provable\n  misbehaviour. Ethereum uses **Gasper** (LMD-GHOST fork choice + Casper FFG finality),\n  giving **explicit finality** after two epochs (~13 minutes).\n- **BFT-style** (Tendermint\u002FCometBFT, HotStuff derivatives) — instant finality, smaller\n  validator sets, liveness fails if >1\u002F3 are offline.\n- **DAG \u002F leaderless** and other designs — real, less battle-tested.\n\n**[DURABLE] The trade-off that never goes away**: decentralization, security, and\nscalability pull against each other, and every design picks a point. **Be suspicious of any\nclaim to have escaped it** — usually the escape is a validator set small enough to be a\ndistributed database with extra steps.\n\n### 1.2 Ethereum's post-Merge architecture\n\n```\n┌─────────────────────────┐        ┌──────────────────────────┐\n│ CONSENSUS CLIENT        │ Engine │ EXECUTION CLIENT         │\n│ (beacon chain, PoS)     │◄──API─►│ (EVM, state, mempool)    │\n│ Lighthouse, Prysm, Teku,│        │ Geth, Nethermind, Reth,  │\n│ Nimbus, Lodestar,       │        │ Besu, Erigon, ethrex     │\n│ Grandine                │        │                          │\n└─────────────────────────┘        └──────────────────────────┘\n```\n**[DURABLE] You must run both.** This split, formalized at The Merge (September 2022), is\nthe single most important structural fact about running Ethereum infrastructure, and it\nsurprises people who last looked before 2022.\n\n**Validator economics**: 32 ETH per validator (**EIP-7251 raised the effective max balance\nto 2048 ETH**, allowing consolidation), duties are attesting and occasionally proposing,\nand **slashing** punishes provable equivocation while **inactivity leaks** punish being\noffline during non-finality.\n\n### 1.3 Client diversity — a genuine systemic risk\n\n**[DURABLE] If one client runs a supermajority of validators, a bug in it can finalize an\ninvalid chain or cause mass slashing.** The thresholds that matter: **>1\u002F3 breaks\nfinality; >2\u002F3 can finalize a bad chain.** This is not theoretical — **Reth suffered a\nsevere network-wide outage on 2 September 2025** processing a specific block, taking down\nmost Reth nodes on mainnet; operators running a multi-client setup stayed up.\n\n**[VERSIONED]** Execution-layer diversity has genuinely improved. Geth's share has fallen\nfrom a historic ~84% to roughly **36–41%**, with **Nethermind ~23–32%**, **Reth ~14–15%**,\n**Besu ~7–12%**, and **Erigon ~2–5%** depending on the measurement source. ⚠️ **The\nsources disagree substantially** because they measure different populations (peer-visible\nnodes vs. self-reported validators vs. staking-community surveys) — one 2026 staking survey\nfound **Nethermind ~45%, Geth ~33%, Besu ~15%** within that community. **The consensus\nlayer is the bigger worry**, with Lighthouse and Prysm both large.\n\n**⚠️ If you run validators, run a minority client, and consider running more than one.**\nThis is the rare case where the socially responsible choice is also the operationally\nsafer one.\n\n---\n\n## §2. Nodes and Clients\n\n### 2.1 Node types\n\n| Type | Stores | Use |\n|---|---|---|\n| **Full node** | Current state + recent history; verifies everything | The default. What you should run |\n| **Archive node** | All historical state at every block | Analytics, indexers, `eth_call` at old blocks. **Very large** |\n| **Light client** | Headers + proofs | Mobile, embedded; the Verge roadmap's target |\n| **Validator** | Full node + consensus client + signing keys | Staking |\n\n**[VERSIONED] Reth is notably fast to sync** — substantially faster than Geth's baseline on\nequivalent NVMe hardware. **NVMe SSD is non-negotiable** for any client; spinning disks and\nmost SATA SSDs cannot keep up with state access patterns.\n\n### 2.2 Working with nodes\n\n**JSON-RPC** is the universal interface: `eth_call` (simulate, no state change),\n`eth_estimateGas`, `eth_sendRawTransaction`, `eth_getLogs` (⚠️ heavily rate-limited by\nproviders and the usual source of \"why is my indexer slow\"), `eth_getStorageAt`,\n`debug_traceTransaction` (⚠️ archive\u002Fdebug-enabled nodes only, and the most useful\ndebugging tool you have).\n\n**Libraries**: **viem** (TypeScript — the modern default, better typing and DX than its\npredecessor), **ethers.js** (still widely used), **web3.js** (legacy), **web3.py**,\n**Alloy** (Rust — the Foundry\u002FReth ecosystem's stack), **Nethereum** (.NET), **web3j** (Java).\n\n**⚠️ Running your own node vs. using a provider is a real architectural decision**, not a\npurity question. Providers (Alchemy, Infura, QuickNode, Chainstack) are operationally\nsimpler; your own node removes a trust and censorship dependency and removes rate limits.\n**Anything that must not be censorable should not depend on one provider.**\n\n---\n\n## §3. Protocol Upgrades and the EIP Process\n\n### 3.1 How changes happen\n\n```\nidea → EIP draft → ACD calls (All Core Devs, Execution + Consensus)\n  → devnets → public testnets (Sepolia, Holesky\u002FHoodi) → MAINNET FORK\n```\n**EIP tracks**: **Core** (consensus-breaking), **Networking**, **Interface**, and **ERC**\n(application-layer standards — §7 → `blockchain-smart-contract-development`). **[DURABLE] ERCs are the ones application developers\ncare about; Core EIPs are the ones that break your node if you don't upgrade.**\n\n**[DURABLE] Hard forks are coordinated flag days.** Every execution client (Geth,\nNethermind, Besu, Erigon, Reth) and every consensus client (Lighthouse, Prysm, Teku,\nNimbus, Lodestar, Grandine) ships a **mandatory release**, and **testnets always fork\nfirst** — that gap is your window to find problems while they're cheap.\n\n**⚠️ A network upgrade never requires users to \"migrate\" or \"upgrade\" their tokens.**\nBalances, addresses, and keys are unaffected. **Anyone telling holders to upgrade their ETH\nfor a fork is running a scam** — and this recurs at every single fork.\n\n### 3.2 The recent and upcoming forks\n\n**[VERSIONED]** Ethereum has settled into a roughly **twice-yearly** cadence:\n\n| Fork | Date | Headline |\n|---|---|---|\n| **The Merge** | Sept 2022 | PoW → PoS; ~99.95% energy reduction |\n| **Shapella** | Apr 2023 | Staking withdrawals |\n| **Dencun** | Mar 2024 | **EIP-4844 proto-danksharding** — blobs; cut L2 data costs ~90% |\n| **Pectra** | May 2025 | **EIP-7702** (EOAs can act like smart accounts, §7.3 → `blockchain-smart-contract-development`); **EIP-7251** validator consolidation |\n| **Fusaka** | **3 Dec 2025** | **PeerDAS** — validators sample blob data instead of downloading all of it; gas limit to ~60M |\n| **Glamsterdam** | **targeted 2026** | **EIP-7732 (ePBS)** and **EIP-7928 (Block-Level Access Lists)**; **EIP-7904** gas repricing |\n| **Hegotá** | 2027 | **FOCIL** headlining; Verkle discussed |\n\n**⚠️ Glamsterdam's date is genuinely unsettled and the sources conflict** — official\nEthereum roadmap material has listed **Q4 2026**, other coverage has said H1 2026 or \"second\nhalf of 2026,\" and developers consistently stress it depends on testnet validation.\n**Treat any specific date as provisional and check Forkcast or ethereum.org.**\n\n**Why Glamsterdam matters to builders**: **Block-Level Access Lists** declare what state a\nblock touches *before* execution, enabling **parallel transaction execution**; **ePBS**\nbrings proposer-builder separation into the protocol (currently it depends on out-of-protocol\nrelays, a real centralization dependency — §8.4 → `blockchain-smart-contract-development`) and lays groundwork for inclusion lists;\nand **EIP-7904 reprices gas** to realign costs with actual computational resources, since\nmany current gas prices were set years ago and no longer reflect modern hardware.\n\n### 3.3 The fee environment has changed\n\n**[VERSIONED, and it invalidates a very common mental model.]** If your assumptions about\nEthereum were formed in 2021–2023, they're out of date. **As of May 2026, standard gas has\nrun around 0.15 gwei with daily averages near 0.5 gwei** — a basic ETH transfer costing\nunder a cent, with typical days in the low single-digit cents. **\"Ethereum mainnet is too\nexpensive for most apps\" is now a stale default assumption.** Do the gas math for your\nactual workload rather than relying on folklore.\n\n---\n\n## §11. Layer 2 and Building a Chain\n\n### 11.1 The rollup model\n\n**[DURABLE]** Execute off-chain, post data and proofs to L1, inherit L1 security for data\navailability and settlement.\n\n| Type | Validity | Withdrawal | Notes |\n|---|---|---|---|\n| **Optimistic** | Assumed valid; **fraud proofs** during a challenge window | **~7 days** (or fast via a liquidity provider) | OP Stack, Arbitrum. Simpler; the delay is the cost |\n| **ZK \u002F validity** | **Validity proof** verified on L1 | Minutes to hours | zkSync, Starknet, Scroll, Linea, Polygon zkEVM. Proving cost and complexity are the trade |\n| **Validium \u002F volition** | Validity proof, **data off-chain** | Fast | Cheaper; **weaker data-availability guarantees** |\n\n**[DURABLE] The security question for any L2 is always the same three things**: who can\ncensor you, who can steal from you, and can you exit without permission? **L2Beat's stage\nclassification** is the honest scoring of exactly that, and it's the right first stop before\ntrusting any chain's marketing.\n\n**⚠️ The centralized sequencer is the current reality.** Most rollups rely on a single\nsequencer to order and execute transactions — a censorship risk and single point of failure.\n**Forced-inclusion via L1 is the escape hatch**, and you should verify it exists and works.\n**Decentralized sequencer designs are under active development but remain largely\nunshipped.**\n\n**Blobs (EIP-4844) are how L2 data gets cheap**, and **PeerDAS (Fusaka)** is what lets blob\ncapacity grow — validators sample columns rather than downloading every blob in full.\n\n### 11.2 Building a chain\n\n**[DURABLE] Ask first whether you need one.** A new chain means bootstrapping validators or\nsequencers, liquidity, bridges, tooling, indexers, wallets, and users — and fragmenting\nliquidity is usually a larger cost than whatever it buys.\n\nIf you do: **rollup-as-a-service stacks** (OP Stack, Arbitrum Orbit, ZK Stack, Polygon CDK,\nStarknet's stack) are how most L2s are built now. **Cosmos SDK \u002F CometBFT** for a sovereign\napp-chain. **Polkadot parachains.** Fully custom is a multi-year effort.\n\n**[VERSIONED] The client layer is adapting to this**: Nethermind implements each supported\nL2 as a plugin with an OP Stack rollup node built directly into the client (replacing a\nseparate `op-node`), and **ethrex** is a Rust client whose same codebase runs as both an L1\nexecution client and a multi-prover ZK-rollup. **ZK-proving is being built into production\nexecution clients**, which is a meaningful shift in what a \"client\" is.\n\n---\n\n## §12. Cross-Chain\n\n**[DURABLE] Bridges are the most-exploited category in the field's history, and the reason\nis structural**: they hold concentrated value and must verify claims about a chain they\ncan't natively see.\n\n**The models**: **lock-and-mint** (⚠️ the lockbox is a honeypot), **burn-and-mint**,\n**liquidity networks**, **light-client \u002F native verification** (the most secure, most\nexpensive), and **optimistic bridges**.\n\n**The trust question to ask about any bridge**: *who attests that the source-chain event\nhappened?* A multisig? An external validator set? A light client? **A bridge secured by a\n5-of-9 multisig has the security of a 5-of-9 multisig, regardless of what the marketing\nsays.**\n\n**⚠️ Cross-chain message verification is where bridges break in practice.** A 2026 example:\nan attacker crafted **fake Axelar messages that passed validation** and tricked a receiver\ncontract into releasing funds without a matching deposit — **missing access control in the\nmessage receiver**, ~$3M across chains. The pattern (trusting an inbound message without\nverifying the sender and the source chain) recurs constantly.\n\n**Messaging protocols**: LayerZero, CCIP, Axelar, Wormhole, Hyperlane — each with a\ndifferent trust model you should be able to state in one sentence before integrating.\n",{"name":5,"description":7},"develop","ae32736a1aabddabca5d2c96d665aa0ebc7d8700","src\u002Fvibey_tools\u002Fskills\u002Fplugins\u002Fcryptocurrency-development\u002Fskills\u002Fblockchain-protocol-layer",3,"https:\u002F\u002Fgithub.com\u002Fthe-vibey-project\u002Fvibey","https:\u002F\u002Fthe-vibey-project.github.io\u002Fvibey\u002F","https:\u002F\u002Fgithub.com\u002Fthe-vibey-project","https:\u002F\u002Fvibewithadam.matthewsteinberger.com","freedom for software engineers","2026-11-15 05:47:42",{"source":8,"skillName":5,"commands":35,"prompt":45,"zipAvailable":46},[36,39,42],{"tool":37,"command":38},"npx","npx skills add the-vibey-project\u002Fvibey --skill blockchain-protocol-layer",{"tool":40,"command":41},"bunx","bunx skills add the-vibey-project\u002Fvibey --skill blockchain-protocol-layer",{"tool":43,"command":44},"pnpm","pnpm dlx skills add the-vibey-project\u002Fvibey --skill blockchain-protocol-layer","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fthe-vibey-project\u002Fvibey\u002Fblob\u002Fdevelop\u002Fsrc\u002Fvibey_tools\u002Fskills\u002Fplugins\u002Fcryptocurrency-development\u002Fskills\u002Fblockchain-protocol-layer\u002FSKILL.md",true,[],[49,56,63,70,77,84],{"skillNo":50,"name":51,"nameZh":6,"description":52,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":53,"categories":54,"keywords":55,"publishedAt":19},"01M7AT1FQJAE1FQYAMDTF490Y4","white-paper-writing","Use when writing white papers, technical reports, policy documents, thought leadership pieces, or any long-form authoritative document. Triggers on requests to write, structure, outline, or review white papers, technical reports, position papers, policy briefs, or evidence-driven arguments. Also use for B2B content marketing strategy, technical documentation requiring authority, academic-style reports, or any document that must educate while persuading. Use when someone asks \"how should I structure this\" for a long-form document.","https:\u002F\u002Fgithub.com\u002Fthe-vibey-project\u002Fvibey\u002Fblob\u002Fdevelop\u002Fsrc\u002Fvibey_tools\u002Fskills\u002Fplugins\u002Fwriting-craft\u002Fskills\u002Fwhite-paper-writing\u002FSKILL.md",[],[],{"skillNo":57,"name":58,"nameZh":6,"description":59,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":60,"categories":61,"keywords":62,"publishedAt":19},"01M7AT16BJRJJKK2MASXRZS76G","prose-technical-mechanics","Use when editing or writing prose at a technical\u002Fmechanical level: choosing between Anglo-Saxon and Latinate diction, placing information in topic vs stress positions, writing periodic vs cumulative sentences, handling sentence rhythm, punctuation as logic, transitions, paragraph structure, or phonesthetics. Use when someone wants to understand WHY prose works or doesn't, not just surface-level style advice. Triggers on word choice, sentence structure, emphasis, rhythm, diction, or any deep writing mechanics question.","https:\u002F\u002Fgithub.com\u002Fthe-vibey-project\u002Fvibey\u002Fblob\u002Fdevelop\u002Fsrc\u002Fvibey_tools\u002Fskills\u002Fplugins\u002Fwriting-craft\u002Fskills\u002Fprose-technical-mechanics\u002FSKILL.md",[],[],{"skillNo":64,"name":65,"nameZh":6,"description":66,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":67,"categories":68,"keywords":69,"publishedAt":19},"01M7AT0W9HT0ZZ9Y287NW99MR3","prose-mechanics","Use when writing, editing, or analyzing prose style; when trying to avoid generic AI-sounding writing; when applying specific prose styles such as journalistic, academic, narrative, KJV biblical, Hemingway plain, Latinate\u002FJamesian, Orwellian, Augustan, Victorian, Early Modern (Bacon, Browne, Milton), or free indirect discourse; or when coaching someone on writing voice and mechanics. Triggers on any request to improve, analyze, or write in a specific prose style, to fix \"AI-sounding\" writing, to make prose more vivid or concrete, to vary sentence rhythm, or to understand how a particular writer achieves their effects.","https:\u002F\u002Fgithub.com\u002Fthe-vibey-project\u002Fvibey\u002Fblob\u002Fdevelop\u002Fsrc\u002Fvibey_tools\u002Fskills\u002Fplugins\u002Fwriting-craft\u002Fskills\u002Fprose-mechanics\u002FSKILL.md",[],[],{"skillNo":71,"name":72,"nameZh":6,"description":73,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":74,"categories":75,"keywords":76,"publishedAt":19},"01M7AT0KR635JX66X2X6F3E2CP","narrative-structure","Use when structuring stories, pitches, presentations, white papers, or any persuasive narrative; analyzing the hero's journey in fiction or non-fiction; applying StoryBrand for business communication; designing narrative arcs for thought leadership; or understanding Vogler, Snyder, Propp, or Campbell frameworks. Triggers on any narrative structure, storytelling, pitch structure, StoryBrand, hero's journey, three-act structure, Freytag, Save the Cat, narrative arc, or \"how should I structure this story\u002Fpitch\u002Fpresentation\" request.","https:\u002F\u002Fgithub.com\u002Fthe-vibey-project\u002Fvibey\u002Fblob\u002Fdevelop\u002Fsrc\u002Fvibey_tools\u002Fskills\u002Fplugins\u002Fwriting-craft\u002Fskills\u002Fnarrative-structure\u002FSKILL.md",[],[],{"skillNo":78,"name":79,"nameZh":6,"description":80,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":81,"categories":82,"keywords":83,"publishedAt":19},"01M7AT0AKGW09NKKZDYBT8VRDE","legal-brief-writing","Use when writing legal briefs, motions, or any court filing; when analyzing judicial cognition and persuasion; when applying elite brief-writing techniques from Roberts, Clement, Kagan, Garner; or when structuring legal arguments for maximum persuasion. Also use for autistic\u002Fneurodivergent advocates who need to understand how their natural communication style maps to elite legal advocacy. Triggers on any legal writing, brief drafting, motion preparation, or legal argument structuring request.","https:\u002F\u002Fgithub.com\u002Fthe-vibey-project\u002Fvibey\u002Fblob\u002Fdevelop\u002Fsrc\u002Fvibey_tools\u002Fskills\u002Fplugins\u002Fwriting-craft\u002Fskills\u002Flegal-brief-writing\u002FSKILL.md",[],[],{"skillNo":85,"name":86,"nameZh":6,"description":87,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":88,"categories":89,"keywords":90,"publishedAt":19},"01M7AT00VWPS4Q8B5VEMXX9NQT","journal-publishability-criteria","Use whenever a research paper, article or preprint is being written, revised, reviewed or published, and specifically before every publication of docs\u002Fpaper.md. Covers what legitimate journals actually gate on, in order of gating — the editor's desk screen (scope, novelty, package problems), what reviewers judge (methodological soundness, claims the evidence can carry, statistical and qualitative reporting), EQUATOR reporting guidelines, the ICMJE authorship criteria, COPE's view of text recycling, the near-universal generative-AI policy (no AI author, disclosure, author responsibility), TOP 2025 transparency standards, how to verify a journal is legitimate, submitting without an institution, and a pre-submission checklist. Triggers on requests to evaluate, review, prepare or submit a paper, to judge publishability, to write a declarations or data-availability section, to disclose AI use, or to check a journal.","https:\u002F\u002Fgithub.com\u002Fthe-vibey-project\u002Fvibey\u002Fblob\u002Fdevelop\u002Fsrc\u002Fvibey_tools\u002Fskills\u002Fplugins\u002Fwriting-craft\u002Fskills\u002Fjournal-publishability-criteria\u002FSKILL.md",[],[]]