Merge pull request #335 from filecoin-project/deps/update-bls

use faster bls code
This commit is contained in:
Łukasz Magiera 2019-10-11 05:49:01 +02:00 committed by GitHub
commit 68f613e8de
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 3 deletions

View File

@ -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")
}

View File

@ -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")
}

2
extern/go-bls-sigs vendored

@ -1 +1 @@
Subproject commit 03705e06e83ac0d4c98695dacd0f20a350cc93d7
Subproject commit c221eb016ab7074465f444fb592c5184e2df3926