Skip to content

Would you accept a PR for bitcoinjs-lib v7 migration (with @bitcoinerlab updates)? #428

@landabaso

Description

@landabaso

I was considering submitting a PR related to this library's dependency on @bitcoinerlab/descriptors.

app-bitcoin-new uses @bitcoinerlab/descriptors to validate addresses with an implementation different from the device's one and the new @bitcoinerlab/descriptors v3 branch now supports minitapscript as well (so the validation could be extended).

However, @bitcoinerlab/descriptors was also upgraded to align with the newer bitcoinjs-lib v7 branch, which has been available for about 5 months now (and the RC for over a year).

The new bitcoinjs-lib introduces some important changes, including:

  • Uint8Array instead of Buffer
  • bigint for satoshi amounts instead of number

Because of that, I think it would make more sense to upgrade @bitcoinerlab/descriptors together with bitcoinjs-lib.

I realize this would be a breaking change, especially because of the typing changes and the major bitcoinjs-lib version upgrade (which downstream apps may also depend on), so it would impact several parts of Ledger's codebase and other parts of your ecosystem.
I'd rather check first in case you are planning a different refactor or if downstream apps are not in a position to adopt this yet.

Before I give this PR a try, would you be open to this kind of update?

Let me know what you think, @bigspider.

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