ZmnSCPxj [ARCHIVE] on Nostr: š
Original date posted:2022-05-20 š Original message:Good morning fd0, > > In ...
š
Original date posted:2022-05-20
š Original message:Good morning fd0,
> > In addition, covenant mechanisms that require large witness data are probably more vulnerable to MEV.
>
>
> Which covenant mechanisms require large witness data?
`OP_CSFS` + `OP_CAT`, which requires that you copy parts of the transaction into the witness data if you want to use it for covenants.
And the script itself is in the witness data, and AFAIK `OP_CSFS` needs large scripts if used for covenants.
Arguably though `OP_CSFS` is not designed for covenants, it just *happens to enable* covenants when you throw enough data at it.
If we are going to tolerate recursive covenants, we might want an opcode that explicitly supports recursion, instead of one that happens to enable recursive covenants, because the latter is likely to require more data to be pushed on the witness stack.
E.g. instead of the user having to quine the script (i.e. the script is really written twice, so it ends up doubling the witness size of the SCRIPT part), make an explicitly quining opcode.
Basically, Do not Repeat Yourself.
Regards,
ZmnSCPxj
Published at
2023-06-07 23:09:56Event JSON
{
"id": "fface576bf53d742938327281ccab0a8583a8466a3cd75e3d8cd026b5c902fb8",
"pubkey": "4505072744a9d3e490af9262bfe38e6ee5338a77177b565b6b37730b63a7b861",
"created_at": 1686179396,
"kind": 1,
"tags": [
[
"e",
"8169ad178ef937acf7604752d662aa5c59b11b02ef8508143e5d56344f5b2310",
"",
"root"
],
[
"e",
"3f0a71b20f8e07d8b40cbb755b1c1ccf0d302f59e6d2a825135dde6c59d76dad",
"",
"reply"
],
[
"p",
"745e2723e72d7ded3f0dd293d710b706cd302ab8476983c292d4bdb7f9c5d366"
]
],
"content": "š
Original date posted:2022-05-20\nš Original message:Good morning fd0,\n\n\n\u003e \u003e In addition, covenant mechanisms that require large witness data are probably more vulnerable to MEV.\n\u003e\n\u003e\n\u003e Which covenant mechanisms require large witness data?\n\n`OP_CSFS` + `OP_CAT`, which requires that you copy parts of the transaction into the witness data if you want to use it for covenants.\nAnd the script itself is in the witness data, and AFAIK `OP_CSFS` needs large scripts if used for covenants.\n\nArguably though `OP_CSFS` is not designed for covenants, it just *happens to enable* covenants when you throw enough data at it.\n\nIf we are going to tolerate recursive covenants, we might want an opcode that explicitly supports recursion, instead of one that happens to enable recursive covenants, because the latter is likely to require more data to be pushed on the witness stack.\nE.g. instead of the user having to quine the script (i.e. the script is really written twice, so it ends up doubling the witness size of the SCRIPT part), make an explicitly quining opcode.\n\nBasically, Do not Repeat Yourself.\n\nRegards,\nZmnSCPxj",
"sig": "a15053c0113aae106357140bf9434125a51066d2c3b9f7d91a627ab226f3588f2826a6e4ce04f652f52b93871ef47c915832a2d7e7358cc158b6e2686c211fc7"
}