1f52b on Nostr: Yes, think so - you’d put all the different unlocks in a modified BIP199 HTLC ...
Yes, think so - you’d put all the different unlocks in a modified BIP199 HTLC script?
Something like
```
OP_IF
[spend with a pre image (hash)]
OP_ELSE
OP_IF
[spend with some multisig and CLTV]
OP_ELSE
[spend with weaker or other multisig and longer CLTV]
OP_ENDIF
OP_ENDIF
OP_EQUALVERIFY
OP_CHECKSIG
```
Published at
2023-04-05 18:14:42Event JSON
{
"id": "04ca233be640a5c6fa2815226d84f87c66c911b49b1c05cb3fb1044b646efef6",
"pubkey": "1f52b16e5ca201ef2dc030f9b651137672e52de1ab29c0b0f6b72ac80ab23c84",
"created_at": 1680718482,
"kind": 1,
"tags": [
[
"e",
"fd6ccc09144e6f8d5ac7e41ee8ade64ecf857d064fe265e6b9ec1311d4c03b82"
],
[
"p",
"50d94fc2d8580c682b071a542f8b1e31a200b0508bab95a33bef0855df281d63"
]
],
"content": "Yes, think so - you’d put all the different unlocks in a modified BIP199 HTLC script?\n\nSomething like\n\n```\nOP_IF\n [spend with a pre image (hash)] \n OP_ELSE\n OP_IF\n [spend with some multisig and CLTV]\n OP_ELSE\n [spend with weaker or other multisig and longer CLTV]\n OP_ENDIF\n OP_ENDIF\n OP_EQUALVERIFY\n OP_CHECKSIG\n```",
"sig": "8278659aa7dbccd53b25f76b919c2a9f27ff807b65da7da43cb37265b6ecdccad6eab3faa17150b3ba1554d9f8544d877218e0225cafae8b5bd199179b16b5aa"
}