mirror of
https://github.com/FlipsideCrypto/dcrd.git
synced 2026-02-06 10:56:47 +00:00
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. |
||
|---|---|---|
| .. | ||
| LICENSE | ||
| many_inputs_tx.hex | ||
| script_tests.json | ||
| sighash.json | ||
| tx_invalid.json | ||
| tx_valid.json | ||