-
Notifications
You must be signed in to change notification settings - Fork 88
Description
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:
Uint8Arrayinstead ofBufferbigintfor satoshi amounts instead ofnumber
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.