fixes #39 - corrects signature_hash for SIGHASH_SINGLE on input index > 0; ... #40
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
...adds ability to verify legacy SINGLE_HASH transactions; adds TxIn to tx/init.py for consistency with Tx and TxOut
Hopefully this fix for issue #39 helps redeem me from the utter embarrassment that is issue #38. :o(
I wrote a test script to compare the fixed output of
pycoin
with the equivalent output frombitcoinj
. The python half is adapted as a (now working) unit test in e8b026f.On a related note, your
BRAIN DAMAGE: this probably doesn't work right
comment was wrong...that part of the code was fine. It just required a number encoding tweak.... :o)