Open
Description
Background: The PSBT file contains over 2200 lines of code, too many for readers or maintainers.
I think it's necessary to refactor it. Do we have plans to separate bip371 from bitcoinjs-lib? Maybe deep dependencies with the taproot are not easily detachable.
Another way to handle this situation is to simply split psbt into psbt_interface, psbt_helper and psbt_transaction under the ts_src/psbt folder.
I prefer the last solution, other suggestions are welcome.