<div dir="ltr"><br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
* OP_CODESEPARATOR in non-BIP 143 scripts fails the script validation. <br>
This includes OP_CODESEPARATORs in unexecuted branches of if statements, <br>
similar to other disabled opcodes, but unlike OP_RETURN.<br></blockquote><div><br></div><div>OP_CODESEPARATOR is the only mechanism available that allows users to sign which particular branch they are authorizing for within scripts that have multiple possible conditions that reuse the same public key.  Because of P2SH you cannot know that no one is currently using this feature.  Activating a soft-fork as describe above means these sorts of funds would be permanently lost.  It is not acceptable to risk people&#39;s money like this.</div><div><br></div><div>I suggest an alternative whereby the execution of OP_CODESEPARATOR increases the transactions weight suitably as to temper the vulnerability caused by it.  Alternatively there could be some sort of limit (maybe 1) on the maximum number of OP_CODESEPARATORs allowed to be executed per script, but that would require an argument as to why exceeding that limit isn&#39;t reasonable.</div><div><br></div><div>-- <br></div><div>Russell O&#39;Connor<br></div></div></div>