Edited 07_payment_channels.asciidoc with Atlas code editor

pull/910/head
kristen@oreilly.com 3 years ago
parent 0150a37c58
commit f0c66b5677

@ -324,6 +324,7 @@ The refund transaction is not yet a valid transaction. For it to become a valid
* The funding transaction must be broadcast to the Bitcoin network. (To ensure the security of the Lightning Network, we will also require it to be confirmed by the Bitcoin blockchain, though this is not strictly necessary to chain transactions.)
* The refund transaction's input needs Alice's and Bob's signatures.
[role="pagebreak-before"]
But even though these two things haven't happened, and even though Alice's node hasn't broadcast the funding transaction, she can still construct the refund transaction. She can do so because she can calculate the funding transaction's hash and reference it as an input in the refund transaction.
Notice how Alice has calculated +6da3c2...387710+ as the funding transaction hash? If and when the funding transaction is broadcast, that hash will be recorded as the transaction ID of the funding transaction. Therefore, the `0` output of the funding transaction (the 2-of-2 address output) will then be referenced as output ID +6da3c2...387710:0+. The refund transaction can be constructed to spend that funding transaction output even though it doesn't exist yet, because Alice knows what its identifier will be once confirmed.

Loading…
Cancel
Save