What is Nostr?
Pierre [ARCHIVE] /
npub1yz8…4pdt
2023-06-09 12:46:10
in reply to nevent1q…fzkr

Pierre [ARCHIVE] on Nostr: 📅 Original date posted:2016-04-24 📝 Original message: Hello, I am trying to ...

📅 Original date posted:2016-04-24
📝 Original message:
Hello,

I am trying to understand how we should handle concurrent signatures,
and I am wondering if we couldn't use an ordering of some sort to
resolve conflicts when they occur, for example by simply comparing
signatures. If two nodes send each other a signature at the same time,
they could agree that the one that sent the "greatest" signature has
to immediately resend a new signature including all pending changes.
This new signature would encompass all the changes both parties wanted
in the first place so everybody would be happy.

For example if "SIG B0 > SIG A0":

NODE A NODE B

Committed: [] Committed: []
Staged: [X] Staged: [Y]
ADD HTLC X ---- ---- ADD HTLC Y
\ /
\ /
Committed: [X] \ / Committed: [Y]
Staged: [] \/ Staged: []
SIG A0 --- /\ --- SIG B0
\ / \ /
\/ \/
/\ /\
<--- \ / --->
Committed: [X] \/ Committed: [Y]
Staged: [Y] /\ Staged: [X]
/ \
/ \
DISCARD SIG A0 <---- -----> DISCARD SIG B0
Committed: [] Committed: []
Staged: [X Y] Staged: [X Y]

Committed: [X Y]
Staged: []
<---------------- SIG B1
Committed: [X Y]
Staged: []

REVOCATION ---------------->

SIG A1 ---------------->

<---------------- REVOCATION

Cheers,
Pierre
Author Public Key
npub1yz88535e0ydqye9q9x8l5cz9d3g6ervfjgyk5xm88zvktmxvstlsuy4pdt