ocamlPackages.tezos-bls12-381-polynomial: init at 0.1.2

This commit is contained in:
Ulrik Strid 2022-10-11 09:19:18 +02:00 committed by Vincent Laporte
parent 6e04432a58
commit b477d037e6
4 changed files with 117 additions and 0 deletions

View File

@ -0,0 +1,36 @@
{
lib,
fetchFromGitLab,
buildDunePackage,
bls12-381,
data-encoding,
alcotest,
alcotest-lwt,
bisect_ppx,
qcheck-alcotest,
}:
buildDunePackage rec {
pname = "tezos-bls12-381-polynomial";
version = "0.1.2";
duneVersion = "3";
src = fetchFromGitLab {
owner = "nomadic-labs/cryptography";
repo = "privacy-team";
rev = "v${version}";
sha256 = "sha256-HVeKZCPBRJWQXkcI2J7Fl4qGviYLD5x+4W4pAY/W4jA=";
};
propagatedBuildInputs = [bls12-381 data-encoding];
checkInputs = [alcotest alcotest-lwt bisect_ppx qcheck-alcotest];
doCheck = false; # circular dependencies
meta = {
description = "Polynomials over BLS12-381 finite field";
license = lib.licenses.mit;
homepage = "https://gitlab.com/nomadic-labs/privacy-team";
maintainers = [lib.maintainers.ulrikstrid];
};
}

View File

@ -0,0 +1,40 @@
{ lib
, buildDunePackage
, hacl-star
, bls12-381
, tezos-bls12-381-polynomial
, data-encoding
, hex
, stdint
, ff
, mec
, alcotest
, qcheck-alcotest
, bisect_ppx
}:
buildDunePackage rec {
pname = "tezos-plompiler";
duneVersion = "3";
inherit (tezos-bls12-381-polynomial) version src;
propagatedBuildInputs = [
hacl-star
bls12-381
tezos-bls12-381-polynomial
data-encoding
hex
stdint
ff
mec
];
checkInputs = [ alcotest qcheck-alcotest bisect_ppx ];
doCheck = false; # circular deps
meta = tezos-bls12-381-polynomial.meta // {
description = "Library to write arithmetic circuits for Plonk";
};
}

View File

@ -0,0 +1,35 @@
{
lib,
buildDunePackage,
hacl-star,
bls12-381,
tezos-bls12-381-polynomial,
data-encoding,
tezos-plompiler,
alcotest,
qcheck-alcotest,
bisect_ppx,
}:
buildDunePackage rec {
pname = "tezos-plonk";
duneVersion = "3";
inherit (tezos-bls12-381-polynomial) version src;
propagatedBuildInputs = [
hacl-star
bls12-381
tezos-bls12-381-polynomial
data-encoding
tezos-plompiler
];
checkInputs = [ alcotest qcheck-alcotest bisect_ppx ];
doCheck = false; # broken
meta = tezos-bls12-381-polynomial.meta // {
description = "Plonk zero-knowledge proving system";
};
}

View File

@ -1442,6 +1442,12 @@ let
tezos-base58 = callPackage ../development/ocaml-modules/tezos-base58 { };
tezos-bls12-381-polynomial = callPackage ../development/ocaml-modules/tezos-bls12-381-polynomial { };
tezos-plompiler = callPackage ../development/ocaml-modules/tezos-bls12-381-polynomial/plompiler.nix { };
tezos-plonk = callPackage ../development/ocaml-modules/tezos-bls12-381-polynomial/plonk.nix { };
theora = callPackage ../development/ocaml-modules/theora { };
toml = callPackage ../development/ocaml-modules/toml { };