2020-05-05 00:22:26 -07:00
|
|
|
load("@prysm//tools/go:def.bzl", "go_library")
|
|
|
|
load("@io_bazel_rules_go//go:def.bzl", "go_test")
|
2018-10-13 22:32:29 -04:00
|
|
|
|
|
|
|
go_library(
|
|
|
|
name = "go_default_library",
|
2018-12-27 14:48:09 +08:00
|
|
|
srcs = [
|
|
|
|
"hash.go",
|
|
|
|
"merkleRoot.go",
|
|
|
|
],
|
2018-10-13 22:32:29 -04:00
|
|
|
importpath = "github.com/prysmaticlabs/prysm/shared/hashutil",
|
|
|
|
visibility = ["//visibility:public"],
|
2019-01-14 11:41:20 -05:00
|
|
|
deps = [
|
2019-10-03 09:33:16 -07:00
|
|
|
"//shared/bytesutil:go_default_library",
|
2020-03-28 11:32:11 -07:00
|
|
|
"@com_github_ferranbt_fastssz//:go_default_library",
|
2019-01-14 11:41:20 -05:00
|
|
|
"@com_github_gogo_protobuf//proto:go_default_library",
|
2019-10-03 09:33:16 -07:00
|
|
|
"@com_github_minio_highwayhash//:go_default_library",
|
2019-08-02 14:42:59 -07:00
|
|
|
"@com_github_minio_sha256_simd//:go_default_library",
|
2019-01-14 11:41:20 -05:00
|
|
|
"@org_golang_x_crypto//sha3:go_default_library",
|
|
|
|
],
|
2018-10-13 22:32:29 -04:00
|
|
|
)
|
|
|
|
|
|
|
|
go_test(
|
|
|
|
name = "go_default_test",
|
2019-06-30 12:00:22 -04:00
|
|
|
size = "small",
|
2018-12-27 14:48:09 +08:00
|
|
|
srcs = [
|
|
|
|
"hash_test.go",
|
|
|
|
"merkleRoot_test.go",
|
|
|
|
],
|
2018-10-13 22:32:29 -04:00
|
|
|
embed = [":go_default_library"],
|
2019-01-14 11:41:20 -05:00
|
|
|
deps = [
|
2019-03-07 11:32:01 -05:00
|
|
|
"//proto/testing:go_default_library",
|
2020-03-28 11:32:11 -07:00
|
|
|
"//shared/bls:go_default_library",
|
2019-01-31 03:53:58 +01:00
|
|
|
"//shared/bytesutil:go_default_library",
|
2019-03-07 11:32:01 -05:00
|
|
|
"@com_github_google_gofuzz//:go_default_library",
|
2020-03-28 11:32:11 -07:00
|
|
|
"@com_github_prysmaticlabs_ethereumapis//eth/v1alpha1:go_default_library",
|
2019-01-14 11:41:20 -05:00
|
|
|
],
|
2018-10-13 22:32:29 -04:00
|
|
|
)
|