parent
6e04432a58
commit
b477d037e6
@ -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]; |
||||||
|
}; |
||||||
|
} |
@ -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"; |
||||||
|
}; |
||||||
|
} |
@ -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"; |
||||||
|
}; |
||||||
|
} |
Loading…
Reference in new issue