Skip to content

Avoid Buffer in testEcc#35

Open
landabaso wants to merge 1 commit into
bitcoinjs:masterfrom
bitcoinerlab:fix/testecc-uint8array
Open

Avoid Buffer in testEcc#35
landabaso wants to merge 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.
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.

1 participant