-
Notifications
You must be signed in to change notification settings - Fork 0
refactor: use @bitcoinerlab/secp256k1 and @noble/secp256k1 #1
Conversation
|
All tests are successful. Test Results@mvayngrib Do you think we need to add more test cases? |
|
The change assumes correctness of I'd add create separate tests for
Will update more later. @RyanZim Can you also chime in here? |
|
In reviewing the tests here, one thing that sticks out is the Lines 61 to 76 in 472ee65
These test additions ideally should be contributed to upstream and backported here. |
|
Added more fixtures, point compression test. @mvayngrib Should I mark "Ready for review"? |
headfire94
left a comment
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.
utACK, i rely on unit tests here)
@alexandrius is this PR behind the |
|
@mvayngrib sorry I meant PR description |
package.json
Outdated
| { | ||
| "name": "@exodus/hdkey", | ||
| "version": "2.1.0-exodus.0", | ||
| "version": "2.1.1-exodus.1", |
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.
let's not bundle this in with these changes, reverted e1b5ed9
| "private": "xprvA2nrNbFZABcdryreWet9Ea4LvTJcGsqrMzxHx98MMrotbir7yrKCEXw7nadnHM8Dq38EGfSh6dqA9QWTyefMLEcBYJUuekgW4BYPJcr9E7j" | ||
| }, | ||
| { | ||
| "seed": "69afbf0608755b3480ca7314c145695c64f973c988790eabb165d19809c7991acecfe4518b1456f274e171d496ddd044942278577b6efcdb69a6374d5341ea0a", |
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.
@alexandrius what did u use to generate these?
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.
Extracted from:
src/_local_modules/keys/derive.js createKeyAccess
RyanZim
left a comment
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.
Quick utACK; did not verify correctness.
Can we get these new tests contributed to upstream?
comparing the two libs, they all look correct to me (the "tweak" methods are in-place vs immutable, but the way we use them it doesn't matter). @alexandrius did u still want to add unit tests for these? |
|
@mvayngrib I don't think we need anything else, it was quick initial thought |
|
@RyanZim will do |
for something this core/sensitive, i think u had the right idea when u said to add them 😅 |
I can backport tests to previous version. I did on my end was successful |
|
Should we go ahead with merge and publish? |
|
@RyanZim BTW created pull request to upstream |
sorry, not following. I mean can we add some unit tests for the underlying functions u listed here #1 (comment) |
|
@mvayngrib I can but I don't think we should do that since we also have this: ExodusMovement/secp256k1-node#1 |
|
ah, so the unit tests there will make sure those methods match correctly? sgtm |
|
@alexandrius sorry, maybe i'm getting confused. With that PR, why do we even need this one? |
|
@mvayngrib when this PR was created I think we thought only this PR would be enough to match perf. Another point is to incrementally jump on noble |
|
could u walk me through the plan, is it this?
|
|
@mvayngrib basically yes. Except swap 1st and 2nd steps. We have all tests to check hdkey correctness comparing the methods above do not belong in here |
|
as long as we don't ship this to users before we have that unit test suite, i'm okay with it |
|
@mvayngrib without that PR we won't be able to ship to users anyway. |
todo: verify correctness 😛