Bitcoin Forum
April 26, 2024, 11:27:29 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: More Lightning Questions  (Read 220 times)
Peloponnesian (OP)
Newbie
*
Offline Offline

Activity: 10
Merit: 9


View Profile
April 27, 2019, 06:18:24 PM
Merited by LoyceV (1), ABCbits (1)
 #1

Hey Guys,

Apologies if this has been answered already, didn't see much in search results though. Just looking to get some clarity on how lightning nodes work and how private keys are stored (via lightning node ... I think).

So I have installed Pierre Rochard's Lightning Power Node Launcher, it worked great and is now fully synced. I then installed both the Joule Chrome extension and the Zap Desktop wallet. I then sent some satoshis to the Joule Extension and waited for confirmations. After that, I launched the Zap Desktop wallet (by right clicking the BTC symbol in windows tray, then advanced options, then "Open Zap Desktop") and it seemed to automatically import whatever data it needed from the lightning node to have control over the satoshis that I previously sent to the Joule extension.

So here is my question - Where are the keys for these satoshis being held? How was I able to see satoshis in the Zap Desktop application without doing anything except clicking a button? They seem to still show up in the Joule extension AND the Zap Desktop wallet. How is this possible? From what I understand so far, it's something to do with the "Macaroons" that are included in the lightning nodes files? Maybe all of the data and "keys" are stored in the lightning nodes files, and both Joule extension and Zap Desktop are just an interface to those files/funds?

Any help/explanation is appreciated - apologies for the long post.
1714174049
Hero Member
*
Offline Offline

Posts: 1714174049

View Profile Personal Message (Offline)

Ignore
1714174049
Reply with quote  #2

1714174049
Report to moderator
1714174049
Hero Member
*
Offline Offline

Posts: 1714174049

View Profile Personal Message (Offline)

Ignore
1714174049
Reply with quote  #2

1714174049
Report to moderator
"Your bitcoin is secured in a way that is physically impossible for others to access, no matter for what reason, no matter how good the excuse, no matter a majority of miners, no matter what." -- Greg Maxwell
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1714174049
Hero Member
*
Offline Offline

Posts: 1714174049

View Profile Personal Message (Offline)

Ignore
1714174049
Reply with quote  #2

1714174049
Report to moderator
1714174049
Hero Member
*
Offline Offline

Posts: 1714174049

View Profile Personal Message (Offline)

Ignore
1714174049
Reply with quote  #2

1714174049
Report to moderator
1714174049
Hero Member
*
Offline Offline

Posts: 1714174049

View Profile Personal Message (Offline)

Ignore
1714174049
Reply with quote  #2

1714174049
Report to moderator
Heisenberg_Hunter
Legendary
*
Offline Offline

Activity: 1583
Merit: 1276


Heisenberg Design Services


View Profile WWW
April 29, 2019, 06:32:30 AM
Merited by ABCbits (2), OgNasty (1), Peloponnesian (1)
 #2

I am not completely sure of this, but I remember reading something similar a month back. Initially you need to better understand what these 3 applications does to the payment channels.

Pierre Rochard's Lightning Power Node Launcher :

The Node Launcher is a GUI application for syncing Lightning network and the Bitcoin Network together. As you have said, they hold the keys for your coins. But if you need to interact with Bitcoin Network you should be having either Joule or Zap Wallet with you. The private keys are stored in the node and they are used for signing the transaction. Without the Node, you can never create a channel with your Joule Extension. But on the other hand, (though I have not used the Zap Wallet to confirm this) you can create a lnd along with your bitcoin wallet during setting up of the Zap Wallet.

Zap Desktop Wallet :

They can either be used as a standalone application only for sending and receiving of your bitcoins or can act both as a lnd and wallet. Another thing is that, they can be integrated with your own node and can be used.

Joule Chrome Extension :

They are just an GUI extension for your node, and can never be used without connnecting to a Lnd.

Coming to your questions,

Quote
Where are the keys for these satoshis being held?
Since you have integrated both the Launcher and the Zap Wallet, they are being held in the Node Launcher. If you are using Joule Extension and Node Launcher they are stored in the Node Launcher. If you are only using Zap Wallet, then your Zap Wallet holds your keys.

Quote
How was I able to see satoshis in the Zap Desktop application without doing anything except clicking a button?
They are because of the macaroons (or simply called cookies). The button you have clicked belongs to the Node Launcher and not to the Zap Wallet. So it makes sense if Zap Wallet shows the balance.

Quote
How is this possible?
Both Joule Extension and Zap Wallets are integrated with the Node Launcher which holds your keys. This is why you can see the balance in both of them.

Quote
From what I understand so far, it's something to do with the "Macaroons" that are included in the lightning nodes files? Maybe all of the data and "keys" are stored in the lightning nodes files, and both Joule extension and Zap Desktop are just an interface to those files/funds?
Yes, exactly true. Macaroons are some sort of cookies which stores small info about these lnd and their balances. You can read more about macaroons here : https://github.com/lightningnetwork/lnd/blob/master/docs/macaroons.md

P.S : If my post seems to be wrong, kindly correct them. It's better to understand anything correctly rather than being wrong.
Peloponnesian (OP)
Newbie
*
Offline Offline

Activity: 10
Merit: 9


View Profile
April 29, 2019, 10:57:03 PM
 #3

Great explanations, thank you.

I’ll digest this and let you know if anything isn’t making sense.
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!