1 unstable release

0.2.3 Apr 2, 2024

#452 in Data structures

Download history 156/week @ 2024-03-29 420/week @ 2024-04-05 366/week @ 2024-04-12 654/week @ 2024-04-19 705/week @ 2024-04-26 700/week @ 2024-05-03

2,495 downloads per month

MIT license

17KB
341 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
~96K SLoC