Anthony Towns [ARCHIVE] on Nostr: 📅 Original date posted:2021-10-11 📝 Original message: On Sat, Oct 09, 2021 at ...
📅 Original date posted:2021-10-11
📝 Original message:
On Sat, Oct 09, 2021 at 11:12:07AM +1000, Anthony Towns wrote:
> 2. The balance transaction - tracks the funding transaction, contains
> a "balance" output for each of the participants.
> 3. The inflight transactions - spends a balance output from the balance
> transaction and provides outputs for any inflight htlc/ptlc transactions.
> 4. Layered transactions - spends inflight htlc/ptlc outputs by revealing
> the preimage, while still allowing for the penalty path.
I don't think the layering here quite works: if Alice forwarded a payment
to Bob, with timeout T, then the only way she can be sure that she can
either reclaim the funds or know the preimage by time T is to close the
channel on-chain at time T-to_self_delay.
Any time later than that, say T-to_self_delay+x+1, would allow Bob to
post the inflight tx at T+x (prior to Alice being able to claim her
balance directly due to the to_self_delay) and then immediately post the
layered transaction (4, above) revealing the preimage, and preventing
Alice from claiming the refund.
Cheers,
aj
Published at
2023-06-09 13:04:09Event JSON
{
"id": "9a8e2b328d1b12a8ec85c45adb4266fbdf6811d7a1c653806c19dc4dcaa3db58",
"pubkey": "f0feda6ad58ea9f486e469f87b3b9996494363a26982b864667c5d8acb0542ab",
"created_at": 1686315849,
"kind": 1,
"tags": [
[
"e",
"bfc4ed728b228b9341f3493f5bd7d935423e85bd9d039717f691001784a42238",
"",
"root"
],
[
"e",
"4aee43422a31456a7345296c34581150ebeb308adf032bb7fd8de9d7ebea1e68",
"",
"reply"
],
[
"p",
"f0feda6ad58ea9f486e469f87b3b9996494363a26982b864667c5d8acb0542ab"
]
],
"content": "📅 Original date posted:2021-10-11\n📝 Original message:\nOn Sat, Oct 09, 2021 at 11:12:07AM +1000, Anthony Towns wrote:\n\u003e 2. The balance transaction - tracks the funding transaction, contains\n\u003e a \"balance\" output for each of the participants.\n\u003e 3. The inflight transactions - spends a balance output from the balance\n\u003e transaction and provides outputs for any inflight htlc/ptlc transactions.\n\u003e 4. Layered transactions - spends inflight htlc/ptlc outputs by revealing\n\u003e the preimage, while still allowing for the penalty path.\n\nI don't think the layering here quite works: if Alice forwarded a payment\nto Bob, with timeout T, then the only way she can be sure that she can\neither reclaim the funds or know the preimage by time T is to close the\nchannel on-chain at time T-to_self_delay.\n\nAny time later than that, say T-to_self_delay+x+1, would allow Bob to\npost the inflight tx at T+x (prior to Alice being able to claim her\nbalance directly due to the to_self_delay) and then immediately post the\nlayered transaction (4, above) revealing the preimage, and preventing\nAlice from claiming the refund.\n\nCheers,\naj",
"sig": "82bbc28ef3bfc3f94c62b6adb4458cb631f259b4aba4f23358084be6a453f73990cda4ea03643cbb512fc6650b2ab40178ce866d221396082dd506c6047693d4"
}