2020-03-10 02:22:41 +00:00
|
|
|
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
|
|
|
|
|
|
|
|
"""
|
|
|
|
Herumi's BLS library for go depends on
|
|
|
|
- herumi/mcl
|
|
|
|
- herumi/bls
|
|
|
|
- herumi/bls-eth-go-binary
|
|
|
|
"""
|
|
|
|
|
|
|
|
def bls_dependencies():
|
|
|
|
_maybe(
|
|
|
|
http_archive,
|
|
|
|
name = "herumi_bls_eth_go_binary",
|
2020-10-30 19:06:33 +00:00
|
|
|
strip_prefix = "bls-eth-go-binary-4b463a10c225efa46f6d7525ef44822e4b5b7b05",
|
2020-03-10 02:22:41 +00:00
|
|
|
urls = [
|
2020-10-30 19:06:33 +00:00
|
|
|
"https://github.com/herumi/bls-eth-go-binary/archive/4b463a10c225efa46f6d7525ef44822e4b5b7b05.tar.gz",
|
2020-03-10 02:22:41 +00:00
|
|
|
],
|
2020-10-30 19:06:33 +00:00
|
|
|
sha256 = "23de2840e53818f650bc656bbd9e9a128806f686bcfec56918605868f05b5ac3",
|
2020-03-10 02:22:41 +00:00
|
|
|
build_file = "@prysm//third_party/herumi:bls_eth_go_binary.BUILD",
|
|
|
|
)
|
|
|
|
_maybe(
|
|
|
|
http_archive,
|
|
|
|
name = "herumi_mcl",
|
2020-10-30 19:06:33 +00:00
|
|
|
strip_prefix = "mcl-bd5a3686924d4ef38f994bb400f87a684ee65fe8",
|
2020-03-10 02:22:41 +00:00
|
|
|
urls = [
|
2020-10-30 19:06:33 +00:00
|
|
|
"https://github.com/herumi/mcl/archive/bd5a3686924d4ef38f994bb400f87a684ee65fe8.tar.gz",
|
2020-03-10 02:22:41 +00:00
|
|
|
],
|
2020-10-30 19:06:33 +00:00
|
|
|
sha256 = "db90a9c671f4bb59183e51ae2ae3bfe0d5c99b64877c0fca2e7b047fd88b2a41",
|
2020-03-10 02:22:41 +00:00
|
|
|
build_file = "@prysm//third_party/herumi:mcl.BUILD",
|
|
|
|
)
|
|
|
|
_maybe(
|
|
|
|
http_archive,
|
|
|
|
name = "herumi_bls",
|
2020-10-30 19:06:33 +00:00
|
|
|
strip_prefix = "bls-f53dadd5a51900f94b7aecff0063feada2f4bb30",
|
2020-03-10 02:22:41 +00:00
|
|
|
urls = [
|
2020-10-30 19:06:33 +00:00
|
|
|
"https://github.com/herumi/bls/archive/f53dadd5a51900f94b7aecff0063feada2f4bb30.tar.gz",
|
2020-03-10 02:22:41 +00:00
|
|
|
],
|
2020-10-30 19:06:33 +00:00
|
|
|
sha256 = "201e779894ee22cfa9fbe07ccbf9fe4ba7ba2c6fb868c280bf765908c437c8d3",
|
2020-03-10 02:22:41 +00:00
|
|
|
build_file = "@prysm//third_party/herumi:bls.BUILD",
|
|
|
|
)
|
|
|
|
|
|
|
|
def _maybe(repo_rule, name, **kwargs):
|
|
|
|
if name not in native.existing_rules():
|
|
|
|
repo_rule(name = name, **kwargs)
|