Skip to content

Commit 495096d

Browse files
authored
Merge pull request #17 from jonasnick/batched-updates
Mention batched updates in multi-hop locks
2 parents 0fb4185 + 4e6e4bd commit 495096d

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

md/multi-hop-locks.md

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,18 @@ The sender adds `q*G` to the receiver's payment point on every path, who is ther
105105
However, when setting up each path `i` the sender sent `qi` along to the receiver.
106106
As soon as all paths are established, the receiver can compute `q` and claim the payments.
107107

108-
Resources
108+
Batched updates
109+
---
110+
In the description of the multi-hop lock flow above we assumed that adding an HTLC output is immediately followed by a signatures from the right hop.
111+
However, [BOLT #2](https://github.com/lightningnetwork/lightning-rfc/blob/206084c9399abcfacdc95800acc27ebc5ca40b0c/02-peer-protocol.md#normal-operation) specifies that multiple updates (from both sides) can occur before a signature is exchanged.
112+
MuSig-based multi-hop locks can handle this similarly:
113+
Each update is accompanied by a public nonce to create a signature of the transaction including the update.
114+
Either left or right hop can conclude the batching phase by replying to the latest update with their public nonce and a partial signature.
115+
116+
An adversary may not choose the latest update to reply to but instead selects a different `(public nonce, transaction)`-pair from the victim's updates.
117+
This is not vulnerable to an attack similar to the [late message Wagner's attack](https://medium.com/blockstream/insecure-shortcuts-in-musig-2ad0d38a97da) because the adversary should not be able to trick the victim into signing a transaction with a different nonce.
118+
Instead, the victim's nonce is tied to a specific transaction which prevents the attacker from choosing a message for signing after seeing the victim's nonce.
119+
109120
---
110121

111122
* [MuSig](https://eprint.iacr.org/2018/068.pdf)

0 commit comments

Comments
 (0)