bitcoin/src/script
Wladimir J. van der Laan 63f8b0128b
Merge #13917: Additional safety checks in PSBT signer
5df6f089b5 More tests of signer checks (Andrew Chow)
7c8bffdc24 Test that a non-witness script as witness utxo is not signed (Andrew Chow)
8254e9950f Additional sanity checks in SignPSBTInput (Pieter Wuille)
c05712cb59 Only wipe wrong UTXO type data if overwritten by wallet (Pieter Wuille)

Pull request description:

  The current PSBT signing code can end up producing a non-segwit signature, while only the UTXO being spent is provided in the PSBT (as opposed to the entire transaction being spent). This may be used to trick a user to incorrectly decide a transaction has the semantics he intends to sign.

  Fix this by refusing to sign if there is any mismatch between the provided data and what is being signed.

Tree-SHA512: b55790d79d8166e05513fc4c603a982a33710e79dc3c045060cddac6b48a1be3a28ebf8db63f988b6567b15dd27fd09bbaf48846e323c8635376ac20178956f4
2018-08-14 18:01:02 +02:00
..
bitcoinconsensus.cpp Update copyright headers to 2018 2018-07-27 07:15:02 -04:00
bitcoinconsensus.h Update copyright headers to 2018 2018-07-27 07:15:02 -04:00
descriptor.cpp Support h instead of ' in hardened descriptor paths 2018-07-27 12:21:12 -07:00
descriptor.h Support h instead of ' in hardened descriptor paths 2018-07-27 12:21:12 -07:00
interpreter.cpp Merge #13780: 0.17: Pre-branch maintenance 2018-08-08 13:55:27 +02:00
interpreter.h Update copyright headers to 2018 2018-07-27 07:15:02 -04:00
ismine.cpp Update copyright headers to 2018 2018-07-27 07:15:02 -04:00
ismine.h Update copyright headers to 2018 2018-07-27 07:15:02 -04:00
script.cpp Update copyright headers to 2018 2018-07-27 07:15:02 -04:00
script.h Update copyright headers to 2018 2018-07-27 07:15:02 -04:00
script_error.cpp Update copyright headers to 2018 2018-07-27 07:15:02 -04:00
script_error.h Update copyright headers to 2018 2018-07-27 07:15:02 -04:00
sigcache.cpp Update copyright headers to 2018 2018-07-27 07:15:02 -04:00
sigcache.h Update copyright headers to 2018 2018-07-27 07:15:02 -04:00
sign.cpp Additional sanity checks in SignPSBTInput 2018-08-13 08:21:16 -07:00
sign.h Merge #13917: Additional safety checks in PSBT signer 2018-08-14 18:01:02 +02:00
standard.cpp Update copyright headers to 2018 2018-07-27 07:15:02 -04:00
standard.h Update copyright headers to 2018 2018-07-27 07:15:02 -04:00