Bitcoin Forum
December 12, 2024, 03:44:08 AM *
News: Latest Bitcoin Core release: 28.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1] 2 »  All
  Print  
Author Topic: Can you think of ways to use LN offline?  (Read 507 times)
s2 (OP)
Full Member
***
Offline Offline

Activity: 198
Merit: 123


View Profile
April 11, 2018, 11:49:24 AM
 #1

Anyone able to contribute to this technical conversation? 

https://www.reddit.com/r/BitcoinTechnology/comments/8bge9c/suggestions_for_using_ln_offline/

Basically looking for ways that LN will be usable by clients or merchants who have no connectivity for a period of time.

E.g. you've gone to some market place or conference hall and there is no cell reception or Wifi.

Thanks,
Xynerise
Sr. Member
****
Offline Offline

Activity: 322
Merit: 363

39twH4PSYgDSzU7sLnRoDfthR6gWYrrPoD


View Profile
April 11, 2018, 12:46:35 PM
Last edit: April 11, 2018, 01:21:59 PM by Xynerise
Merited by ABCbits (2), Xavofat (1), butka (1)
 #2

Quote
Basically looking for ways that LN will be usable by clients or merchants who have no connectivity for a period of time.
You need to be online to use the Lightning Network, that's how it works.
Transactions (state updates) are almost instant so there's no need to wait for confirmation.
Quote
Your LN wallet is connected to an online node that is capable of accepting incoming funds when you are offline.
Not possible. LN commitment transactions are CONTRACTS so BOTH parties have to be online to approve.
Payments fail if a peer is offline.
Quote
I think this is possible but I expect you have to trust that node with your signing keys to allow the new valid LN bitcoin transactions to be countersigned. This seems the most likely outcome from what I understand so far.
$o in other words you need to give out your private key to someone else to accept transactions  for you?
That's not going to work.
Quote
The ideal solution would be a way to allow signing future incoming transactions whereby funds can be ADDED to your balance without your permission but I'm not sure how this can be done in practice...
The Lightning Network is a bidirectional transaction layer.
You'll need the cooperation of BOTH parties before you can accept commitment transactions or send out transactions.
And since you need both participants need to sign transactions, by introducing a third party, you'd have to share private keys to the third party which it'll use to sign transactions.


The Lightning Network is p2p -- perhaps even "more p2p" than bitcoin, because there are no miners or other nodes. It's just between peers.
There's no memory pool equivalent for transactions to be stored, and transactions clear quickly enough that it's not needed, so there's no place for transactions to be stored when the counterparty is offline or unavailable.

However, if you do not need trustlessness then you can make something work with a third-party service like ACINQ'S Strike, where their lightning node will always be online and accept payments on your behalf.
hugeblack
Legendary
*
Offline Offline

Activity: 2716
Merit: 4032



View Profile WWW
April 11, 2018, 05:04:05 PM
 #3

The lightning network(The word network shows the concept of communication/being online) consists of bi-directional channels so that both parties are connected to update the smart contracts between them and failure will result in the confiscation of their claim to any of the funds in the channel.
Channels in the lightning network will be off-chain channels (You do not need to publish them on the entire network) but the parties must be connected to the signing of transactions.

If you want to send to an offline party via lightning network you can broadcast the transaction directly without creating a channel(using normal way).
Read more https://bitcoin.stackexchange.com/a/55340

█▀▀▀











█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀
e
▄▄▄▄▄▄▄▄▄▄▄
█████████████
████████████▄███
██▐███████▄█████▀
█████████▄████▀
███▐████▄███▀
████▐██████▀
█████▀█████
███████████▄
████████████▄
██▄█████▀█████▄
▄█████████▀█████▀
███████████▀██▀
████▀█████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
c.h.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀█











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
Kakmakr
Legendary
*
Offline Offline

Activity: 3542
Merit: 1966

Leading Crypto Sports Betting & Casino Platform


View Profile
April 12, 2018, 06:29:54 AM
Last edit: April 12, 2018, 06:40:09 AM by Kakmakr
 #4

My thinking was this, let's say a group of businesses on a island wants to do transactions amongst each other, they can have their own LAN with the LN software running between these computers. <Lightning Lite> and when they want to settle the balance of all these off-chain transactions, they connect/link to the Internet and the on-chain tx is done.

Yes, it is still a network, but it is not connected to the internet or the Blockchain, until they need to validate the finale balance, on-chain.

This implementation might even work within all environment where people are running their own LAN. <not linked to the internet> This will increase security, because the network are only exposed to hackers, when they quickly go on-line to sync or validate the on-chain transactions.  Roll Eyes


..Stake.com..   ▄████████████████████████████████████▄
   ██ ▄▄▄▄▄▄▄▄▄▄            ▄▄▄▄▄▄▄▄▄▄ ██  ▄████▄
   ██ ▀▀▀▀▀▀▀▀▀▀ ██████████ ▀▀▀▀▀▀▀▀▀▀ ██  ██████
   ██ ██████████ ██      ██ ██████████ ██   ▀██▀
   ██ ██      ██ ██████  ██ ██      ██ ██    ██
   ██ ██████  ██ █████  ███ ██████  ██ ████▄ ██
   ██ █████  ███ ████  ████ █████  ███ ████████
   ██ ████  ████ ██████████ ████  ████ ████▀
   ██ ██████████ ▄▄▄▄▄▄▄▄▄▄ ██████████ ██
   ██            ▀▀▀▀▀▀▀▀▀▀            ██ 
   ▀█████████▀ ▄████████████▄ ▀█████████▀
  ▄▄▄▄▄▄▄▄▄▄▄▄███  ██  ██  ███▄▄▄▄▄▄▄▄▄▄▄▄
 ██████████████████████████████████████████
▄▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▄
█  ▄▀▄             █▀▀█▀▄▄
█  █▀█             █  ▐  ▐▌
█       ▄██▄       █  ▌  █
█     ▄██████▄     █  ▌ ▐▌
█    ██████████    █ ▐  █
█   ▐██████████▌   █ ▐ ▐▌
█    ▀▀██████▀▀    █ ▌ █
█     ▄▄▄██▄▄▄     █ ▌▐▌
█                  █▐ █
█                  █▐▐▌
█                  █▐█
▀▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▀█
▄▄█████████▄▄
▄██▀▀▀▀█████▀▀▀▀██▄
▄█▀       ▐█▌       ▀█▄
██         ▐█▌         ██
████▄     ▄█████▄     ▄████
████████▄███████████▄████████
███▀    █████████████    ▀███
██       ███████████       ██
▀█▄       █████████       ▄█▀
▀█▄    ▄██▀▀▀▀▀▀▀██▄  ▄▄▄█▀
▀███████         ███████▀
▀█████▄       ▄█████▀
▀▀▀███▄▄▄███▀▀▀
..PLAY NOW..
LoyceV
Legendary
*
Offline Offline

Activity: 3528
Merit: 17817


Thick-Skinned Gang Leader and Golden Feather 2021


View Profile WWW
April 12, 2018, 09:46:31 PM
 #5

My thinking was this, let's say a group of businesses on a island wants to do transactions amongst each other, they can have their own LAN with the LN software running between these computers. <Lightning Lite> and when they want to settle the balance of all these off-chain transactions, they connect/link to the Internet and the on-chain tx is done.
This is indeed my understanding of LN too.

E.g. you've gone to some market place
Say it's a shop on a market place that sells bread. You know you'll be going there every week, so you've opened and funded a LN channel with the bakery shop once. You don't need to close the channel any time soon, so you can make off-chain transactions each time you buy bread. The transaction can be sent through QR-code or Bluetooth, without touching the internet.

Although I don't think I'll be using this scenario any time soom, I love it! Trustless offline transactions would make Bitcoin truly like cash.

▄▄███████████████████▄▄
▄█████████▀█████████████▄
███████████▄▐▀▄██████████
███████▀▀███████▀▀███████
██████▀███▄▄████████████
█████████▐█████████▐█████
█████████▐█████████▐█████
██████████▀███▀███▄██████
████████████████▄▄███████
███████████▄▄▄███████████
█████████████████████████
▀█████▄▄████████████████▀
▀▀███████████████████▀▀
Peach
BTC bitcoin
Buy and Sell
Bitcoin P2P
.
.
▄▄███████▄▄
▄████████
██████▄
▄██
█████████████████▄
▄███████
██████████████▄
███████████████████████
█████████████████████████
████████████████████████
█████████████████████████
▀███████████████████████▀
▀█████████████████████▀
▀██████████████████▀
▀███████████████▀
▀▀███████▀▀

▀▀▀▀███▀▀▀▀
EUROPE | AFRICA
LATIN AMERICA
▄▀▀▀











▀▄▄▄


███████▄█
███████▀
██▄▄▄▄▄░▄▄▄▄▄
████████████▀
▐███████████▌
▐███████████▌
████████████▄
██████████████
███▀███▀▀███▀
.
Download on the
App Store
▀▀▀▄











▄▄▄▀
▄▀▀▀











▀▄▄▄


▄██▄
██████▄
█████████▄
████████████▄
███████████████
████████████▀
█████████▀
██████▀
▀██▀
.
GET IT ON
Google Play
▀▀▀▄











▄▄▄▀
spartacusrex
Hero Member
*****
Offline Offline

Activity: 718
Merit: 545



View Profile
April 14, 2018, 09:22:54 AM
 #6

The whole point of OFF_CHAIN txns is that you DON'T need to be connected to the network ( ON_CHAIN ).

If I go to the market, and no one has reception, I can still give you valid contracts that you can validate, independently. Phone to phone or whatever.

If one party does connect to the network and tries to spend the txn in an attempt to snatch your funds, then you will have a certain amount of time (the timelock) to logon and claim your rightful coins, and their coins aswell.. :p

Basically - I give StarBucks a valid transaction, that gives them $5. Then I want another coffee, so I give them another txn that gives them $10, both coming from our initial MultiSig setup txn (which is on-chain). They cannot spend both, as they use the same outputs, so they throw the first one away and keep the second (which is more valuable to them).

Neither of these touch the network (require you to be online), until someone wants to cash out.

You don't need to be online to sign / verify / swap a TXN.


Life is Code.
cellard
Legendary
*
Offline Offline

Activity: 1372
Merit: 1252


View Profile
April 14, 2018, 03:07:11 PM
 #7

I remember someone like achow, nullius or theymos saying that right now, you need that both parties are online, otherwise it wouldn't work, which is a big fail and will never get anywhere when it comes to mainstream adoption, but then again, I heard that they are working in ways to mitigate this and avoid needing to have both parties online at the time of the payment which is just ridiculous, it will never catch up, people don't like that, they will most likely resort to third party stuff which will come with a decrease in privacy unfortunately. I wish there was a way to leave the transacion "on hold" until the other peer connected or something.
Xynerise
Sr. Member
****
Offline Offline

Activity: 322
Merit: 363

39twH4PSYgDSzU7sLnRoDfthR6gWYrrPoD


View Profile
April 14, 2018, 05:06:25 PM
Last edit: April 14, 2018, 07:07:48 PM by Xynerise
Merited by ABCbits (2), DarkStar_ (2), Welsh (1), LeGaulois (1)
 #8

I remember someone like achow, nullius or theymos saying that right now, you need that both parties are online, otherwise it wouldn't work, which is a big fail and will never get anywhere when it comes to mainstream adoption, but then again, I heard that they are working in ways to mitigate this and avoid needing to have both parties online at the time of the payment which is just ridiculous, it will never catch up, people don't like that, they will most likely resort to third party stuff which will come with a decrease in privacy unfortunately. I wish there was a way to leave the transacion "on hold" until the other peer connected or something.
You're missing the point.
The Lightning Network is a layer on the bitcoin blockchain; it does not have the infrastructure that the underlying blockchain does.
In bitcoin, the recipient of a UTXO does not need to be online because there are other people doing that job: nodes.
Nodes track UTXOs and store unconfirmed transactions in their mempool.
The Lightning Network is just a layer, it does not have nodes.

Even though bitcoin transactions are technically peer-to-peer, the nodes act as facilitators to Every transaction and UTXO.
The Lightning Network, however, is strictly peer-to-peer.
Transactions between peers in a LN channel are just signed bitcoin transactions that aren't broadcast to the bitcoin blockchain, so they are sent DIRECTLY between themselves, without need for nodes or miners.

If Alice is sending bitcoins to Bob, Bob doesn't need to be online to track or receive the transaction because other nodes do the work because Alice's bitcoin node BROADCASTS the transaction to the other nodes in the blockchain.

If Alice and Bob are peers in a channel, and Alice sends some funds to Bob in form of a commitment transaction, it will fail because Alice is sending the transaction DIRECTLY to Bob's node, not broadcasting it, and if his node is not there to sign the transaction too, then it will fail.
There are no other nodes involved in the transaction so there is no mempool for transactions to reside till the other peer comes online.

Also, commitment transactions are multisig bitcoin transactions (2-of-2 multisig p2wsh transactions to be precise) have to be signed by BOTH parties so if Bob is not online then he can't sign the transaction. A third party, Charlie, can't act in lieu of Bob, because that would require them having Bob's private key.

To summarise the reasons why payments fail when a counterparty is offline are:
1) transactions require the signature of both parties, and obviously won't work with just one signature
2) the transactions are relayed directly p2p, and there are no other nodes that are involved to store transactions
LoyceV
Legendary
*
Offline Offline

Activity: 3528
Merit: 17817


Thick-Skinned Gang Leader and Golden Feather 2021


View Profile WWW
April 14, 2018, 07:49:00 PM
 #9

Neither of these touch the network (require you to be online), until someone wants to cash out.

You don't need to be online to sign / verify / swap a TXN.
All this assumes you already have an open channel with the other party.

I remember someone like achow, nullius or theymos saying that right now, you need that both parties are online, otherwise it wouldn't work, which is a big fail and will never get anywhere when it comes to mainstream adoption
Why would this be such a big problem? When I receive a payment by bank, I need to be online too, to confirm that I received it. More people than ever are online 24/7, and I doubt this will ever go down again.

▄▄███████████████████▄▄
▄█████████▀█████████████▄
███████████▄▐▀▄██████████
███████▀▀███████▀▀███████
██████▀███▄▄████████████
█████████▐█████████▐█████
█████████▐█████████▐█████
██████████▀███▀███▄██████
████████████████▄▄███████
███████████▄▄▄███████████
█████████████████████████
▀█████▄▄████████████████▀
▀▀███████████████████▀▀
Peach
BTC bitcoin
Buy and Sell
Bitcoin P2P
.
.
▄▄███████▄▄
▄████████
██████▄
▄██
█████████████████▄
▄███████
██████████████▄
███████████████████████
█████████████████████████
████████████████████████
█████████████████████████
▀███████████████████████▀
▀█████████████████████▀
▀██████████████████▀
▀███████████████▀
▀▀███████▀▀

▀▀▀▀███▀▀▀▀
EUROPE | AFRICA
LATIN AMERICA
▄▀▀▀











▀▄▄▄


███████▄█
███████▀
██▄▄▄▄▄░▄▄▄▄▄
████████████▀
▐███████████▌
▐███████████▌
████████████▄
██████████████
███▀███▀▀███▀
.
Download on the
App Store
▀▀▀▄











▄▄▄▀
▄▀▀▀











▀▄▄▄


▄██▄
██████▄
█████████▄
████████████▄
███████████████
████████████▀
█████████▀
██████▀
▀██▀
.
GET IT ON
Google Play
▀▀▀▄











▄▄▄▀
figmentofmyass
Legendary
*
Offline Offline

Activity: 1652
Merit: 1483



View Profile
April 15, 2018, 07:09:22 AM
 #10

The whole point of OFF_CHAIN txns is that you DON'T need to be connected to the network ( ON_CHAIN ).

that could be a goal of some off-chain mechanisms, but the primary goal of off-chain transactions is moving transactions off the blockchain---no need to store them or wait for miners to publish them. lacking internet is a whole different issue.

Neither of these touch the network (require you to be online), until someone wants to cash out.

You don't need to be online to sign / verify / swap a TXN.

sure, you can update state that way (assuming you have an open channel). both parties just need to sign. i think the problem is, how do you protect the state of your channel when your not connected? i don't want my life ruled by timelock. Tongue

as ETFbitcoin says, you'd only want to do this with timelock expiration far in the future---in case of unexpected circumstances. no matter what, it will always be safer (and less headache) to control good old UTXOs. i like the idea of opendimes, etc as bearer bonds---good for offline transactions.

cellard
Legendary
*
Offline Offline

Activity: 1372
Merit: 1252


View Profile
April 15, 2018, 02:49:14 PM
 #11



To summarise the reasons why payments fail when a counterparty is offline are:
1) transactions require the signature of both parties, and obviously won't work with just one signature
2) the transactions are relayed directly p2p, and there are no other nodes that are involved to store transactions

I know how it works, my point is, I have doubts it can catch up at mainstream level if you can't make a transaction at any time, since you would need to contact the person that you are sending coins to first, to guarantee that it's node is online, this seems archaic and annoying.
For big businesses it shouldn't be a problem because they will have nodes online 24/7 but p2p will require contacting the person first which sucks.

Why would this be such a big problem? When I receive a payment by bank, I need to be online too, to confirm that I received it. More people than ever are online 24/7, and I doubt this will ever go down again.

You don't need to be online to receive a payment in a bank... since when would you need to? For example, one can be receiving payments from rented properties in your bank account without even talking to the people paying you for months. Looking at your funds to see if you received the payment is different from having to be online waiting for a transaction to arrive because otherwise it will not.
malikusama
Copper Member
Sr. Member
****
Offline Offline

Activity: 1050
Merit: 294



View Profile
April 17, 2018, 04:53:11 AM
 #12

My thinking was this, let's say a group of businesses on a island wants to do transactions amongst each other, they can have their own LAN with the LN software running between theputers. se com<Lightning Lite> and when they want to settle the balance of all these off-chain transactions, they connect/link to the Internet and the on-chain tx is done.

That's what I also think about how lightning network will work, the main purpose is to connect sender and receiver through Lightning network protocol/software while it doesn't matter if they are connected through LAN/WAN or internet.
If we would need to stay online for sending or receiving funds then it will be a big drawback of LN i guess.
Loveboard
Jr. Member
*
Offline Offline

Activity: 84
Merit: 7

Cointrade - Bringing crypto trading to the people!


View Profile
April 17, 2018, 05:01:31 AM
 #13

If LN is off-chain, and the transactions are all contracts that aren't published by miners... is it still redundant? Bitcoin is infallible only because you have redundancy between millions of miners who can confirm transactions because they all match up with everyone's ledgers.

But if LN is not mined, then it stands to reason that there's some kind of central system or some kind of system where the transactions are only in existence between two parties.

Doesn't that simply create an exploitable hole that allows for hacks and cheats that would just weaken bitcoin overall?

Cointrade - Bringing crypto trading to the people! (https://cointrade.es/)
Pre-ICO "April 8th, 2018"
Xynerise
Sr. Member
****
Offline Offline

Activity: 322
Merit: 363

39twH4PSYgDSzU7sLnRoDfthR6gWYrrPoD


View Profile
April 17, 2018, 05:27:18 AM
 #14

If LN is off-chain, and the transactions are all contracts that aren't published by miners... is it still redundant? Bitcoin is infallible only because you have redundancy between millions of miners who can confirm transactions because they all match up with everyone's ledgers.

But if LN is not mined, then it stands to reason that there's some kind of central system or some kind of system where the transactions are only in existence between two parties.
Yes, that's how it works.
It's just between two parties. There are no nodes that store all the commitment transactions between peers.

Quote
Doesn't that simply create an exploitable hole that allows for hacks and cheats that would just weaken bitcoin overall?
No.
If you try to cheat the system, you'll be punished by losing your funds in the channel.
Lightning network transactions persist as channel states, if you try to publish an old channel state (which won't be mined because  it's timelocked) then your counterparty will publish a transaction that takes your funds in the channel.
Read the lightning network whitepaper
It's documented there.
LoyceV
Legendary
*
Offline Offline

Activity: 3528
Merit: 17817


Thick-Skinned Gang Leader and Golden Feather 2021


View Profile WWW
April 17, 2018, 05:43:39 AM
 #15

If LN is off-chain, and the transactions are all contracts that aren't published by miners... is it still redundant?
"It depends": you'll be responsible for your own backups, just like you're now responsible for backing up your private keys. It's up to you to make redundant backups.

Quote
Bitcoin is infallible only because you have redundancy between millions of miners who can confirm transactions because they all match up with everyone's ledgers.
There aren't that many miners. Stand-alone mining is very rare nowadays, and pool miners don't even need their own copy of the blockchain. There are about 10,000+ full nodes, and many people like me who run Bitcoin Core to keep a full copy of the blockchain. But that's not going to help anyone who lost their own private keys.

Quote
But if LN is not mined, then it stands to reason that there's some kind of central system or some kind of system where the transactions are only in existence between two parties.
There is no central system between those two parties.

Quote
Doesn't that simply create an exploitable hole that allows for hacks and cheats that would just weaken bitcoin overall?
No. Bitcoin works with or without LN.

▄▄███████████████████▄▄
▄█████████▀█████████████▄
███████████▄▐▀▄██████████
███████▀▀███████▀▀███████
██████▀███▄▄████████████
█████████▐█████████▐█████
█████████▐█████████▐█████
██████████▀███▀███▄██████
████████████████▄▄███████
███████████▄▄▄███████████
█████████████████████████
▀█████▄▄████████████████▀
▀▀███████████████████▀▀
Peach
BTC bitcoin
Buy and Sell
Bitcoin P2P
.
.
▄▄███████▄▄
▄████████
██████▄
▄██
█████████████████▄
▄███████
██████████████▄
███████████████████████
█████████████████████████
████████████████████████
█████████████████████████
▀███████████████████████▀
▀█████████████████████▀
▀██████████████████▀
▀███████████████▀
▀▀███████▀▀

▀▀▀▀███▀▀▀▀
EUROPE | AFRICA
LATIN AMERICA
▄▀▀▀











▀▄▄▄


███████▄█
███████▀
██▄▄▄▄▄░▄▄▄▄▄
████████████▀
▐███████████▌
▐███████████▌
████████████▄
██████████████
███▀███▀▀███▀
.
Download on the
App Store
▀▀▀▄











▄▄▄▀
▄▀▀▀











▀▄▄▄


▄██▄
██████▄
█████████▄
████████████▄
███████████████
████████████▀
█████████▀
██████▀
▀██▀
.
GET IT ON
Google Play
▀▀▀▄











▄▄▄▀
Loveboard
Jr. Member
*
Offline Offline

Activity: 84
Merit: 7

Cointrade - Bringing crypto trading to the people!


View Profile
April 17, 2018, 11:06:58 PM
 #16

Doesn't that simply create an exploitable hole that allows for hacks and cheats that would just weaken bitcoin overall?
No. Bitcoin works with or without LN.

What I mean is, if LN's lack of redundancy allows for hacks and cheating transactions or some kind of weak link... wouldn't it weaken bitcoin, in general?

People will lose money from bitcoin because LN was hacked in some way, and they won't blame LN... it'll just fall on bitcoin. That's how the media and people's minds work. There will be headlines like: "For the first time, Bitcoin gets hacked" or whatever. You know how FUD operates.

But if LN's ledger system is as infallible as bitcoin's, then I guess there's nothing to worry about.

Cointrade - Bringing crypto trading to the people! (https://cointrade.es/)
Pre-ICO "April 8th, 2018"
squatter
Legendary
*
Offline Offline

Activity: 1666
Merit: 1196


STOP SNITCHIN'


View Profile
April 18, 2018, 06:13:33 AM
 #17

What I mean is, if LN's lack of redundancy allows for hacks and cheating transactions or some kind of weak link... wouldn't it weaken bitcoin, in general?

In a technical sense, no, because LN is specifically not Bitcoin. It's a different protocol with a different security model. LN isn't for value storage; it isn't for permanent censorship-resistant transactions. That's what the Bitcoin blockchain is for. In fact, LN leverages Bitcoin's redundancy in the case of dishonest actors -- the blockchain is used to arbitrate disputes. 

People will lose money from bitcoin because LN was hacked in some way, and they won't blame LN... it'll just fall on bitcoin. That's how the media and people's minds work. There will be headlines like: "For the first time, Bitcoin gets hacked" or whatever. You know how FUD operates.

You're laying it on a bit thick. Sure, growing pains for LN would encourage some FUD for Bitcoin since it's often touted as the ultimate scaling solution. No big deal, though.

But if LN's ledger system is as infallible as bitcoin's, then I guess there's nothing to worry about.

It's not, but that's irrelevant. The Bitcoin blockchain entails the entire mining infrastructure and redundant transaction storage. Lightning doesn't. They shouldn't be judged as one and the same.

LoyceV
Legendary
*
Offline Offline

Activity: 3528
Merit: 17817


Thick-Skinned Gang Leader and Golden Feather 2021


View Profile WWW
April 18, 2018, 08:09:06 AM
 #18

People will lose money from bitcoin because LN was hacked in some way, and they won't blame LN... it'll just fall on bitcoin.
No. Just like the fact that people lose money when their computer gets hacked doesn't weaken Bitcoin. "Be your own bank" comes with responsibilities, or to state the obvious: "it's a feature, not a bug".

Quote
But if LN's ledger system is as infallible as bitcoin's, then I guess there's nothing to worry about.
There is no ledger system, it's just two people with their own LN wallet. There could be a few hubs involved, but the only way to lose your money is if you lose your wallet.

▄▄███████████████████▄▄
▄█████████▀█████████████▄
███████████▄▐▀▄██████████
███████▀▀███████▀▀███████
██████▀███▄▄████████████
█████████▐█████████▐█████
█████████▐█████████▐█████
██████████▀███▀███▄██████
████████████████▄▄███████
███████████▄▄▄███████████
█████████████████████████
▀█████▄▄████████████████▀
▀▀███████████████████▀▀
Peach
BTC bitcoin
Buy and Sell
Bitcoin P2P
.
.
▄▄███████▄▄
▄████████
██████▄
▄██
█████████████████▄
▄███████
██████████████▄
███████████████████████
█████████████████████████
████████████████████████
█████████████████████████
▀███████████████████████▀
▀█████████████████████▀
▀██████████████████▀
▀███████████████▀
▀▀███████▀▀

▀▀▀▀███▀▀▀▀
EUROPE | AFRICA
LATIN AMERICA
▄▀▀▀











▀▄▄▄


███████▄█
███████▀
██▄▄▄▄▄░▄▄▄▄▄
████████████▀
▐███████████▌
▐███████████▌
████████████▄
██████████████
███▀███▀▀███▀
.
Download on the
App Store
▀▀▀▄











▄▄▄▀
▄▀▀▀











▀▄▄▄


▄██▄
██████▄
█████████▄
████████████▄
███████████████
████████████▀
█████████▀
██████▀
▀██▀
.
GET IT ON
Google Play
▀▀▀▄











▄▄▄▀
s2 (OP)
Full Member
***
Offline Offline

Activity: 198
Merit: 123


View Profile
April 18, 2018, 10:47:46 AM
Merited by suchmoon (1)
 #19

Sounds like solving this offline LN tx might be a layer3 issue to address but if we solve this it means bitcoin/LN can replace cash globally if needed.


Quote
"It depends": you'll be responsible for your own backups, just like you're now responsible for backing up your private keys. It's up to you to make redundant backups.

Backups in LN are terrifying.  If you restore from a backup and the backup is slightly out of date by 1 tx you will lose all your funds in the channel.  I.e. if you're having to use a backup because of HW failure you're probably screwed with today's setup as I understand it so better off NOT using a backup. 

We need a way to ask the counterparty node you have a payment channel with what they believe is the latest TX and only broadcast if they match. 


Periodically your node should ping them to ask this question randomly.  This needs to be done periodically and unnecessarily such that when it is needed due to verifying a restored backup, your node can be confident your payment channel counterparty node is not scamming you by confirming an OLD tx when it actually knows a more recent one.

I.e. If the counterparty node ever replies with a known OLD tx you automatically close the channel with the latest tx you have since they are trying to cheat you. 
When restoring from an old backup, if it doesn't match the connected node's latest TX the system should stop issuing new TXs but do respond with the latest TX it thinks it has.  If this tx doesn't match the counterparty will now close the channel for you.  If they don't you can confirm they agreed it is the latest tx and re-enable the issuing new transactions on that channel.


I don't believe this happens yet so peoples funds are at risk from restoring old backups.  This is an important security issue to be addressed before pushed on mainnet otherwise people will almost certainly lose a lot of funds over time without this check.

Thoughts?
LoyceV
Legendary
*
Offline Offline

Activity: 3528
Merit: 17817


Thick-Skinned Gang Leader and Golden Feather 2021


View Profile WWW
April 18, 2018, 11:23:57 AM
 #20

Backups in LN are terrifying.  If you restore from a backup and the backup is slightly out of date by 1 tx you will lose all your funds in the channel.  I.e. if you're having to use a backup because of HW failure you're probably screwed with today's setup as I understand it so better off NOT using a backup.
Good point, you'll need to make a new backup after every transaction.

Quote
We need a way to ask the counterparty node you have a payment channel with what they believe is the latest TX and only broadcast if they match.
If they don't know you lost your backup, they won't risk losing their funds by broadcasting an older TX.

Quote
Thoughts?
The backup requirements look a lot like Byteball's Blackbytes now. Having to create new backups all the time would be very inconvenient, but I can't think of a solution other than using an online service provider.

▄▄███████████████████▄▄
▄█████████▀█████████████▄
███████████▄▐▀▄██████████
███████▀▀███████▀▀███████
██████▀███▄▄████████████
█████████▐█████████▐█████
█████████▐█████████▐█████
██████████▀███▀███▄██████
████████████████▄▄███████
███████████▄▄▄███████████
█████████████████████████
▀█████▄▄████████████████▀
▀▀███████████████████▀▀
Peach
BTC bitcoin
Buy and Sell
Bitcoin P2P
.
.
▄▄███████▄▄
▄████████
██████▄
▄██
█████████████████▄
▄███████
██████████████▄
███████████████████████
█████████████████████████
████████████████████████
█████████████████████████
▀███████████████████████▀
▀█████████████████████▀
▀██████████████████▀
▀███████████████▀
▀▀███████▀▀

▀▀▀▀███▀▀▀▀
EUROPE | AFRICA
LATIN AMERICA
▄▀▀▀











▀▄▄▄


███████▄█
███████▀
██▄▄▄▄▄░▄▄▄▄▄
████████████▀
▐███████████▌
▐███████████▌
████████████▄
██████████████
███▀███▀▀███▀
.
Download on the
App Store
▀▀▀▄











▄▄▄▀
▄▀▀▀











▀▄▄▄


▄██▄
██████▄
█████████▄
████████████▄
███████████████
████████████▀
█████████▀
██████▀
▀██▀
.
GET IT ON
Google Play
▀▀▀▄











▄▄▄▀
Pages: [1] 2 »  All
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!