We don't need R-Value, how OP_CODESEPARATOR saves the day



Summary:

The context describes a script that can be improved using OP_CODESEPARATOR to remove duplication of bytes. The proposed change involves modifying the escape redeem function from using OP_HASH160 OP_EQUAL OP_IF to using OP_CHECKSIG OP_IF. The output of the modified function would be {} for SIGA-Revocation and 0 {} for the second escape where script equals to OP_ENDIF OP_CHECKSIG. The commitment revocation process involves revealing a specific key signature computed with ScriptCode. A tool called http://n.bitcoin.ninja/checkscript can be used to test the script.


Updated on: 2023-05-23T22:41:46.068595+00:00