Sighash Flag

A sighash flag is a small part of each transaction that determines which parts of the transaction become immutable once a signature has been added to the transaction. Almost all transactions use SIGHASH_ALL, meaning that the entire transaction is immutable once signed. Some special transactions allow other inputs to be altered without invalidating the signature.