Skip to content

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

@tien

Description

@tien

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions