Lorenzo on Nostr: Because in Lightning every payment is a smart contract that locks Bitcoin to someone ...
Because in Lightning every payment is a smart contract that locks Bitcoin to someone that can present a secret that hashes to some specific value.
If written in english the contract would be kinda like this:
"Pays X bitcoin to anyone that can present a secret that hashes to Y".
Therefore, when you are requesting a payment, you need to inform the payee what is the hash Y. This information changes to every payment and its sent in the invoice. That's why Lightning can't use a static address.
There are ways around this issue, such as LNURL and BOLT12. Under the hood, there's still invoices being communicated between nodes, but you don't see it.
Published at
2024-04-08 16:51:23Event JSON
{
"id": "a55dc15671b391b90611b33f6cf8e6904a7777f72cb5223da5c645c097602f48",
"pubkey": "b992c5571aec8feb2f1eed537e3a0bcaaf87c95d8cb0ae9c726e9f3630c36f4e",
"created_at": 1712595083,
"kind": 1,
"tags": [
[
"e",
"be0c15717653755dc1d38edb7e4b03d1e5c790b2dfeeb181c1948b33fa24b029",
"",
"root"
],
[
"e",
"abb0342b80877fd1ef48cfff37ce9855f3a87712c042531d174462a13f4460d2",
"wss://relay.primal.net/",
"reply"
],
[
"p",
"33c74427f3b2b73d5e38f3e6c991c122a55d204072356f71da49a0e209fb6940"
]
],
"content": "Because in Lightning every payment is a smart contract that locks Bitcoin to someone that can present a secret that hashes to some specific value.\n\nIf written in english the contract would be kinda like this:\n\n\"Pays X bitcoin to anyone that can present a secret that hashes to Y\".\n\nTherefore, when you are requesting a payment, you need to inform the payee what is the hash Y. This information changes to every payment and its sent in the invoice. That's why Lightning can't use a static address.\n\nThere are ways around this issue, such as LNURL and BOLT12. Under the hood, there's still invoices being communicated between nodes, but you don't see it.",
"sig": "3e67ccc81eb0cd9981a862a147b57e8cf1de257adf7c11774550a5a7810d4dd6718e6041a284cb1e502d6ad7fb5300495780e6651604647c7b7b294590711d91"
}