Source: docs/lotus-v2/rationale.md
🎯 Why: Document the engineering tradeoffs that keep Lotus V2 parallelizable and Hard-Fork-Free.

In Practice: Why Lotus avoids fragile design shortcuts from older blockchains and how developers build auctions, timers, and shared state safely.

Under the Hood: Formal justification for excluding OP_BLOCKHEIGHT, OP_UTXOPROOFVERIFY, and read-only inputs to preserve C22a monotone mempool validity.

Design rationale and claim boundaries

Status: explanatory, not normative. Consensus owns rules; decisions owns alternatives.

Authorization and assets

Alternative paths express OR; the required branches within one path express AND. Branch MASTs select methods within a role. Asset accounting is a separate obligation: conserving token units does not prove the owner approved, and owner approval does not authorize additional supply. Program-derived token identity supports continuing mint authority and is the chosen model (D05): a token ID is the root of its mint scripts. The earlier outpoint-derived design is superseded; which of its historical code is reusable remains to be settled.

A branch MAST needs unordered script membership (BranchNode(a, b) = H_branch(01 || min(a, b) || max(a, b))), whereas both the block's non-coinbase transaction tree (Subtree A in tx_root) and the global UTXO state map (UtxoRoot in state_root) require consistent key-prefix range partitioning (256-bit single-leaf-collapsed Merklix trees keyed by TxID and txid || vout respectively) so that mempool acceptance, transaction subtree hashing, and UTXO validation can be sharded horizontally across CPU cores and processes without cross-shard array-index synchronization (Sharding Bitcoin Cash, 2018; see P02). Combining the coinbase leaf with Subtree A at the top of tx_root (H_txroot(03 || CoinbaseLeaf || SubtreeA)) and pipelining coinbase UTXO insertion into a subsequent block allow the block coordinator to finalize both tx_root and state_root in $O(1)$ after aggregating shard subtree roots and fee sums, while preserving txid-prefix co-location between dbi_coins (Vout lookup) and dbi_smt_nodes (path-based Merklix branch storage).

Leaf/interior tags follow the principle illustrated in RFC 6962 §2.1. Their inputs are distinct by construction, while security of their outputs still relies on cryptographic assumptions. BLAKE3's internal compression flags do not tag the application's scripts and tree nodes automatically. Duplicate-leaf ambiguity and leaf/interior ambiguity are separate concerns; the old draft conflated them. Adding a second leaf normally changes a root even when the first leaf's encoding is unchanged.

What belongs to the daemon

Memory layout, RAM trie representation, RocksDB/LevelDB selection, write-behind, mempool indexes, block-template algorithms, RPCs and transport may evolve if they preserve accepted blocks and required state. The authenticated-state root algorithm is consensus even when its physical storage is replaceable. Snapshot discovery/streaming can evolve; snapshot trust cannot be inferred from transport success.

A matching state root detects a mismatch; it does not reconstruct lost state. Crash recovery needs a durable atomic boundary linking block index, coins, undo and monetary state, plus a replay policy. Likewise, fixed-width fields do not automatically align a packed wire record. Two-minute spacing does not eliminate stale blocks.

Two classic Bitcoin protocol hazards—quadratic $O(N^2)$ signature hashing and parent-transaction / oversized-output OOMs—are eliminated by consensus construction rather than left to ad-hoc daemon workarounds:

The scope of post-genesis improvements must be reviewed. New wallet languages and optimized validation can preserve semantics. Different hashes, changed resource ceilings, transaction versions or monetary parameters change consensus unless their behavior was already completely defined at genesis. New operations fit without a hard fork only through P03's named extension points, whose assignment can narrow validity but never widen it. No advisory voting layer can authorize anything beyond that; such a change is a hard fork, which the design aims to make unnecessary.

Monetary research

Research sources are the papers Adaptive PoW Monetary Policy Without Oracles: A Constructive Mechanism for Pseudo-Stability via Work-Coupled Tail Emission and Burn (main.tex SHA-256 60f845adc6b3645722e97cad3b7f8e315cc557d4ab4b27f851eba0770ef4dacd) and CashWeb: A Cryptocurrency-Integrated Protocol for Federated Anti-Spam Messaging and Publish-Subscribe Systems (main.tex SHA-256 29b71351f2a6558d721b90cc44fafb59bca4c19a7d3db5b928112d4cb08a79e4). The hashes identify the exact paper revisions read; they are more precise than a repository commit when a paper has local edits.

The paper's height-decaying bootstrap plus genesis-anchored absolute work-responsive tail is realized in P06 as a single smooth additive block subsidy $S_n = B_n + T_n$ active from Block 1, backed by the canonical MonetaryState record (56 bytes bootstrap_reserve:u64 || tail_subsidy:u64 || prev_work:u256 || ema_block_cost:u64 at Genesis $h = 0$, and 88 bytes with 32-byte history_root appended at $h \ge 1$ in P02):

A miner's immediate reward and its influence on future difficulty need not accrue to the same party. Evaluate complete feasible timestamp histories under the exact DAA, not arbitrary independent choices of future difficulty. Local stability under a simplified hashrate model does not prove truthful timestamps or resistance to mobile miners. D10 separates the deterministic integer recurrences in P06 from economic simulation of the final constants.

For application demand, write $A_n$ for the actual external-currency budget spent on native burns and $P_n>0$ for external currency per XPI. The resulting burn is approximately $A_n/P_n$ XPI, with atom rounding and transaction costs. A price decline raises coin-denominated burns only if budgets and participation persist; if attention demand collapses, $A_n$ can fall faster than $P_n$. The papers' burn-to-speak loop is therefore a conditional economic hypothesis, not an automatic price floor. At the candidate $250{,}000$ XPI tail and 120-second target, a steady 365-day year would issue $65.7$ billion tail XPI. At a reference price of $1/XPI, replacing that tail with voluntary burns alone after bootstrap would require about $65.7$ billion/year of actual external spending. That figure assumes the tail stays fixed and ignores other burns/underclaims; it is neither a launch forecast, peg, nor supply guarantee.

The monetary paper's aggregate expectation writes a gross fee term before subtracting its fee burn. For V2 accounting, C16 is normative: $\Delta M_n=S_n-B-U-\text{Burn\_explicit}$. The fee share paid to miners and optional tips transfer existing coins; they do not create issuance or count as burns. $B$ includes mandatory C14a token-output burn and the burned share of remaining native fees; a native IS_BURN output counts once in $\text{Burn\_explicit}$, separately from fees. CashWeb's proof-of-payment construction links an unspendable output to an off-chain message; V2 applications can verify a native IS_BURN receipt for this purpose without adding a new consensus policy or counting its burn twice.

The monetary paper's Lyapunov theorem establishes local convergence only in its linearized model with persistent fiat-budget burns, immediate hashrate response, an assumed price response and inactive clipping; it does not establish these premises in a deployed V2 market or fix a price level. Genesis calibration needs joint simulations of adoption and burn-budget persistence, price elasticity, mining lag, energy and hardware shocks, clipping and integer rounding, correlated demand/price/work shocks, and the miner security payout remaining after fee burns and required underclaims. Include cold-start and demand-collapse paths, then report the resulting supply and security ranges as scenario outcomes.

Rejected opcodes and consensus features (and how to build those contracts instead)

Several recurring requests—block-header introspection opcodes, in-script global UTXO proofs, read-only reference inputs, witness-inclusive OP_TXHASH, protocol-level subsidy faucets, memory-hard PoW algorithms, and hard byte-cap walls—are deliberately excluded from Lotus v2. Recording why they are rejected and how to express their target goals idiomatically prevents future specs or contract authors from reintroducing consensus hazards when cleaner mechanisms already solve the underlying problems.

1. OP_BLOCKHEIGHT, OP_BLOCKTIME, OP_BLOCKHASH, and block-dependent transactions

2. OP_UTXOPROOFVERIFY (in-script global UTXO state proofs)

3. Read-only reference inputs (D06)

4. In-script OP_TXHASH (witness-inclusive transaction hash)

5. Avalanche-controlled payouts (D11)

Payout coordination (D11) uses Bitcoin ABC's existing Avalanche winner-selection and staking-reward parking machinery. P06 records the exact source behavior and V2 integration boundary. Payouts divide the resource-adjusted coinbase entitlement; they do not increase issuance. Treasury contracts, genesis vesting allocations, controller coins, and mutable treasury state are excluded. Local Avalanche polling state is coordination policy, not a deterministic historical consensus input.

6. Memory-hard and GPU-targeted PoW algorithms (ProgPoW, KawPoW, Ethash, RandomX) (D12)

7. Arbitrary hard byte-cap walls MAX_TX_BYTES and MAX_BLOCK_BYTES (D08)

The byte minimum is 1,000 native atoms per 1,000 bytes. Coinbase and block framing pay from reward underclaim; P05 defines the exact payout deduction. Opcode upgrades retain the genesis monetary accounting view for the committed EMA and may impose higher enforcement costs only as additional validity restrictions.

The candidate tail is the absolute genesis-anchored form, selected after an arithmetic review; it supersedes the paper's recurrence. P06 defines F(work)=clip(isqrt(T_g²*work//W_g)) with the same reward lag. Returning to a work level restores its anchored entitlement after rounding or saturation; this does not establish economic stability or fix launch constants. The monetary envelope retains checked redundancy for compatibility with existing commitment encoding.


References

  1. [Nakamoto 2008] Satoshi Nakamoto, "Bitcoin: A Peer-to-Peer Electronic Cash System", October 2008 (https://bitcoin.org/bitcoin.pdf).
  2. [Chancellor 2026] Shammah Chancellor, "Adaptive PoW Monetary Policy Without Oracles: A Constructive Mechanism for Pseudo-Stability via Work-Coupled Tail Emission and Burn", Lotus Network Technical Paper, 2026.
  3. [Lau & Wuille 2016a] Johnson Lau and Pieter Wuille, "BIP 114: Merkelized Abstract Syntax Tree", Bitcoin Improvement Proposals, April 2016.
  4. [Wuille, Nick, & Towns 2020a] Pieter Wuille, Jonas Nick, and Anthony Towns, "BIP 341: Taproot: SegWit version 1 spending rules", Bitcoin Improvement Proposals, January 2020.
  5. [Wuille, Nick, & Towns 2020b] Pieter Wuille, Jonas Nick, and Anthony Towns, "BIP 342: Validation of Taproot Scripts", Bitcoin Improvement Proposals, January 2020.
  6. [Todd 2014] Peter Todd, "BIP 65: OP_CHECKLOCKTIMEVERIFY", Bitcoin Improvement Proposals, October 2014.
  7. [Friedenbach, BtcDrak, Dorier, & Kinoshita 2015] Mark Friedenbach, BtcDrak, Nicolas Dorier, and kinoshita, "BIP 68: Relative lock-time using consensus-enforced sequence numbers", Bitcoin Improvement Proposals, May 2015.
  8. [Buterin et al. 2019] Vitalik Buterin, Eric Conner, Rick Dudley, Matthew Slipper, Ian Norden, and Abdelhamid Bakhta, "EIP-1559: Fee market change for ETH 1.0 chain", Ethereum Improvement Proposals, April 2019.
  9. [Roughgarden 2020] Tim Roughgarden, "Transaction Fee Mechanism Design for the Ethereum Blockchain: An Economic Analysis of EIP-1559", arXiv:2012.00854, December 2020.
  10. [O'Connor & Piekarska 2017] Russell O'Connor and Marta Piekarska, "Enhancing Bitcoin Transactions with Covenants", in Financial Cryptography and Data Security (FC 2017), LNCS vol. 10323, pp. 191–198, 2017.