earthcuddle on Nostr: Pay ln invoice to receive ecash. Can that be made atomic with PTLCs? Instead of hash ...
Pay ln invoice to receive ecash. Can that be made atomic with PTLCs? Instead of hash preimage buy a private key as the proof of payment. If the mint pre-commits to the (blind) signature nonce R (similar to DLCs) the lightning invoice could use s*G as the point to pay to. The payer would verify that this point is hash(R,msg)*P+R to know that the proof of payment will actually be the expected ecash (signature)
Published at
2024-03-21 18:18:16Event JSON
{
"id": "e2c6dbc2c106abf96d5137e63149592863db7875c2ed4a1413302046aec406af",
"pubkey": "2b1de1346ff10976b8f3845aad615a9f9fbba9e57b6b81eb6aae0f9c9dd2081e",
"created_at": 1711045096,
"kind": 1,
"tags": [
[
"e",
"ca3ee8c0823f881b7e823e8b86202a45cd20f6f242abcb06b002562f28980677",
"",
"root"
],
[
"e",
"71228f999a84dac158f1583e235586364974c58beedf424120d9eb7988dfdc0c"
],
[
"e",
"463d1eaa1a032983db3e8e21e4a48c486deb3e00522443a0d9904581ffe1b711",
"",
"reply"
],
[
"p",
"50d94fc2d8580c682b071a542f8b1e31a200b0508bab95a33bef0855df281d63"
],
[
"p",
"d3052ca3e3d523b1ec80671eb1bba0517a2f522e195778dc83dd03a8d84a170e"
]
],
"content": "Pay ln invoice to receive ecash. Can that be made atomic with PTLCs? Instead of hash preimage buy a private key as the proof of payment. If the mint pre-commits to the (blind) signature nonce R (similar to DLCs) the lightning invoice could use s*G as the point to pay to. The payer would verify that this point is hash(R,msg)*P+R to know that the proof of payment will actually be the expected ecash (signature)",
"sig": "fff20cc68d1afb6c3788a399478259d8f62f1a077af6078bc73405c26ae1e4848ba1cc23c1cd6a4a9f2d34781e72e275fc26e2aa4e71d3bea066b0457e1fee10"
}