• Latest
New Code Helps Lightning Users Protect Their Bitcoin from File Corruption

New Code Helps Lightning Users Protect Their Bitcoin from File Corruption

April 24, 2019
ygg sea surpasses 10,000 scholarships in just six months of launch

YGG SEA Surpasses 10,000 Scholarships in Just Six Months of Launch

May 6, 2022
mintable launches industry changing gas free minting service on ethereum

Mintable Launches Industry Changing Gas Free Minting Service on Ethereum

May 1, 2022
5 projects enabling smart contract development on bitcoin

5 Projects Enabling Smart Contract Development on Bitcoin

April 29, 2022
bitcoin atm installed in mexico's senate building

Bitcoin ATM installed in Mexico’s Senate Building

April 27, 2022
cross chain services play a crucial role in facilitating continued adoption of defi applications

Cross-Chain Services Play a Crucial Role in Facilitating Continued Adoption of DeFi Applications

April 26, 2022
justin sun launches usdd, integrating the blockchain world and the real world with the decentralized stablecoin

Justin Sun Launches USDD, Integrating the Blockchain World and the Real World with the Decentralized Stablecoin

April 25, 2022
nfts: the next musical revolution

NFTs: The Next Musical Revolution

April 24, 2022
things you should know before investing in nfts

Things You Should Know Before Investing in NFTs

April 24, 2022
what are wrapped tokens?

What Are Wrapped Tokens?

April 23, 2022
what is the future of ethereum (eth)?

What is the future of Ethereum (ETH)?

April 22, 2022
green gaming

Everything You Need to Know About Play-to-Earn on Algorand in 2022

April 21, 2022
$ape going bananas as rumors of upcoming land sale of bayc metaverse gather momentum

$APE Going Bananas As Rumors of Upcoming Land Sale of BAYC Metaverse Gather Momentum

April 21, 2022
  • Home
  • Coin Market Cap
  • Bitcoin
  • Ethereum
  • Ripple
  • Litecoin
  • Alt Coin
  • Business
  • Trading
  • Mining
CoinNewsDaily
  • Home
  • Coin Market Cap
  • Bitcoin
  • Ethereum
  • Ripple
  • Litecoin
  • Alt Coin
  • Business
  • Trading
  • Mining
No Result
View All Result
  • Home
  • Coin Market Cap
  • Bitcoin
  • Ethereum
  • Ripple
  • Litecoin
  • Alt Coin
  • Business
  • Trading
  • Mining
No Result
View All Result
CoinNewsDaily
No Result
View All Result
Home Bitcoin

New Code Helps Lightning Users Protect Their Bitcoin from File Corruption

coinnewsdaily by coinnewsdaily
April 24, 2019
in Bitcoin
0
New Code Helps Lightning Users Protect Their Bitcoin from File Corruption
189
SHARES
1.5k
VIEWS
Share on FacebookShare on Twitter

Related articles

5 projects enabling smart contract development on bitcoin

5 Projects Enabling Smart Contract Development on Bitcoin

April 29, 2022
bitcoin atm installed in mexico's senate building

Bitcoin ATM installed in Mexico’s Senate Building

April 27, 2022

Imagine this: Alice is one of the “reckless” users testing a new, risky technology.

She’s excited about the potential for bitcoin’s lightning, a technology that advocates hope will bring bitcoin payments to the masses. So, even though developers tell her it’s risky to do so, she’s running the technology on a little computer called a Raspberry Pi anyway, even using it to buy pizza.

But Alice’s Raspberry Pi is having trouble, so she reboots her node to fix the problem. But when she turns it back on, she finds that a very important file had become corrupted when the computer shut down.

And now, all of Alice’s funds are gone.

This troubling problem with lightning has happened to at least a few users. And it’s one of the reasons using lightning today is considered not exactly safe to use. But thousands of users are ignoring this advice, sending payments across the network to see how the novel technology works in action.

Luckily, the sixth major release of the lightning implementation LND, released just last week, aims to solve this problem by putting into place the change “static backup channels” as coded by Lightning Labs CTO Olaoluwa Osuntokun.

As it stands, the fate of a user’s money hinges on one file.

“What happens if your channel.db file gets corrupted? It’s pretty simple: All the funds in your channels are lost,” an explainer article from earlier this month by developer Patrick Lemke reads.

As Suredbits CEO Chris Stewart, who has also put together research on the topic, put it in conversation with CoinDesk:

“Computers are finicky. Maybe your file system is deleted and you’re like shit, how do I get this money back?”

In practice, Osuntokun noted to CoinDesk that this mostly has happened to lightning enthusiasts using Raspberry Pis, which are little hardware devices that cost roughly $30 and are an easy way to stand up a lightning node at a low entry cost.

Saved by a copy

Losing money in this way is not very common, Stewart notes, but he argues that developers are working on “worse case planning.”

There are three main implementations of lightning so far (including Blockstream’s c-lightning and Acinq’s Eclair) all of which have implemented this sort of a backup scheme in some form or another.

LND’s new technology generates a second copy of the important file, allowing users to save an extra version of their lightning wallet file elsewhere, to minimize the risk of it getting lost or “corrupted,” meaning the data was accidentally altered, like staining a drip of coffee on a white shirt.

This is comparable to backing up all your computer files periodically to ensure they’re safe even if the laptop takes its last steps or gets stolen.

With bitcoin, each transaction is stored in the blockchain, on thousands of nodes across the world. But with lightning, the off-chain transaction data is stored on your computer – and your computer alone. If you lose or “corrupt” the file storing state of the channels, then those funds are lost for good.

Another related scenario: if you accidentally use an old version of the channel.db, which turns out to have the wrong information, then your peer will probably think you’re cheating. Thus, you’ll be penalized, losing money.

That’s why this new backup code is so important. To ensure safety of funds, a user needs to save their channel.db backup file in more than one place at once.

“If you run the latest version of LND your node will automatically create a backup of all the bits of information that you need to rescue your channels in case your channel.db file is lost,” Lemke explains.

“We say safe, as care has been taken to ensure that there are no foot guns in this method of backing up channels, vs doing things like rsync ing or copying the channel.db file periodically. Those methods can be dangerous as one never knows if they have the latest state of a channel or not. Instead, we aim to provide a simple safe instead to allow users to recover the settled funds in their channels in the case of partial or complete data loss,” Osuntokun explains in the “pull request” where he first proposed the change.

That said, Lemke stresses that users running the old lightning code are still at risk.

“If you run an older version of LND your channels are not [safe] and you should be aware that you are at risk of losing your funds if your disk gets corrupted,” he wrote.

Malicious peers

So, now that this code has been pushed through, is the problem solved?

Not exactly. As you can see, it’s still a bit of a process for backing up the files. While the infrastructure LND puts into place automatically generates a backup file for users, the user still has to be technical enough to configure where to put it.

Not to mention, Stewart and Cohen point out one problem with the scheme: it’s not completely trustless. Using this backup scheme, a malicious node could steal a counterparty’s funds.

This feature is “good for the average user who’s willing to trust that their peer is not malicious,” Suredbits software engineer Nadav Cohen told CoinDesk, while Stewart noted that the backup solution should work “99% of the time.”

But Stewart also highlighted how Suredbits has been working a lot with different exchanges that are looking to eventually adopt lightning.

“For exchanges, they absolutely need to a [trustless backup scheme]. They’re dealing with lots of money and don’t want to have the risk of losing a lot of funds,” Stewart said.

Osuntokun has this scenario in mind too, noting that Lightning Labs developers are currently building out a feature that works even when a user is dealing with a malicious peer. In the meantime though, they released static backup channels, since they wanted to push out something that works for the most part.

“This infrastructure will be built out in the near future, but until then we have this scheme which will also be a fall back in the scenario that any higher level mechanisms fail,” Osuntokun explained.

In other words, there’s still building to be done.

“We’re not there yet,” as Stewart puts it, arguing there will be more of a need for this kind of feature in the future once people are using the network for even more money.

“With wumbo, people will start transacting more. We need to be concerned in that case,” he added, referencing a Spongebob Squarepants-inspired technology that will one day allow people to transfer even more money across lightning.

But once developers get this scheme working, Cohen argues that it shouldn’t be hard to put something into place that’s easier for users.

He said:

“Backups are in the early stages and it’s a solvable problem. Once we have something that works and doesn’t require trust, I don’t doubt that we can make them better as far as latency.”

Burning bitcoin image via Shutterstock

Credit: Source link

Share76Tweet47
Previous Post

Bitcoin, Ethereum, Ripple, Bitcoin Cash, EOS, Litecoin, Binance Coin, Stellar, Cardano, TRON: Price Analysis April 24

Next Post

Banks Can’t Snub Crypto Startups Thanks to France’s New Blockchain Law

coinnewsdaily

coinnewsdaily

CoinNewsDaily.com is an online Crypto Coin News Website that aims to provide latest trendy news from market and around the world.

Related Posts

5 projects enabling smart contract development on bitcoin
Alt Coin

5 Projects Enabling Smart Contract Development on Bitcoin

April 29, 2022
bitcoin atm installed in mexico's senate building
Bitcoin

Bitcoin ATM installed in Mexico’s Senate Building

April 27, 2022
what are wrapped tokens?
Bitcoin

What Are Wrapped Tokens?

April 23, 2022
btc and eth will break all time highs in 2022 — celsius ceo
Bitcoin

BTC and ETH will break all-time highs in 2022 — Celsius CEO

April 21, 2022
price analysis 4/20: btc, eth, bnb, xrp, sol, ada, luna, avax, doge, dot
Alt Coin

Price analysis 4/20: BTC, ETH, BNB, XRP, SOL, ADA, LUNA, AVAX, DOGE, DOT

April 21, 2022
Bitcoin

Play-to-Earn Bitcoin Games: How Lightning Network Enables Gamers to Earn Sats

April 20, 2022
Load More
Next Post
Banks Can’t Snub Crypto Startups Thanks to France’s New Blockchain Law

Banks Can't Snub Crypto Startups Thanks to France's New Blockchain Law

Categories

  • Alt Coin
  • Bitcoin
  • Business
  • Ethereum
  • ICO
  • Litecoin
  • Mining
  • NFT
  • Ripple
  • Tech
  • Trading

What New here?

  • YGG SEA Surpasses 10,000 Scholarships in Just Six Months of Launch
  • Mintable Launches Industry Changing Gas Free Minting Service on Ethereum
  • 5 Projects Enabling Smart Contract Development on Bitcoin

Subscribe to Get More!

Loading
  • About Us
  • Contact Us
  • Privacy & Policy

© 2018-2021 CoinNewsDaily.com by CoinNewsDaily Inc. Crafted with Love by iFtiDev

No Result
View All Result
  • Home
  • Coin Market Cap
  • Bitcoin
  • Ethereum
  • Ripple
  • Litecoin
  • Alt Coin
  • Business
  • Trading
  • Mining

© 2018-2021 CoinNewsDaily.com by CoinNewsDaily Inc. Crafted with Love by iFtiDev

  • bitcoinBitcoin(BTC)$23,755.003.27%
  • ethereumEthereum(ETH)$1,642.334.77%
  • tetherTether(USDT)$1.000.07%
  • binancecoinBNB(BNB)$317.994.33%
  • rippleXRP(XRP)$0.4141871.26%
  • cardanoCardano(ADA)$0.3960284.01%
  • dogecoinDogecoin(DOGE)$0.0901322.84%
  • matic-networkPolygon(MATIC)$1.172.88%
  • okbOKB(OKB)$39.822.55%
  • solanaSolana(SOL)$26.2410.10%
  • polkadotPolkadot(DOT)$6.624.25%
  • shiba-inuShiba Inu(SHIB)$0.0000122.55%
  • litecoinLitecoin(LTC)$96.058.26%
  • tronTRON(TRX)$0.0639251.39%
  • daiDai(DAI)$1.000.03%
  • cosmosCosmos Hub(ATOM)$13.795.14%
  • chainlinkChainlink(LINK)$7.372.67%
  • leo-tokenLEO Token(LEO)$3.70-1.75%
  • moneroMonero(XMR)$186.020.41%
  • ethereum-classicEthereum Classic(ETC)$22.594.58%
  • bitcoin-cashBitcoin Cash(BCH)$136.834.19%
  • stellarStellar(XLM)$0.0942761.83%
  • crypto-com-chainCronos(CRO)$0.0826001.81%
  • filecoinFilecoin(FIL)$5.495.30%
  • algorandAlgorand(ALGO)$0.2610812.12%
  • vechainVeChain(VET)$0.0244991.65%
  • internet-computerInternet Computer(ICP)$6.213.74%
  • aaveAave(AAVE)$87.724.81%
  • eosEOS(EOS)$1.112.70%
  • elrond-erd-2MultiversX(EGLD)$45.131.60%
  • theta-tokenTheta Network(THETA)$1.103.34%
  • tezosTezos(XTZ)$1.165.82%
  • paxos-standardPax Dollar(USDP)$0.99-0.19%
  • bitcoin-cash-svBitcoin SV(BSV)$44.312.21%
  • huobi-tokenHuobi(HT)$5.150.90%
  • havvenSynthetix Network(SNX)$2.471.50%
  • pancakeswap-tokenPancakeSwap(CAKE)$4.123.28%
  • iotaIOTA(MIOTA)$0.2404481.86%
  • dashDash(DASH)$57.4913.92%
  • zcashZcash(ZEC)$47.154.51%
  • makerMaker(MKR)$672.563.65%
  • neoNEO(NEO)$8.372.36%
  • zilliqaZilliqa(ZIL)$0.0294930.98%
  • basic-attention-tokenBasic Attention(BAT)$0.2744075.67%
  • compound-governance-tokenCompound(COMP)$55.710.78%
  • nemNEM(XEM)$0.0397843.42%
  • Elrond ERDElrond ERD(ERD)$0.0259290.00%
  • kusamaKusama(KSM)$37.143.03%
  • bitcoin-goldBitcoin Gold(BTG)$17.580.95%
  • qtumQtum(QTUM)$2.723.30%
  • wavesWaves(WAVES)$2.73-1.93%
  • sushiSushi(SUSHI)$1.355.60%
  • ftx-tokenFTX(FTT)$1.89-21.50%
  • yearn-financeyearn.finance(YFI)$7,741.154.51%
  • golemGolem(GLM)$0.2469620.62%
  • omisegoOMG Network(OMG)$1.524.59%
  • ontologyOntology(ONT)$0.2194842.56%
  • digibyteDigiByte(DGB)$0.0109493.33%
  • umaUMA(UMA)$2.122.33%
  • ethlendAave [OLD](LEND)$0.53-3.08%
  • UniswapUniswap(UNI)$2.4438.80%