Where to find the sighash type?

1

Where can I find the sighash type specified in a script? Is it included in the scriptsig?

Quin Noaj

Posted 2017-11-21T10:49:24.870

Reputation: 31

Answers

2

Yes, it's generally part of the scriptSig.

More specifically, it's part of the signature pushed by the script.

Most specifically, it's the last byte of the signature.

Pieter Wuille

Posted 2017-11-21T10:49:24.870

Reputation: 54 032