The DouChain Protocol: A Technical Whitepaper
Version: v0.7 (Dragon Burn)
v0.7 • November 18, 2025 • The DouChain Core Research Team
Select Language
Choose your preferred language to view or download the whitepaper
Abstract
DouChain is a last-mover Layer 1 blockchain protocol. Uniquely, it operates on a **state-based monetary policy**: the network launches with a Genesis Supply of **5.21 billion $DOU** and enforces a deflationary burn on all fees until the supply reaches the Terminal **Pi Cap of 3.14 billion $DOU**. This creates a predictable, programmed scarcity curve that rewards early adopters while ensuring long-term stability.
The protocol's core innovation is its native, protocol-level extensions: **DOU-ID**, a hybrid ZK/MPC identity layer for sybil resistance and regulatory compliance; **DouChain Messenger (DCM)**, an E2E encrypted social fabric with a WASM-based Mini-App ecosystem; and **DouChain Capital Markets (DCM)**, a compliant-by-design framework for on-chain assets.
Its cryptoeconomic model, the **v0.5 Elastic Fee Router**, implements the Dragon Burn: a capped burn of up to **5.30%** of fees while supply is above 3.14B, followed by a Maturity Phase where burning halts and all fees are routed to validators, delegators, and ecosystem programs. This design aligns long‑term security with real economic activity, without perpetual inflation.
Part I — The Emperor's Reign (Problem Statement & Lore)
1.1 The Digital Feudalism
The modern internet operates on a feudal model. A small cohort of centralized "Digital Emperors" (platforms, data brokers, centralized exchanges) own the "land"—the servers, the code, the algorithms, and the user data. The global population of "Digital Peasants" (users, creators, traders, developers, laborers) creates the value that makes this land productive. In exchange for access, these Peasants are subjected to a system of extraction, surveillance, and censorship.
1.2 The Web2 Landlords: Extraction, Surveillance & Censorship
The Web2 model (Meta, Google, TikTok, YouTube, Twitch) is built on surveillance capitalism.
* **Economic Extraction (The "Rake"):** Platforms act as extractive intermediaries, imposing a 45-50% "tribute" or "rake" on all value generated by creators (e.g., ad revenue, subscriptions, gifts).
* **Surveillance & Data Brokerage:** User activity is not private; it is the core asset. This data is harvested, packaged into "shadow profiles," and monetized via a $270B+ data broker economy, forming the basis of manipulative ad-targeting systems.
* **Algorithmic Censorship ("Algorithm Sovereignty"):** The most potent tool of the Web2 Emperor is the "black box" algorithm. Opaque, centralized feeds (e.g., TikTok, YouTube) are used to manipulate public discourse, shadow-ban creators, and de-platform dissent, often under pressure from state actors. This "algorithm sovereignty" is a significant geopolitical vulnerability.
1.3 The Web3 Landlords: Centralized Risk & Illusory Gains
The first wave of Web3, intended as a rebellion, largely replicated the centralized failures of the past.
* **The Custodial Threat (The "FTX Vector"):** Centralized exchanges (CEXs) and custodians (e.g., FTX, Celsius) reintroduced trusted, single points of failure. The result was catastrophic: commingled funds, fraud, and the vaporization of billions in user capital.
* **The Casino Threat (The "Stake.com Vector"):** Centralized crypto-casinos, while operating on-chain, have built vast marketing empires (e.g., Stake.com, Kick) based on an "Illusion of Loss"—using house money to fund celebrity and streamer endorsements, creating a deceptive marketing funnel that drives real, harmful user losses.
* **The Labor Threat (The "Clipper's Dilemma"):** The Web3 creator economy still relies on a "shadow workforce" of "clippers" (video editors), moderators, and community managers. This labor, organized via Discord and trust-based payments, is unverifiable, unrewarded, and systemically exploited.
1.4 The L1/L2 Architectural Failures: A Misaligned Foundation
The existing protocol-level infrastructure is ill-equipped to host a true alternative.
* **The Monolithic Bottleneck (Solana):** Monolithic chains, while fast, force all network activity (DeFi, social, gaming, NFTs) to compete for the same, single lane of blockspace. This leads to extreme fee volatility and network-wide halts when a single dApp (a popular mint or game) creates a spam or high-load event.
* **The Fragmentation Trap (Ethereum L2s):** The L2-centric roadmap, while improving throughput, destroys the user experience. It creates a fragmented ecosystem of siloed applications, where liquidity is scattered, composability is broken, and users must navigate a complex, high-latency, and insecure maze of bridges—all while re-introducing centralized sequencer risk.
* **The "DeFi-Only" Mindset:** Most L1s (e.g., Hyperliquid) are purpose-built for a single, narrow vertical (DeFi, perpetuals), leaving the far larger markets of social, gaming, and AI unsolved at the native layer.
* **The TON "Potential":** TON, as a spiritual predecessor, correctly identified the social/messaging vector. However, it lacks native compliance primitives (isolating it from institutional capital), a sophisticated capital markets stack, and a sustainable, deflationary, non-inflationary economic model.
DouChain is designed as the "last-mover," synthesizing the lessons from these failures to build a protocol that is architecturally sound, economically aligned, and purpose-built for a complete digital society.
Part II — The Rebellion's Charter (Threat Models & Design Principles)
2.1 Technical Threat Models
Our architecture is not arbitrary. It is a set of formal design principles, each an explicit response to a defined threat model.
**Technical Threat Models:**
* **T-1: Monolithic State Bloat:** The threat of a single-state machine becoming too large and expensive for nodes to validate, leading to validator centralization (e.g., Solana, Ethereum).
* **T-2: Fragmentation & Bridge Risk:** The threat of L2/modular solutions destroying composability and exposing users to systemic risk via insecure bridges.
* **T-3: Opaque State & "God Mode":** The threat of critical logic (e.g., game rules, random number generation) running on centralized servers, where it can be manipulated (e.g., the Absolute Poker "superuser" scandal).
* **T-4: Sybil & Economic Drain:** The threat of bot-driven attacks (airdrops, governance, activity rewards) draining ecosystem resources and degrading the user experience.
* **T-5: Regulatory Attack ("The Monero Problem"):** The threat of a protocol being "un-banked" or banned by regulators due to its perceived anonymity, isolating it from legitimate capital and users.
2.2 Socio-Economic Threat Models
**Socio-Economic Threat Models:**
* **S-1: The Landlord Rake:** The threat of a platform (or protocol) imposing an extractive "rake" (e.g., 50%) on its users and creators.
* **S-2: The Censor's Hammer:** The threat of opaque, centralized algorithms or entities de-platforming users and manipulating discourse.
* **S-3: The Serf's Labor:** The threat of unverified, unrewarded labor (the "Clipper's Dilemma").
* **S-4: The Surveillance Eye:** The threat of a user's data being harvested and sold non-consensually.
2.3 DouChain Design Principles (The Charter)
**DouChain Design Principles (The Charter):**
1. **Principle: Specialized Execution, Shared Security.** (Response to T-1, T-2)
* *We use a Masterchain + Workchain architecture. This isolates specialized workloads (Social, Gaming, Finance) so they cannot halt each other, while unifying their security under a single, high-value validator set.*
2. **Principle: Elastic Scalability, Not Static Bottlenecks.** (Response to T-1)
* *We use Dynamic Sharding. Workchains can elastically `split` and `merge` in response to load, providing horizontal, on-demand scalability rather than a fixed, brittle capacity.*
3. **Principle: Verifiable Logic, Not Opaque "God Modes."** (Response to T-3)
* *We build critical logic into the protocol. A native, on-chain VRF (Verifiable Random Function) provides provably fair randomness for all gaming/lottery dApps.*
4. **Principle: Compliance-by-Design, Not Anonymity-by-Default.** (Response to T-5)
* *We provide an optional ZK/MPC identity layer (DOU-ID). This allows users to prove credentials without revealing PII, enabling dApps to be regulatory-compliant without sacrificing privacy. This is our "anti-Monero" design.*
5. **Principle: Value Flows Downward (The Peasant's Rebate).** (Response to S-1, S-3, S-4)
* *We replace the 50% "rake" with the "Peasant's Rebate." 30-50% of all network fees are programmatically routed back to users (Activity Mining), laborers (Clipper's Guild), and data providers (ZK-surveys).*
6. **Principle: Economic Alignment as Protocol Law.** (Response to S-1)
* *We use a 125B fixed-supply, deflationary token ($DOU) and a Multi-Asset Rewards model. This aligns validators with the long-term health of the token, not short-term inflationary rewards.*
7. **Principle: Algorithm Sovereignty.** (Response to S-2, S-4)
* *We put the core social graph on-chain. This un-bundles the data from the application, allowing users to choose their own feed/algorithm and ending the "black box" censorship model.*
Part III — Protocol Architecture (v0.6.2)
3.1 Core Topology: Masterchain, Workchains, Shardchains
DouChain is an asynchronous, multi-chain network unified by a single consensus and security layer.
**3.1.1 The Masterchain (Coordination & Finality Layer)**
The Masterchain is the high-security, low-load "spine" of the network. It does not execute user-facing smart contracts. Its state contains *only* network-critical data:
1. The complete validator set, their stakes ($DOU), and delegations.
2. The network-wide configuration (e.g., Workchain definitions, Fee Router parameters).
3. A cryptographic record (e.g., Merkle Tree) of the latest *block headers* from all validated Workchains.
**Lifecycle:** The Masterchain runs Dou-BFT with the *full* validator set, producing a "meta-block" every ~1-1.5 seconds. This block "finalizes" a set of Workchain blocks, making them irreversible.
**3.1.2 The Workchains (Specialized Execution Layer)**
Workchains are parallel, independent blockchains that execute all user transactions and dApp logic. Each is optimized for a specific task profile:
* **Social Workchain:** Optimized for high-throughput, low-cost writes and graph database structures (e.g., follows, @handles).
* **Gaming & Markets Workchain:** Optimized for ultra-low latency (~400-600ms) and native VRF access.
* **Capital Markets Workchain:** Optimized for high-security, compliance-aware transactions (natively integrated with DOU-ID).
* **AI Workchain:** A specialized chain for metering, compute-voucher exchange, and verifying inference proofs.
* **EVM Workchain:** A sandboxed, WASM-compiled EVM for legacy dApp porting.
* **Data Workchain:** A privacy-first chain for ZK-survey data and DOU-ID credential proofs.
**Security:** Workchains inherit their security from the Masterchain. A pseudo-random subset of the main validator pool is assigned to validate each Workchain for a given epoch. An invalid Workchain block will be rejected by the Masterchain, and the malicious validators will be slashed.
**3.1.3 Dynamic State Sharding (Elastic Scaling Layer)**
This is DouChain's solution to the "monolithic bottleneck."
* **`Split` Operation:** When a Workchain (e.g., Social) exceeds a sustained load threshold, the protocol can trigger a `split`. The Workchain's state is partitioned (e.g., by address range or dApp ID), and a new "Shardchain" is created. The Masterchain then assigns a *new* subset of validators to this new Shardchain.
* **`Merge` Operation:** When load on two adjacent Shardchains falls below a threshold, the protocol can trigger a `merge`, consolidating them back into a single chain to conserve resources.
* **Result:** This provides horizontal, on-demand, elastic scalability, allowing the network to handle "viral" events without a network-wide halt or fee spike.
3.2 Consensus (Dou-BFT) & Execution (DVM)
**3.2.1 Dou-BFT Consensus**
Dou-BFT is a pipelined Byzantine Fault Tolerance (BFT) consensus mechanism, inspired by HotStuff and Mir-BFT.
* **Pipelining:** Unlike traditional BFT (which is `Propose -> Vote -> Commit`), Dou-BFT "pipelines" these stages. A leader can `Propose(B_n+1)` *before* `Commit(B_n)` is complete.
This parallelization, combined with fast leader rotation, minimizes validator overhead and enables the target **~400-600ms** Workchain block times.
**3.2.2 DVM (DouChain VM) & Gas Model**
* **VM:** The DVM is a high-performance **WebAssembly (WASM)** runtime. This allows developers to write smart contracts in mature, high-performance languages like **Rust, C++, and Go**, rather than a niche, bespoke language.
* **Gas Token:** **$DOU** is the *only* native gas token accepted by the protocol for computation, storage, and all native protocol calls.
* **Gas Abstraction:** The protocol *natively* supports gas subsidization.
1. **dApp Subsidy:** A dApp's smart contract can implement a `Paymaster` function, pre-funding it with $DOU to pay gas fees on behalf of its users.
2. **Stablecoin Abstraction:** A user can sign a transaction authorizing payment in **USDC/USDT**. The protocol utilizes an integrated DEX to *instantly* swap the required gas fee for $DOU, which is then paid to the validator and routed to the Fee Router. The user experiences a "gas-less" or "USDC-paid" transaction, while $DOU's core utility is preserved.
3.3 Storage & Data Availability (DA)
**3.3 Storage & Data Availability (DA)**
DouChain manages state bloat via a tiered approach:
* **On-Chain State:** Core logic, balances, and state transitions (e.g., $DOU balances, NFT ownership, social graph *control*).
* **Off-Chain Storage (Arweave/IPFS):** Large "blob" data (e.g., profile pictures, video files) is not stored on-chain. The chain stores only a *hash* and *pointer* to the data on a decentralized storage network.
Part IV — Developer & dApp Model ("Batteries-Included" Stack)
4.1 DOU-ID: Hybrid ZK/MPC Identity Layer
DouChain's developer philosophy is **"Batteries-Included."** We provide the core, high-performance, and *expensive-to-build* primitives, allowing builders to focus on innovation and user experience.
**4.1 DOU-ID: Hybrid ZK/MPC Identity Layer**
This is an *optional*, user-controlled identity system for sybil resistance and compliance.
* **Architecture:** A Hybrid ZK/MPC Model.
* **MPC Vault:** The user's *raw* PII (e.g., passport image) is encrypted and *sharded* across a network of **MPC Vault Nodes**. No single node, nor the protocol itself, can ever reconstruct or view the raw data.
* **ZK-Credentials:** A DAO-approved, trusted **Verifier** (e.g., a KYC provider) is granted temporary, one-time permission to "ping" the MPC Vault. The Verifier then signs and issues **on-chain, non-transferable ZK-Credentials** (as NFTs or Soul-Bound Tokens) to the user's wallet.
**Use Cases:** Sybil-resistant governance, bot-free airdrops, and compliant access to **DouChain Capital Markets**.
4.2 DouChain Messenger (DCM) & Mini-Apps
**4.2 DouChain Messenger (DCM) & Mini-Apps**
The protocol's native, decentralized social fabric.
* **Architecture:** A hybrid on/off-chain model.
* **On-Chain:** User discovery, @handle registry (NFT-based), public group membership, and DOU-ID integration.
* **Off-Chain:** A decentralized, **Signal-grade E2E encrypted** peer-to-peer messaging network for all 1:1 and private group chats (up to 50k users).
* **Mini-App Ecosystem:** Like TON, DCM is a "super-app." Developers can build lightweight, WASM-based web applications (**Mini-Apps**) that run *inside* the DCM client. This gives dApps a secure, sandboxed environment with direct, native access to the user's wallet, social graph, and DOU-ID.
4.3 DouChain Capital Markets (DCM)
**4.3 DouChain Capital Markets (DCM)**
A compliant-by-design "on-chain Wall Street" for digital assets.
* **Compliance:** This is *not* an "anarchy" platform. It is designed for regulatory alignment by natively integrating with **DOU-ID**. A "Regulated Launch" module can be configured to *only* allow participation from wallets holding the `is_accredited_investor = TRUE` and `is_not_on_sanctions_list = TRUE` ZK-Credentials.
* **v1 Modules:**
* **Tokenized Revenue Share:** Smart contracts for creators/startups to sell a % of future revenue.
* **STO Frameworks:** Compliant modules for issuing tokenized securities.
* **DAO Treasury Tools:** Advanced, on-chain treasury management (vesting, payroll, etc.).
4.4 Launchpad & Meme Layer (The "Cultural" Engine)
**4.4 Launchpad & Meme Layer (The "Cultural" Engine)**
A suite of v1 templates for the "degen" and "cultural" economy, designed for safety and virality.
* **v1 Templates:**
* **Bonding Curve (Pump.fun-style):** For permissionless "fair launch" of new tokens.
* **Creator / Fan Tokens:** A simple module for creators.
* **Prediction Markets:** A framework for creating and settling on-chain markets.
* **Casino Layer (Provably Fair):** A core protocol module that provides a **native, on-chain Verifiable Random Function (VRF)**. Any dApp can call this VRF to get provably fair, unpredictable, and auditable randomness for their casino games, loot box mints, or lottery draws.
4.5 Digital Gifts & Creator Layer (The "Clipper's Guild")
**4.5 Digital Gifts & Creator Layer (The "Clipper's Guild")**
This pillar directly solves the "Clipper's Dilemma" (unpaid labor).
* **Native Standard:** A native NFT standard that supports **embedded, on-chain royalty splits**.
* **Example Flow (The "Clipper's Guild"):**
1. A `Creator` mints a video as an NFT.
2. During minting, they add their `Editor's` (Clipper's) wallet address to a royalty split (e.g., `creator: 80%`, `clipper: 20%`).
3. This split is *enforced by the protocol* at the marketplace level.
4. When the NFT is sold (or earns revenue via Digital Gifts), 20% of the proceeds are *automatically* routed to the Clipper's wallet.
This transforms unverifiable "shadow labor" into a verifiable, on-chain, and bankable asset.
4.6 Interoperability
**4.6 Interoperability**
DouChain is a central hub, not an island.
* **Native Bridge:** A canonical, Masterchain-secured light-client bridge for high-value assets from Ethereum.
* **Third-Party Integration:** The protocol is designed with **Wormhole** and **LayerZero** endpoints from day one, giving dApps immediate, permissionless access to the entire multi-chain ecosystem (Solana, BNB, TON, etc.).
Part V — Economic Engine & Tokenomics (v0.7)
5.1 The $DOU Token: Fixed Supply, Universal Gas
This section formalizes the cryptoeconomic model of DouChain. It is a finite‑supply, state‑based, multi‑asset model designed for long‑term sustainability.
**5.1 The $DOU Token: A Finite, Deflationary Asset**
DouChain rejects the "perpetual inflation" model. Instead, it introduces a State‑Based Monetary Policy.
* **Genesis State (S_g):** 5,210,000,000 $DOU
* **Terminal State (S_t):** 3,140,000,000 $DOU (the Pi Cap)
* **Burnable Supply:** 2,070,000,000 $DOU
The protocol enforces a deflationary burn on all fees while `CurrentSupply > S_t`. Once `CurrentSupply = S_t`, burning halts permanently and the system transitions into a fixed‑supply Maturity State.
* **Core Utility:**
1. **Universal Gas Token:** $DOU is the *only* token accepted by the protocol for *all* computation, storage, and transaction fees across all Workchains.
2. **Staking & Security:** $DOU is staked by validators (and delegators) to secure the network.
3. **Governance:** Staked $DOU grants voting rights over all protocol parameters.
4. **Sybil Resistance:** $DOU is the economic stake required for dApps to register with the Metrics Council and for nodes to participate in the DOU-ID MPC network.
5.2 Genesis Allocation & Vesting (v0.6.2)
**5.2 Genesis Allocation & Vesting (v0.7)**
The allocation is explicitly designed to empower the community and long‑term builders, not short‑term extractors.
| Allocation | % of Supply | $DOU Amount | Rationale & Vesting Schedule |
| :--- | :--- | :--- | :--- |
| **Community, Labor & Ecosystem** | **60%** | 3.126B | **The "Peasant's Share."** This is the largest pool, funding airdrops, activity mining, the Labor & Data Pools ("Clipper's Guild"), ecosystem grants, and liquidity incentives. *Funds are unlocked via programmatic emissions and DAO votes over 10+ years.* |
| **Early Rebels, Validators & Backers** | **20%** | 1.042B | **Strategic Alignment.** For early node operators, infrastructure partners, aligned strategic capital, and initial market liquidity. *Vesting schedules (e.g., 3y/6mo) ensure long‑term alignment.* |
| **Team & Core Contributors** | **10%** | 521M | **Builder Incentive.** *Standard 4‑year vesting with a 1‑year cliff.* |
| **Foundation / Treasury** | **10%** | 521M | **Public Goods Endowment.** *10‑year linear vesting, ensuring a decade of funding for R&D, grants, legal, and ecosystem‑wide public goods.* |
5.3 The v0.5 Elastic Fee Router: A Sustainable Economy
**5.3 The v0.5 Elastic Fee Router (Dragon Burn)**
This is the core economic engine, replacing the "Landlord's Rake." *All* protocol‑level fees ($DOU) are routed through this single, protocol‑level contract.
**Deflation Phase (Burn Phase):**
* **Maximum Burn:** 5.30% of total block fees.
* **Operational Target:** 1.5–2.5% on average, tuned by governance.
* While `CurrentSupply > 3.14B`, this portion of fees is burned, driving supply from 5.21B toward the Pi Cap.
**Maturity Phase (Pi Cap):**
* When `CurrentSupply = 3.14B`, the burn parameter is set to `0%`.
* The 1.5–5.30% that would have been burned is instead routed to Validators, Delegators, and the Peasant's Rebate.
* Security budgets and ecosystem funding grow with usage, without printing new tokens.
This design ensures that early network growth is paired with meaningful deflation, while long‑term security is sustained purely from real economic activity.
5.4 The "Peasant's Rebate" (30-50% of Fees)
**5.4 The "Peasant's Rebate" (30-50% of Fees)**
This is the "anti-platform" fund. It is the primary growth engine, programmatically routing value to value-creators.
* **Activity Mining Pool:** Rewards users/creators for on-chain engagement (defended by the Metrics Council).
* **Labor Pool:** Funds the "Clipper's Guild" contracts, paying editors/mods for verifiable work.
* **Data Pool:** Pays users for opting into ZK-surveys via DOU-ID.
5.5 Validator Economics: The Multi-Asset Revenue Model
**5.5 Validator Economics: The Multi-Asset Revenue Model**
* **The $DOU Sell-Pressure Problem:** In most L1s, validators earn rewards in the native token and must *sell* it to cover operational costs (hardware, bandwidth), creating constant, non-speculative sell pressure.
* **The DouChain Solution:** Validators and their delegators earn a basket of assets:
1. **$DOU** (from the 45-65% fee share)
2. **Stablecoins (USDC/USDT)** (from users/dApps using the Subsidized Gas feature)
3. **Partner Tokens** (from launchpad projects and dApps "tipping" for priority or incentives)
* **Economic Impact:** A validator can cover their *entire* operational cost in stablecoins, allowing them to treat their $DOU rewards as pure profit. This encourages holding and re-staking, dramatically reducing native token sell pressure and strengthening the network's economic security.
* **Commission Cap:** A **10% default cap** on validator commissions is enforced at the protocol level, protecting delegators from extractive node operators.
Part VI — Governance (DouDAO & The Metrics Council)
6.1 The "Emperor's Fall" Model (Progressive Decentralization)
**6.1 The "Emperor's Fall" Model (Progressive Decentralization)**
DouChain's governance will transition in three phases:
1. **Phase 1: Genesis (Founder-Led):** The core team and Foundation guide the protocol, fix bugs, and deploy the initial Workchains and strategic pillars.
2. **Phase 2: Rebellion (The DouDAO):** Governance is transferred to staked $DOU holders. The DAO gains control over the "Peasant's Rebate" fund, the Foundation Treasury, and all protocol parameters.
3. **Phase 3: Sovereignty (Full Decentralization):** The DAO has full control over all protocol upgrades, hard forks, and the admission of new, community-built Workchains.
6.2 Core Governance Rights ($DOU)
**6.2 Core Governance Rights ($DOU)**
Staked $DOU grants the right to:
1. **Govern the v0.5 Fee Router:**
* Vote to set the **Burn Rate** (within the 1-5% band).
* Vote to adjust the **Redistribution Ratios** (within their defined bands).
2. **Govern the Protocol:**
* Vote to change the **Validator Commission Cap** (default 10%).
* Vote to approve all core **protocol upgrades** and hard forks.
3. **Govern the Treasury:**
* Vote on how to allocate the **Foundation Treasury** and the **Public Goods** fee stream.
4. **Govern the Ecosystem:**
* Elect the **Metrics Council**.
* Vote to approve new **v1 Launchpad Templates** and **DOU-ID Verifiers**.
6.3 The Metrics Council (Sybil Defense)
**6.3 The Metrics Council (Sybil Defense)**
The "Peasant's Rebate" is a prime target for Sybil attacks (bots). The Metrics Council is its active defense.
* **Function:** An on-chain, DAO-elected body of representatives (e.g., top dApps, security researchers, community members).
* **Power:** This council audits dApps plugging into the rebate pool. It requires dApps to "stake" $DOU to register. The Council has the power to propose **slashing a dApp's stake** or ejecting them from the program for submitting fraudulent, bot-driven data. This makes Sybil attacks an *economically loss-making* venture.
Part VII — Security Model: Guarantees & Mitigations (v0.6.2)
7.1 Guarantee: Masterchain Finality
DouChain's security is a multi-layered defense against technical, economic, and regulatory threats.
**7.1 Guarantee: Masterchain Finality**
The core security guarantee is **Masterchain Finality**.
* A 51% attack on a *single* Workchain (e.g., the Gaming Workchain) is **useless**.
* An attacker who controls a Workchain's validators can create invalid blocks, but they *cannot* get them finalized. The Masterchain's full validator set (150-300+) will see the invalid state root, reject it, and **slash** the malicious Workchain validators into oblivion.
* To successfully attack DouChain, an attacker must 51% attack the *entire* network (the Masterchain), which is secured by the total economic stake of all validators.
7.2 Threat Model: Validator Collusion
**7.2 Threat Model: Validator Collusion**
* **Threat:** Validators assigned to a specific Workchain collude to censor or extract MEV.
* **Mitigation:** **Random, Frequent Rotation.** Validators are pseudo-randomly assigned and frequently rotated between Workchains and Shardchains by the Masterchain. It is computationally difficult to predict which validators will be on which shard, preventing long-term collusion.
7.3 Threat Model: Sybil & Social Attacks
**7.3 Threat Model: Sybil & Social Attacks**
* **Threat:** A "bad actor" dApp uses millions of bots to farm the "Peasant's Rebate" Activity Mining pool.
* **Mitigation:** **DOU-ID + The Metrics Council.**
1. **DOU-ID:** The rebate contracts can be configured by the DAO to *only* pay rewards to wallets that hold a basic ZK-proof of personhood, instantly cutting off 99% of bot activity.
2. **Metrics Council:** As described in Part VI, this provides an active, human-governance-in-the-loop defense to slash and eject malicious dApps.
7.4 Threat Model: Regulatory Attack
**7.4 Threat Model: Regulatory Attack**
* **Threat:** A government or regulator bans decentralized applications, citing lack of KYC/AML (the "Monero/Zcash problem" or "Tornado Cash" scenario).
* **Mitigation:** **DOU-ID as a "Compliant Shield."** DouChain is *anti-fragile* to regulation. The core protocol remains permissionless. However, dApps (especially **DouChain Capital Markets**) can *choose* to be compliant by requiring users to provide ZK-proofs of their credentials via DOU-ID. This *optional* compliance layer makes DouChain a safe and viable platform for institutions, tokenized securities, and mainstream adoption, ensuring it cannot be easily "unplugged" by regulators.
Part VIII — Roadmap & Ecosystem Genesis
**Phase 0: Genesis (The Forge)**
* Finalized v0.6.2 Whitepaper & Core Protocol Audits
* Launch of Incentivized Public Testnet (Reward pool from Ecosystem Fund)
* Onboarding of Genesis Validator Set (150-300+) & "Early Rebels" Program
**Phase 1: Rebellion (Mainnet Launch)**
* Mainnet Genesis Block (Masterchain + Core Workchains: Social, Gaming, Data)
* $DOU Token Generation Event (TGE) & Airdrop Campaign (targeting users of extractive platforms)
* Launch of **DOU-ID v1** (Credentialing)
* Launch of **Launchpad v1** (Bonding Curve, Creator Tokens, Native VRF)
* Launch of Interoperability Bridges (Wormhole/LayerZero)
* **Goal:** Capture the "degen" and "creator" energy.
**Phase 2: Coordination (Social & Capital)**
* Launch of **DouChain Messenger (DCM) v1** (E2E Chat, Voice/Video, Mini-Apps)
* Launch of **DouChain Capital Markets (DCM) v1** (Compliant Modules, Rev-Share)
* Launch of the **DouDAO v1** (Governance control over Rebate/Treasury)
* Dynamic Sharding enabled on Testnet.
* **Goal:** Build the social fabric and institutional on-ramps.
**Phase 3: Sovereignty (Full Decentralization)**
* Dynamic Sharding enabled on Mainnet.
* DouDAO gains full control over all protocol upgrades and parameter-setting.
* Network scales to 1,000+ validators.
* Community-led deployment of new, novel Workchains.
* **Goal:** The "Emperor" is fully gone. The protocol is run by the "Peasants."
Part IX — Lore & Cultural Appendix ("The Degen Dizhu")
*Dou Dizhou* ("Struggle Against the Landlord") is a classic Chinese card game, but it is also the core metaphor for the DouChain protocol.
* **The Game:** Two "Peasant's" must coordinate to defeat the single, more powerful "Landlord." If they compete against each other, they both lose. If they cooperate, they win.
* **The Metaphor:**
* **The "Landlord"** = The extractive, centralized "Emperor" platforms (Web2, CEXs, misaligned L1s). They hold all the high cards (the data, the algorithm, the treasury, the 50% rake).
* **The "Peasants"** = The users, creators, clippers, editors, and degen traders. Individually, we are weak. Our labor is exploited (The Clipper's Dilemma), our data is stolen, and our funds are put at risk.
* **The "Rebellion"** = DouChain is the *new set of rules*. It is the protocol that allows the "Peasants" to coordinate *without* trust.
* **The Protocol as the Rules:**
* The **"Peasant's Rebate"** is the mechanism that aligns our incentives.
* The **"Clipper's Guild"** contract (embedded splits) is how we *prove* our contribution and coordinate our labor.
* **DCM** is the secure communication channel for the rebellion.
* **DOU-ID** is how we prove we are a "Peasant" and not a "Landlord's" bot.
DouChain is the game engine that ensures, for the first time, that if the Peasants coordinate, they are *guaranteed* to win.
Part X — Technical Appendices (v0.6.2)
Appendix A: Dou-BFT Consensus State Machine
**Appendix A: Dou-BFT Consensus State Machine (Description)**
A text-based description of the Dou-BFT state flow for a validator:
`Idle` -> `Receive(Propose, B_n)` -> `Validate(B_n)` -> `Send(Validate_Vote, B_n)` -> `Receive(Quorum, B_n)` -> `Send(Commit_Vote, B_n)` -> `Receive(Final, B_n)` -> `Execute(B_n)` -> `Idle`.
This process is pipelined, meaning the validator can enter `Receive(Propose, B_n+1)` after `Send(Validate_Vote, B_n)`.
Appendix B: v0.5 Elastic Fee Router (Pseudocode)
**Appendix B: v0.5 Elastic Fee Router (Pseudocode)**
```rust
// Simplified pseudocode for the v0.5 Fee Router
struct FeeRouterParams {
burn_rate: u16, // basis points, e.g., 200 = 2%
val_share: u16, // basis points
reb_share: u16, // basis points
fnd_share: u16, // basis points
}
fn route_fees(total_fees: u128, params: FeeRouterParams) {
// 1. Burn
let burn_amount = (total_fees * params.burn_rate) / 10000;
token::burn(burn_amount);
// 2. Calculate Distributable
let distributable = total_fees - burn_amount;
// 3. Redistribute
// Note: val_share + reb_share + fnd_share must equal 10000
let validator_amount = (distributable * params.val_share) / 10000;
let rebate_amount = (distributable * params.reb_share) / 10000;
let foundation_amount = (distributable * params.fnd_share) / 10000;
// Send to respective protocol contracts
staking_contract::add_rewards(validator_amount);
rebate_contract::add_funds(rebate_amount);
foundation_treasury::deposit(foundation_amount);
}
```
Appendix C: DOU-ID Credential Flow
**Appendix C: DOU-ID Credential Flow (Sequence)**
User: generate_pii_key() -> encrypt_pii(data) -> submit_shards(encrypted_data) -> MPC_Vault.
User: request_verification("is_accredited") -> DAO_Approved_Verifier.
Verifier: grant_one_time_access(user_wallet) -> MPC_Vault.
Verifier: verify_decrypted_shards(data) -> (bool: is_accredited).
Verifier: sign_credential(user_wallet, "is_accredited", TRUE) -> User_Wallet.
User: generate_zk_proof("is_accredited") -> (proof_bytes).
User: call_dcm_contract("join_sto", proof_bytes) -> DCM_Contract.
DCM_Contract: verify_zk_proof(proof_bytes, verifier_pubkey, "is_accredited") -> (bool: TRUE).
DCM_Contract: add_user_to_whitelist(user_wallet).
Appendix D: Gas Model & DVM (WASM)
**Appendix D: Gas Model & DVM (WASM)**
The DVM's gas schedule is designed to precisely meter computation and storage. Key native opcodes will be priced to incentivize use of protocol-native functions:
* call_native_vrf: Priced to be cheaper than any on-chain RNG implementation.
* call_zk_verify: Priced to be efficient for verifying DOU-ID proofs.
* call_dcm_send: Priced for low-cost, on-chain social interactions.
* storage_rent: A state-rent mechanism (or similar) will be implemented to manage long-term state bloat, charging contracts for the data they keep in active state.
Appendix E: Native VRF (Properties)
**Appendix E: Native VRF (Properties)**
The DouChain native VRF, accessible on the Gaming & Markets Workchain, guarantees:
* **Unpredictability:** No user, validator, or dApp can predict the random output before it is generated.
* **Verifiability:** Any node on the network can verify the cryptographic proof that the randomness was generated correctly.
* **Non-Manipulability:** The VRF output is tied to the block's consensus, making it impossible for the block-producing validator to influence or re-roll the result in their favor.
Appendix F: References & Prior Work
**Appendix F: References & Prior Work (Placeholder)**
[1] Ethereum: A Next-Generation Smart Contract and Decentralized Application Platform
[2] Solana: A new architecture for a high-performance blockchain
[3] The TON Blockchain: Technical Whitepaper
[4] ZkSync: A ZK-Rollup for Ethereum
[5] HotStuff: BFT Consensus in the Lens of Blockchain
[6] The Pump.fun Mechanism
[7] Wasm: Indistinguishable Applications
*This document is for informational purposes only and does not constitute an offer to sell or a solicitation of an offer to buy any security or token. The information herein is subject to change. The DouChain protocol is in development, and its final implementation may differ from the descriptions provided.*
The whitepaper contains complete technical specifications, architecture, and implementation details.
For a quick overview, see the Lightpaper.