You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In config.py, SIGHASH_ANYONECANPAY should be set to 0x80, not to 80.
sighash_type is not properly reflected in the signature. The last byte in the signature is always set to 01, instead to the value passed Transaction.sign() method.
The text was updated successfully, but these errors were encountered:
However hash_types other than SIGHASH_ALL are not supported at the moment. You can create transactions with other hash types but signing is not possible. I will transform this issue in a 'feature request'.
It is actually pretty easy to fix. Do not pass hash_type to sign function, the one that comes from keys.py file, just get the signature and append your hash_type to your signature in the sign function that belongs to Transaction object. You would probably need to fix all the other places where 01 is expected to be appended to the signature.
The text was updated successfully, but these errors were encountered: