2 releases

0.2.4 Aug 19, 2024
0.2.3 Apr 2, 2024

#635 in Data structures

Download history 528/week @ 2024-08-19 1250/week @ 2024-08-26 705/week @ 2024-09-02 605/week @ 2024-09-09 536/week @ 2024-09-16 650/week @ 2024-09-23 496/week @ 2024-09-30 563/week @ 2024-10-07 559/week @ 2024-10-14 716/week @ 2024-10-21 755/week @ 2024-10-28 1078/week @ 2024-11-04 1029/week @ 2024-11-11 1166/week @ 2024-11-18 672/week @ 2024-11-25 1141/week @ 2024-12-02

4,020 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

~5.5MB
~91K SLoC