pycoin icon indicating copy to clipboard operation
pycoin copied to clipboard

more efficient elliptic curve x to y math

Open ofek opened this issue 7 years ago • 3 comments

In your feature branch for files pycoin/ecdsa/Group.py and pycoin/ecdsa/numbertheory.py you can implement https://en.wikipedia.org/wiki/Tonelli%E2%80%93Shanks_algorithm like so https://github.com/ofek/bit/blob/master/bit/curve.py. The first argument to pow should be x ** 3 + ax + b. This would also clean up that code significantly.

ofek avatar Jul 29 '17 03:07 ofek

Just a question, can you elaborate which pycoin operations this will help to speed up. Will key derivation from xpub be faster ?

blockonomics avatar Apr 18 '18 09:04 blockonomics

What about to replace the pycoin ecdsa code by ofek's coincurve?

With pycoin I can generate 4.3K addresses per second, per processor. With bit, which uses coincurve, I can generate about 9.3K addresses/sec/processor.

mfbrj avatar Dec 07 '18 18:12 mfbrj

This algorithm is implemented, so closing this issue.

richardkiss avatar Mar 12 '24 17:03 richardkiss