mirror of
https://github.com/lnbook/lnbook
synced 2024-11-15 00:15:05 +00:00
Edited 03_how_ln_works.asciidoc with Atlas code editor
This commit is contained in:
parent
55aaece8e7
commit
a6dc5cc230
@ -415,9 +415,7 @@ Did you notice how this contrasts with Bitcoin and how different terms are used?
|
||||
The most important part of the invoice is the _payment hash_. When constructing the invoice, Bob will make a payment hash as follows:
|
||||
|
||||
1. Bob chooses a random number +r+. This random number is called the _preimage_ or _payment secret_.
|
||||
2. Bob uses SHA-256 to calculate the hash _H_ of _r_ called the _payment hash_
|
||||
+
|
||||
latexmath:[$H = SHA-256(r)$].
|
||||
2. Bob uses SHA-256 to calculate the hash _H_ of _r_ called the _payment hash_: _H_ = SHA-256(_r_).
|
||||
|
||||
[NOTE]
|
||||
====
|
||||
|
Loading…
Reference in New Issue
Block a user