Skip to content

Discussion: Switch from bn.js to new BigInt primitive? #5706

Closed
@peetzweg

Description

@peetzweg

As this repo does not offer a discussion section, I'm opening this request for a discussion here. Curious if it has been considered to switch to the new javascript BigInt primitive type instead of the probably more and more outdated version of bn.js.

Surely, it's missing immediate benefits but some in the future would be

  • secure future seamless interoperability with adjacent libraries in the ecosystem,

  • moving dependency to javascript implementation instead of third party keeping bn.js supported on all future platforms

  • more?

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/BigInt

Mostly looking for a state of affairs regarding BigInt adoption in pjs.

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