use faster bls code

This commit is contained in:
whyrusleeping 2019-10-11 12:26:54 +09:00
parent 4334e4d93d
commit 7eefa4e577
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