Crate solana_ledger[−][src]
Modules
The blockstore
module provides functions for parallel verification of the
Proof of History ledger as well as iterative read, append write, and random
access read to a persistent file-based ledger.
The entry
module is a fundamental building block of Proof of History. It contains a
unique ID that is the hash of the Entry before it, plus the hash of the
transactions within it. Entries cannot be reordered, and its field num_hashes
represents an approximate amount of time since the last Entry was created.
Erasure Coding and Recovery
The Poh
module provides an object for generating a Proof of History.
The shred
module defines data structures and methods to pull MTU sized data frames from the
network. There are two types of shreds: data and coding. Data shreds contain entry information
while coding shreds provide redundancy to protect against dropped network packets (erasures).