-
Notifications
You must be signed in to change notification settings - Fork 55
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add optional support to hide node pubkey with lnproxy #42
base: master
Are you sure you want to change the base?
Conversation
Tried using ln-decodepay to extract the payment hash but it messed up the go.mod so I wrote a bad version myself.
Very interesting. Two questions:
|
It changes the invoice amount but copies the description from the original invoice.
The routing budget is used to set the |
If you change the invoice amount it won't work with LNURL/Lightning Address. It would be nicer if you put a huge fee on your channels instead of changing the invoice amounts, why not? |
I do change the invoice amount but I have some logic in the PR to subtract the routing budget from the requested amount before requesting an invoice from the user's node so that the wrapped invoice will be exactly the amount that the lnurl payer is expecting. I'll have a bridge server up later today so you can test it.
I hadn't even considered that but it's a great idea. I'd have to use some kind of two node setup so that the last hop could charge the routing budget as a fee. Depending on how big this fee is, some wallets might just reject it but it's worth a try, I'll work on this. |
Interesting, so I think your patch here will work fine.
Yes, that's true, you need a two-node setup, but you don't really need an actual second node. You can issue an invoice with a fake route hint on it including the fee. I've done that multiple times in the past. Then on your actual node you intercept that invoice using the |
I tried [email protected] as instructed at #43 (comment) but I am getting this response always when doing the second call: {
"status": "ERROR",
"reason": "error while requesting invoice"
} |
I think it was a tor issue. I guess maybe it takes too long to both request an invoice over tor and then request a second invoice (the second one is clearnet, but still). |
As suggested in #41 and https://github.com/lnproxy/lnproxy/issues/7
This PR adds a config option to allow the address bridge server to hide node pubkeys by first wrapping all invoices with lnproxy (see README here: https://github.com/lnproxy/lnproxy).