Skip to content

Avoid Buffer in testEcc - #35

Merged
junderw merged 1 commit into
bitcoinjs:masterfrom
bitcoinerlab:fix/testecc-uint8array
Jul 24, 2026
Merged

Avoid Buffer in testEcc#35
junderw merged 1 commit into
bitcoinjs:masterfrom
bitcoinerlab:fix/testecc-uint8array

Conversation

@landabaso

Copy link
Copy Markdown
Member

PR #22 moved ecpair toward Uint8Array and away from Buffer, but testEcc still used Buffer for hex vectors and equality checks. This replaces those leftovers with uint8array-tools so testEcc no longer needs Buffer or Buffer polyfills. Tests: npm test

Use uint8array-tools for hex vectors and byte equality so testEcc stays on Uint8Array. This finishes the Buffer removal started in bitcoinjs#22 and avoids requiring Buffer polyfills.
@junderw
junderw merged commit 0fea039 into bitcoinjs:master Jul 24, 2026
6 checks passed
@junderw

junderw commented Jul 24, 2026

Copy link
Copy Markdown
Member

Please publish a patch release when you get some time. Thanks.

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