Open wizardofozzie opened 8 years ago
When signing a Tx with SIGHASH_SINGLE at index i, if i > j (where j is input index), txhash(signature_form, 1, SIGHASH_SINGLE) == 0100000000000000000000000000000000000000000000000000000000000000 See this exploit utilising pybitcointools
i
i > j
j
txhash(signature_form, 1, SIGHASH_SINGLE) == 0100000000000000000000000000000000000000000000000000000000000000
Does this exploit should be allowed or definitively patched? Maybe you want to see this: https://github.com/daedalus/pybitcointools/tree/SIGHASH_TEST
any ideas on how to solve this?
When signing a Tx with SIGHASH_SINGLE at index
i
, ifi > j
(wherej
is input index),txhash(signature_form, 1, SIGHASH_SINGLE) == 0100000000000000000000000000000000000000000000000000000000000000
See this exploit utilising pybitcointools