Rusty Russell [ARCHIVE] on Nostr: 📅 Original date posted:2016-03-07 📝 Original message: Nicolas Dorier ...
📅 Original date posted:2016-03-07
📝 Original message:
Nicolas Dorier <nicolas.dorier at gmail.com> writes:
> I'm amazed as I found a useful case for OP_CODESEPARATOR.
Me too! This is an awesome hack.
There is an important caveats: You must make sure you never ever create
a commit tx which is identical a previous one.
There's also a requirement that you store all previous signatures,
avoided by both the original draft scheme (using BIP32 and handing over
old private keys) and the deployable lightning chain-of-hashes.
Since these scripts will hardly ever hit the chain, I think this a
premature optimization. But maybe I'm still a bit stunned by this use
of OP_CODESEPARATOR :)
Great work!
Rusty.
Published at
2023-06-09 12:45:50Event JSON
{
"id": "4979bc94a5d2f530e71fa03c5cacd5b43333b6e627faadff552cef6f1900cdc1",
"pubkey": "13bd8c1c5e3b3508a07c92598647160b11ab0deef4c452098e223e443c1ca425",
"created_at": 1686314750,
"kind": 1,
"tags": [
[
"e",
"9dffd851f36e0464b9b84a18f034d9a166bd96caa924994430620e4b51393055",
"",
"root"
],
[
"e",
"c4ca277b80b85761bb49aabb5648079beba343a17854120a9c03ada4a7923295",
"",
"reply"
],
[
"p",
"bf0548dc0ad239e9e1e0bba3c969632ded402a68091cde1b21a0895e90bc9a57"
]
],
"content": "📅 Original date posted:2016-03-07\n📝 Original message:\nNicolas Dorier \u003cnicolas.dorier at gmail.com\u003e writes:\n\u003e I'm amazed as I found a useful case for OP_CODESEPARATOR.\n\nMe too! This is an awesome hack.\n\nThere is an important caveats: You must make sure you never ever create\na commit tx which is identical a previous one.\n\nThere's also a requirement that you store all previous signatures,\navoided by both the original draft scheme (using BIP32 and handing over\nold private keys) and the deployable lightning chain-of-hashes.\n\nSince these scripts will hardly ever hit the chain, I think this a\npremature optimization. But maybe I'm still a bit stunned by this use\nof OP_CODESEPARATOR :)\n\nGreat work!\nRusty.",
"sig": "4d479939addeeed0f6fd964552677e0c353d64bacd7b13c0f9db9222c7151eb73e7dfb454117ce0c1a422b35ec1bb4122c1ba7dfcf0c418cea5d4d6949b37a21"
}