Mastering the Lightning Network by Andreas M. Antonopoulos

Mastering the Lightning Network by Andreas M. Antonopoulos

Author:Andreas M. Antonopoulos [Antonopoulos, Andreas M.]
Language: eng
Format: epub
ISBN: 9781492054863
Publisher: O'Reilly
Published: 2021-11-22T00:00:00+00:00


Dina Fulfills the HTLC with Chan

Dina can settle the HTLC by sending an update_ful⁠fill_​htlc message to Chan. The update_fulfill_htlc message is defined in BOLT #2: Peer Protocol, update_fulfill_htlc and is shown here:

[channel_id:channel_id] [u64:id] [32*byte:payment_preimage]

It’s a really simple message:

channel_id

The channel ID on which the HTLC is committed.

id

The ID of the HTLC (we started with 0 and incremented for each HTLC on the channel).

payment_preimage

The secret that proves payment was made and redeems the HTLC. This is the R value that was hashed by Dina to produce the payment hash in the invoice to Alice.



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.