elliptic
elliptic copied to clipboard
Bug fix: recoverPubKey -> take msg as hex
The EC.recoverPubKey(msg, signature, j, enc) should take the input msg as hex number, not decimal.
See https://github.com/indutny/elliptic/issues/150
Coverage remained the same at 89.152% when pulling 11054a1a3f0edf05a865a9f13cd55fbf43544a31 on nakov:master into 776c9b0e99832ab9fa6c5fa6f684c484ca5265b2 on indutny:master.
If I am not mistaken, also we need to _truncateToN msg, so that line should be
var e = this._truncateToN(new BN(msg, 16));
It would be very cool if somebody could merge this fix.
hey could someone merge this?