Created
June 3, 2020 18:40
-
-
Save matheusd/e78644b6758469d41baab9b5d9f620ea to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Props to Pierre-Marie Padiou via https://github.com/lightningnetwork/lightning-rfc/issues/553#issuecomment-455641943 | |
+------------+ | |
| funding tx | | |
+------------+ | |
| | |
| +-------------+ | |
\--------| commit tx B | | |
+-------------+ | |
| | | | | |
| | | | A's main output | |
| | | \------------------ to A | |
| | | | |
| | | | |
| | | ,-- to B (& delay) | |
| | | B's main output / | |
| | \----------------< | |
| | \ | |
| | `-- to A (& revocation key) | |
| | | |
| | ,-- to B (& delay) | |
| | +-----------------+ / | |
| | ,--| HTLC-timeout tx |---< | |
| | HTLC offered by B / +-----------------+ \ | |
| \-------------------< (after timeout) `-- to A (& revocation key) | |
| \ | |
| `-- to A (& payment preimage) | |
| \ | |
| `- to A (& revocation key) | |
| | |
| ,-- to B (& delay) | |
| +-----------------+ / | |
| ,--| HTLC-success tx |---< | |
| HTLC received by B / +-----------------+ \ | |
\----------------------< (w/ payment preimage) `-- to A (& revocation key) | |
\ | |
`-- to A (after timeout) | |
\ | |
`- to A (& revocation key) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment