{"id":18961,"date":"2019-11-18T13:00:36","date_gmt":"2019-11-18T13:00:36","guid":{"rendered":"http:\/\/ci027cfe7bf00326c3"},"modified":"2019-11-18T13:00:36","modified_gmt":"2019-11-18T13:00:36","slug":"on-lightning-messaging-apps-emerge-as-growing-use-case","status":"publish","type":"post","link":"https:\/\/bitcoinmagazine.com\/culture\/on-lightning-messaging-apps-emerge-as-growing-use-case","title":{"rendered":"On Lightning, Messaging Apps Emerge as Growing Use Case"},"content":{"rendered":"<div id=\"bsf_rt_marker\"><\/div><figure><img decoding=\"async\" src=\"https:\/\/bitcoinmagazine.com\/wp-content\/uploads\/2024\/11\/on-lightning-messaging-apps-emerge-as-growing-use-case.jpg\" title=\"\"><\/figure>\n<p>\u201cDoes instant messaging over Lightning have killer application potential?\u201d<\/p>\n<p>Lightning Labs developer Joost Jager asked his Twitter followers this rhetorical when he debuted a demo for his Lightning Network messaging application, Whatsat.<\/p>\n<blockquote class=\"twitter-tweet\" data-width=\"550\" data-dnt=\"true\">\n<p lang=\"en\" dir=\"ltr\">Does instant messaging over Lightning have killer application potential? The world needs censorship-resistant chatting and with Lightning, compensating the network for message relay comes naturally.<a href=\"https:\/\/t.co\/TnLI4yjM16\">https:\/\/t.co\/TnLI4yjM16<\/a> <a href=\"https:\/\/t.co\/GseuU4KyZo\">pic.twitter.com\/GseuU4KyZo<\/a><\/p>\n<p>&mdash; Joost Jager (@joostjgr) <a href=\"https:\/\/twitter.com\/joostjgr\/status\/1190714028626251779?ref_src=twsrc%5Etfw\" target=\"_blank\" rel=\"noopener\">November 2, 2019<\/a><\/p><\/blockquote>\n<p><script async src=\"https:\/\/platform.twitter.com\/widgets.js\" charset=\"utf-8\"><\/script><\/p>\n<p>Your average Bitcoiner probably wouldn\u2019t think of messaging as one of Lightning\u2019s killer use cases, at least not before micropayments, streaming payments and the like. For encrypted messaging, they\u2019d likely default to options like Signal, Keybase or Wire.&nbsp;<\/p>\n<p>These are certainly better than mainstream messaging apps, like Facebook\u2019s Messenger and WhatsApp, whose encrypted options are thinly veiled save-faces that don\u2019t offer much material confidentiality. But encrypted messaging needs to go further than privacy, Jager believes; they need censorship resistance too, and this is where Lightning-powered messaging comes in.<\/p>\n<p>\u201cThe encryption part is similar, in both systems the message content is private,\u201d Jager told <em>Bitcoin Magazine<\/em>. \u201cThe difference is that there is no central server involved. No single kill switch that could be used to shut down all communications. Or that is used more selectively to deny certain users to communicate.\u201d<\/p>\n<h2>Whatsat: A New Approach to an Old Feature&nbsp;<\/h2>\n<p>The Lightning Network has supported messages from day one, same with Bitcoin\u2019s base layer. The <a href=\"https:\/\/bitcoinmagazine.com\/articles\/messaging-via-blockstreams-satellite-lightnings-killer-app\">Blockstream Satellite has been used<\/a> in experiments around Lightning-driven messages and <a href=\"https:\/\/bitcoinmagazine.com\/articles\/used-lightning-payments-private-sms-messaging-heres-worked\">private text message services<\/a> have leveraged Lightning payments. But <a href=\"https:\/\/github.com\/lightningnetwork\/lightning-rfc\/pull\/619\" target=\"_blank\" rel=\"noopener\">recent tweeks to the protocol<\/a> now make it easier to attach additional data to a payment and pass it on to other applications using type-length-value (TLV) payloads.&nbsp;<\/p>\n<p>TLV payloads allow people using communication protocols to attach additional, extraneous information onto a data packet. For Whatsat, this extraneous data would be the message that is bolted onto a Lightning transaction.&nbsp;<\/p>\n<p>The update that enabled TLV payloads paved the way for a concept like Whatsat which, alongside censorship resistance, could also make communications more private for end users, depending on how messages are sent or routed, Jager said.<\/p>\n<p>\u201cChatting over Lightning also makes it much harder to find out who is communicating with whom. It is not required to have a direct (observable) TCP\/IP connection between users and there is no central server either that could reconstruct the communication pathways,\u201d he told us.<\/p>\n<p>Lightning-powered messages (or transactions, for that matter) are onion routed, just like information passing through the Tor network. The messages are shunted from node to node, and each node can only identify the node that sent it the information or the node next in queue to receive it.&nbsp;<\/p>\n<p>Now, if one entity runs the majority of the nodes in a pathway then they may be able to unmask the sender and receiver, Jager admitted.&nbsp;<\/p>\n<p>\u201cPrivacy and security are relative concepts,\u201d he continued.<\/p>\n<p>In some cases, then, it might be better for users to set up direct payment channels with each other. For example, if a \u201cspy\u201d or \u201cattacker\u201d wanted to deanonymize a user via node surveillance, then onion routing the payment may offer significantly less privacy depending on the route, as described above. In this case, a direct payment channel would be more private. But if the surveilling party were an Internet Service Provider (ISP) and tracking TCP\/IP addresses, then onion routing would be more private.<\/p>\n<p>Direct channels could provide absolutely free messaging, however \u2014 something that some users might find a negligible benefit compared to potential privacy trade-offs. For instance, Lightning messaging is already a free-to-use service; when one user sends another user a message, they have to attach it to a payment, but the recipient can reject this payment after opening the message (for Whatsat, a return-to-sender message saying that the payment has been rejected serves as confirmation of the original message).&nbsp;<\/p>\n<p>As with Lightning payments writ large, a fee market is likely to develop for this service to route messages when a direct channel is not open. This could be seen as one of the cons, Jager said, but it\u2019s also a trade-off some might be willing to accept for censorship-resistant, confidential communication.&nbsp;<\/p>\n<p>\u201cThere is the cost side, but also the benefit side,\u201d Jager explained. \u201cThe weight of that is dependent on the awareness of users of the downsides of existing messaging systems. For most people, an imaginary world in which some authority can block two people from talking to each other in real life sounds like scary sci-fi. But it is where the vast majority of the users are at with the current state of messaging in the digital domain.\u201d<\/p>\n<p>Whatsat is currently in testnet, and its <a href=\"https:\/\/github.com\/joostjager\/whatsat\" target=\"_blank\" rel=\"noopener\">source code is on GitHub<\/a>. But don\u2019t expect a beta from Jager anytime soon. In our conversation, he mentioned that Whatsat is \u201conly a proof of concept,\u201d a side project of his that isn\u2019t associated with Lightning Labs, his employer. It\u2019s his hope that the hobby project will \u201cinspire other people \u2026 to start developing\u201d it further.<\/p>\n<h2>Sphinx Chat, a Different Approach to the Same Effect<\/h2>\n<p>Some developers have begun toying further with Lightning messaging, though not from Jager\u2019s source code, and they\u2019re close to launching a private beta.<\/p>\n<p>Sphinx Chat, for instance, has been in motion for about a year. Project lead Paul Itoi told <em>Bitcoin Magazine<\/em> that its team cobbled together a prototype for a Lightning hackathon in New York in 2018. At this year\u2019s <a href=\"https:\/\/bitcoinmagazine.com\/articles\/scam-or-iteration-in-berlin-bitcoin-diehards-still-believe-in-lightning\">Lightning Conference in Berlin<\/a>, it released \u201ca very hacky version to a handful of users on TestFlight,\u201d Itoi told us, but they plan to drop a new beta version in the near future (you can register for the private beta on its <a href=\"https:\/\/sphinx.chat\/\" target=\"_blank\" rel=\"noopener\">website<\/a>).&nbsp;<\/p>\n<blockquote class=\"twitter-tweet\" data-width=\"550\" data-dnt=\"true\">\n<p lang=\"und\" dir=\"ltr\">(\ud83d\udcac + \ud83d\udcb8)*\u26a1\ufe0f = <a href=\"https:\/\/t.co\/un1f2rNX9K\">https:\/\/t.co\/un1f2rNX9K<\/a> <a href=\"https:\/\/t.co\/DSKwAsXFqe\">pic.twitter.com\/DSKwAsXFqe<\/a><\/p>\n<p>&mdash; Bmur (@murr) <a href=\"https:\/\/twitter.com\/murr\/status\/1190762999595720704?ref_src=twsrc%5Etfw\" target=\"_blank\" rel=\"noopener\">November 2, 2019<\/a><\/p><\/blockquote>\n<p><script async src=\"https:\/\/platform.twitter.com\/widgets.js\" charset=\"utf-8\"><\/script><\/p>\n<p>The application takes its name from the <a href=\"https:\/\/bitcoinmagazine.com\/articles\/how-the-lightning-network-layers-privacy-on-top-of-bitcoin-1482183775\">Sphinx protocol<\/a>, an upgrade that onion routes Lightning transactions over a Tor-esque network. Whatsat leverages the same protocol to achieve a certain degree of privacy, though it differs from Sphinx Chat in that it will offer free messaging within direct channels in addition to TLV payload messaging. Sphinx Chat is focusing solely on the latter.&nbsp;<\/p>\n<p>\u201cBoth are similar,\u201d Itoi told us. \u201cBut [Jager\u2019s] is designed to avoid fees since it uses a failed payment to deliver the message. This is currently free on LN. Sphinx inserts the message in the [TLV] and uses keysend to deliver and standard fees will apply.\u201d<\/p>\n<p>TLV still has an extra step to go before it\u2019s production ready for mass messaging, however. For LND, the Lightning instance that Sphinx Chat runs, the team still needs to enable TLV messaging from the receiver\u2019s end; it can receive the data, but it has no way of processing it.&nbsp;<\/p>\n<p>Lightning Labs is tracking and working on the issue <a href=\"https:\/\/github.com\/lightningnetwork\/lnd\/issues\/3670\" target=\"_blank\" rel=\"noopener\">on GitHub<\/a>, but until it is sorted out, Sphinx Chat will rely on specific nodes hosted by Nodl to relay messages (which have been customized to fully support TLV payloads).<\/p>\n<p>\u201cWe\u2019ll stay in beta on nodes we\u2019re hosting until those features are officially supported,\u201d Itoi told us.<\/p>\n<p>Once out of beta, though, Sphinx Chat will be totally open-source, he continued. At this point, node operators can establish fee markets for relaying messages, same as with Whatsat. He also sees it as a complementary application to <a href=\"https:\/\/www.stakwork.com\/\" target=\"_blank\" rel=\"noopener\">StakWork<\/a>, a chore app that allows people to complete tasks for sats. For example, workers can be notified and paid through Sphinx Chat<\/p>\n<h2>The Future of Encrypted Messaging?<\/h2>\n<p>Perhaps the first question that comes to mind with Lightning Network messaging: Why use any of these developments when we already have reliable, encrypted messaging apps?<\/p>\n<p>Jager admitted that this is a definite \u201ccon,\u201d since \u201cLightning is complicated compared to a centralized service.\u201d Additionally, with a decentralized system like Lightning, \u201cit can be difficult to deliver the same user experience that people are used to. An example of this \u2014 which is just as valid for payments \u2014 is how to deliver a message to a user that is offline.\u201d<\/p>\n<p>Still, there are reasons why someone may prefer Lightning-based messaging options to more centralized alternatives. Because the Lightning Network is decentralized, these options will be more censorship resistant and resistant to service outages that result from single points of failure. Itoi also views this development as indispensable for how it couples payments and communication as a single, permissionless entity.&nbsp;<\/p>\n<p>\u201cThe key benefit is integrating the ability to pay and communicate under one identity,\u201d he said. \u201cOur core belief: the privacy and censorship resistance that Lightning provides for payments should apply equally to speech. Using Lightning for chat will accelerate the adoption of bitcoin as a medium of exchange.\u201d<\/p>\n<p>This also opens up avenues for Lightning-powered forums, which would theoretically reduce spam given that, in Sphinx Chat\u2019s case, each message costs something. Chatting also need not be limited to humans, Itoi believes. In the future, he envisions APIs and Internet-of-Things devices sending messages and payments to each other via Lightning (sorry, <a href=\"https:\/\/www.iota.org\/\" target=\"_blank\" rel=\"noopener\">IOTA<\/a>).<\/p>\n<p>Like many other burgeoning applications and features being built on Bitcoin, Lightning messaging still has a ways to go. Another question to consider, besides usability, is whether users will be willing to pay to chat. This model is reminiscent of the old days of pay-per-message SMS, though it will certainly be much cheaper. Lightning messaging, depending on how hard it is to route messages, could cost as little as a sat or less.&nbsp;<\/p>\n<p>Still, with the promise of cheap, confidential and censorship-resistant messaging on the horizon (far off as it may be), Jager is optimistic in the future of this incipient use case.<\/p>\n<p>\u201cIt isn&#8217;t said that a Lightning-based messenger can&#8217;t eventually match the ease of use of existing services,\u201d Jager explained. \u201cThere surely is a ton of work to do, but I wouldn&#8217;t say it is impossible. At the moment, people generally have no problem with existing messaging services \u2026 but that is today. The future may be different. Perhaps the existing messaging services change their business model, perhaps some scandal happens in which huge amounts of metadata are leaked \u2026 I can&#8217;t say how this all will develop, but I think it is good to explore alternatives.\u201d<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Exploring the pros and cons of communication via the Lightning Network.<\/p>\n","protected":false},"author":2566,"featured_media":18962,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[33],"tags":[460,1603,1978],"class_list":["post-18961","post","type-post","status-publish","format-standard","has-post-thumbnail","category-culture","tag-lightning-network","tag-messaging","tag-sphinx-chat"],"author_data":{"id":2566,"name":"Colin Harper","nicename":"colin-harper","avatar_url":"https:\/\/bitcoinmagazine.com\/wp-content\/uploads\/2024\/12\/MjEwMTYzMzc3Njg5ODYzNjQ2-96x96.webp"},"featured_image_url":"https:\/\/bitcoinmagazine.com\/wp-content\/uploads\/2024\/11\/on-lightning-messaging-apps-emerge-as-growing-use-case.jpg","_links":{"self":[{"href":"https:\/\/bitcoinmagazine.com\/wp-json\/wp\/v2\/posts\/18961","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/bitcoinmagazine.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/bitcoinmagazine.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/bitcoinmagazine.com\/wp-json\/wp\/v2\/users\/2566"}],"replies":[{"embeddable":true,"href":"https:\/\/bitcoinmagazine.com\/wp-json\/wp\/v2\/comments?post=18961"}],"version-history":[{"count":0,"href":"https:\/\/bitcoinmagazine.com\/wp-json\/wp\/v2\/posts\/18961\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/bitcoinmagazine.com\/wp-json\/wp\/v2\/media\/18962"}],"wp:attachment":[{"href":"https:\/\/bitcoinmagazine.com\/wp-json\/wp\/v2\/media?parent=18961"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/bitcoinmagazine.com\/wp-json\/wp\/v2\/categories?post=18961"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/bitcoinmagazine.com\/wp-json\/wp\/v2\/tags?post=18961"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}