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

Added SECP256K1 functionality #3

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

aratrika1996
Copy link

We needed to modify your repo to support the SECP256K1 curve, so we forked it and did so. The reason we needed to do this was so that we could verify a digital signature created using the Avalanche cryptocurrency platform's X Chain, in Solidity. If you are not familiar with Avalanche yet, it has three chains, called X, P, and C. The C, or "Contract" chain uses an exact clone of the EVM and thus can run any code that can be run in Ethereum. The X Chain uses cryptography more like bitcoin does, so its digital signatures are different from Ethereum's and cannot just be verified using the EVM's built-in function ecrecover. That's a quick overview. For more information, see this tutorial that we wrote here: https://github.com/red-dev-inc/sig-verify-tutorial.

Quick disclaimer, we are not cryptographers--just software devs who are end-users of cryptographic tools--so please do look this code over carefully before you include it in your project. We have included test scripts which you can run, similar to the test scripts you already have.

@tdrerup
Copy link
Owner

tdrerup commented Sep 13, 2021

Thank you for the contribution! It will be a while before I can review this request, unfortunately.

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.

2 participants