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

build: 💥 update to secp256k1 v2.1.0 w/ breaking changes #39

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

Conversation

jojobyte
Copy link
Contributor

@jojobyte jojobyte commented Jul 24, 2024

Per paulmillr/noble-secp256k1#upgrading, sign & verify had their defaults renamed, and sign is now sync and requires hmacSha256Sync to be defined, which may require additional repositories, however using the async version does not.

Due to that test/hdkey.test.js was updated to use the Secp256k1.signAsync, however the returned Signature no longer matched the rest of what the test was looking for, so it was modified further to add toCompactRawBytes() and the rSizeIndex and offsets were adjusted to make this work.

@jojobyte jojobyte added the enhancement New feature or request label Jul 24, 2024
@jojobyte jojobyte requested a review from coolaj86 July 24, 2024 07:43
@jojobyte jojobyte self-assigned this Jul 24, 2024
Copy link

socket-security bot commented Jul 24, 2024

New and removed dependencies detected. Learn more about Socket for GitHub ↗︎

Package New capabilities Transitives Size Publisher
npm/@dashincubator/[email protected] None 0 0 B
npm/[email protected] None 0 71.5 kB coolaj86
npm/[email protected] None 0 7.9 kB steven.looman
npm/[email protected] environment, eval, filesystem +71 5.06 MB joshuakgoldberg

🚮 Removed packages: npm/@dashincubator/[email protected], npm/[email protected], npm/[email protected], npm/[email protected]

View full report↗︎

@jojobyte jojobyte linked an issue Jul 24, 2024 that may be closed by this pull request
@jojobyte jojobyte force-pushed the ref-secp256k1-2.1.0-compat branch 2 times, most recently from 2144c90 to d11be84 Compare July 24, 2024 22:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Wallet UI - 3rd Party Integration: CrowdNode.js Updates
1 participant