Skip to content
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

crypto: add btcec fallback for sign/recover without cgo #3680

Merged
merged 3 commits into from
Feb 18, 2017

Conversation

fjl
Copy link
Contributor

@fjl fjl commented Feb 16, 2017

This commit adds a non-cgo fallback implementation of secp256k1
operations. The fallback implementation is not used when cgo is available.

All direct references to crypto/secp256k1 have changed and now
get the elliptic.Curve object from package crypto.

@mention-bot
Copy link

@fjl, thanks for your PR! By analyzing the history of the files in this pull request, we identified @karalabe to be a potential reviewer.

@fjl
Copy link
Contributor Author

fjl commented Feb 16, 2017

@obscuren please review

@fjl fjl requested a review from obscuren February 17, 2017 10:16
@fjl fjl mentioned this pull request Feb 17, 2017
@fjl fjl added this to the 1.6.0 milestone Feb 17, 2017
Copy link
Contributor

@obscuren obscuren left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code LGTM but I can't say much about the crypto.

@obscuren obscuren merged commit 9b0af51 into ethereum:master Feb 18, 2017
@cryptohazard
Copy link

Hi,
A quick question: why not move the whole secp256k1 lib from bitcoin to btcec?

@karalabe
Copy link
Member

My first guess would be performance.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants