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

Reduce Buffer usage or limit its exposure to the end application #141

Open
tien opened this issue Sep 11, 2024 · 0 comments
Open

Reduce Buffer usage or limit its exposure to the end application #141

tien opened this issue Sep 11, 2024 · 0 comments

Comments

@tien
Copy link

tien commented Sep 11, 2024

Zondax's libraries currently rely on Buffer directly from the global scope, which causes issues for front-end environments that don't include a Buffer polyfill in the global window object.

To resolve this, the following approaches could be considered:

  1. Switch to using typed arrays.
  2. Implement a cross-platform buffer solution, such as https://www.npmjs.com/package/buffer, and remove Buffer from public-facing APIs (e.g. accept typed arrays or strings instead).

🔗 zboto Link

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

No branches or pull requests

1 participant