pub fn encode_block(hash: &BlockHash, block: &KvBlock) -> Vec<u8> ⓘExpand description
Serializes a block. The hash is stored inside the file as well as
in its name, so a block found under a wrong or renamed path can
still be checked against the identity it claims.