Add doctest / coverage to ensure that the checksum is properly calculated: - It must be of a certain bit size based on the data segment size, - It must match the first bits of `sha256(data)`.
Add doctest / coverage to ensure that the checksum is properly calculated:
sha256(data).