V2 development draft · Source at 00505898

Lotus V2: Programmable Digital Cash Built for Planetary Scale

Status: specification & reference implementation suite.


1. Why Lotus Exists

<div class="lens-grid"> <div class="lens-card lens-consumer">

In Practice

Digital money shouldn't force a tradeoff between speed, safety, and programmability:

Lotus V2 is built so anyone can send, save, and program sound digital cash instantly—with sub-second finality, 100,000 to 1,000,000+ transactions per second, self-custodied safety, and a monetary supply that automatically burns fees as network usage grows.

</div> <div class="lens-card lens-engineer">

Under the Hood

Legacy UTXO protocols inherited 2009 serialization bugs, unindexed linear Merkle trees, single-threaded mempool locks (cs_main), and block-dependent script opcodes that break mempool monotonicity. Account-model VMs traded away independent input parallelism for shared global storage maps ($O(\log N)$ random I/O per SSTORE on a single serialization bottleneck).

Lotus V2 is a clean-slate UTXO protocol and lock-free C++20 node architecture (lotusd) built around one invariant: every transaction, state commitment, and VM invocation partitions horizontally across CPU cores without cross-shard coordination, while freezing a complete validity function at Genesis so disruptive hard forks are unnecessary.

</div> </div>


2. How Lotus Works: Six Core Ideas

2.1 Composable Multi-Path Coins & Native Tokens

<div class="lens-grid"> <div class="lens-card lens-consumer">

In Practice

</div> <div class="lens-card lens-engineer">

Under the Hood

</div> </div>


2.2 Monotone Validity & Lock-Free Parallelism

<div class="lens-grid"> <div class="lens-card lens-consumer">

In Practice

</div> <div class="lens-card lens-engineer">

Under the Hood

</div> </div>


2.3 Authenticated State & Header History Merkle Tree

<div class="lens-grid"> <div class="lens-card lens-consumer">

In Practice

</div> <div class="lens-card lens-engineer">

Under the Hood

</div> </div>


2.4 Bounded Expressive VM (int128 to 8,192-Bit Math)

<div class="lens-grid"> <div class="lens-card lens-consumer">

In Practice

</div> <div class="lens-card lens-engineer">

Under the Hood

</div> </div>


2.5 Smooth Issuance, Work-Responsive Tail & 50% Fee Burn

<div class="lens-grid"> <div class="lens-card lens-consumer">

In Practice

</div> <div class="lens-card lens-engineer">

Under the Hood

</div> </div>


2.6 134-Byte Pure BLAKE3 Headers, Avalanche Finality & Snowstorm Pseudo-Consensus

<div class="lens-grid"> <div class="lens-card lens-consumer">

In Practice

</div> <div class="lens-card lens-engineer">

Under the Hood

</div> </div>


3. What Lotus Specifies: Document Map

Interactive HTML Documentation: Open site/index.html (or run python3 docs/lotus-v2/tools/render_html.py) for the rendered HTML book with Full View / Overview / Under the Hood toggling.

Core Consensus & Decision Packets (P01–P06)

Document Scope & Key Contents
Consensus Specification (consensus.md) Normative validity rules C01–C28: encoding, MAST branches, IndexedTreeRoot, UTXO resolution, fee burn, VM bounds, and block transitions.
Header History Merkle Tree (header-history-tree.md) HeaderHistoryFrontier, HeaderHistoryRoot in MonetaryState, $O(\log H)$ HeaderInclusionProof, and RPC verification.
P01: Encoding & Signatures (decisions/encoding-and-signatures.md) 16-byte transaction prefix, packed 64-bit lock word, input kinds (01 spend, 02 coinbase, 03 mint), output flags (HAS_TOKEN, IS_BURN, HAS_STATE), and $O(1)$ Merkleized BIP340 sighash modes.
P02: Commitments & State (decisions/commitments-and-state.md) BLAKE3 domain registry, Branch MAST, IndexedTreeRoot, prefix-sharded TxRoot (Subtree A), single-leaf-collapsed UtxoRoot, MonetaryState, StateRoot, and HEADER_HISTORY.
P03: VM Semantics (decisions/vm-semantics.md) Structured control flow, enumeration loops, OP_SUCCESS_N scan, 16..1024-byte (128..8192-bit) signed two's-complement arithmetic, and introspection opcodes.
P04: Header & Mining (decisions/header-and-mining.md) 134-byte header layout, 48-bit timestamp, two-stage BLAKE3 PoW (H_headerbody / H_headerwork / H_blockid), and integer ASERT difficulty adjustment.
P05: Resources & Parameters (decisions/resources-and-parameters.md) Unified Cost Units (cu), linear static upper-bound pass, parabolic transaction cost $C_{\text{tx}}$, rolling ema_block_cost $E_n$, and mandatory block fee-burn floor.
P06: Issuance & Time (decisions/issuance-and-time.md) Additive subsidy $S_n = B_n + T_n$ (telescoping bootstrap reserve $R_n$ + work-responsive adaptive tail $T_n$), 50% fee burn, and Avalanche 50/25/25 reward coordination.
Deferred Checks (deferred-checks.md) Two-phase parallel input script execution and post-invocation ENFORCEOUTPUT conservation/feasibility verification (C12a).
Design Rationale (rationale.md) Why OP_BLOCKHEIGHT, OP_UTXOPROOFVERIFY, and read-only inputs were rejected to preserve monotone mempool validity (C22a), and how to build auctions, timers, and shared state instead.

Developer, Wallet & Application Specifications

Document Scope & Key Contents
Script & Wallet ABI (script-abi.md) Stack framing, canonical 16-byte booleans, int128..int8192 operand rules, and compiler calling conventions.
Native Addresses (addresses.md) Typed xpi1... address format for explicit MAST roots and parameterized standard templates.
Message Signing (message-signing.md) Off-chain application message signatures and compact branch-membership proofs.
PSBT Profile (psbt.md) Native Lotus V2 Partially Signed Transaction interchange format and hardware-wallet signing vectors.
Browser Connect (browser-connect.md) Privacy-preserving W3C MessageChannel (lotus-connect/1) dApp-to-wallet capability protocol with zero supercookie tracking.
Worked Smart Contract Examples (examples/README.md) Executable contract gallery, EVM-to-Lotus porting guides (ERC-20, ERC-721, AMMs & Markets, Controls), and test vectors.

Networking, Pre-Consensus & Verification

Document Scope & Key Contents
Snowstorm Pseudo-Consensus (snowstorm.md) Multi-peer rateless $\text{GF}(2^{64})$ BCH fountain miniblocks (RatelessMiniblock), coupled peeling decoder (~30% cell overhead), symmetric BatchId(E) conflict quarantine, Type 1/2/3 algebraic fraud proofs, and 0-RTT SnapBlock propagation.
Peering & Pre-Consensus (peering.md) High-throughput P2P relay, submitminedheader, Avalanche batch voting, and bulk template pre-consensus.
Mempool Reconciliation (mempool-reconciliation.md) Pinned epoch snapshots and authenticated prefix-page set reconciliation.
Validation & Conformance (validation.md) Reference evaluator boundary, differential test obligations, and Genesis launch gates.
Decision Register (decisions.md) Status of all decision packets (D01–D15) and pre-genesis calibration items.
Decision History (decisions/history.md) Dated record of decisions: date, decision ID, change and link.

How these documents are organized


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. [Oak 2026] Professor Oak, "Snowball to Snowstorm: Rateless Set Reconciliation and Probabilistic Mempool Preconsensus for Proof-of-Work Blockchains", October 2026.
  4. [O'Connor, Aumasson, Neves, & Wilcox-O'Hearn 2020] Jack O'Connor, Jean-Philippe Aumasson, Samuel Neves, and Zooko Wilcox-O'Hearn, "BLAKE3: One Function, Fast Everywhere", January 2020 (https://github.com/BLAKE3-team/BLAKE3-specs).
  5. [Vermorel, Séchet, Chancellor, & van der Wansem 2018] Joannes Vermorel, Amaury Séchet, Shammah Chancellor, and Tomas van der Wansem, "Canonical Transaction Ordering for Bitcoin", June 12, 2018.
  6. [Vermorel, Séchet, Chancellor, & Cox 2018] Joannes Vermorel, Amaury Séchet, Shammah Chancellor, and Jason Cox, "Merklix Tree for Bitcoin", July 2018.
  7. [Wuille, Nick, & Ruffing 2020] Pieter Wuille, Jonas Nick, and Tim Ruffing, "BIP 340: Schnorr Signatures for secp256k1", Bitcoin Improvement Proposals, January 2020.
  8. [Wuille, Nick, & Towns 2020a] Pieter Wuille, Jonas Nick, and Anthony Towns, "BIP 341: Taproot: SegWit version 1 spending rules", Bitcoin Improvement Proposals, January 2020.
  9. [Dahlberg, Pulls, & Peeters 2016] Rasmus Dahlberg, Tobias Pulls, and Roel Peeters, "Efficient Sparse Merkle Trees: Caching Strategies and Secure (Non-)Membership Proofs", in Proceedings of the 21st Nordic Conference on Secure IT Systems (NordSec 2016), LNCS vol. 10014, pp. 199–215, 2016 (IACR ePrint 2016/683).
  10. [Rocket et al. 2019] Team Rocket, Maofan Yin, Kevin Sekniqi, Robbert van Renesse, and Emin Gün Sirer, "Scalable and Probabilistic Leaderless BFT Consensus through Metastability", arXiv:1906.08936, 2019.