2

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

Quin Noaj
  • 41
  • 4

1 Answers1

3

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
  • 98,249
  • 9
  • 183
  • 287