fuzz: build with -tags=fuzz,blst_disabled (#10618)

This commit is contained in:
Preston Van Loon 2022-05-03 17:19:05 -05:00 committed by GitHub
parent 51581e9b6e
commit f763b35494
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 0 deletions

View File

@ -89,6 +89,11 @@ jobs:
# Use blst tag to allow go and bazel builds for blst.
run: go build -v ./...
# fuzz and blst_disabled leverage go tag based stubs at compile time.
# Building with these tags should be checked and enforced at pre-submit.
- name: Build for fuzzing
run: go build -tags=fuzz,blst_disabled ./...
# Tests run via Bazel for now...
# - name: Test
# run: go test -v ./...

View File

@ -104,6 +104,11 @@ func SignatureFromBytes(_ []byte) (Signature, error) {
panic(err)
}
// MultipleSignaturesFromBytes -- stub
func MultipleSignaturesFromBytes(multiSigs [][]byte) ([]common.Signature, error) {
panic(err)
}
// AggregatePublicKeys -- stub
func AggregatePublicKeys(_ [][]byte) (PublicKey, error) {
panic(err)