pybitcointools
pybitcointools copied to clipboard
Fixes signature_form for SIGHASH_SINGLE and SIGHAS_NONE.
Fixes #149
signature_form for SIGHASH_SINGLE and SIGHASH_NONE for transactions with more than one input/output was not correctly created.
nSequence for inputs different than the signed index should be set to 0 in both cases.
Moreover, the whole format of SIGHASH_SINGLE was incorrect if a transaction with more than 1 input/output was created.