Bitcoin Forum
April 28, 2024, 03:09:24 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Confused with how LN works.  (Read 111 times)
Don Pedro Dinero (OP)
Legendary
*
Offline Offline

Activity: 1288
Merit: 1500


The first decentralized crypto betting platform


View Profile WWW
April 16, 2023, 05:10:36 AM
Merited by LoyceV (4), DdmrDdmr (4), ABCbits (1)
 #1

Following a discussion in a thread on our local forum about the uses of Bitcoin vs. altcoins, I had a question about how LN really works that no one was able to clarify in that thread. Therefore, I thought it would be a good idea to ask the knowledgeable people on the English forum.

I thought that in order to use LN you have to open a channel between two wallets and that this channel is opened with a transaction on the blockchain. So, for example, if I know a shopkeeper who accepts Bitcoin with LN, a channel would have to be opened between him and me, with a transaction on the blockchain, and from then on we could carry out transactions with LN. This, according to the idea I had, would make it convenient to use LN for cases where I know I am going to make repeated payments, but if for example I am travelling and I see a place where they use LN, I would not see the sense of using it for a single payment if a channel has to be opened on the blockchain beforehand.

But I have a fellow local forum member who says in that thread that he has used LN without ever opening channels, he simply downloaded the Wallet of Satoshi, funded it and uses it as he would use any other normal bitcoin wallet.

At first I doubted whether the people with whom he makes LN payments also use the Wallet of Satoshi, and then it is the wallet itself that opens the channels for them. But it seems that the payments work the same between Wallet of Satoshi and Muun at least.

So, the question I have is, if I download an LN wallet and I can use it as I would use a normal bitcoin wallet, without the need to open channels, who is in charge of opening them and how does that work?

Once a transaction has 6 confirmations, it is extremely unlikely that an attacker without at least 50% of the network's computation power would be able to reverse it.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1714316964
Hero Member
*
Offline Offline

Posts: 1714316964

View Profile Personal Message (Offline)

Ignore
1714316964
Reply with quote  #2

1714316964
Report to moderator
1714316964
Hero Member
*
Offline Offline

Posts: 1714316964

View Profile Personal Message (Offline)

Ignore
1714316964
Reply with quote  #2

1714316964
Report to moderator
nc50lc
Legendary
*
Offline Offline

Activity: 2394
Merit: 5543


Self-proclaimed Genius


View Profile
April 16, 2023, 06:14:20 AM
Merited by LoyceV (4), ABCbits (2), Don Pedro Dinero (1)
 #2

I thought that in order to use LN you have to open a channel between two wallets and that this channel is opened with a transaction on the blockchain. So, for example, if I know a shopkeeper who accepts Bitcoin with LN, a channel would have to be opened between him and me, with a transaction on the blockchain, and from then on we could carry out transactions with LN.
There's a thing called "routing" in Lightning Network which enables you to send/receive from other users' channels.
So the channel between 'You' and 'Shopkeeper' can still send or receive from others as long as it can find a route to the recipient/sender.
Usually, opening a channel with a well-known node helps a lot with routing.

Read this thread for more info about LN: The Lightning Network FAQ

Quote from: Don Pedro Dinero
But I have a fellow local forum member who says in that thread that he has used LN without ever opening channels, he simply downloaded the Wallet of Satoshi, funded it and uses it as he would use any other normal bitcoin wallet.
-snip-
So, the question I have is, if I download an LN wallet and I can use it as I would use a normal bitcoin wallet, without the need to open channels, who is in charge of opening them and how does that work?
"Wallet of Satoshi" wallet is custodial and manages its channels internally so their users wont have to establish channels by themselves.
It's convenient but with the downside of not owning your bitcoins since it's in their custody.

.
.HUGE.
▄██████████▄▄
▄█████████████████▄
▄█████████████████████▄
▄███████████████████████▄
▄█████████████████████████▄
███████▌██▌▐██▐██▐████▄███
████▐██▐████▌██▌██▌██▌██
█████▀███▀███▀▐██▐██▐█████

▀█████████████████████████▀

▀███████████████████████▀

▀█████████████████████▀

▀█████████████████▀

▀██████████▀▀
█▀▀▀▀











█▄▄▄▄
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
.
CASINSPORTSBOOK
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀▀█











▄▄▄▄█
LoyceV
Legendary
*
Offline Offline

Activity: 3290
Merit: 16566


Thick-Skinned Gang Leader and Golden Feather 2021


View Profile WWW
April 16, 2023, 07:36:31 AM
Merited by vapourminer (1)
 #3

So, the question I have is, if I download an LN wallet and I can use it as I would use a normal bitcoin wallet, without the need to open channels, who is in charge of opening them and how does that work?
"Wallet of Satoshi" wallet is custodial and manages its channels internally so their users wont have to establish channels by themselves.
It's convenient but with the downside of not owning your bitcoins since it's in their custody.
It's kinda like using an exchange for sending transactions: they take care of everything. Except for fees on LN are much lower, and in general people entrust LN-wallets with much lower amounts than exchanges.
That's why I don't really worry about using custodial LN wallets: it's supposed to be used for small amounts only, and it's much more convenient than opening my own channels.

█▀▀▀











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











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
hZti
Hero Member
*****
Offline Offline

Activity: 952
Merit: 642

Magic


View Profile
April 16, 2023, 07:54:56 AM
 #4

. Except for fees on LN are much lower, and in general people entrust LN-wallets with much lower amounts than exchanges.
And that’s where the dream of a no trust decentralised currency dies.. lightning solves a flaw of bitcoin, but introduces a much greater flaw. Crazy when you think about it, but mostly it’s due to the resistance of the bitcoin development team that does not want to increase block size, like satoshi planned it from the beginning.
LoyceV
Legendary
*
Offline Offline

Activity: 3290
Merit: 16566


Thick-Skinned Gang Leader and Golden Feather 2021


View Profile WWW
April 16, 2023, 08:04:41 AM
Merited by vapourminer (1)
 #5

. Except for fees on LN are much lower, and in general people entrust LN-wallets with much lower amounts than exchanges.
And that’s where the dream of a no trust decentralised currency dies..
Not really: many different custodial wallets can interact with each other, and you can still opt to run your own node, open your own channels, and send payments to people who use a custodial wallet. It's all about having a choice.
Custodial Bitcoin transactions happened long before LN even existed, think about tipping in an online casino, or sending funds to a different user on an exchange. The main difference with LN is that it's compatible with the rest of the world.

Quote
lightning solves a flaw of bitcoin, but introduces a much greater flaw. Crazy when you think about it, but mostly it’s due to the resistance of the bitcoin development team that does not want to increase block size, like satoshi planned it from the beginning.
As much as I'd like to see larger blocks, that's not a long-term solution (for scaling 10,000-fold).

█▀▀▀











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











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
RapTarX
Hero Member
*****
Offline Offline

Activity: 1358
Merit: 850



View Profile
April 16, 2023, 09:32:26 AM
Merited by DaveF (2)
 #6

I thought that in order to use LN you have to open a channel between two wallets and that this channel is opened with a transaction on the blockchain. So, for example, if I know a shopkeeper who accepts Bitcoin with LN, a channel would have to be opened between him and me, with a transaction on the blockchain, and from then on we could carry out transactions with LN. This, according to the idea I had, would make it convenient to use LN for cases where I know I am going to make repeated payments, but if for example I am travelling and I see a place where they use LN, I would not see the sense of using it for a single payment if a channel has to be opened on the blockchain beforehand.
Though above answer has shared the info, I would like to add a little to make it more easier according to my understanding.
There are nodes which settle payment between two parties. Imagine, there's a popular node which most of the shopkeepers is connected with. It makes sense why would most of the shopkeepers is connected with that node.
If you and your shopkeeper is connected with that node, you can pay him. You don't need to create a lot of channels.
For reference, my topic- https://bitcointalk.org/index.php?topic=5202798.0
As you can see, my topic is a mental shortcut LOL, as I wanted to make it easier for grannies. In technical term, I can be a little wrong but in theory that's what happened actually.

DaveF
Legendary
*
Online Online

Activity: 3458
Merit: 6241


Crypto Swap Exchange


View Profile WWW
April 16, 2023, 11:12:04 AM
Merited by vapourminer (2), Don Pedro Dinero (1)
 #7

I thought that in order to use LN you have to open a channel between two wallets and that this channel is opened with a transaction on the blockchain. So, for example, if I know a shopkeeper who accepts Bitcoin with LN, a channel would have to be opened between him and me, with a transaction on the blockchain, and from then on we could carry out transactions with LN. This, according to the idea I had, would make it convenient to use LN for cases where I know I am going to make repeated payments, but if for example I am travelling and I see a place where they use LN, I would not see the sense of using it for a single payment if a channel has to be opened on the blockchain beforehand.
Though above answer has shared the info, I would like to add a little to make it more easier according to my understanding.
There are nodes which settle payment between two parties. Imagine, there's a popular node which most of the shopkeepers is connected with. It makes sense why would most of the shopkeepers is connected with that node.
If you and your shopkeeper is connected with that node, you can pay him. You don't need to create a lot of channels.
For reference, my topic- https://bitcointalk.org/index.php?topic=5202798.0
As you can see, my topic is a mental shortcut LOL, as I wanted to make it easier for grannies. In technical term, I can be a little wrong but in theory that's what happened actually.

Having used custodial LN wallets like WoS and running several of my own nodes too I can see a need for both.
There are some nodes that no matter what I do, short of opening my own channel to them I can't send them funds.*
Using WoS or Blue Wallet before they shut down worked every time.

Looking at 1ml.com you could see they were only connected to a few smaller nodes and one of the larger ones. So if was tough to find a route, since for a while I only connected to smaller less connected nodes too.

* Once I opened a channel to WoS and a few other larger ones everything worked great, but if I was locking up that much BTC in a channel I might as well just lock up less and use WoS.

-Dave

█▀▀▀











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











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
mendace
Sr. Member
****
Offline Offline

Activity: 462
Merit: 603


Pizza Maker 2023 | Bitcoinbeer.events


View Profile WWW
April 19, 2023, 09:35:13 AM
 #8

Exactly as LoyceV says, custodial wallets should be used for low amounts, rather consider it as your material wallet when you go out for a beer in the evening, what do you do?  Check if there is cash otherwise fill it and LN custodial should also have the same use so you avoid large sums in case yours are lost or the company that manages your funds makes a rug.  While a non-custodial implies a backup of open channels that you need to have some computer skills to be able to better manage them.  Therefore, the best solution on LN remains custodial wallets where you don't have to worry about opening channels and they can also be disposable wallets, there is no usage limit on creating new ones.
Pages: [1]
  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!