BitcoinJS v5.1.4 Release Notes
Release Date: 2019-08-23 // over 4 years ago-
🔄 changed
Psbt
inputs using segwit scripts can now work with nonWitnessUtxo as well as the original witnessUtxo. The reasoning for this is that nonWitnessUtxo has all the information contained in the witnessUtxo, so rejecting signing even though we have all the info we need is unnecessary. Trying to sign a non-segwit script with a witnessUtxo will still throw an Error as it should.