Expand description
Seal of a closed segment.
A seal commits to the segment’s content (the uncompressed bytes) and references the hash of the previous seal. The seal chain makes the archive immutable after the fact: replacing any segment, or removing one from the middle, breaks every hash that follows.
Compression is not part of the seal; it is a storage detail. A segment can be recompressed at another level or with another codec without changing the chain, and the check is always the same: decompress and compare the content hash.
A seal is plain JSON next to the segment, so it can be read by eye and
checked with any tool. The seal hash is SHA-512Half of its canonical JSON
without the seal_hash field; field order is fixed by the struct order.
Structs§
Constants§
Functions§
- missing_
ranges - Ledgers in [first, last] that are not in
seen, merged into ranges.