From 7eefa4e5776e96f8a7c9fc6245666d748dbacd02 Mon Sep 17 00:00:00 2001 From: whyrusleeping Date: Fri, 11 Oct 2019 12:26:54 +0900 Subject: [PATCH] use faster bls code --- chain/sync.go | 2 +- chain/types/signature_cgo.go | 2 +- extern/go-bls-sigs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/chain/sync.go b/chain/sync.go index b03ec5e10..4ff9ad54f 100644 --- a/chain/sync.go +++ b/chain/sync.go @@ -598,7 +598,7 @@ func (syncer *Syncer) verifyBlsAggregate(sig types.Signature, msgs []cid.Cid, pu var bsig bls.Signature copy(bsig[:], sig.Data) - if !bls.Verify(bsig, digests, pubks) { + if !bls.Verify(&bsig, digests, pubks) { return xerrors.New("bls aggregate signature failed to verify") } diff --git a/chain/types/signature_cgo.go b/chain/types/signature_cgo.go index e811a0f24..5d60151a6 100644 --- a/chain/types/signature_cgo.go +++ b/chain/types/signature_cgo.go @@ -44,7 +44,7 @@ func (s *Signature) Verify(addr address.Address, msg []byte) error { var sig bls.Signature copy(sig[:], s.Data) - if !bls.Verify(sig, digests, pubkeys) { + if !bls.Verify(&sig, digests, pubkeys) { return fmt.Errorf("bls signature failed to verify") } diff --git a/extern/go-bls-sigs b/extern/go-bls-sigs index 03705e06e..c221eb016 160000 --- a/extern/go-bls-sigs +++ b/extern/go-bls-sigs @@ -1 +1 @@ -Subproject commit 03705e06e83ac0d4c98695dacd0f20a350cc93d7 +Subproject commit c221eb016ab7074465f444fb592c5184e2df3926