pybitcointools
pybitcointools copied to clipboard
SIGHASH_SINGLE must return 1 for output index > input index
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
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?