Bitcoin Forum
May 05, 2024, 06:37:10 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: The next release of Electrum will support Lightning payments  (Read 337 times)
hugeblack (OP)
Legendary
*
Offline Offline

Activity: 2506
Merit: 3645


Buy/Sell crypto at BestChange


View Profile WWW
October 14, 2019, 02:40:23 PM
Merited by LoyceV (12), suchmoon (4), d5000 (1), OmegaStarScream (1), pooya87 (1), ABCbits (1)
 #1

This news is amazing. Here are some quick answers:

 - Written in python? Yes
 - Does it need to run a lightning node? You won't need to run anything else.
 - Non-custodial (Not your keys, Not your coins)

The source of the answers above is @ElectrumWallet Twitter account

The next release of Electrum will support Lightning payments. Our lightning node implementation has been merged into Electrum's master branch.

No deadline has been set for launching the update, but I am sure I will update my wallet as soon as it is released. "I may wait several days to confirm the comments of members."

.BEST..CHANGE.███████████████
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
███████████████
..BUY/ SELL CRYPTO..
1714891030
Hero Member
*
Offline Offline

Posts: 1714891030

View Profile Personal Message (Offline)

Ignore
1714891030
Reply with quote  #2

1714891030
Report to moderator
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
jackg
Copper Member
Legendary
*
Offline Offline

Activity: 2856
Merit: 3071


https://bit.ly/387FXHi lightning theory


View Profile
October 14, 2019, 02:44:26 PM
 #2

I think they've been working on trying to support the lightning network for at least half a year so it's great to see they've got something going there!

Does it need the server to run (have you checked the merged source yet) or will they host the nodes from the electrum client software?
Rath_
aka BitCryptex
Legendary
*
Offline Offline

Activity: 1876
Merit: 3131



View Profile
October 14, 2019, 02:57:37 PM
Merited by ABCbits (1)
 #3

Does it need the server to run (have you checked the merged source yet) or will they host the nodes from the electrum client software?

No additional software is needed; a light node is run locally. Electrum will act similarly to Eclair Mobile and other non-custodial mobile wallets. Users will need to be online in order to receive payments and take care of the backups. Channels are probably going to be marked as private ones so earning money from payment routing is out of the question. Take a look at this short presentation.
DireWolfM14
Copper Member
Legendary
*
Offline Offline

Activity: 2170
Merit: 4238


Join the world-leading crypto sportsbook NOW!


View Profile WWW
October 14, 2019, 03:43:38 PM
 #4

Awesome news, I'm anxiously awaiting this new toy opportunity to lean more about lightning.  Electrum implementing lightning functionality is likely to be a big boost for the technology.  So many people use electrum, but may have never researched how it works or how to use it.

Just fair warning to anyone who's going to jump in head first: This is still new, experimental technology, don't put more money into a lighting channel than you are willing to lose.

  ▄▄███████▄███████▄▄▄
 █████████████
▀▀▀▀▀▀████▄▄
███████████████
       ▀▀███▄
███████████████
          ▀███
 █████████████
             ███
███████████▀▀               ███
███                         ███
███                         ███
 ███                       ███
  ███▄                   ▄███
   ▀███▄▄             ▄▄███▀
     ▀▀████▄▄▄▄▄▄▄▄▄████▀▀
         ▀▀▀███████▀▀▀
░░░████▄▄▄▄
░▄▄░
▄▄███████▄▀█████▄▄
██▄████▌▐█▌█████▄██
████▀▄▄▄▌███░▄▄▄▀████
██████▄▄▄█▄▄▄██████
█░███████░▐█▌░███████░█
▀▀██▀░██░▐█▌░██░▀██▀▀
▄▄▄░█▀░█░██░▐█▌░██░█░▀█░▄▄▄
██▀░░░░▀██░▐█▌░██▀░░░░▀██
▀██
█████▄███▀▀██▀▀███▄███████▀
▀███████████████████████▀
▀▀▀▀███████████▀▀▀▀
▄▄██████▄▄
▀█▀
█  █▀█▀
  ▄█  ██  █▄  ▄
█ ▄█ █▀█▄▄█▀█ █▄ █
▀▄█ █ ███▄▄▄▄███ █ █▄▀
▀▀ █    ▄▄▄▄    █ ▀▀
   ██████   █
█     ▀▀     █
▀▄▀▄▀▄▀▄▀▄▀▄
▄ ██████▀▀██████ ▄
▄████████ ██ ████████▄
▀▀███████▄▄███████▀▀
▀▀▀████████▀▀▀
█████████████LEADING CRYPTO SPORTSBOOK & CASINO█████████████
MULTI
CURRENCY
1500+
CASINO GAMES
CRYPTO EXCLUSIVE
CLUBHOUSE
FAST & SECURE
PAYMENTS
.
..PLAY NOW!..
o_e_l_e_o
In memoriam
Legendary
*
Offline Offline

Activity: 2268
Merit: 18509


View Profile
October 14, 2019, 03:59:10 PM
Merited by d5000 (1)
 #5

In addition to the points above:

Electrum will be a lightning node. You won't need to run anything else.

Thomas V gave a presentation on Lightning and Electrum a few months ago, you can see the slides here: https://www.electrum.org/talks/lightning/presentation.html. Seems to suggest that users will initially be required to run their own watchtowers?



Channels are probably going to be marked as private ones so earning money from payment routing is out of the question.
What makes you say that? If you are staying online 24/7 (or close to it), is there any reason you couldn't be a public channel?
Rath_
aka BitCryptex
Legendary
*
Offline Offline

Activity: 1876
Merit: 3131



View Profile
October 14, 2019, 05:38:38 PM
 #6

If you are staying online 24/7 (or close to it), is there any reason you couldn't be a public channel?

Yes, there are a few reasons. Anyone will be able to see the channel using the Lightning Network explorers - it might bother some people. Also, public channels are forced to participate in payment routing. This could confuse people using the Lightning Network for the first time. One can change the fee policy to discourage others from routing through one's node but that would require more work from the developers to make it more newbie friendly.
pooya87
Legendary
*
Offline Offline

Activity: 3444
Merit: 10546



View Profile
October 15, 2019, 03:49:08 AM
 #7

does anybody know if Electrum with -testnet command would also support Lightning Network in this new release?
i would very much prefer to test things on testnet with value-less coins to get comfortable using LN through Electrum. specially since my knowledge of LN is pretty much minimal.

.
.BLACKJACK ♠ FUN.
█████████
██████████████
████████████
█████████████████
████████████████▄▄
░█████████████▀░▀▀
██████████████████
░██████████████
████████████████
░██████████████
████████████
███████████████░██
██████████
CRYPTO CASINO &
SPORTS BETTING
▄▄███████▄▄
▄███████████████▄
███████████████████
█████████████████████
███████████████████████
█████████████████████████
█████████████████████████
█████████████████████████
███████████████████████
█████████████████████
███████████████████
▀███████████████▀
█████████
.
d5000
Legendary
*
Offline Offline

Activity: 3906
Merit: 6172


Decentralization Maximalist


View Profile
October 15, 2019, 09:36:33 PM
Merited by pooya87 (2), LoyceV (2), TryNinja (1), o_e_l_e_o (1)
 #8

does anybody know if Electrum with -testnet command would also support Lightning Network in this new release?
i would very much prefer to test things on testnet with value-less coins to get comfortable using LN through Electrum. specially since my knowledge of LN is pretty much minimal.
I guess yes - at least regtest already works with the development version. Electrum dev Thomas Voegtlin - already in June - has given a little explanation talk/video and a presentation about how a LN channel can be tested without having to connect to the "real" network and risk coins.

Video: https://www.youtube.com/watch?v=7D83IpdiF-U
Presentation: https://www.electrum.org/talks/lightning/presentation.html#slide1

(Edit: I see o_e_l_e_o already linked to the presentation before.)

Basically, you simply create two different nodes on your PC and then connect them via LND and build a channel between them. However, I guess it's also possible to test it with the "main" testnet.

I have tried the newest Electrum master version. (Obviously, everybody doing that should create a new wallet for it!) There is no longer a need to specify the "--lightning" command line option when starting electrum to enable the LN functionality. However, you have to activate it inside the wallet.

The way I did it was via the console: entering "init_lightning()" creates the needed Lightning keys. Then it's necessary to restart the client and the LN functionality is activated (one can create channels, etc.).

Does anybody know if there is a better way than via init_lightning(), i.e. is it possible with a GUI function?

█▀▀▀











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











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

Activity: 2296
Merit: 5919


bitcoindata.science


View Profile WWW
October 15, 2019, 10:31:34 PM
 #9

Does it need the server to run (have you checked the merged source yet) or will they host the nodes from the electrum client software?

No additional software is needed; a light node is run locally. Electrum will act similarly to Eclair Mobile and other non-custodial mobile wallets. Users will need to be online in order to receive payments and take care of the backups. Channels are probably going to be marked as private ones so earning money from payment routing is out of the question. Take a look at this short presentation.

i hope it is better than Eclair. =D
I paid so much in fees to open/close channels there, because there was not too many customization options.

I am happy to finally have a decent lightning wallet. Maybe this will trigger more adoption.

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

Activity: 1876
Merit: 3131



View Profile
October 15, 2019, 10:58:04 PM
Merited by LoyceV (2), d5000 (1), o_e_l_e_o (1)
 #10

I found a little interesting information on the Electrum's GitHub page. Some of them might have changed since the message was posted on 14th November 2018. As I predicted in my previous message, Electrum nodes won't be able to participate in payment routing and their channels will be marked as private. Electrum Technologies GmbH is going to run their own watchtower which every user will be able to use for a flat monthly fee.

Rath_
aka BitCryptex
Legendary
*
Offline Offline

Activity: 1876
Merit: 3131



View Profile
November 01, 2019, 10:42:54 PM
 #11

Someone published a video on YouTube showcasing the preview version of Electrum with the Lightning Network support. It doesn't look complicated at all but it would be nice if a detailed explanation was presented whilst hovering the mouse over the 'Push amount'. It might not be obvious for everyone.
jackg
Copper Member
Legendary
*
Offline Offline

Activity: 2856
Merit: 3071


https://bit.ly/387FXHi lightning theory


View Profile
November 02, 2019, 12:37:49 AM
 #12

@bitcyptex, he seems to think push is receivable amount (I think) it's good that you can customise it as you normally can't on the mobile wallets.

Also I think his transaction failed because he was trying to send testnet bitcoins to a lightning bitcoin node (just thought I'd make this clear if anyone was wondering).
Rath_
aka BitCryptex
Legendary
*
Offline Offline

Activity: 1876
Merit: 3131



View Profile
November 02, 2019, 01:31:44 AM
 #13

@bitcyptex, he seems to think push is receivable amount (I think) it's good that you can customise it as you normally can't on the mobile wallets.

Well, he is not completely wrong. He is now able to receive coins over the Lightining Network. However, the other party can spend the coins which were pushed to them. This feature can be also useful in some other ways.

Also I think his transaction failed because he was trying to send testnet bitcoins to a lightning bitcoin node (just thought I'd make this clear if anyone was wondering).

That's not it. The website he used generates invoices for the testnet. Take a look at the following piece of code.

Code: (https://github.com/spesmilo/electrum/blob/0966edc637ba927ea6767b44aa937b0ca7805dd7/electrum/lnpeer.py)
if htlc.cltv_expiry - lnutil.NBLOCK_DEADLINE_BEFORE_EXPIRY_FOR_RECEIVED_HTLCS <= local_height \
                or next_cltv_expiry <= local_height:
            reason = OnionRoutingFailureMessage(code=OnionFailureCode.EXPIRY_TOO_SOON,
                                                data=outgoing_chan_upd_len+outgoing_chan_upd)
            await self.fail_htlc(chan, htlc.htlc_id, onion_packet, reason)
            return

htlc.cltv_expiry seems to be the culprit here. If you compare the 'Time Lock Delta' for both testnet and mainnet on 1ml.com, you will see that it is equal to 40 and 144 respectively. At the time of the recording, the blocks on the testnet were mined one after another. If you take both of these factors in the account then it seems that that's the reason why it didn't work. It's a bit late here so I will investigate it further tomorrow.

Note: It seems that some mainnet notes have set their 'Time Lock Delta' to 40 or lower. The blocks on the mainnet are mined not as fast as on the testnet so it shouldn't impact the mainnet Lightning Network transaction failure rate significantly.

The time_lock_delta is the minimum difference in the number of blocks between the CLTV of an incoming HTLC and the forwarded HTLC.

I would appreciate if someone could link this post under that YouTube video.
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!