-
Notifications
You must be signed in to change notification settings - Fork 247
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
Add Secp256k1 support #1355
Add Secp256k1 support #1355
Conversation
🦋 Changeset detectedLatest commit: ac393c7 The changes in this PR will be included in the next version bump. This PR includes changesets to release 12 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
I gave it a quick look, do we have any test against the chain using Making a small transfer after creating the account should be sufficient to prove correctness |
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.
Nice work!
I do think we should reexamine the original approach to avoid introducing unnecessary breaking changes and complexity in serialization, but I'm keen to hear other thoughts. If this does end up being the most desirable approach then at a minimum we should avoid breaking backward compatibility with missing class fields.
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.
Thank you for the clarifications on the implementation. Just a couple more things otherwise I think we're good to go 🚀
@gtsonevv Thank you for your contribution! Your pull request is now a part of the Race of Sloths! Current status: executed
The average score is 5 @gtsonevv check out your results on the Race of Sloths Leaderboard! and in the profile What is the Race of SlothsRace of Sloths is a friendly competition where you can participate in challenges and compete with other open-source contributors within your normal workflow For contributors:
For maintainers:
Feel free to check our website for additional details! Bot commands
|
@race-of-sloths score 5 |
🌟 Score recorded!@andy-haynes, thank you for scoring this pull request in the Race of Sloths! |
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.
Awesome work! Just noticed two duplicated tests otherwise everything's good to go
const keyString = 'secp256k1:7s1Jno8tbqFHBMqLh3epaFBbk194zAuMqo8yPbxvTbXn'; | ||
const keyPair2 = KeyPair.fromString(keyString); | ||
expect(keyPair2.toString()).toEqual(keyString); | ||
}); | ||
}); | ||
|
||
test('test from secret', async () => { |
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.
These can be removed now that they're in the describe
block above
@gtsonevv would you mind rebasing this please? It should just be your work + release ahead of you in history. |
@andy-haynes rebase onto master? |
✅ PR is finalized!Your contribution is much appreciated with a final score of 5! |
Pre-flight checklist
pnpm changeset
to create achangeset
JSON document appropriate for this change.Motivation
Adds support for secp256k1 curve
Test Plan
All tests pass
Related issues/PRs
#985
#1039
#440