Skip to content

Commit

Permalink
client/core: drop support for truncated message sigs
Browse files Browse the repository at this point in the history
  • Loading branch information
chappjc committed Sep 23, 2022
1 parent 29975ba commit 3cd4f10
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions client/core/core.go
Original file line number Diff line number Diff line change
Expand Up @@ -7543,10 +7543,7 @@ func checkSigS256(msg, pkBytes, sigBytes []byte) error {
}
hash := sha256.Sum256(msg)
if !signature.Verify(hash[:], pubKey) {
// Might be an older buggy server. (V0PURGE)
if !signature.Verify(msg, pubKey) {
return fmt.Errorf("secp256k1 signature verification failed")
}
return fmt.Errorf("secp256k1 signature verification failed")
}
return nil
}
Expand Down

0 comments on commit 3cd4f10

Please sign in to comment.