OCaml implementation of BLS12-381
This library provides a fast implementation of:
- an instantiation of Poseidon providing a security of 128 bits. See the documentation for more information on the used parameters.
- an instantiation of Rescue providing a security of 128 bits. See the documentation for more information on the used parameters.
- an instantiation of Anemoi providing a security of 128 bits. See the documentation for more information on the used parameters.
Install
opam install bls12-381-hash
Run tests
dune runtest
To get the coverage:
dune runtest --instrument-with bisect_ppx --force
bisect-ppx-report html
Run the benchmarks
Install core_bench
:
opam install core_bench
See files listed in the directory benchmark
and execute it with dune exec
. For instance:
dune exec ./benchmark/bench_anemoi.exe
Documentation
opam install odoc
dune build @doc