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-1.0.0.tar.gz
md5=9b4bd4c42e4542b777f13666f72da9e3
sha512=c9465f26c50624d95bb55a878bb78dff2703bd352445221bfef434cad2edb040cef95f33f44dcfe96949e52ba7ff9aeeab24cffd2d80fcb97e45085dad336701

Description

Published: 29 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

None

Conflicts

None

OCaml

Innovation. Community. Security.