An Introduction to Lightning Network Apps (LAPPs): Scaling Bitcoin
Unbeknownst to a majority of crypto-enthusiasts, one of the most exciting features of the recently-implemented Lightning Network is one of the least discussed: the ability to build decentralized-like apps (known as Lightning Network Apps or LAppps) on top of the Lightning Network mainnet.
But Bitcoin isn’t turing-complete & doesn’t have smart contracts?
No matter. Due to brilliant off-chain implementations via the Lightning Network, the day has arrived where the Bitcoin blockchain supports “decentralized apps;” this is due mainly to the innate infrastructure of multi-signature, off-chain transactions through LN’s payment channels.
A payment channel is a bi-directional, off-chain connection between exactly two nodes (users/parties) that allows for lightning-fast (thus the name), transactions. Once both nodes, or users, close the channel, the final balance is mined & all that’s added to the Bitcoin blockchain is a single transaction with two signatures.
A single node, however, can have multiple of these two-way channels open at any time. Additionally, logic can be introduced on top of a single node, making said node known for hosting payment channel to create a type of automatable service or game. An image below shows all LN nodes as of Thursday, September 13th at 5:08 pm:
The fact that Lightning Network apps (“LApps”) are now available on the Bitcoin blockchain address two noticeable common points of discussion. First, it’s no small secret that a lack of “decentralized apps” within the Bitcoin ecosystem is one of, if not the, loudest criticisms against Bitcoin.
In fact, in many cases, it’s the single reason Ethereum, Lisk, Cardano & a plethora of blockchain platforms exist in the first place: to create & offer a blockchain-based smart contract & decentralized app environment. Suddenly, Bitcoin is quietly but quite literally closing in on the single-largest supposed competitive advantage.
What does this mean for Bitcoin? Massive incoming adoption on multiple fronts: incoming blockchain developers, current Bitcoin hodlers & possibly other platform blockchain veterans. At a point in the not-too-distant future, it is an unlikely, but now possibly scenario that a majority of current dapp & smart contract engineers abandon their current blockchain of choice for the soundest of them all. Only time will tell; however, for now, no noticeable development communities have shifted sides.
Additionally, a second major benefit of LApps is that since they’re built on the lightning network, they’re inherently structured for micro-transactions. Microtransactions drastically lower the barrier to entry; which again solidifies the notion that LApps are going to see a major influx of users & developers in the near future.
The current use cases for end users in Bitcoin world are, well, quite limited to financial activities; funding/managing wallets & exchanges. Not only does LN widen that variety, it packs a double-punch by focusing in on affordable experiences.
The real question regarding adaptability will ultimately stem, per usual, from the actual engineering output: how many LApps are in production?
Despite the relatively recent origins, a solid number of LApps have already been publicly deployed; all released LApps can be found in the official Lightning App Directory. Blockstream, the Bitcoin consulting behemoth with a significant amount of Bitcoin Core developers, quite publicly came out in support of LApps. In the latter half of March, Blockstream held a “Week of LApps” event dedicated strictly to the development & deployment of LApps. This intermittent development event alone resulted in seven LApps deployed – some of which are covered below. A qualitative, rudimentary categorization of public LApps, along with a few linked demo summaries can be see below:
Point-of-Sale & Vendor LApps
Accepting Bitcoin payments is a no-brainer for e-commerce platforms or custom web apps – however high fees & unpredictable confirmation periods previously made accepting Bitcoin an evangelical business decision at best. With LApps leveraging the Lightning Network, suddenly the two largest objections against Bitcoin adoption from an online business dissipate. It therefore follows that point-of-sale & vendor apps have taken the center stage as LApps begin rolling out:
- Nanopos — A simple point-of-sale system for fixed-price goods
- WooCommerce Lightning Gateway — A comprehensive e-commerce application that integrates with stock-management and order-tracking systems
Content Creator LApps
A common use case for additional blockchain & supplementary tokens is the publishing, managing, & licensing of original digital content. How many dapps fall into this category? One doesn’t have to look too far to find a blockchain/token for publishing blog posts, tracking music metadata, or managing illustration artwork. Theoretically, any, original content medium likely has a launched (or failed) decentralized app. LApps undoubtedly unlock almost-free, frictionless payments with the largest cryptocurrency of them all – but without a standard form for digital tokenization, does the same level of incorrigible asset-tracking exist for content creating LApps?
Below are a few example of content-creating web apps built on top of the mainnet lightning network:
- FileBazaar — A system for selling files such as documents, images, and videos
- Lightning Publisher for WordPress — A patronage model for unlocking WordPress blog entries
This third category of LApps represents experimental LApps that are mainly examples of existing technologies with lightning payments enabled. Let’s recall that the Lightning Network doesn’t necessarily enable decentralization as much as they enable frictionless Bitcoin payments – which certainly unlocks a vast amount of use cases previously economically infeasible to test out.
- Lightning Jukebox — A fun demo that reimagines a classic technology for the Lightning Network
- Nanotip — The simple tip jar, rebuilt to issue Lightning Network invoices
As seen above, a handful of minimal viable LApps are now live spanning across multiple use cases. The LApp ecosystem, while now publicly in-use, is admittedly still in its infancy stage – this does not take away from the extraordinary leap forward for Bitcoin that is the Lightning Network. Other blockchain platforms have beaten Bitcoin to the punch (particularly Ethereum’s ERC20 ecosystem), it’s likely that we see developers build copy-cat LApps of popular dapps – perhaps an equivalent CryptoKitties? Or a prediction marketplace to compete with Augur?
In order to catch up with the aforementioned examples, much work is needed. For now, no off-chain LN solution exists for tokenizing standards such as ERC20 or NEO5. Without digitizing assets through tokens (forget ICOs), can LApps really directly compete with decentralized apps?
Currently, two of the many LN implementations are seeing the majority of LApp activity. First, Eclair, which is a Scala implementation of the Lightning Network built by ACINQ. Eclair hosts four LApps including the flagship Eclair desktop app. Second, is the more popular LN implementation C-Lightning, which is, as the name suggests, a “C” implementation. C-Lightning LApps are built on the C implementation of the Lightning Network, they fall under the Elements Project.
As one can see in any explorer, the Lightning Network is very much no longer in it’s theoretical or even alphas-stage – this is a successful, exponentially growing, off-chain Bitcoin solution. Unfortunately, no tool exists within the Lightning ecosystem that tracks the adoption of specifically LApp nodes within the Lightning Network mainnet; but I”m sure someone is working on that as I finish this article out, the LN ecosystem, is after all, evolving at lightning speeds.
A colleague of mine posed the question “why build with Solidity on the Ethereum Virtual Machine while a regular web stack with Ubuntu hosting a Lightning Network LApp node can offer a competing, perhaps even better, end user experience?” While I remain neutral in LApps & dapps directly competing until/if the LN ecosystem accounts for tokenizing assets, the latter half of that quote highlights what developers should keep in mind as both ecosystems mature.
The early & late majority of decentralized app adopters will not care whether their transactions are off-chain, out-chain, confirmed in multi-verses, hashed with Musk1024 or anything else – they simply want the smoother UX experience enabled with this supposed blockchain thing that uses the frictionless, magical digital money.
PIVX is a privacy-centric Proof-of-Stake cryptocurrency forked from DASH. The PIVX Manifesto focuses...
I documented my adventure using a local Bitcoin ATM. In this article, I...
In this guide, we’ve compared the key differences of Bitcoin and Litecoin. See...
Facebook has released details of its highly secretive cryptocurrency project. The venture has stirred the crypto community and drawn interest from crypto industry stakeholders due to its market shifting potential.…
ABOUT THE AUTHOR
ABOUT THE AUTHOR
Jesus Najera is the CEO & Founder of SetOcean, a Fort Lauderdale-based agency-incubator focused on blockchain, cryptocurrency, and machine learning technologies. He’s a contributing author at PERC360, Coincentral, & an editor of the SetOcean medium blog. You can find him in the “All Things Cryptocurrency” Facebook group or hacking away at Setcoins, their latest product release – a powerful cryptocurrency research platform.