ecdsa: add more extensive tests for recoverPubKey
This commit is contained in:
parent
402fa0d85d
commit
1a41ea8801
2 changed files with 33 additions and 11 deletions
src
|
@ -236,10 +236,6 @@ function recoverPubKey(curve, e, signature, i) {
|
|||
var Q = R.multiplyTwo(s, G, eNeg).multiply(rInv)
|
||||
curve.validate(Q)
|
||||
|
||||
if (!verifyRaw(curve, e, signature, Q)) {
|
||||
throw new Error("Pubkey recovery unsuccessful")
|
||||
}
|
||||
|
||||
return Q
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue