-
Notifications
You must be signed in to change notification settings - Fork 21.6k
crypto, crypto/secp256k1: use libsecp256k1 for scalar multiplication #1862
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Updated: Wed Dec 2 11:48:57 UTC 2015 |
7a4fb4c to
a8565ba
Compare
a8565ba to
fefcc50
Compare
|
Looks like P2P RLPx tests fails sometimes with this patch - in progress until we figure out why. |
|
Nice speedup :) |
|
@Gustav-Simonsson any update on this? |
95d80c3 to
f41ee78
Compare
Current coverage is
|
b2159b3 to
95b2317
Compare
crypto/crypto.go
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this is no longer required since you added an entry for secp256k1 in the default params registry.
|
@obscuren updated, seems to work as expected. the windows build failure is unrelated. |
crypto/secp256k1/secp256.go
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please move this code into the curve method.
51df9ee to
5ff85a8
Compare
|
👍 |
|
I think needs some rebasing |
thanks to Felix Lange (fjl) for help with design & impl
e6b5f93 to
c8ad64f
Compare
|
@obscuren this is rebased now |
crypto, crypto/secp256k1: use libsecp256k1 for scalar multiplication
Depends on #1853 - please review & merge it first.NOTE: package
crypto/eciesneeds some refactoring love - this patch is not ideal as packageeciesis a bit messy. Discussed with @fjl and we have several ideas around how to refactor it. Would prefer to make that refactoring in a separate PR so it's easier to review separated from this change.ScalarMultfor this curve.Speedup: