92b3d6365d
GitOrigin-RevId: 412b9917cea092f3d39f9cd5dead4effd5bc4053
37 lines
857 B
Nix
37 lines
857 B
Nix
{
|
|
lib,
|
|
fetchFromGitLab,
|
|
buildDunePackage,
|
|
bls12-381,
|
|
data-encoding,
|
|
bigstringaf,
|
|
alcotest,
|
|
alcotest-lwt,
|
|
bisect_ppx,
|
|
qcheck-alcotest,
|
|
}:
|
|
|
|
buildDunePackage rec {
|
|
pname = "tezos-bls12-381-polynomial";
|
|
version = "0.1.3";
|
|
duneVersion = "3";
|
|
src = fetchFromGitLab {
|
|
owner = "nomadic-labs/cryptography";
|
|
repo = "privacy-team";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-H1Wog3GItTIVsawr9JkyyKq+uGqbTQPTR1dacpmxLbs=";
|
|
};
|
|
|
|
propagatedBuildInputs = [bls12-381 data-encoding bigstringaf];
|
|
|
|
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];
|
|
};
|
|
}
|