andreacorbellini / ecc

MIT License
426 stars 131 forks source link

"old_t, t = t, old_s - quotient * t" shoud be "old_t, t = t, old_t - quotient * t" #1

Closed majunkang closed 8 years ago

majunkang commented 8 years ago

I think this is a typo error made by the original auther andreacorbellini .

Reference https://en.wikipedia.org/wiki/Extended_Euclidean_algorithm .

andreacorbellini commented 8 years ago

Yeah, that's a typo. Thanks for spotting it.

Obviously that typo was not affecting the result, as t is unused.

By the way, would you mind fixing the same typo in ecdsa.py, so that I can give you full authorship for the commit? Thanks!

majunkang commented 8 years ago

Yes, t is unused, was not affecting the result. I have to admit that i didn't look into ecdsa.py before you told me, so I didn't find the same typo in ecdsa.py. Now, I have also fixed the same typo in ecdsa.py.