Fix the error loop.
Fix the error loop.

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.
UdjinM6/bitcore-dash,martindale/bitcore,bilthon/bitcore,eordano/bitcore,MonetaryUnit/bitcore,lekkas/bitcore,bankonme/bitcore,daxxog/clamcore,bitpay/bitcore,iobond/bitcore,williamcotton/bitcore,TeamPiggyCoin/PiggyCore,phplaboratory/bitcore,williamcotton/bitcore,iobond/bitcore,TeamPiggyCoin/PiggyCore,TOMOAKI12345/bitcore,maraoz/coinforge,iobond/bitcore,janko33bd/bitcore,litecoin-project/litecore,GroestlCoin/groestlcore,bitpay/bitcore,iobond/bitcore,janko33bd/bitcore,braydonf/bitcore,jcvernaleo/bitcore,martindale/bitcore,daxxog/clamcore,eXcomm/bitcore,genecyber/bitcore,adjoinant/bitcore,lekkas/bitcore,bitjson/bitcore,olalonde/bitcore,bitpay/bitcore,braydonf/bitcore,eordano/bitcore,iobond/bitcore,initaldk/bitcore,TOMOAKI12345/bitcore,litecoin-project/litecore,bitjson/bitcore,bitpay/bitcore,adjoinant/bitcore,eXcomm/bitcore,bilthon/bitcore,MonetaryUnit/bitcore,pnagurny/bitcore,jcvernaleo/bitcore,genecyber/bitcore,initaldk/bitcore,bitjson/bitcore,phplaboratory/bitcore,olalonde/bitcore,pnagurny/bitcore,maraoz/coinforge,martindale/bitcore,bitjson/bitcore,martindale/bitcore,bankonme/bitcore