Anthony Towns [ARCHIVE] on Nostr: 📅 Original date posted:2023-03-09 🗒️ Summary of this message: The email ...
📅 Original date posted:2023-03-09
🗒️ Summary of this message: The email discusses the use of OP_FORWARD_SELF as a JET of OP_FLU in the revaulting common case, with a suggestion to use a special case instead.
📝 Original message:On 10 March 2023 4:45:15 am AEST, Greg Sanders via bitcoin-dev <bitcoin-dev at lists.linuxfoundation.org> wrote:
>1) OP_FORWARD_SELF is a JET of OP_FLU in the revaulting common case. Maybe
>obvious but I missed this initially and thought it was useful to be pointed
>out.
That was true for TLUV - iirc "FALSE FALSE 0 TLUV" would preserve the spk - but I don't think it's true for OP_FLU: you can't commit to preserving the current script without a way to observe the current script; trying to include a copy of the script in the script makes the script size infinite, and trying to include a hash of the script inside the script is cryptographically infeasible.
You could just special case "0 0 OP_FLU" to result in the same script rather than an empty one though, which would avoid the need for a dedicated FWD_SELF opcode.
(Not convinced calling things Jets when they're unrelated to simplicity makes sense)
Cheers,
aj
--
Sent from my phone.
Published at
2023-06-07 23:20:02Event JSON
{
"id": "9e9b2dbd46891a8c49a0f41b75513fcef015ff3cb3d20279733ebaaac76fd733",
"pubkey": "f0feda6ad58ea9f486e469f87b3b9996494363a26982b864667c5d8acb0542ab",
"created_at": 1686180002,
"kind": 1,
"tags": [
[
"e",
"647fc7db9ce6599535c0921f7a07494f1213a0b3b646951b297e97e004c8718e",
"",
"root"
],
[
"e",
"885aaf971425027492998c0cf6ffc2defc06cec5c9509f843705b9df8d8488d7",
"",
"reply"
],
[
"p",
"937f10fc4f78d8676348562d9d886843fbb351d99d6c96423fe9970819962e19"
]
],
"content": "📅 Original date posted:2023-03-09\n🗒️ Summary of this message: The email discusses the use of OP_FORWARD_SELF as a JET of OP_FLU in the revaulting common case, with a suggestion to use a special case instead.\n📝 Original message:On 10 March 2023 4:45:15 am AEST, Greg Sanders via bitcoin-dev \u003cbitcoin-dev at lists.linuxfoundation.org\u003e wrote:\n\u003e1) OP_FORWARD_SELF is a JET of OP_FLU in the revaulting common case. Maybe\n\u003eobvious but I missed this initially and thought it was useful to be pointed\n\u003eout.\n\nThat was true for TLUV - iirc \"FALSE FALSE 0 TLUV\" would preserve the spk - but I don't think it's true for OP_FLU: you can't commit to preserving the current script without a way to observe the current script; trying to include a copy of the script in the script makes the script size infinite, and trying to include a hash of the script inside the script is cryptographically infeasible.\n\nYou could just special case \"0 0 OP_FLU\" to result in the same script rather than an empty one though, which would avoid the need for a dedicated FWD_SELF opcode.\n\n(Not convinced calling things Jets when they're unrelated to simplicity makes sense)\n\nCheers,\naj\n\n-- \nSent from my phone.",
"sig": "d502d27ece1c9aec77004f337c2e7137c335becadf828ab19d7c05b15a281a58e47100673d6dea68b3ebea2708aa8180291b5324becc09bb9202f799281af3ee"
}