Fabrice Drouin [ARCHIVE] on Nostr: š
Original date posted:2016-04-01 š Original message: Hello, We've thought ...
š
Original date posted:2016-04-01
š Original message:
Hello,
We've thought about it some more and it seems now that htlc ids are
indeed not enough and we do have to take the acknowledge field into
account in some cases anyway. Consider the following scenario:
A sends ADD HTLC X, ADD HTLC Y, ADD HTLC Z
B sends FAIL Y
A has not yet received this last message and sends SIG Z
B receives SIG Z which includes (X,Y,Z) and won't match expected
signature (X,Z). B has no way to know whether A did receive the "FAIL
Y" message or not without checking the 'acknowledge' field (as
mentioned by Rusty), and might decide that SIG Z is not valid and
close the channel, when it could just ignore it and keep it open.
Cheers,
Fabrice
Published at
2023-06-09 12:46:05Event JSON
{
"id": "c868b801606f96b6dc5524f74c72120bb57a41ac0dac9b3472f79c05224975f7",
"pubkey": "81c48ba46c211bc8fdb490d1ccfb03609c7ea090f8587ddca1c990676f09cfd3",
"created_at": 1686314765,
"kind": 1,
"tags": [
[
"e",
"9526f7c7c06d2c44ce2bb2e0282c88fd2229736f99d283465fab3bfc507e5ee9",
"",
"root"
],
[
"e",
"c7651fa4d3df432c51f0aa6030d80ad668f5442882ea2515f3817f006c811fbb",
"",
"reply"
],
[
"p",
"208e7a4699791a0264a0298ffa60456c51ac8d8992096a1b67389965eccc82ff"
]
],
"content": "š
Original date posted:2016-04-01\nš Original message:\nHello,\n\nWe've thought about it some more and it seems now that htlc ids are\nindeed not enough and we do have to take the acknowledge field into\naccount in some cases anyway. Consider the following scenario:\nA sends ADD HTLC X, ADD HTLC Y, ADD HTLC Z\nB sends FAIL Y\nA has not yet received this last message and sends SIG Z\nB receives SIG Z which includes (X,Y,Z) and won't match expected\nsignature (X,Z). B has no way to know whether A did receive the \"FAIL\nY\" message or not without checking the 'acknowledge' field (as\nmentioned by Rusty), and might decide that SIG Z is not valid and\nclose the channel, when it could just ignore it and keep it open.\n\nCheers,\n\nFabrice",
"sig": "b3456762a9aab31b66fa07ef24e46185325ba39dcb15a2d2743866e6ae942f1a05d2244355169372a8745e57c870dc476a72e8f75bde6e607f71fa8c162c0303"
}