Olaoluwa Osuntokun [ARCHIVE] on Nostr: 📅 Original date posted:2016-05-02 📝 Original message: > > Or require a 110k ...
📅 Original date posted:2016-05-02
📝 Original message:
>
> Or require a 110k preimage to redeem, drop to the blockchain, then
> redeem it by sending direct to a miner. A node trying to use that
> preimage would create a non-standard transaction, which may not
> propagate. Similarly with an almost 4MB preimage which requires you
> to grind out a tiny signature to redeem in a tx small enough...
>
Segwit's witness program validation logic ensures that each element of the
passed witness stack is less-than-or-equal-to the maximum script element
size (520 bytes). This check is enforced before execution itself.
Therefore, even without the additional OP_SIZE check, Script will enforce a
ceiling on the pre-image size.
We've also recently made such an observation, resulting in a modification
to our scripts similar to the one you've detailed. Thanks for sounding the
alarm with this mailing-list post!
Best,
Laolu
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <
http://lists.linuxfoundation.org/pipermail/lightning-dev/attachments/20160502/fef7092a/attachment.html>
Published at
2023-06-09 12:46:15Event JSON
{
"id": "d7083141417334480752ea1343d566dcf40bb3d3b19b786c04e0df7a0e9325aa",
"pubkey": "2df3fc2660459521b852c995d4fc1a93938389a5e085677d0ebb33ef92cc5476",
"created_at": 1686314775,
"kind": 1,
"tags": [
[
"e",
"e61b195a7b26433c9f8c8c9f2219114acd7d4f17b3eec61ec84bc6fa45bbd2ae",
"",
"root"
],
[
"e",
"289caac18acc69fd50bfa1b4fac2f3fdeda980faa652450b624a2457d20331e3",
"",
"reply"
],
[
"p",
"13bd8c1c5e3b3508a07c92598647160b11ab0deef4c452098e223e443c1ca425"
]
],
"content": "📅 Original date posted:2016-05-02\n📝 Original message:\n\u003e\n\u003e Or require a 110k preimage to redeem, drop to the blockchain, then\n\u003e redeem it by sending direct to a miner. A node trying to use that\n\u003e preimage would create a non-standard transaction, which may not\n\u003e propagate. Similarly with an almost 4MB preimage which requires you\n\u003e to grind out a tiny signature to redeem in a tx small enough...\n\u003e\n\nSegwit's witness program validation logic ensures that each element of the\npassed witness stack is less-than-or-equal-to the maximum script element\nsize (520 bytes). This check is enforced before execution itself.\nTherefore, even without the additional OP_SIZE check, Script will enforce a\nceiling on the pre-image size.\n\nWe've also recently made such an observation, resulting in a modification\nto our scripts similar to the one you've detailed. Thanks for sounding the\nalarm with this mailing-list post!\n\nBest,\nLaolu\n-------------- next part --------------\nAn HTML attachment was scrubbed...\nURL: \u003chttp://lists.linuxfoundation.org/pipermail/lightning-dev/attachments/20160502/fef7092a/attachment.html\u003e",
"sig": "bc06e3f27ab9fdf75910e039ed87da69d70397752dd32271ae41cc1cfcce54f70374ca8b7503f7aa58cf8b90ad89e34ab50c7f050c1229e6144f3213552a3996"
}