package bls12-381-hash

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

Install

dune-project
 Dependency

Authors

Maintainers

Sources

ocaml-bls12-381-hash-1.0.0.tar.gz
md5=9b4bd4c42e4542b777f13666f72da9e3
sha512=c9465f26c50624d95bb55a878bb78dff2703bd352445221bfef434cad2edb040cef95f33f44dcfe96949e52ba7ff9aeeab24cffd2d80fcb97e45085dad336701

Description

Added to opam-repository:

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

Optional Dependencies

None

Used by

None

Conflicts

None

Build status

Results of building bls12-381-hash with each compiler on check.ci.ocaml.org, run of against opam-repository 8d8d144. All results for this package.

Each result links to its build log. To keep crawlers from overloading the site, build logs require a GitHub sign-in (see ocurrent/opam-health-check). On your first log, GitHub asks you to “Authorize opam-health-check”, the OCurrent app that runs these checks; it sees only your public profile, not your repositories. The sign-in lasts 30 days.

Version OCaml 4.11 OCaml 4.14 OCaml 5.2 OCaml 5.4 OCaml 5.5
1.0.0 (this version) n/a good good good good
0.0.1 good good good good good
  • good Package successfully built
  • partial One of the dependencies failed to build
  • bad Package failed to build
  • n/a Package is not available in this environment
  • internal Internal failure