BIP for OP_VAULT



Summary:

The email thread discusses a replacement for the two opcodes in the current OP_VAULT BIP. The proposed solution is to use `OP_FORWARD_LEAF_UPDATE` as a more generic/composable opcode, which takes a variable number of stack elements. This would allow a TLUV-ish script to be modified safely, using push opcodes to avoid the possibility of adding OP_SUCCESS instructions. The proposal also includes an additional `OP_FORWARD_REFUND` opcode, which allows for refunding values without effectively doubling the delay time. The derived tapscript would be embedded in the output scriptpubkey, and if it does not match, the operation would fail. The email also addresses issues with setting CSV timeout to 0, which would result in it not being satisfiable. Additionally, there is a bonus to introducing withdrawal authorization as part of the construct. Finally, there is a suggestion to use existing OP_VAULT cleverness to accumulate input values into specified outputs, which makes TLUV payment pools possible.


Updated on: 2023-06-16T15:34:20.061094+00:00