Author

Topic: Do we need SIGHASH_MULTIPLE for some advance contract? (Read 690 times)

legendary
Activity: 1176
Merit: 1280
May Bitcoin be touched by his Noodly Appendage
legendary
Activity: 1526
Merit: 1134
I think you would just have multiple inputs owned by yourself and use SIGHASH_SINGLE. But Gregory is right. I never found a use case for that either (nor most of the script opcodes).
legendary
Activity: 1792
Merit: 1111
It seems weird, but I've never been able to come up with a case that couldn't be handled by the current flags plus some small number of preparatory transactions. I'd be interested in seeing if anyone can come up with one.
 

Do you mean using multiple SIGHASH_ONE inupts?
staff
Activity: 4284
Merit: 8808
It seems weird, but I've never been able to come up with a case that couldn't be handled by the current flags plus some small number of preparatory transactions. I'd be interested in seeing if anyone can come up with one.
 
legendary
Activity: 1792
Merit: 1111
Currently, we have SIGHASH_ALL (sign all outputs, the default), SIGHASH_NONE (sign none of the outputs) and, SIGHASH_SINGLE (sign one of the outputs). However, it seems there is no mechanism for user to sign more than one, but not all outputs. For some advanced contracts, one may want to specify multiple but not all outputs. Do we need a SIGHASH_MULTIPLE for this, or could we accomplish this with current code?
Jump to: