2022-10-21 18:38:19 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
fetchFromGitLab,
|
|
|
|
buildDunePackage,
|
|
|
|
bls12-381,
|
|
|
|
data-encoding,
|
2022-10-30 15:09:59 +00:00
|
|
|
bigstringaf,
|
2022-10-21 18:38:19 +00:00
|
|
|
alcotest,
|
|
|
|
alcotest-lwt,
|
|
|
|
bisect_ppx,
|
|
|
|
qcheck-alcotest,
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildDunePackage rec {
|
|
|
|
pname = "tezos-bls12-381-polynomial";
|
2022-10-30 15:09:59 +00:00
|
|
|
version = "0.1.3";
|
2022-10-21 18:38:19 +00:00
|
|
|
duneVersion = "3";
|
|
|
|
src = fetchFromGitLab {
|
|
|
|
owner = "nomadic-labs/cryptography";
|
|
|
|
repo = "privacy-team";
|
|
|
|
rev = "v${version}";
|
2022-10-30 15:09:59 +00:00
|
|
|
sha256 = "sha256-H1Wog3GItTIVsawr9JkyyKq+uGqbTQPTR1dacpmxLbs=";
|
2022-10-21 18:38:19 +00:00
|
|
|
};
|
|
|
|
|
2022-10-30 15:09:59 +00:00
|
|
|
propagatedBuildInputs = [bls12-381 data-encoding bigstringaf];
|
2022-10-21 18:38:19 +00:00
|
|
|
|
|
|
|
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];
|
|
|
|
};
|
|
|
|
}
|