<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto">As good of an idea as it may or may not be to remove this feature from the code base, actually doing so&nbsp;would be crossing a boundary that we have not previously been willing to do except under extraordinary duress. The nature of bitcoin is such that we do not know and cannot know what transactions exist out there pre-signed and making use of these features.<div><br></div><div>It may be a good idea to make these features non standard to further discourage their use, but I object to doing so with the justification of eventually disabling them for all transactions. Taking that step has the potential of destroying value and is something that we have only done in the past either because we didn’t understand forks and best practices very well, or because the features (now disabled) were fundamentally insecure and resulted in other people’s coins being vulnerable. This latter concern does not apply here as far as I’m aware.<br><div><br>On Nov 15, 2017, at 8:02 AM, Johnson Lau via bitcoin-dev &lt;<a href="mailto:bitcoin-dev@lists.linuxfoundation.org">bitcoin-dev@lists.linuxfoundation.org</a>&gt; wrote:<br><br></div><blockquote type="cite"><div><meta http-equiv="Content-Type" content="text/html; charset=utf-8">In&nbsp;<a href="https://github.com/bitcoin/bitcoin/pull/11423" class="">https://github.com/bitcoin/bitcoin/pull/11423</a>&nbsp;I propose to make&nbsp;OP_CODESEPARATOR and FindAndDelete in non-segwit scripts non-standard<div class=""><br class=""></div><div class="">I think FindAndDelete() is one of the most useless and complicated functions in the script language. It is omitted from segwit (BIP143), but we still need to support it in non-segwit scripts. Actually, FindAndDelete() would only be triggered in some weird edge cases like using out-of-range SIGHASH_SINGLE.</div><div class=""><br class=""></div><div class="">Non-segwit scripts also use a FindAndDelete()-like function to remove OP_CODESEPARATOR from scriptCode. Note that in BIP143, only executed OP_CODESEPARATOR are removed so it doesn’t have the FindAndDelete()-like function. OP_CODESEPARATOR in segwit scripts are useful for Tumblebit so it is not disabled in this proposal</div><div class=""><br class=""></div><div class="">By disabling both, it guarantees that scriptCode serialized inside SignatureHash() must be constant</div><div class=""><br class=""></div><div class="">If we use a softfork to remove FindAndDelete() and OP_CODESEPARATOR from non-segwit scripts, we could completely remove FindAndDelete() from the consensus code later by whitelisting all blocks before the softfork block. The first step is to make them non-standard in the next release.</div><div class=""><br class=""></div><div class=""><br class=""></div><div class="">&nbsp;</div></div></blockquote><blockquote type="cite"><div><span>_______________________________________________</span><br><span>bitcoin-dev mailing list</span><br><span><a href="mailto:bitcoin-dev@lists.linuxfoundation.org">bitcoin-dev@lists.linuxfoundation.org</a></span><br><span><a href="https://lists.linuxfoundation.org/mailman/listinfo/bitcoin-dev">https://lists.linuxfoundation.org/mailman/listinfo/bitcoin-dev</a></span><br></div></blockquote></div></body></html>