package bls12-381

  1. Overview
  2. Docs
OCaml binding for bls12-381 from librustzcash

Install

Dune Dependency

Authors

Maintainers

Sources

ocaml-bls12-381-0.3.14.tar.gz
md5=fb1d1498092721dabfcc0241aefb1d49
sha512=82d2020472b13ff2627b57699b391a63fdb98983837888fb18a40bb4f2029325e9b3a6dcf5217ada83bcd0436d87248b13df83ea78dc4d5c68494aeac0a870b4

Description

Published: 22 Dec 2020

README

OCaml implementation of BLS12-381

Install

  1. Setup environment

opam switch create ./ 4.09.1 --deps-only
eval $(opam env)
  1. Install Rust dependencies and install the library

./build_deps.sh
opam install . -y
  1. Play with utop

opam install utop
dune utop

Run tests

dune build @install
opam install alcotest
dune runtest

Run the benchmarks

USE THE RELEASE VERSION OF THE RUST LIBRARY TO GET PRODUCTION BENCHMARKS (cargo build --release)

opam install core_bench
dune exec benchmark/bench_ec.exe
dune exec benchmark/bench_ff.exe
dune exec benchmark/bench_pairing.exe

Documentation

  • Use dune build @doc to generate the API documentation.

Dependencies (9)

  1. tezos-rust-libs = "1.0"
  2. ctypes-foreign = "0.4.0"
  3. ctypes = "0.17.1"
  4. zarith >= "1.10" & < "2.0"
  5. ff >= "0.4.0" & < "0.5.0"
  6. dune-configurator build
  7. dune >= "2.0"
  8. ocaml >= "4.07"
  9. conf-rust build

Dev Dependencies (1)

  1. alcotest with-test

Used by (2)

  1. scaml >= "1.5.0"
  2. tezos-crypto = "10.2"

Conflicts

None

OCaml

Innovation. Community. Security.