lightning-dev
Protocol for multiple in-flight updates.
Posted on: February 3, 2016 01:33 UTC
The email exchange between Rusty Russell and Joseph Poon discusses the Lightning Network's protocol for handling transactions.
The parties discuss the necessary steps involved in securely committing to a transaction, including the requirement for each party to receive the signature for the N+1 commit tx before handing over the Nth revocation preimage. They also mention the simplicity of the three-way handshake protocol, which involves Alice sending a signature to Bob, and Bob sending the revocation of the previous commitment to Alice, and vice versa. The inclusion of modifications is enumerated by including both parties' highest HTLC ID in each Commitment signature message. The protocol is still being optimized, but any accepted modification by the other party is included. Two IDs, one for each party, are included in the Commitment signature message, allowing for timing issues with HTLC Add responses not being fully synced up. The protocol is in order, and updates to lnstate are expected soon.