btcsuite / btcutil

Provides bitcoin-specific convenience functions and types
475 stars 408 forks source link

psbt: restore compatibility with wallets that patch CVE-2020-14199 #178

Closed guggero closed 3 years ago

guggero commented 4 years ago

Fixes https://github.com/lightningnetwork/lnd/issues/4400.

Wallets that include the fix for the CVE-2020-14199 vulnerability always include the full non-witness UTXO even if the output being spent is a witness output. To restore compatibility with those wallets, Bitcoin Core removed the sanity checks on partial inputs. This PR does the same for the btcutil/psbt library.

Roasbeef commented 4 years ago

cc @halseth