Bitcoin Forum
May 08, 2024, 07:08:03 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: « 1 2 3 [4] 5 6 7 8 9 »  All
  Print  
Author Topic: Electrum Lightning Network walkthrough  (Read 4795 times)
This is a self-moderated topic. If you do not want to be moderated by the person who started this topic, create a new topic. (4 posts by 1+ user deleted.)
timCF
Newbie
*
Offline Offline

Activity: 1
Merit: 0


View Profile
August 20, 2020, 02:53:12 PM
 #61

Hello! I'm trying to figure out where are lightning related web API methods in ElectrumX
Can't find it here
https://electrumx.readthedocs.io/en/latest/protocol-methods.html
Where should I search for them?
Remember that Bitcoin is still beta software. Don't put all of your money into BTC!
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1715152083
Hero Member
*
Offline Offline

Posts: 1715152083

View Profile Personal Message (Offline)

Ignore
1715152083
Reply with quote  #2

1715152083
Report to moderator
1715152083
Hero Member
*
Offline Offline

Posts: 1715152083

View Profile Personal Message (Offline)

Ignore
1715152083
Reply with quote  #2

1715152083
Report to moderator
nc50lc
Legendary
*
Offline Offline

Activity: 2408
Merit: 5591


Self-proclaimed Genius


View Profile
August 21, 2020, 04:00:02 AM
Merited by Rath_ (2)
 #62

Hello! I'm trying to figure out where are lightning related web API methods in ElectrumX
Shouldn't it be Electrum since it acts as the lightning node, not the server?

If that's the case, this might be the one you're looking for: https://electrum.readthedocs.io/en/latest/merchant.html#lightning-payments.

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

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

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

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

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

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











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











▄▄▄▄█
NotATether
Legendary
*
Offline Offline

Activity: 1596
Merit: 6730


bitcoincleanup.com / bitmixlist.org


View Profile WWW
September 03, 2020, 01:04:43 PM
 #63

Closing a channel is really simple. Go to the 'Channels' tab, right-click on the channel you want to close and select 'Close channel'. You should use 'Force-close channel' only if the other party is offline. In such a case, you will get your funds back after up to two weeks (2016 blocks). Most channels can be force-closed with a 144 block (~1 day) delay. In both cases, you won't be able to specify the closing transaction fee. Other implementations have such a feature.

Are these block numbers also arbitrarily chosen by Electrum or are they part of the LN protocol? It doesn't make sense to me why parties need to wait for 144 or 2016 blocks to get back their funds. These are real mainnet blocks, and the funds are in a multisig wallet, so by my intuition the funds should arrive in the first block that contains the closing transaction.

Also, do these numbers only apply to force-closed channels? So in that case 144 blocks is the usual delay and 2016 is the maximum, right?

.
.BLACKJACK ♠ FUN.
█████████
██████████████
████████████
█████████████████
████████████████▄▄
░█████████████▀░▀▀
██████████████████
░██████████████
████████████████
░██████████████
████████████
███████████████░██
██████████
CRYPTO CASINO &
SPORTS BETTING
▄▄███████▄▄
▄███████████████▄
███████████████████
█████████████████████
███████████████████████
█████████████████████████
█████████████████████████
█████████████████████████
███████████████████████
█████████████████████
███████████████████
▀███████████████▀
█████████
.
Rath_ (OP)
aka BitCryptex
Legendary
*
Offline Offline

Activity: 1876
Merit: 3131



View Profile
September 03, 2020, 03:09:04 PM
 #64

Are these block numbers also arbitrarily chosen by Electrum or are they part of the LN protocol?

The exact numbers were chosen by Electrum but they are required by the LN protocol.

It doesn't make sense to me why parties need to wait for 144 or 2016 blocks to get back their funds. These are real mainnet blocks, and the funds are in a multisig wallet, so by my intuition the funds should arrive in the first block that contains the closing transaction.

Every time you send, receive or forward a payment over the Lightning Network, the state of the channel updates. A new commitment transaction is signed by both parties when that happens. The commitment transaction can be broadcast in case the other party is offline when you decide to close the channel. As a counter cheating measure, there is a customizable timelock which gives the other party time to come back online and verify if an old state of the channel was not broadcast to the network. If you close your channel when the other party is fully cooperative then there is no timelock.

Also, do these numbers only apply to force-closed channels? So in that case 144 blocks is the usual delay and 2016 is the maximum, right?

Yes.
realpseudozach
Full Member
***
Offline Offline

Activity: 170
Merit: 108


View Profile WWW
September 06, 2020, 01:33:18 AM
 #65

Thanks for the great guide!

Here's a Twitter thread where I explain how you can get a free incoming lightning channel to your electrum:
https://twitter.com/citlayik/status/1276029870837915651?s=19

arrowlove
Newbie
*
Offline Offline

Activity: 26
Merit: 5


View Profile
November 01, 2020, 02:51:29 AM
Merited by Husna QA (1), Rath_ (1)
 #66

Am i correct to understand recent release of electrum wallet has standard functionality to open/fund lightning channels - all you must do is turn the functionality on??!!

Only btc or other channels/crypto's can have lightning channels on electrum?

Is electrum capable of being a true lightning node or like the standard wallet, electrum uses an existing lightning node?  (chosen from a list)

  Anyone with experience successfully running current electrum on debian can verify it works now?  Any patches needed to make it work? 

Does lightning functionality work on debian systems, in current electrum release? 

Rath_ (OP)
aka BitCryptex
Legendary
*
Offline Offline

Activity: 1876
Merit: 3131



View Profile
November 01, 2020, 10:00:54 AM
 #67

Am i correct to understand recent release of electrum wallet has standard functionality to open/fund lightning channels - all you must do is turn the functionality on??!!

That's correct.

Only btc or other channels/crypto's can have lightning channels on electrum?

Since Electrum is a Bitcoin client, its Lightning implementation is limited to Bitcoin. Some forked versions of Electrum might already support the LN. At least, Electrum-LTC does.

Is electrum capable of being a true lightning node or like the standard wallet, electrum uses an existing lightning node?

It will work fine for receiving and sending payments (note that there is no multipart payments support yet), but you won't be able to route payments. Electrum uses third-party nodes only to check the current state of the channel (opening, closing, closed etc.). Technically, it's a standalone Lightning Network node with some limitations.
arrowlove
Newbie
*
Offline Offline

Activity: 26
Merit: 5


View Profile
November 01, 2020, 07:10:50 PM
 #68

Thank you Rath_

any atomic swap services that accept lightning payments.....that you would recommend a lightning newbie look into?
Rath_ (OP)
aka BitCryptex
Legendary
*
Offline Offline

Activity: 1876
Merit: 3131



View Profile
November 01, 2020, 07:54:22 PM
 #69

any atomic swap services that accept lightning payments.....that you would recommend a lightning newbie look into?

I have only used Lightning Conductor to refill my channels and send on-chain transactions. I have never swapped my LN balance for some altcoin, so I can't recommend any such service.
Alberto De Luigi
Newbie
*
Offline Offline

Activity: 28
Merit: 18


View Profile WWW
November 29, 2020, 01:13:40 AM
Merited by Rath_ (4), ABCbits (2), o_e_l_e_o (2)
 #70


There are two types of channel backups in Electrum. The first one ('File -> Save backup') backs up only information required to reestablish the connection with the other party and request a forced channel closure. This kind of backup is called a Static Channel Backup. Data-loss protection discourages the other party from providing the old state of the channel. The second method is backing up each channel individually. Apparently, such backups contain the latest commitment state of the channel so a force-close is not required.

I tried to backup a single channel and "restore" it on another computer. What I did:
I took my second pc, installed electrum, imported the seed -> I  see my correct onchain balance, but not Lightning balance.
Then went back on my first computer's electrum -> right-click on my channel -> export. I see the message saying that the channel backup can be used only to force-close the channel, not to restore it on another device (what a pity!).
Anyway, I copied the string "channel_backup:.....hereMyChannelBackupString.....", I pasted it on the second pc, right-clicking inside the blank frame of "channels" tab.
I now see the channel on my second pc, it says: "BACKUP of ...IDhere..." with STATUS = FUNDED. The only thing I can do is force-closure of  the channel.

my thoughts:

Your lightning network wallet is strictly tied to a single device (at least, for the moment). Which is a huge limitation imo if compared to onchain operability of lightwallets. Indeed, you'll never lose your funds if that device is lost/sold etc., thanks to the backup, but changing device will cost you time and onchain fees for channel closure and re-opening. Also, you won't be able to use at the same time a wallet on desktop and mobile.

I wonder why it is technically so difficult to develop a process of "migration" of the entire wallet, channels included, to a second device. It's not just for electrum light wallet, I'm pretty sure it's the same for LND and c-lightning.

I know that Lightning channels are linked to the public key, not the IP. I think that if your IP address changes, then the updated IP is communicated through a node_announcement message to your channel counterpart (and also propagated over the network).
So what is preventing me from using the same wallet on many different devices? Why can't I easily send to my peer an immediate update and switch to another fully operative device? The only risk I can see from my side is that if I send a wrong (past) commitment transaction I could incur in a penalty (my peer thnks of a fraud and broadcasts a breach remedy transaction). But the wallet should just warn me of the risks, not stop me from switching between devices. So I think there are other technical obstacles I ignore...

ps: I'm not even sure about what is going to happen on my electrum wallet if the IP changes. What will happen to the channels? Will I only be able to force-close them, like it happens when I import a channel backup on a new device? Or this entire IP story is completely unrelated to that? Thanks for your thoughts and feedbacks.


nc50lc
Legendary
*
Offline Offline

Activity: 2408
Merit: 5591


Self-proclaimed Genius


View Profile
November 29, 2020, 05:32:32 AM
Merited by Alberto De Luigi (2), ABCbits (1)
 #71

When moving the wallet: Instead of importing the channel backup, just copy the wallet file itself to the other machine.
It's in Electrum's data directory (location)

But be warned that lightning transactions made by one copy will not reflect to the other that will cause the channel to be force-closed when launched by the outdated one.
So it's best to use an individual LN wallet in a single machine.
I think it's because the channel and the LN transactions are saved in the file itself and it must reflect the other party's copy (need clarification).

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

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

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

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

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

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











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











▄▄▄▄█
Alberto De Luigi
Newbie
*
Offline Offline

Activity: 28
Merit: 18


View Profile WWW
December 16, 2020, 01:47:32 PM
 #72

When moving the wallet: Instead of importing the channel backup, just copy the wallet file itself to the other machine.
It's in Electrum's data directory (location)

But be warned that lightning transactions made by one copy will not reflect to the other that will cause the channel to be force-closed when launched by the outdated one.
So it's best to use an individual LN wallet in a single machine.
I think it's because the channel and the LN transactions are saved in the file itself and it must reflect the other party's copy (need clarification).


Thank you, it works perfectly.

I would add this to the general guide, written for newcomers:
how to migrate Electrum wallet on another device, including LN channels (maintaining them operative):

PC1 = computer with Electrum wallet
PC2 = computer where you want to migrate the wallet

1) On PC1 access “wallets” folder containing the “.dat” file. The filename is the name you gave to the wallet upon creation (in the screnshot, it's “wallet_8”)

  • Windows: path: \Users\YourUserName\AppData\Roaming\Electrum (to find it faster, open the windows search and type: %APPDATA%\Electrum)
  • Mac: Finder -> Go to folder (shift+cmd+G) and type ~/.electrum
  • Linux: Home Folder -> Go to Location and type ~/.electrum

https://www.albertodeluigi.com/wp-content/uploads/2020/12/46-e1607827409173.png

2) Copy the file (“wallet_8”) and bring it on a USB or whatever other secure support to transfer it on PC2. You can also transfer using internet, but only if you encrypted the file before.
3) On PC1 close the Electrum application, better to turn off your computer or disconnect from internet network. be sure you don't open anymore the wallet on PC1, until you finalized point 6.
4) Install Electrum on PC2 and open the wallets folder. Drag or paste here the file (in my case it's “wallet_8”) copied from PC1
5) Open Electrum app on PC2, connect to internet and check if your balance (onchain and offchain) is correct and updated. Now that you are sure the migration has been effectively done, you can proceed with point 6.
6) Go back to PC1 and delete your wallet (in my case it's “wallet_8”) to be sure you'll never open the same wallet on PC1, which could trigger a channel force closure. Once deleted that wallet, you can still use the Electrum app on PC1, but only for onchain funds or different LN wallet than the one you migrated.
nc50lc
Legendary
*
Offline Offline

Activity: 2408
Merit: 5591


Self-proclaimed Genius


View Profile
December 16, 2020, 03:00:31 PM
Merited by Alberto De Luigi (2)
 #73

Thank you, it works perfectly.
It's as expected  Wink
and I'm glad you've also considered the warning about the channel force-closure if you've done any lightning transaction in the other copy then opened the other (outdated) copy.
If that happened, your channel will end up with a "BAD" status and then force-close; that won't reflect to the other copy and that may cause confusion, just the "close channel" transaction.

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

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

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

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

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

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











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











▄▄▄▄█
pawanjain
Hero Member
*****
Offline Offline

Activity: 2674
Merit: 713


Nothing lasts forever


View Profile
February 04, 2021, 02:09:18 PM
 #74

How do I open a channel between 3 nodes?

I explored Electrum but found the option to enter only one remote node id. I want to open a channel with 2 of my friends to try how this works.
Is this feature available on Electrum yet ?

Also, I read that dual funded channels will be available soon. Can we expect that on Electrum soon ?

███████████████████████████
███████▄████████████▄██████
████████▄████████▄████████
███▀█████▀▄███▄▀█████▀███
█████▀█▀▄██▀▀▀██▄▀█▀█████
███████▄███████████▄███████
███████████████████████████
███████▀███████████▀███████
████▄██▄▀██▄▄▄██▀▄██▄████
████▄████▄▀███▀▄████▄████
██▄███▀▀█▀██████▀█▀███▄███
██▀█▀████████████████▀█▀███
███████████████████████████
.
.Duelbits.
..........UNLEASH..........
THE ULTIMATE
GAMING EXPERIENCE
DUELBITS
FANTASY
SPORTS
████▄▄█████▄▄
░▄████
███████████▄
▐███
███████████████▄
███
████████████████
███
████████████████▌
███
██████████████████
████████████████▀▀▀
███████████████▌
███████████████▌
████████████████
████████████████
████████████████
████▀▀███████▀▀
.
▬▬
VS
▬▬
████▄▄▄█████▄▄▄
░▄████████████████▄
▐██████████████████▄
████████████████████
████████████████████▌
█████████████████████
███████████████████
███████████████▌
███████████████▌
████████████████
████████████████
████████████████
████▀▀███████▀▀
/// PLAY FOR  FREE  ///
WIN FOR REAL
..PLAY NOW..
Rath_ (OP)
aka BitCryptex
Legendary
*
Offline Offline

Activity: 1876
Merit: 3131



View Profile
February 04, 2021, 02:17:59 PM
Last edit: February 04, 2021, 02:42:34 PM by Rath_
 #75

How do I open a channel between 3 nodes?
I explored Electrum but found the option to enter only one remote node id. I want to open a channel with 2 of my friends to try how this works.

You cannot open a single channel between three participants in any implementation. You need to open a separate channel to each of your friends. Note that you won't be able to open a channel with any of them if they are using Electrum as well. They need to be running a c-lightning, LND or eclair node.

Also, I read that dual funded channels will be available soon. Can we expect that on Electrum soon ?

I don't think so. Also, I am not sure what the priorities of Electrum developers are. Electrum's implementation lacks quite a few things already, for example, multi-part payments, so I wouldn't expect them to implement dual-funded channels as soon as the official specifications are updated.
ysangkok
Newbie
*
Offline Offline

Activity: 10
Merit: 3


View Profile
February 12, 2021, 07:25:51 AM
Merited by Rath_ (1)
 #76

Electrum's implementation lacks quite a few things already, for example, multi-part payments, so I wouldn't expect them to implement dual-funded channels as soon as the official specifications are updated.

Look at the recent commits, like e.g. this 'receiving MPP' commit. Looks like MPP has been added. I haven't tested it.
Rath_ (OP)
aka BitCryptex
Legendary
*
Offline Offline

Activity: 1876
Merit: 3131



View Profile
February 12, 2021, 08:22:06 AM
 #77

Look at the recent commits, like e.g. this 'receiving MPP' commit. Looks like MPP has been added. I haven't tested it.

Only receiving capability has been added. You still won't be able to split your payment when sending it. It looks like it's a matter of time before they add it, though.
adamvp
Hero Member
*****
Offline Offline

Activity: 1246
Merit: 708



View Profile
February 24, 2021, 11:10:53 AM
 #78

Thanks for great manual!
I would like to ask if is there any way to set Lightining Network address as a change address  or addresses of on-chain transaction?
Let's assume we have 0,01 btc to pay to merchant, network fee is about 0,0005 and we have on input address 0,0113 so  we will get 0,0008 change, which will be practically useless..
We don't want to mix input addresses to avoid weakening our privacy.
I know it is possible manualy with other (Blue) Wallet, but I'd like to know if it is possible in Electrum and automatically?



I am looking for signature campaign Wink pm me
nc50lc
Legendary
*
Offline Offline

Activity: 2408
Merit: 5591


Self-proclaimed Genius


View Profile
February 25, 2021, 03:46:36 AM
 #79

I know it is possible manualy with other (Blue) Wallet, but I'd like to know if it is possible in Electrum and automatically?
That's technically not possible but since Blue wallet's lightning is custodial, funding the channel is as easy as depositing the change to your "lightning external refill address".

Electrum however doesn't work that way, you'll have to fund your channel(s) through lightning transaction from a third-party that accepts on-chain funds.
It has the "swap" feature but it wont accept small amounts like the typical change and it comes with a (third-party) fee.

We don't want to mix input addresses to avoid weakening our privacy.
In comparison, sending to the same address also "mix" or rather "link" those addresses, blue wallet's lightning refill address doesn't change AFAIK.

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

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

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

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

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

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











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











▄▄▄▄█
BlackHatCoiner
Legendary
*
Offline Offline

Activity: 1512
Merit: 7357


Farewell, Leo


View Profile
March 03, 2021, 12:53:30 PM
Merited by Rath_ (2)
 #80

Hi, I'm new to the Lightning Network and I'd like to try it firstly with my favourite wallet, electrum, even if I haven't heard the best about its LN functionalities. I believe that this is the thread to discuss my problems/queries about it.

I've opened Electrum Testnet and I've enabled LN. I want to open a channel to transact some funds with my other wallet. Thus I have two electrum wallets opened. So I do create a transaction with an output of 0.003 tBTC to a multi-signature address. Correct me if I'm wrong but in order to spend from that address, two signatures are needed. One mine and one node's. That's why it is larger than the others. (?)


Okay so now I have broadcasted a transaction between me and the node. Anytime I can close it and return my money back. How can Charlie join this? Does he need to open his own channel? Or join mine? From my second wallet I generate a lightning address and I paste it on my first's "Pay to". Once I do, it probably decodes it to its HTLC form (256-bit in hex).




Once I click "Pay" it returns me this:

And that's reasonable. They probably have to connect somehow with "Bob" or in this case "STRANGESET". Excuse me if I wrote anything stupid. I'm new at this and I'm willful to fully understand it, just like I did with Bitcoin once I found out about it.

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

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

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

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

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

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











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











▄▄▄▄█
Pages: « 1 2 3 [4] 5 6 7 8 9 »  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!