pybitcointools icon indicating copy to clipboard operation
pybitcointools copied to clipboard

SIGHASH_SINGLE must return 1 for output index > input index

Open wizardofozzie opened this issue 9 years ago • 2 comments

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

wizardofozzie avatar Oct 22 '15 01:10 wizardofozzie

Does this exploit should be allowed or definitively patched? Maybe you want to see this: https://github.com/daedalus/pybitcointools/tree/SIGHASH_TEST

daedalus avatar Jan 22 '16 20:01 daedalus

any ideas on how to solve this?

zilveer avatar Aug 10 '17 11:08 zilveer