Expand description
Storage for the validation archive.
The archive is written in segments. The current segment is an append-only journal. A closed segment is compressed and gets a seal that includes the hash of the previous seal, so a segment cannot be replaced or dropped from the middle without it showing.
We store the original: the raw signed validation exactly as the network sent it, plus the receive time and the ledger index for navigation. Everything else is derived from the original.
Re-exports§
pub use record::Record;pub use seal::Seal;pub use segment::SegmentConfig;pub use segment::SegmentWriter;
Modules§
- journal
- Journal of the current segment: an append-only file.
- record
- One archive record is one received validation.
- seal
- Seal of a closed segment.
- segment
- Writing the archive in segments.
Enums§
- Error
- Storage errors.