dcrd/txscript/data
Dave Collins 1f5abadc08
txscript: Add remove signature reference test.
An important (and easy for implementations to miss) aspect of the
CHECKSIG opcodes is that the full signature (signature plus hash type)
that is being checked is first removed from the script prior to
calculating the signature hash against which the signature is verified.

It appears the test in the upstream btcsuite code for this was removed
during the initial Decred port instead of being converted as it should
have been.

Consequently, this converts the relevant test so it is correct for
Decred and adds it to the reference tests.  Note that the first of the
two added tests is to ensure the original signature is valid prior to
testing the actual removal condition.
2019-02-14 14:10:12 -06:00
..
LICENSE txscript: Convert reference tests to new format. 2018-07-02 11:59:13 -05:00
many_inputs_tx.hex txscript: Add benchmark for sighash calculation. 2018-05-01 08:51:38 -05:00
script_tests.json multi: Remove unused code. 2018-10-31 21:50:09 -04:00
sighash.json txscript: Correct JSON-based signature hash tests. 2018-04-30 18:18:18 -05:00
tx_invalid.json txscript: Remove P2SH flag from test data. 2018-07-02 12:02:14 -05:00
tx_valid.json txscript: Add remove signature reference test. 2019-02-14 14:10:12 -06:00