Research/Bitcoin Dev Archive / lightning-dev list
Call For Review - LSPSpec LSPS1 LSPS2
2 messages, May 5 to 7, 2023. Started by Severin Bühler.
Severin Bühler, ZmnSCPxj
Hello Lightning Devs,
I am writing on behalf of the LSPSpec group to inform you that we have been working on specifications for Lightning Service Providers (LSP) with the aim of creating interoperability between Lightning wallets and LSPs by standardizing how they communicate. We have two specs that are now mature, although they are not yet 100% complete, and we would like to invite everyone to review them.
The specs are as follows:
LSPS1 - Channel Request: An API to purchasing channels from an LSP. (https://github.com/BitcoinAndLightningLayerSpecs/lsp/pull/20)
LSPS2 - JIT Channels: An API for Just-In-Time Channels, which allows for 0conf channel opening on payment arrival (https://github.com/BitcoinAndLightningLayerSpecs/lsp/pull/22)
We hold biweekly calls to discuss the current state of the spec on Wednesdays at 11am UTC. The next call is scheduled for May 17th. If you would like to receive a calendar invite for the call, please join our Telegram group (https://t.me/LSPstandards) and message Pav your email address.
Best regards Sev
Good morning list,
I would like to point out that one of the main issues with LSPs is that most of them are designed to lock in their customers to their platform.
Hopefully, with a common open specification like this, it becomes significantly more feasible for Lightning end-user clients to be able to switch across different LSPs.
In particular, I have always pointed out that unpublished channels leak information about your sends and receives to the published node end of the channel. Thus, if you are locked to a particular single LSP, your data belongs to them.
You might trust your LSP today to not leak your data.
But you might not want to trust your LSP tomorrow.
LSPs can be bought out, their operators can change their minds, their servers can be hacked and your data stolen, many things can be done to take your data. And if one end is published while the other end is completely unpublished, an unpublished channel will always leak the sends and receives of the unpublished end, and not even PTLCs can hide that information.
If you, as a client, are capable of using multiple LSPs simultaneously (which would be greatly assisted if multiple LSPs implemented this common specification) then you are able to spread out your information across multiple LSPs. That way, only part of your data is at risk of being leaked if one LSP goes rogue and sells your data. Wallet clients might also want to use different node IDs for each LSP (if you have your privkey always online --- which is likely since Lightning really wants online signing --- you can use an HMAC of the LSP node ID with your privkey to generate your per-LSP node ID) to further improve their privacy across LSPs.
Thus, I strongly suggest that wallet implementors in particular look at the LSPS specifications and start planning to implement the client-side interfaces.
The best Lightning Network, if we must have any unpublished channels at all (in my opinion, unpublished channels delenda est), is one where every published node is an LSP.