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.5.tar.gz
md5=9b70629e551cc0e3f86d72b3532dafb3
sha512=cdcf8004edeecbf18706b735c2a837348ce9a19df5ab9d3e37a7b0e216199d43c41f8ba81fc55b0fb08b1192538d699a79927219397639b27c378b457e92b33b

Description

Published: 28 Nov 2022

README

Fast implementation of hash functions over the scalar field of BLS12-381

Use with caution before release 1.0.0

Documentation available here.

This library provides a fast implementation of:

Install

Use a local switch for development

opam switch create ./ 4.14.0
dune build

Install in an existing local switch

# for the latest published version in ocaml/opam-repository
opam install bls12-381-hash
# for the dev version
opam pin add bls12-381-hash.dev git+https://gitlab.com/dannywillems/ocaml-bls12-381-hash\#main

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

Dependencies (3)

  1. bls12-381 >= "5.0.0" & < "6.1.0"
  2. dune >= "2.8.4"
  3. ocaml >= "4.12"

Dev Dependencies (2)

  1. bisect_ppx with-test & >= "2.5"
  2. alcotest with-test

Used by (1)

  1. tezos-plompiler >= "1.0.1"

Conflicts

None

OCaml

Innovation. Community. Security.