ewasm-precompiles
ewasm-precompiles copied to clipboard
EIP152 blake2F
Closes #36
This PR adds support for EIP152. Each test case described in the document is passing and benchmarking on my personal laptop suggests this is fast enough.
The 1200 round compression benchmarks provided in the document were ran on a Intel(R) Core(TM) i7-7920HQ CPU @ 3.10GHz and averaged ~20000ns. Comparatively, 1200 round compression benchmarks on my Intel(R) Core(TM) i7-8550U CPU @ 1.80GHz averaged ~40000ns. This seems reasonable.
Thanks for this! How about creating a new directory, blake2f, and leaving the old one as-is?
This looks great, would be ready to merge, apart from that small question on f.rs
.
Does the license look good?