From nicolas.dorier at gmail.com Mon Mar 7 02:34:09 2016 From: nicolas.dorier at gmail.com (Nicolas Dorier) Date: Mon, 7 Mar 2016 11:34:09 +0900 Subject: [Lightning-dev] We don't need R-Value, how OP_CODESEPARATOR saves the day Message-ID: I'm amazed as I found a useful case for OP_CODESEPARATOR. I think the script can be improved to take less byte for removing the duplication of , will take a look later. Let's change escape redeem: OP_HASH160 OP_EQUAL OP_IF OP_ELSE OP_CSV OP_DROP OP_ENDIF OP_CHECKSIG To OP_CHECKSIG OP_IF OP_ELSE OP_CSV OP_DROP OP_CODESEPARATOR OP_ENDIF OP_CHECKSIG The Escape output would be {} Where SIGA-Revocation is the signature of KeyA computed with the ScriptCode= The second escape would be 0 {} where script equals to OP_ENDIF OP_CHECKSIG You would revoke a commitment by revealing Btw, you can play with http://n.bitcoin.ninja/checkscript to test such script (I'm checking it myself) -------------- next part -------------- An HTML attachment was scrubbed... URL: