use faster bls code
This commit is contained in:
parent
4334e4d93d
commit
7eefa4e577
@ -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")
|
||||
}
|
||||
|
||||
|
@ -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
2
extern/go-bls-sigs
vendored
@ -1 +1 @@
|
||||
Subproject commit 03705e06e83ac0d4c98695dacd0f20a350cc93d7
|
||||
Subproject commit c221eb016ab7074465f444fb592c5184e2df3926
|
Loading…
Reference in New Issue
Block a user