The modifier: ANYONECANPAY (0x80) — can be OR'd with any of the above.
It makes the signature commit to ONLY the current input, not all inputs.
SIGHASH_ALL | ANYONECANPAY = anyone can add more inputs (crowdfunding pattern).
SIGHASH_NONE | ANYONECANPAY = anyone can add inputs AND outputs (rare, use with care).
Understanding these is the difference between building Bitcoin apps that are secure vs ones that leak funds. (6/6)
⚡ zap if this was useful — github.com/dani69654/bitcoin-ts-scripts for the TypeScript code
