Crate sov_db

Source
Expand description

Defines the database used by the Sovereign SDK.

  • Types and traits for storing and retrieving ledger data can be found in the ledger_db module
  • DB “Table” definitions can be found in the schema module
  • Types and traits for storing state data can be found in the state_db module
  • The default db configuration is generated in the rocks_db_config module

Modules§

ledger_db
Implements a wrapper around RocksDB meant for storing rollup history (“the ledger”). This wrapper implements helper traits for writing blocks to the ledger, and for serving historical data via RPC
native_db
Implements a wrapper around RocksDB meant for storing state only accessible outside of the zkVM execution environment, as this data is not included in the JMT and does not contribute to proofs of execution.
rocks_db_config
Implements helpers for configuring RocksDB.
schema
Defines the tables used by the Sovereign SDK.
state_db
Implements a wrapper around RocksDB meant for storing rollup state. This is primarily used as the backing store for the JMT(JellyfishMerkleTree).