Skip to content

Commit

Permalink
Changing variable name
Browse files Browse the repository at this point in the history
  • Loading branch information
Bradley Hart committed Aug 14, 2020
1 parent e71b2d9 commit 74b774f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/elliptic/ec/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -223,15 +223,15 @@ EC.prototype.recoverPubKey = function(msg, signature, j, enc) {
return this.g.mulAdd(s1, r, s2);
};

EC.prototype.getKeyRecoveryParam = function(e, signature, Q, enc) {
EC.prototype.getKeyRecoveryParam = function(msg, signature, Q, enc) {
signature = new Signature(signature, enc);
if (signature.recoveryParam !== null)
return signature.recoveryParam;

for (var i = 0; i < 4; i++) {
var Qprime;
try {
Qprime = this.recoverPubKey(e, signature, i);
Qprime = this.recoverPubKey(msg, signature, i);
} catch (e) {
continue;
}
Expand Down

0 comments on commit 74b774f

Please sign in to comment.