Joseph Poon [ARCHIVE] on Nostr: 📅 Original date posted:2015-07-26 📝 Original message: On Sat, Jul 25, 2015 at ...
📅 Original date posted:2015-07-26
📝 Original message:
On Sat, Jul 25, 2015 at 10:59:16PM +0200, Christopher Jamthagen wrote:
> <div>According to the whitepaper: " If three days have elapsed,
> then the above clause is null and void and the clearing process is
> invalidated, both parties must not attempt to settle and claim payment
> after three days." But clearly there is nothing stopping Bob from
> taking the HTLC output when Alice is forced to broadcast the
> commitment transaction, even if it is supposed to be null and
> void.</div>
Hi Christopher,
The design of the HTLCs have a contestation period built-in where the
party which broadcasts the Commitment Transaction must wait a period of
time before the payment goes back to themselves.
I think your concern may have some implications for Rusty's dual
anchor/funding version. I had incorrectly stated that it might be
possible to do it only with OP_CLTV, but it clearly requires both
OP_CLTV and OP_CSV.
There's more information being attested when relying on OP_CSV for the
HTLC without a transaction chained 2 levels deep. It will require
greater time delay between each hop in the payment to account for the
relative time to prove whether the Commitment has been revoked. This
greater time creates a tradeoff which requires each channel participant
(for every hop) to watch the blockchain at a more frequent interval,
since that OP_CSV value is intrinsically linked to the payment.
With a SIGHASH_NOINPUT (or similar) model having transactions two-deep,
this contestation period can be independent of the actual HTLC payments.
In effect, the first transaction spending from the HTLC validates
whether the preimages are known, the second is whether the Commitment
itself is invalidated. With separated anchor/funding, those two steps
are combined inside the Commitment Transaction -- AFAIK, (minus the
above tradeoffs) it still works though, but I'll double-check.
--
Joseph Poon
Published at
2023-06-09 12:43:46Event JSON
{
"id": "58ed74ff6cea88d299e361065557a53977b4fc4334556e118a0a939851275ced",
"pubkey": "ccb4cc87c455b74febaee5929cfd0726421b2eea64ad2b16440b68e8c7433211",
"created_at": 1686314626,
"kind": 1,
"tags": [
[
"e",
"136120fa9d254826614cb6c81e857559ae6ab498d602841cc63c63ab6debd5a9",
"",
"root"
],
[
"e",
"27c61e741e3ee1ce461d95fffaa5fc86bc79a56a91459924146d0866b6124c1e",
"",
"reply"
],
[
"p",
"ad104cac8fd9919c65a2df9e910166f2a1513845fdfa37fd10f1063eb12f5254"
]
],
"content": "📅 Original date posted:2015-07-26\n📝 Original message:\nOn Sat, Jul 25, 2015 at 10:59:16PM +0200, Christopher Jamthagen wrote:\n\u003e \u003cdiv\u003eAccording to the whitepaper: \u0026quot; If three days have elapsed,\n\u003e then the above clause is null and void and the clearing process is\n\u003e invalidated, both parties must not attempt to settle and claim payment\n\u003e after three days.\u0026quot; But clearly there is nothing stopping Bob from\n\u003e taking the HTLC output when Alice is forced to broadcast the\n\u003e commitment transaction, even if it is supposed to be null and\n\u003e void.\u003c/div\u003e\n\nHi Christopher,\n\nThe design of the HTLCs have a contestation period built-in where the\nparty which broadcasts the Commitment Transaction must wait a period of\ntime before the payment goes back to themselves.\n\nI think your concern may have some implications for Rusty's dual\nanchor/funding version. I had incorrectly stated that it might be\npossible to do it only with OP_CLTV, but it clearly requires both\nOP_CLTV and OP_CSV.\n\nThere's more information being attested when relying on OP_CSV for the\nHTLC without a transaction chained 2 levels deep. It will require\ngreater time delay between each hop in the payment to account for the\nrelative time to prove whether the Commitment has been revoked. This\ngreater time creates a tradeoff which requires each channel participant\n(for every hop) to watch the blockchain at a more frequent interval,\nsince that OP_CSV value is intrinsically linked to the payment.\n\nWith a SIGHASH_NOINPUT (or similar) model having transactions two-deep,\nthis contestation period can be independent of the actual HTLC payments.\nIn effect, the first transaction spending from the HTLC validates\nwhether the preimages are known, the second is whether the Commitment\nitself is invalidated. With separated anchor/funding, those two steps\nare combined inside the Commitment Transaction -- AFAIK, (minus the\nabove tradeoffs) it still works though, but I'll double-check.\n\n-- \nJoseph Poon",
"sig": "2841df2736da9dd638305fc409d2e8d8fb6c28082b938268fa48bda79e331b4d6cdd1e6ce1798e2a57b5707d12795a3e78bae9c892604294e31f57638ef29920"
}