One of the most popular Bitcoin wallets, Electrum, now supports Lightning Network payments.
The latest swathe of major changes was released in version 4.0, one of its biggest upgrades since the Bitcoin wallet launched in 2011. (Note: Since the 4.0 release, some bug fixes have been added.) Lightning payments are seen as the future of Bitcoin because theyâre cheaper and would allow many more users to make bitcoin cryptocurrency transactions at once.Â
This makes Electrum the oldest wallet to have adopted Lightning payments so far.
Lightning support in Electrum is a long time coming. Electrum founder Thomas Voegtlin first told CoinDesk last summer that Lightning would make it into the next release.
â[We] decided to adopt Lightning because we see it as the way forward for Bitcoin. Lightning is quite complicated and not without its issues but ultimately it is the most promising currently known way of scaling Bitcoin. It also allows fast, cheap and more private payments,â pseudonymous Electrum developer SomberNight told CoinDesk in an email.
Read more: What is Bitcoinâs Lightning Network?
In order to support Lightning transactions, the developers actually wrote an entirely new implementation of the Lightning protocol âfrom scratch,â SomberNight said, instead of using a popular implementation, such as Lightning Labsâ LND or Blockstreamâs c-lightning. Thatâs one reason the release took so long.
In addition to support for Lightning payments, Electrum 4.0.2 now supports a number of other innovations with this new release that could make using Lightning more secure and less bumpy for users.
For one, Electrum has implemented its own Lightning watchtower, an important component of the Lightning Network, which scans the Bitcoin blockchain in order to detect and prevent fraud.
Read more: Bitcoin Lightning Fraud? Laolu Is Building a âWatchtowerâ to Fight It
Though there are a few watchtower implementations out there now, they still arenât commonly used yet across the Lightning Network, despite being an important piece. In this way, Electrumâs watchtower support is a step toward a better Lightning Network.Â
Then, there are âsubmarine swaps.â Accepting payments is still a tricky part of the Lightning Network because users need whatâs called âincoming capacityâ to receive payments, which means funds need to be placed in a certain part of a personâs Lightning âchannel,â which is sort of like an account .Â
The irony is users âwill not be able to receive payments until they spend some money,â as SomberNight put it.
âTo solve this, we implemented âsubmarine swaps,â which are atomic exchanges of on-chain and Lightning bitcoins,â SomberNight told CoinDesk. In other words, submarine swaps makes it possible to send normal bitcoin to a Lightning channel, offering one way for users to fill up their incoming capacity.
âElectrum Technologies runs a central server that facilitates these swaps, for a fee. This allows users to buy incoming capacity to be able to receive Lightning payments,â the developer added.
Electrum also integrated Lightning with hardware support. Because hardware wallets store bitcoin offline beyond the reach of hackers they are considered one of the best ways of securing bitcoin.
âYou can [now] use Lightning directly with your hardware wallet: Channel-opens and channel-closes can directly pay from and to addresses backed by a hardware device. Your Lightning balance, while in channels, will not be secured by the hardware but all your on-chain balance will be, and itâs very convenient to have a shared single wallet that you can use to pay both on-chain and Lightning,â SomberNight told CoinDesk.
The Electrum team has been working on other features too. Electrum wallet users can view the full release notes here.