Apply suggestions from code review
Don't panic
This commit is contained in:
parent
249074761c
commit
7d87a42a67
@ -30,7 +30,6 @@ func (s *Signature) Verify(addr address.Address, msg []byte) error {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if addr != maybeaddr {
|
if addr != maybeaddr {
|
||||||
panic("stop here")
|
|
||||||
return fmt.Errorf("signature did not match")
|
return fmt.Errorf("signature did not match")
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -46,7 +45,6 @@ func (s *Signature) Verify(addr address.Address, msg []byte) error {
|
|||||||
copy(sig[:], s.Data)
|
copy(sig[:], s.Data)
|
||||||
|
|
||||||
if !bls.Verify(sig, digests, pubkeys) {
|
if !bls.Verify(sig, digests, pubkeys) {
|
||||||
panic("stop here")
|
|
||||||
return fmt.Errorf("bls signature failed to verify")
|
return fmt.Errorf("bls signature failed to verify")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user