This PR adds support for serializing/deserializing Hashes using mempack library. This is needed for Ledger to implement efficient snapshot creation.
The only breaking affect on downstream users of this PR is that Hash serialization will now require KnownNat or HashAlgorithm constraint.
Checklist
[x] Commit sequence broadly makes sense and commits have useful messages
[x] New tests are added if needed and existing tests are updated
[x] All visible changes are prepended to the latest section of a CHANGELOG.md for the affected packages.
New section is never added with the code changes. (See RELEASING.md)
[ ] When applicable, versions are updated in .cabal and CHANGELOG.md files according to the
versioning process.
[ ] The version bounds in .cabal files for all affected packages are updated.
If you change the bounds in a cabal file, that package itself must have a version increase. (See RELEASING.md)
Description
This PR adds support for serializing/deserializing
Hash
es usingmempack
library. This is needed for Ledger to implement efficient snapshot creation.The only breaking affect on downstream users of this PR is that
Hash
serialization will now requireKnownNat
orHashAlgorithm
constraint.Checklist
CHANGELOG.md
for the affected packages. New section is never added with the code changes. (See RELEASING.md).cabal
andCHANGELOG.md
files according to the versioning process..cabal
files for all affected packages are updated. If you change the bounds in a cabal file, that package itself must have a version increase. (See RELEASING.md)