Open ellacodecamp opened 4 months ago
You are right, will take a look at it
This issue is addressed in commit 33dd52d1502a5085a946989eb7e8c8762007a402
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.