bitcoinerlab / descriptors

A TypeScript library for parsing Bitcoin Descriptors, including Miniscript-based ones. Streamlines creating Partially Signed Bitcoin Transactions (PSBTs) from Descriptors. Features BIP32, single-signature, and Hardware Wallet signing capabilities, and facilitates finalizing transactions.
https://bitcoinerlab.com/modules/descriptors
41 stars 14 forks source link

Handle BIP 32 path element overflow #8

Closed landabaso closed 1 year ago

landabaso commented 1 year ago

Path elements should not be larger than 2147483647' or 2147483647.

This fixture fails: https://github.com/bitcoin/bitcoin/blob/fcff639af137f2a6636ef454d0404b969ab7772e/src/test/descriptor_tests.cpp#L418

Reported an issue to bitcoinjs before deciding whether to handle this problem in this module or there: https://github.com/bitcoinjs/bip32/issues/70