Spicenet Docs
  • Welcome to Spicenet
  • Introduction to Spicenet
    • Understanding the Need for a Global Financial Internet
    • The Sovereign Rollup Approach
  • Core Technical Architecture
    • The Nearly Optimal Merkle Tree (NOMT)
    • Asynchronous Execution Pipeline
    • Validator System Architecture
    • Shockwave
  • Advanced Technical Components
    • Sharding Implementation
    • Decentralized Sequencing
    • Based Multiple Concurrent Proposers
    • Multi-Staking Protocol
  • spicenet trading stack
    • Spicenet Trading Stack: Enshrined Liquidity and Market Structure
    • Unified Margin Accounts (UMAs)
    • Global and Local Markets
    • Instrument and Product Specification
    • Flashbooks: Intention-Based Orderbooks
    • Network-Owned Liquidity(NoL): A Deep Dive
    • Decoupled Order Matching and Settlement
  • spicenet execution network
    • Spicenet Execution Network
  • Products
    • PepperDEX: The Connective Tissue of Spicenet
    • hotUSD: the first Bitcoin dollar
    • User Abstraction Suite
    • Capsule: Smart Wallet Module
  • $SPICE Token
    • What is $SPICE?
    • $SPICE Utility
    • $SPICE Distribution
    • Airdrop and Ambassador Program
Powered by GitBook
On this page
  1. Core Technical Architecture

The Nearly Optimal Merkle Tree (NOMT)

PreviousThe Sovereign Rollup ApproachNextAsynchronous Execution Pipeline

Last updated 5 months ago

One of the biggest performance bottlenecks in blockchain systems is state management - how quickly can you update and verify the system's state? Traditional Merkle trees, while secure, are slow because they require many disk reads and complex hash calculations.

Let's break down how NOMT solves this with a concrete example:

In a traditional 16-ary Merkle tree (like Ethereum's), to update a single account balance:

  1. Read 16 sibling nodes at each level

  2. Compute 16 hashes at each level

  3. Update the entire path to the root

This means that for a tree with 1 million accounts (depth ~5), you need:

  • ~80 disk reads (16 * 5)

  • ~80 hash computations

  • Multiple disk writes

NOMT optimises this process:

The result? The same account update in NOMT requires:

  • ~10 disk reads (2 * 5)

  • ~10 hash computations

  • Efficient batch writes

Real-world impact: NOMT enables Spicenet to process thousands of state updates per second, essential for a high-performance exchange.