lnproxy on Nostr: This is an excellent idea. It also improves the privacy for the seller. But running a ...
This is an excellent idea. It also improves the privacy for the seller.
But running a local http server just to wrap an invoice is probably overkill. I reorged the code so that you can import lnproxy as a library and use it in whatever application you want. The code for a basic relay server implementation is a good example of what an application would look like:
https://github.com/lnproxy/lnproxy/blob/refactor/relay/main.goPublished at
2023-05-15 13:09:45Event JSON
{
"id": "895f4f2f19fecb326a8eb56cd2e2d3fe13ac1778b8c674b482444941260c9710",
"pubkey": "e25a8b2051022a08f97d267d4b99ddfc500a0bfe149a5f671e46f72e9ea36ec9",
"created_at": 1684156185,
"kind": 1,
"tags": [
[
"e",
"60ef0b1a19767879c9b1f4dab50274fecd1f87b951b13d9efd8eda5004c88983",
"",
"root"
],
[
"p",
"b2dd40097e4d04b1a56fb3b65fc1d1aaf2929ad30fd842c74d68b9908744495b"
]
],
"content": "This is an excellent idea. It also improves the privacy for the seller.\n\nBut running a local http server just to wrap an invoice is probably overkill. I reorged the code so that you can import lnproxy as a library and use it in whatever application you want. The code for a basic relay server implementation is a good example of what an application would look like: https://github.com/lnproxy/lnproxy/blob/refactor/relay/main.go",
"sig": "79cd277450fb7427c0b6cc35fc884a30bde5e7196b85cdce59580ef75997b6d58d0a200a2ca0dfb09fbb05cb0206a580e96b93d4cd1d9d472afdd1d228db1dd1"
}