-
Notifications
You must be signed in to change notification settings - Fork 860
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to decode a Sighash type on a TX hex? #178
Comments
You should check the input script (scriptSig) for the transaction you want to decode. Assuming you are analysing a P2PKH transaction, the structure of the script will be: < signature >< hash_type >< public_key > The hash_type is always 1 byte long. For future questions I would recommend you to ask this type of questions in another place, like the Bitcoin Stack Exchange, since this repo is kind off discontinued. |
@sr-gi thanks for replying back to me. I will do that but meanwhile u r here what if it's a P2SH transaction how does it look like then? Thanks for your kind reply. regards |
Here you have the structure of a signature: and here an example where Notice that |
Hello,
is there anyone here who can guide me on how to decode a Sighash type on a TX hex which is signed?
I am pretty new to this,
any help is appreciated.
regards
The text was updated successfully, but these errors were encountered: