Can the Bitcoin Lightning Network enable truly secure messaging? This developer thinks so

Can the Bitcoin Lightning Network enable truly secure messaging? This developer thinks so

End-to-end encrypted, onion-routed, censorship-resistant, peer-to-peer chat messages have been built on top of the Lightning Network. Created by Lightning Labs engineer Joost Jager, the secure chat is currently still in the demo version but has the potential to become a service if no major changes to the Lightning protocol are made.

Secure messages over Lightning Network debut on GitHub

Governments cracking down on user privacy has become a prevailing problem in the past few years. The tightening regulatory grip over freedom of speech has forced messaging apps either to sacrifice the data of their users to continue to operate or exist in a legal grey zone.

As an answer to the lack of truly secure messaging apps on the market, a Lightning Labs engineer utilized the Lightning Network to create a message protocol. According to Joost Jager, the Lightning Network can be used as an end-to-end encrypted, onion-routed, censorship-resistant, peer-to-peer chat.

Jager said that the world was in need of a censorship-resistant chatting and instant messaging over Lightning has the potential to become a killer application.

Joost Jager tweet

Changes in Lightning protocol enable messages to be sent for free

In his GitHub commit, Jager explained that recent changes to the Lightning protocol have made it easier to attach arbitrary data to a payment.

The developer then created a demo that leverages this by attaching a text message and a sender signature to a transaction on the Lightning Network. The network then delivers the message as it would any other transaction, but no money is paid either by the sender or the receiver.

Jager explained that the sender uses a random payment hash every time a message is sent so that the receiver can’t settle the payment. As every unsuccessful transaction generates a failure message, that message is returned to the sender and serves as a confirmation that the outgoing message was delivered.

This back-and-forth between the sender and the receiver can go on indefinitely, which means that chatting is completely free.

Lightning command line
(Source: GitHub)

However, Jager noted that as this is essentially exploitation of a “bug” in the protocol, there is a possibility that these “free failures,” as he calls them, won’t be able to exist. He expects that nodes will either begin limiting sources that produce too many of these failed payments or start charging a prepaid relay fee. He explained in the GitHub post:

“In that case, chatting over Lightning may switch to actually settling the messaging payments and dropping off a few millisats at every hop.”

While this is still just a demo, the crypto community has welcomed the possibility of such a service existing. In a Twitter post, Jager asked his followers how much would they be willing to pay for the ability to send private, encrypted messages over the Lightning Network, with most saying a yearly fee for such a service should be between $10 and $25.

Posted In: , People of Blockchain, Technology
Invest with AMFEIX

Like what you see? Subscribe to CryptoSlate

Get our daily newsletter containing the top blockchain stories and crypto analysis straight to your inbox.

Sign up to stay informed
Priyeshu Garg

Priyeshu Garg

Crypto Analyst @ CryptoSlate

Priyeshu is a software engineer who is passionate about machine learning and blockchain technology. He holds an engineering degree in computer science engineering and is a passionate economist. He built his first digital marketing startup when he was a teenager, and worked with multiple Fortune 500 companies along with smaller firms. When he is not solving transportation problems at his company (Ola), he can be found writing about the blockchain or roller skating with his friends.

View author profile

Commitment to Transparency: The author of this article is invested and/or has an interest in one or more assets discussed in this post. CryptoSlate does not endorse any project or asset that may be mentioned or linked to in this article. Please take that into consideration when evaluating the content within this article.

Disclaimer: Our writers' opinions are solely their own and do not reflect the opinion of CryptoSlate. None of the information you read on CryptoSlate should be taken as investment advice, nor does CryptoSlate endorse any project that may be mentioned or linked to in this article. Buying and trading cryptocurrencies should be considered a high-risk activity. Please do your own due diligence before taking any action related to content within this article. Finally, CryptoSlate takes no responsibility should you lose money trading cryptocurrencies.