package bls12-381-hash

  1. Overview
  2. Docs
Implementation of some cryptographic hash primitives using the scalar field of BLS12-381

Install

Dune Dependency

Authors

Maintainers

Sources

ocaml-bls12-381-hash-0.0.1.tar.bz2
md5=71c1c7a83cb6a7f4606a2e4e8acfdcfb
sha512=294a5c0ff8860d8f730bbf192a3c38f2a0cb8cb0fd05d729eb6ca1782cc95ee967dd5123ecd90cd3f96923c41ddb1a08fa31239116a459cbd50ba0355ff20641

README.md.html

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
OCaml

Innovation. Community. Security.