Bitcoin Forum
December 12, 2024, 09:50:49 PM *
News: Latest Bitcoin Core release: 28.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: [General] Electrum-LTC  (Read 86 times)
BlackHatCoiner (OP)
Legendary
*
Offline Offline

Activity: 1736
Merit: 8448


Fiatheist


View Profile WWW
February 04, 2021, 08:53:44 PM
 #1

Website: https://electrum-ltc.org/

Github: https://github.com/pooler/electrum-ltc

I would like to create this thread, because at this time I'll be busy with electrum-ltc that is a lightweight litecoin client and since there is no board   and topic, here it is. (I don't think that it should be created on Electrum)

There is no point of having a board, because this wallet doesn't require that much discussion, it's a small project. Electrum is in my opinion the simplest, user-friendly, non-custodian wallet out there. Unfortunately, not all cryptocurrencies that have forked the Bitcoin Core's source code have an SPV like electrum. Actually, only litecoin has its own electrum. Despite the fact that I would like to have a dogecoin electrum, I see the entire thing more generally. I took a look in the code, but I haven't worked with python in the past and it seems hard for me, so I would like to make some questions to the experts. Whether they are forum ones, python ones or even the developers/contributors of electrum.

  • Does electrum broadcast the transaction to bitcoin nodes directly?
  • Is there a handshake once you broadcast the transaction? I mean, can I simply change the default IP addresses of the litecoin nodes so I can put dogecoin nodes? Is it that simple?
  • What other things do I have to change excluding the address' prefix?

█▀▀▀











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











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

Activity: 3668
Merit: 11103


Crypto Swap Exchange


View Profile
February 05, 2021, 04:49:53 AM
 #2

If you want to learn more about how the Electrum communication protocol works you can read the documentation here: https://electrumx.readthedocs.io/en/latest/protocol.html
Each Electrum client connects to a specialized bitcoin (and alternatively the altcoin) full node over SSL and requests block headers, transction history, etc. These full nodes are storing an additional index on top of their database to help them quickly find what the clients request.
You can't just use one client for another network (eg. using bitcoin one on litecoin chain) because a lot of things have to change not just the IP address.

█▀▀▀











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











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

Activity: 3878
Merit: 6623


Looking for campaign manager? Contact icopress!


View Profile
February 05, 2021, 09:28:54 AM
 #3

it's a small project

Keep in mind that Electrum "discuss" with its own servers (or nodes), hence you'll probably have to also adapt ElectrumX (or electrum-server or similar) too and the project will no longer be so small.
Also in order for this to work, somebody will have to host those servers...
See https://github.com/spesmilo/electrumx

Does electrum broadcast the transaction to bitcoin nodes directly?

Nope, it has its server.

Is there a handshake once you broadcast the transaction? I mean, can I simply change the default IP addresses of the litecoin nodes so I can put dogecoin nodes? Is it that simple?

Probably ElectrumX will be a bit different too.

What other things do I have to change excluding the address' prefix?

You'll probably have to distinguish between the networks and avoid LTC/DOGE signal themselves as BTC ElectrumX servers.



Although I am against BCash existence, this time it may prove itself helpful for you, since it has its own Electrum fork. https://github.com/Electron-Cash/Electron-Cash

███████████████████████
████▐██▄█████████████████
████▐██████▄▄▄███████████
████▐████▄█████▄▄████████
████▐█████▀▀▀▀▀███▄██████
████▐███▀████████████████
████▐█████████▄█████▌████
████▐██▌█████▀██████▌████
████▐██████████▀████▌████
█████▀███▄█████▄███▀█████
███████▀█████████▀███████
██████████▀███▀██████████

███████████████████████
.
BC.GAME
▄▄▀▀▀▀▀▀▀▄▄
▄▀▀░▄██▀░▀██▄░▀▀▄
▄▀░▐▀▄░▀░░▀░░▀░▄▀▌░▀▄
▄▀▄█▐░▀▄▀▀▀▀▀▄▀░▌█▄▀▄
▄▀░▀░░█░▄███████▄░█░░▀░▀▄
█░█░▀░█████████████░▀░█░█
█░██░▀█▀▀█▄▄█▀▀█▀░██░█
█░█▀██░█▀▀██▀▀█░██▀█░█
▀▄▀██░░░▀▀▄▌▐▄▀▀░░░██▀▄▀
▀▄▀██░░▄░▀▄█▄▀░▄░░██▀▄▀
▀▄░▀█░▄▄▄░▀░▄▄▄░█▀░▄▀
▀▄▄▀▀███▄███▀▀▄▄▀
██████▄▄▄▄▄▄▄██████
.
..CASINO....SPORTS....RACING..


▄▄████▄▄
▄███▀▀███▄
██████████
▀███▄░▄██▀
▄▄████▄▄░▀█▀▄██▀▄▄████▄▄
▄███▀▀▀████▄▄██▀▄███▀▀███▄
███████▄▄▀▀████▄▄▀▀███████
▀███▄▄███▀░░░▀▀████▄▄▄███▀
▀▀████▀▀████████▀▀████▀▀
HCP
Legendary
*
Offline Offline

Activity: 2086
Merit: 4363

<insert witty quote here>


View Profile
February 05, 2021, 09:56:46 AM
Merited by ABCbits (1)
 #4

Actually, only litecoin has its own electrum.
Nope... There were also Electrum forks for:

- Bitcoin Cash (Electron Cash)
- Bitcoin SV (ElectrumSV)
- Vertcoin (Electrum-vertcoin)
- Bitcoin Gold (ElectrumG)
- Bitcoin Diamond (Electrum-BCD)

And others that I'm either forgetting or that I have not seen mentioned... In fact, if you look at the "old" ElectrumX code (before the author drank the koolaid and decided that BSV was all that and a packet of crisps)... you can see all the various altcoins that it supported.

You'll be please to note that DOGE coin is in that list: https://github.com/kyuupichan/electrumx/blob/eac2b7db8cb80394e7bc0e40696ab2dc8caed051/electrumx/lib/coins.py#L1151

So, that's one less thing to worry about if you want an "ElectrumDOGE" Wink

█████████████████████████
████▐██▄█████████████████
████▐██████▄▄▄███████████
████▐████▄█████▄▄████████
████▐█████▀▀▀▀▀███▄██████
████▐███▀████████████████
████▐█████████▄█████▌████
████▐██▌█████▀██████▌████
████▐██████████▀████▌████
█████▀███▄█████▄███▀█████
███████▀█████████▀███████
██████████▀███▀██████████
█████████████████████████
.
BC.GAME
▄▄░░░▄▀▀▄████████
▄▄▄
██████████████
█████░░▄▄▄▄████████
▄▄▄▄▄▄▄▄▄██▄██████▄▄▄▄████
▄███▄█▄▄██████████▄████▄████
███████████████████████████▀███
▀████▄██▄██▄░░░░▄████████████
▀▀▀█████▄▄▄███████████▀██
███████████████████▀██
███████████████████▄██
▄███████████████████▄██
█████████████████████▀██
██████████████████████▄
.
..CASINO....SPORTS....RACING..
█░░░░░░█░░░░░░█
▀███▀░░▀███▀░░▀███▀
▀░▀░░░░▀░▀░░░░▀░▀
░░░░░░░░░░░░
▀██████████
░░░░░███░░░░
░░█░░░███▄█░░░
░░██▌░░███░▀░░██▌
░█░██░░███░░░█░██
░█▀▀▀█▌░███░░█▀▀▀█▌
▄█▄░░░██▄███▄█▄░░▄██▄
▄███▄
░░░░▀██▄▀


▄▄████▄▄
▄███▀▀███▄
██████████
▀███▄░▄██▀
▄▄████▄▄░▀█▀▄██▀▄▄████▄▄
▄███▀▀▀████▄▄██▀▄███▀▀███▄
███████▄▄▀▀████▄▄▀▀███████
▀███▄▄███▀░░░▀▀████▄▄▄███▀
▀▀████▀▀████████▀▀████▀▀
pooya87
Legendary
*
Offline Offline

Activity: 3668
Merit: 11103


Crypto Swap Exchange


View Profile
February 06, 2021, 05:24:47 AM
Merited by HCP (2)
 #5

And others that I'm either forgetting or that I have not seen mentioned
There is a topic about it here with some additional ones, mostly unpopular though: https://bitcointalk.org/index.php?topic=4487291.0

Quote
... In fact, if you look at the "old" ElectrumX code (before the author drank the koolaid and decided that BSV was all that and a packet of crisps)... you can see all the various altcoins that it supported.
Do you think I Should stop posting the ElectrumX doc then? Is there any new documentation link?

█▀▀▀











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











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

Activity: 2086
Merit: 4363

<insert witty quote here>


View Profile
February 06, 2021, 10:28:11 PM
Merited by pooya87 (1)
 #6

There is a topic about it here with some additional ones, mostly unpopular though: https://bitcointalk.org/index.php?topic=4487291.0
Nice find... I knew I had seen a thread like that years ago... but couldn't be bothered looking it up! Tongue


Quote
Do you think I Should stop posting the ElectrumX doc then? Is there any new documentation link?
The "spesmilo" fork by the Electrum devs is probably a good start: https://electrumx-spesmilo.readthedocs.io/en/latest/

It still contains all the dead "Altcoin" code that was removed from ElectrumX

█████████████████████████
████▐██▄█████████████████
████▐██████▄▄▄███████████
████▐████▄█████▄▄████████
████▐█████▀▀▀▀▀███▄██████
████▐███▀████████████████
████▐█████████▄█████▌████
████▐██▌█████▀██████▌████
████▐██████████▀████▌████
█████▀███▄█████▄███▀█████
███████▀█████████▀███████
██████████▀███▀██████████
█████████████████████████
.
BC.GAME
▄▄░░░▄▀▀▄████████
▄▄▄
██████████████
█████░░▄▄▄▄████████
▄▄▄▄▄▄▄▄▄██▄██████▄▄▄▄████
▄███▄█▄▄██████████▄████▄████
███████████████████████████▀███
▀████▄██▄██▄░░░░▄████████████
▀▀▀█████▄▄▄███████████▀██
███████████████████▀██
███████████████████▄██
▄███████████████████▄██
█████████████████████▀██
██████████████████████▄
.
..CASINO....SPORTS....RACING..
█░░░░░░█░░░░░░█
▀███▀░░▀███▀░░▀███▀
▀░▀░░░░▀░▀░░░░▀░▀
░░░░░░░░░░░░
▀██████████
░░░░░███░░░░
░░█░░░███▄█░░░
░░██▌░░███░▀░░██▌
░█░██░░███░░░█░██
░█▀▀▀█▌░███░░█▀▀▀█▌
▄█▄░░░██▄███▄█▄░░▄██▄
▄███▄
░░░░▀██▄▀


▄▄████▄▄
▄███▀▀███▄
██████████
▀███▄░▄██▀
▄▄████▄▄░▀█▀▄██▀▄▄████▄▄
▄███▀▀▀████▄▄██▀▄███▀▀███▄
███████▄▄▀▀████▄▄▀▀███████
▀███▄▄███▀░░░▀▀████▄▄▄███▀
▀▀████▀▀████████▀▀████▀▀
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!