ZenGo-X / curv

Rust language general purpose elliptic curve cryptography.
MIT License
264 stars 111 forks source link

Make the commitments generic over the hash function and remove deprecated hashing traits #129

Closed elichai closed 2 years ago

elichai commented 3 years ago

As was specified in: https://github.com/ZenGo-X/curv/pull/128#discussion_r684750324 This will allow the user to choose their own hash function when using our hash and related commitments, it also removes deprecated hashing traits that are no longer in use.

I added a macro to run all the related tests over multiple hash functions (right now: sha256, sha512, sha3_256, sha3_512, blake2b, blake2s)

This is based on #128 so for now I made try-and-increment the base branch but will change that if and when #128 will get merged.

Things that still use explicit hash funciton: