{"type":"rich","version":"1.0","author_name":"npub1e46n428mcyfwznl7nlsf6d3s7rhlwm9x3cmkuqzt3emmdpadmkaqqjxmcu","author_url":"https://nostr.ae/npub1e46n428mcyfwznl7nlsf6d3s7rhlwm9x3cmkuqzt3emmdpadmkaqqjxmcu","provider_name":"njump","provider_url":"https://nostr.ae","html":"📅 Original date posted:2019-03-07\n📝 Original message:Replies inline.\n\nMatt\n\nOn 3/7/19 3:03 PM, Russell O'Connor wrote:\n\u003e \n\u003e     * OP_CODESEPARATOR in non-BIP 143 scripts fails the script validation.\n\u003e     This includes OP_CODESEPARATORs in unexecuted branches of if\n\u003e     statements,\n\u003e     similar to other disabled opcodes, but unlike OP_RETURN.\n\u003e \n\u003e \n\u003e OP_CODESEPARATOR is the only mechanism available that allows users to \n\u003e sign which particular branch they are authorizing for within scripts \n\u003e that have multiple possible conditions that reuse the same public key.\n\nThis is true, and yet it does not appear to actually be practically \nusable. Thus far, despite a ton of effort, I have not yet seen a \npractical use-case for OP_CODESEPARATOR (except for one example of it \nbeing used to make SegWit scripts ever-so-slightly more effecient in \nTumbleBit, hence why this BIP does not propose disabling it for SegWit).\n\n\u003e Because of P2SH you cannot know that no one is currently using this \n\u003e feature.  Activating a soft-fork as describe above means these sorts of \n\u003e funds would be permanently lost.  It is not acceptable to risk people's \n\u003e money like this.\n\n(1) It has been well documented again and again that there is desire to \nremove OP_CODESEPARATOR, (2) it is well-documented OP_CODESEPARATOR in \nnon-segwit scripts represents a rather significant vulnerability in \nBitcoin today, and (3) lots of effort has gone into attempting to find \npractical use-cases for OP_CODESEPARATOR's specific construction, with \nno successes as of yet. I strongly, strongly disagree that the \nhighly-unlikely remote possibility that someone created something before \nwhich could be rendered unspendable is sufficient reason to not fix a \nvulnerability in Bitcoin today.\n\n\u003e I suggest an alternative whereby the execution of OP_CODESEPARATOR \n\u003e increases the transactions weight suitably as to temper the \n\u003e vulnerability caused by it.  Alternatively there could be some sort of \n\u003e limit (maybe 1) on the maximum number of OP_CODESEPARATORs allowed to be \n\u003e executed per script, but that would require an argument as to why \n\u003e exceeding that limit isn't reasonable.\n\nYou could equally argue, however, that any such limit could render some \nmoderately-large transaction unspendable, so I'm somewhat skeptical of \nthis argument. Note that OP_CODESEPARATOR is non-standard, so getting \nthem mined is rather difficult in any case."}
