|
|
@ -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:
|
|
|
|
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_.
|
|
|
|
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_
|
|
|
|
2. Bob uses SHA-256 to calculate the hash _H_ of _r_ called the _payment hash_: _H_ = SHA-256(_r_).
|
|
|
|
+
|
|
|
|
|
|
|
|
latexmath:[$H = SHA-256(r)$].
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
[NOTE]
|
|
|
|
[NOTE]
|
|
|
|
====
|
|
|
|
====
|
|
|
|