Karl Johan Alm [ARCHIVE] on Nostr: 📅 Original date posted:2018-03-15 📝 Original message:On Thu, Mar 15, 2018 at ...
📅 Original date posted:2018-03-15
📝 Original message:On Thu, Mar 15, 2018 at 6:43 AM, Jim Posen <jim.posen at gmail.com> wrote:
> How are scripts with OP_CLTV and OP_CSV handled by verifiers? Do they always
> succeed? Or should an nLockTime and nSequence also be included in the proof
> in a way that can be parsed out and displayed to verifiers?
Good question.. Since you don't really have the input(s), I think it's
fine to always assume sufficient time/height on CLTV/CSV checks.
> I assume any signatures in the scriptSig/witness data would have no sighash
> type?
I think it would just use the default (SIGHASH_ALL?) for simplicity.
Is there a good reason to tweak it?
-Kalle.
Published at
2023-06-07 18:11:16Event JSON
{
"id": "beccd097d922e9a39dd2e41eaab9f8bfc1f404342ae38f7c06976581270ed601",
"pubkey": "cf98d015f410ea690e93370543fcb2c3129303ca3921fd6d463206f557722518",
"created_at": 1686161476,
"kind": 1,
"tags": [
[
"e",
"fde6d8b8cd384fa838810364bd9a6edd18aea9246ae8127a644187087642ae18",
"",
"root"
],
[
"e",
"a187e03acfa2b4ef3527dfe0749ce05efdfc30cabae576402b6652bec571467a",
"",
"reply"
],
[
"p",
"cf98d015f410ea690e93370543fcb2c3129303ca3921fd6d463206f557722518"
]
],
"content": "📅 Original date posted:2018-03-15\n📝 Original message:On Thu, Mar 15, 2018 at 6:43 AM, Jim Posen \u003cjim.posen at gmail.com\u003e wrote:\n\u003e How are scripts with OP_CLTV and OP_CSV handled by verifiers? Do they always\n\u003e succeed? Or should an nLockTime and nSequence also be included in the proof\n\u003e in a way that can be parsed out and displayed to verifiers?\n\nGood question.. Since you don't really have the input(s), I think it's\nfine to always assume sufficient time/height on CLTV/CSV checks.\n\n\u003e I assume any signatures in the scriptSig/witness data would have no sighash\n\u003e type?\n\nI think it would just use the default (SIGHASH_ALL?) for simplicity.\nIs there a good reason to tweak it?\n\n-Kalle.",
"sig": "07fae398b2eabdda895b5e111811c0ce19fd4155e1c2af0a9f2af10f49b7c0ff89ec3702332f0f9bd53205832b591e89240766fc8f6a3716dd988f69e667c96d"
}