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)`.