I added a similar badrs function to python-ecdsa and compared the results. The 1 badrs (aka forcing it to loop once) gave me a different value. It turns out you missed one of the `v = hmac_k(v)` steps during the loop. Adding one extra `v = hmac_k(v)` in each loop makes it match up with python-ecdsa perfectly (I even tried up to badrs = 30 and it was fine. |
||
|---|---|---|
| .. | ||
| bn.js | ||
| ecdsa.js | ||
| hash.js | ||
| point.js | ||
| random.js | ||
| signature.js | ||