2 releases

0.2.4 Aug 19, 2024
0.2.3 Apr 2, 2024

#562 in Data structures

Download history 534/week @ 2024-07-30 599/week @ 2024-08-06 511/week @ 2024-08-13 528/week @ 2024-08-20 1173/week @ 2024-08-27 818/week @ 2024-09-03 519/week @ 2024-09-10 620/week @ 2024-09-17 551/week @ 2024-09-24 504/week @ 2024-10-01 544/week @ 2024-10-08 764/week @ 2024-10-15 567/week @ 2024-10-22 775/week @ 2024-10-29 1118/week @ 2024-11-05 1035/week @ 2024-11-12

3,768 downloads per month

MIT license

17KB
344 lines

Keccak256-based structured commitments

This library provides utilities for defining hashes of structured data, in a way that supports nested data structures and automatic domain separation (ie, two structures with different fields will never feed the same input into the hash function).

WARNING

Implementing Committable using RawCommitmentBuilder is a manual process that should be done carefully. In the future, we will provide a macro to automatically implement Committable in a reasonable way, but for now, use this library with caution.

Dependencies

~5MB
~90K SLoC