diff options
author | Suhas Daftuar <sdaftuar@gmail.com> | 2015-02-09 15:28:35 -0500 |
---|---|---|
committer | Suhas Daftuar <sdaftuar@gmail.com> | 2015-02-10 13:23:57 -0500 |
commit | 6f50dbd2fdeef7bc24317a487936502e25a05de9 (patch) | |
tree | cffe21b53032fc9faa6f55b090cf2222c7a03857 /src/test/data | |
parent | 1c4e3f99f05273e4d0fae7246d3afe5a33c52ee0 (diff) |
Fix NegateSignatureS to not duplicate last byte of S
NegateSignatureS is called with a signature without a hashtype, so
do not save the last byte and append it after S negation.
Updates the two tests which were affected by this bug.
Diffstat (limited to 'src/test/data')
-rw-r--r-- | src/test/data/script_invalid.json | 2 | ||||
-rw-r--r-- | src/test/data/script_valid.json | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/test/data/script_invalid.json b/src/test/data/script_invalid.json index a67c157aff..3b2f64d766 100644 --- a/src/test/data/script_invalid.json +++ b/src/test/data/script_invalid.json @@ -696,7 +696,7 @@ "BIP66 example 11, with DERSIG" ], [ - "0x49 0x304502203e4516da7253cf068effec6b95c41221c0cf3a8e6ccb8cbf1725b562e9afde2c022100ab1e3da73d67e32045a20e0b999e049978ea8d6ee5480d485fcf2ce0d03b2ef05101", + "0x48 0x304502203e4516da7253cf068effec6b95c41221c0cf3a8e6ccb8cbf1725b562e9afde2c022100ab1e3da73d67e32045a20e0b999e049978ea8d6ee5480d485fcf2ce0d03b2ef001", "0x21 0x03363d90d447b00c9c99ceac05b6262ee053441c7e55552ffe526bad8f83ff4640 CHECKSIG", "LOW_S", "P2PK with high S" diff --git a/src/test/data/script_valid.json b/src/test/data/script_valid.json index fb81fcb1f5..2b4b0989b9 100644 --- a/src/test/data/script_valid.json +++ b/src/test/data/script_valid.json @@ -814,7 +814,7 @@ "BIP66 example 12, with DERSIG" ], [ - "0x49 0x304502203e4516da7253cf068effec6b95c41221c0cf3a8e6ccb8cbf1725b562e9afde2c022100ab1e3da73d67e32045a20e0b999e049978ea8d6ee5480d485fcf2ce0d03b2ef05101", + "0x48 0x304502203e4516da7253cf068effec6b95c41221c0cf3a8e6ccb8cbf1725b562e9afde2c022100ab1e3da73d67e32045a20e0b999e049978ea8d6ee5480d485fcf2ce0d03b2ef001", "0x21 0x03363d90d447b00c9c99ceac05b6262ee053441c7e55552ffe526bad8f83ff4640 CHECKSIG", "", "P2PK with high S but no LOW_S" |