State commitment
Produces the root app hash that validators compare when they commit, and serves proofs for retained heights where the chosen backend supports them.
Storage layer
PaxDB is where each Paxeer X node keeps state, history and receipts, and commits one hash per block.
Surface
Layer 1
Memiavl keeps the Merkleized AVL tree in memory and writes only each block's changeset, so a node commits quickly without leaving the tree Cosmos chains use.

The first stage moves EVM state.
The second stage moves the remaining modules, bank excepted.
The final stage moves bank.
Layer 2
The design follows Cosmos store v2 (ADR-065): a state commitment backend for hashes and proofs, and a separate state store for raw versioned pairs.
Sample
Produces the root app hash that validators compare when they commit, and serves proofs for retained heights where the chosen backend supports them.
Versioned key and value pairs let you read state as of an earlier block without replaying the chain. PebbleDB is the default engine; RocksDB is available with its build tag.
Execution results are indexed by transaction hash and cached. Receipts default to PebbleDB, and retention follows the node's minimum-retain-blocks setting.
Layer 3
Every change is recorded in the write-ahead log before it is relied on. On restart the node loads a snapshot and replays the log after it.
Sample
The commitment layer uses the log as its changelog, and snapshot retention decides how far back the log must reach. The operator tool can also scan the changelog to recover PebbleDB data.
With a write buffer configured, commits queue their writes and wait only when the bounded queue is full.

Layer 4
PebbleDB is the default engine, with RocksDB and LittDB beside it. The paxdb tool lets operators look at what is on disk.
Layer 5
The hash vault writes each height's block hash to disk, waits until it is durable and refuses a different hash for the same retained height.
Sample
Bottom layer
For every block, PaxDB produces the state commitment that validators compare when they commit.
