bls12-381-hash

Implementation of some cryptographic hash primitives using the scalar field of BLS12-381
README

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
Install
Published
25 Aug 2022
Sources
ocaml-bls12-381-hash-0.0.1.tar.bz2
md5=71c1c7a83cb6a7f4606a2e4e8acfdcfb
sha512=294a5c0ff8860d8f730bbf192a3c38f2a0cb8cb0fd05d729eb6ca1782cc95ee967dd5123ecd90cd3f96923c41ddb1a08fa31239116a459cbd50ba0355ff20641
Dependencies
bisect_ppx
with-test & >= "2.5"
alcotest
with-test
bls12-381
>= "5.0.0"
dune
>= "2.8.4"
ocaml
>= "4.08"
Reverse Dependencies