Skip to main content

Module reconstruction

Module reconstruction 

Source
Expand description

Dormant state reconstruction pipeline (ADR-136).

Dormant memory is not stored as raw bytes. Instead, it is stored as a checkpoint snapshot plus a sequence of witness-recorded deltas. To restore a dormant region to the warm tier, the reconstruction pipeline:

  1. Loads the checkpoint (compressed with LZ4).
  2. Applies the witness delta log in sequence order.
  3. Validates the final state hash against the expected value.

§Compression

The pipeline uses a simple byte-level compression stub. In production, this would be backed by lz4_flex or a hardware compression engine. The stub is sufficient for correctness testing.

§No-std Compatibility

All operations work on caller-provided fixed-size buffers. No heap allocation occurs.

Structs§

CheckpointId
A checkpoint identifier (references a stored compressed snapshot).
CompressedCheckpoint
A compressed checkpoint snapshot.
ReconstructionPipeline
The reconstruction pipeline.
ReconstructionResult
Result of a reconstruction operation.
WitnessDelta
A single delta entry from the witness log.

Functions§

create_checkpoint
Create a compressed checkpoint from raw region data.