Why Nostr? What is Njump?
2023-06-09 14:46:05
in reply to

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
Author Public Key
npub1s8zghfrvyydu3ld5jrgue7crvzw8agyslpv8mh9pexgxwmcfelfsk5yaw4