Welcome to the Dash Forum!

Please sign up to discuss the most innovative cryptocurrency!

Electrum Dark

Discussion in 'Projects' started by darkzero, Jun 29, 2014.

  1. darkzero

    darkzero Member

    Joined:
    Jun 6, 2014
    Messages:
    44
    Likes Received:
    35
    Trophy Points:
    58
    Hijacked by vertoe : Trying to draw a timeline and list important events and contributors.

    June 2014: darkzero first one to try working on this, stopped a while ago.
    https://github.com/ccur108/electrum-drk-server

    July 2014: flare always keeping an eye on it, any progress?
    https://github.com/nightlydarkcoin/electrum-drk-server
    https://github.com/electrum-drk/electrum-drk
    https://github.com/electrum-drk/electrum-drk-server
    and hosting http://electrum-drk.org/

    Octb 2014: akhavr stepped up after darkzero but lacks on time
    https://github.com/akhavr/electrum-drk
    https://github.com/akhavr/electrum-drk-server

    Novb 2014: Cofresí contributed stuff
    https://github.com/Cofresi/electrum-drk
    https://github.com/Cofresi/electrum-drk-server

    Decb 2014: Gorila1977 helped with some strings afaik
    https://github.com/gorilla1977/electrum-drk

    Febr 2014: Propulsion brought life back into that project
    https://github.com/Propulsions/electrum-drk
    https://github.com/Propulsions/electrum-drk-server

    Febr 2014: ELM4ever set this project on fire
    https://github.com/ELM4Ever/electrum-drk
    https://github.com/ELM4Ever/electrum-drk-server

    ??? redtocatta who are you? ;-)
    https://github.com/redtocatta/electrum-drk

    ??? keeping an eye on electrum-alt
    https://github.com/electrumalt
    https://cryptocointalk.com/topic/23210-ann-electrum-lightweight-client-for-doge-drk-dvc-ftc-ixc-ppc/

    -------------------------------------------------------------------------------------------------------------------------

    Original post by darkzero :
    I forked the electrum-ltc-server project and updated to work in the Darkcoin TESTNET. First synch took a while possibly because of a fork but the server finally started.
    The project is at https://github.com/ccur108/electrum-drk-server
    Install procedure isn't changed and the website doesn't exists so you have to build the db from the blockchain.
    Haven't changed all the references to darkcoin yet in the various README. I'm looking forward to give a try at the client but there is no ETA.
     
    #1 darkzero, Jun 29, 2014
    Last edited by a moderator: Feb 13, 2015
    • Like Like x 11
  2. vertoe

    vertoe Three of Nine

    Joined:
    Mar 28, 2014
    Messages:
    2,573
    Likes Received:
    1,652
    Trophy Points:
    1,283
    Dude this is awesome.
    I will keep an eye on the repository! Please post updates if you make any progress.
     
  3. yamada

    yamada New Member

    Joined:
    May 26, 2014
    Messages:
    31
    Likes Received:
    21
    Trophy Points:
    8
    Excellent !

    I will add these to my masternodes .

    Any plans on a compatible electrum wallet?
     
  4. flare

    flare Administrator
    Dash Core Team Moderator

    Joined:
    May 18, 2014
    Messages:
    2,287
    Likes Received:
    2,406
    Trophy Points:
    1,183
    Awesome - will have a look at this too. Will give running a electrum-server on testnet a try.

    I guess so - electrum server alone does not make sense :)
     
  5. Propulsion

    Propulsion The buck stops here.

    Joined:
    Feb 26, 2014
    Messages:
    1,008
    Likes Received:
    467
    Trophy Points:
    183
    Dash Address:
    XerHCGryyfZttUc6mnuRY3FNJzU1Jm9u5L
    Ha! Very cool. So if this some how becomes baked into the MN binaries, we would eliminate the need to download the blockchain for 99% of the userbase. Awesome.
     
    • Like Like x 1
  6. flare

    flare Administrator
    Dash Core Team Moderator

    Joined:
    May 18, 2014
    Messages:
    2,287
    Likes Received:
    2,406
    Trophy Points:
    1,183
    Got my electrum server running - now to the wallet :)

    Code:
    [13/07/2014-15:25:45] Starting Electrum server on localhost
    [13/07/2014-15:25:45] initializing database
    [13/07/2014-15:25:45] UTXO tree root hash: 5df6e0e2761359d30a8275058e299fcc0381534545f55cf43e41983f5d4c9456
    [13/07/2014-15:25:45] Coins in database: 0
    [13/07/2014-15:25:45] catching up missing headers: -1 0
    [13/07/2014-15:25:45] headers file: 0
    [13/07/2014-15:25:54] catch_up: block 1000 (4.703s 4.553s) 4ef4d05c7e2352807ecc8339e387a4efab5bbd6588cac6660cd57df019132e41
    [13/07/2014-15:26:04] catch_up: block 2000 (4.657s 5.303s) bcc995862371bfd75e3afb84675f95b9d8323e47d939d7003c9d0f507e80828f
    [...]
    [13/07/2014-17:42:11] catch_up: block 100000 (5.205s 85.107s) 3f5c2b04418920a428707deadd0e7667e748628a6f27a6b505520646fbd7cb79
    [13/07/2014-17:43:43] catch_up: block 101000 (5.162s 86.756s) 948397ca176be1aba953725cc497ee03a56b413c561be4816ff5fc710f2d99a2
    [13/07/2014-17:44:25] Blockchain is up to date.
    [13/07/2014-17:44:25] Memory pool initialized.
    [13/07/2014-17:44:25] TCP server started on port 50001
    [13/07/2014-17:44:25] SSL server started on port 50002
    [13/07/2014-17:44:25] HTTP server started.
    [13/07/2014-17:44:25] HTTPS server started.
     
    • Like Like x 2
  7. vertoe

    vertoe Three of Nine

    Joined:
    Mar 28, 2014
    Messages:
    2,573
    Likes Received:
    1,652
    Trophy Points:
    1,283
    Uh oh, nice.

    If this shows some progress I'd be happy to run some servers aswell.
     
    • Like Like x 1
  8. nj47

    nj47 Guest

    You beat me to it! I was working on this as well, though it was on my backburner and wasn't getting a lot of attention.

    What are your thoughts on implementing darksend?
     
  9. flare

    flare Administrator
    Dash Core Team Moderator

    Joined:
    May 18, 2014
    Messages:
    2,287
    Likes Received:
    2,406
    Trophy Points:
    1,183
    First i want to get the client running, then, after RC4 darksend+, implement darksend. We'll see...
     
    • Like Like x 1
  10. mattmct

    mattmct Member

    Joined:
    Mar 13, 2014
    Messages:
    259
    Likes Received:
    92
    Trophy Points:
    88
    Very nice! I'll also run a server :)
     
  11. vertoe

    vertoe Three of Nine

    Joined:
    Mar 28, 2014
    Messages:
    2,573
    Likes Received:
    1,652
    Trophy Points:
    1,283
    Yeah, would be nice to see a working client!
     
  12. flare

    flare Administrator
    Dash Core Team Moderator

    Joined:
    May 18, 2014
    Messages:
    2,287
    Likes Received:
    2,406
    Trophy Points:
    1,183
    Works :D

    [​IMG]

    [​IMG] [​IMG]

    [​IMG] [​IMG]

    Code:
    [14/07/2014-10:44:48] Blockchain is up to date.
    [14/07/2014-10:44:48] Memory pool initialized.
    [14/07/2014-10:44:48] TCP server started on port 50001
    [14/07/2014-10:44:48] SSL server started on port 50002
    [14/07/2014-10:44:48] HTTP server started.
    [14/07/2014-10:44:48] HTTPS server started.
    [14/07/2014-10:44:58] blockchain: 34177 (0.003s)
    [14/07/2014-10:47:36] SSL  xx.xxx.xx.xxx:59254 [u'n1x78ab9yURvoc2meC7W6GkWDWfYe9PNbk']  10 1.9.8.3
    [14/07/2014-10:50:28] blockchain: 34178 (0.042s)
    [14/07/2014-10:51:39] blockchain: 34179 (0.040s)
    [14/07/2014-10:52:39] blockchain: 34180 (0.038s)
    [14/07/2014-10:54:49] blockchain: 34181 (0.039s)
    [14/07/2014-10:58:29] blockchain: 34182 (0.057s)
    [14/07/2014-10:59:59] blockchain: 34183 (0.040s)
    [14/07/2014-11:02:49] blockchain: 34184 (0.037s)
    [14/07/2014-11:04:29] blockchain: 34185 (0.037s)
    [14/07/2014-11:06:29] cache: invalidating n1x78ab9yURvoc2meC7W6GkWDWfYe9PNbk
    [14/07/2014-11:07:29] cache: invalidating n1x78ab9yURvoc2meC7W6GkWDWfYe9PNbk
    [14/07/2014-11:11:19] cache: invalidating n1x78ab9yURvoc2meC7W6GkWDWfYe9PNbk
    [14/07/2014-11:11:19] blockchain: 34186 (0.054s)
    [14/07/2014-11:13:45] sent tx: 6584dca2618acd7df68d276ccc8003b0fbc193bcaf4a9894d3bd215c316a912e
    [14/07/2014-11:13:49] cache: invalidating mjFx69oLayXt8uagx2VGEsqspRY7GJ2XWP
    [14/07/2014-11:13:49] cache: invalidating n1x78ab9yURvoc2meC7W6GkWDWfYe9PNbk
    [14/07/2014-11:13:49] cache: invalidating mw3oqgzrURJhd5DKYmeGt9jxcqRU2hADTW
    [14/07/2014-11:14:49] cache: invalidating n1x78ab9yURvoc2meC7W6GkWDWfYe9PNbk
    [14/07/2014-11:14:49] cache: invalidating mw3oqgzrURJhd5DKYmeGt9jxcqRU2hADTW
    [14/07/2014-11:14:49] cache: invalidating mjFx69oLayXt8uagx2VGEsqspRY7GJ2XWP
    [14/07/2014-11:14:49] blockchain: 34187 (0.046s)
    [14/07/2014-11:17:20] blockchain: 34188 (0.040s)
     
    • Like Like x 1
  13. vertoe

    vertoe Three of Nine

    Joined:
    Mar 28, 2014
    Messages:
    2,573
    Likes Received:
    1,652
    Trophy Points:
    1,283
    Cool, mind sharing details? We could have some fun on testnet :)
     
  14. flare

    flare Administrator
    Dash Core Team Moderator

    Joined:
    May 18, 2014
    Messages:
    2,287
    Likes Received:
    2,406
    Trophy Points:
    1,183
    Sure, just need to wrap it up a bit, currently patched quick&dirty style :) Guess you are running Linux?
     
  15. vertoe

    vertoe Three of Nine

    Joined:
    Mar 28, 2014
    Messages:
    2,573
    Likes Received:
    1,652
    Trophy Points:
    1,283
    Yes.
     
  16. flare

    flare Administrator
    Dash Core Team Moderator

    Joined:
    May 18, 2014
    Messages:
    2,287
    Likes Received:
    2,406
    Trophy Points:
    1,183
    Ok, will write some kind of guide to get you started.
     
  17. flare

    flare Administrator
    Dash Core Team Moderator

    Joined:
    May 18, 2014
    Messages:
    2,287
    Likes Received:
    2,406
    Trophy Points:
    1,183
    This should get you started:

    Code:
    sudo apt-get install python-qt4 python-pip python-slowaes python-dev git pyqt4-dev-tools
    sudo pip install ecdsa pyasn1 pyasn1-modules tlslite qrcode
    sudo pip install https://github.com/darkcoinproject/xcoin-hash/archive/master.zip
    git clone https://github.com/nightlydarkcoin/electrum-drk.git
    cd electrum-drk/
    git checkout ruffcutts
    pyrcc4 icons.qrc -o gui/qt/icons_rc.py
    python electrum-drk
    There is still something odd with the server syncronization, but i haven't managed to figure out what - yet.

    Have fun.
     
    • Like Like x 1
  18. darkzero

    darkzero Member

    Joined:
    Jun 6, 2014
    Messages:
    44
    Likes Received:
    35
    Trophy Points:
    58
    I just updated repository with a small change that affect electrum.conf
    Simply use testnet=1 to use the server on testnet, use testnet=0 to switch to mainnet
     
    • Like Like x 1
  19. flare

    flare Administrator
    Dash Core Team Moderator

    Joined:
    May 18, 2014
    Messages:
    2,287
    Likes Received:
    2,406
    Trophy Points:
    1,183
    Good stuff! Is your testnet electrum server public? Would like to add it to the list of servers in the client to test multiple connections...

    I fixed the sync issues, pull from git repo to get the latest rough cut of Electrum-DRK :)

    https://github.com/nightlydarkcoin/electrum-drk

    [​IMG]


    [​IMG]
    BTW: Any ideas on the name? Electrum-DRK sounds not so cool.... Darkium?




    EDIT: I realized that there is a problem with the chain verification code, as Darkcoin is using DGW3 as retargetting algorithm. Seems i will need to port DGW3 to Python :D
     
    #19 flare, Jul 16, 2014
    Last edited by a moderator: Jul 16, 2014
  20. vertoe

    vertoe Three of Nine

    Joined:
    Mar 28, 2014
    Messages:
    2,573
    Likes Received:
    1,652
    Trophy Points:
    1,283
    Well Electrum is the name. People will look for Electrum-DRK, like this http://electrum-ltc.org/
    I wont change it. We should update the icon though.
     
  21. flare

    flare Administrator
    Dash Core Team Moderator

    Joined:
    May 18, 2014
    Messages:
    2,287
    Likes Received:
    2,406
    Trophy Points:
    1,183
    Good point, SEO is important - so we'll keep the name.

    Will ask raze if he can design a new Electrum-DRK icon for us :)
     
  22. darkzero

    darkzero Member

    Joined:
    Jun 6, 2014
    Messages:
    44
    Likes Received:
    35
    Trophy Points:
    58
    Finished setup TESTNET Electrum server, the address is 188.226.243.116
    Ports are:
    stratum_tcp_port = 50001
    stratum_http_port = 58081
    stratum_tcp_ssl_port = 50002
    stratum_http_ssl_port = 58082
     
  23. flare

    flare Administrator
    Dash Core Team Moderator

    Joined:
    May 18, 2014
    Messages:
    2,287
    Likes Received:
    2,406
    Trophy Points:
    1,183
    Hmm, does not work for me - not connecting to any port. Down for maintenance?
     
  24. darkzero

    darkzero Member

    Joined:
    Jun 6, 2014
    Messages:
    44
    Likes Received:
    35
    Trophy Points:
    58
    Please try again, had to restart.

    I noticed that the confirmations in the Electrum Wallet are different/wrong from the standard wallet.
    Also, details of a transaction doesn't work, getting this error

    Traceback (most recent call last):
    File "/electrum-drk-client/electrum-drk/gui/qt/main_window.py", line 528, in <lambda>
    menu.addAction(_("Details"), lambda: self.show_transaction(self.wallet.transactions.get(tx_hash)))
    File "/electrum-drk-client/electrum-drk/gui/qt/main_window.py", line 536, in show_transaction
    d = transaction_dialog.TxDialog(tx, self)
    File "/electrum-drk-client/electrum-drk/gui/qt/transaction_dialog.py", line 45, in __init__
    tx_dict = tx.as_dict()
    File "/electrum-drk-client/electrum-drk/lib/transaction.py", line 844, in as_dict
    "complete":self.is_complete()
    File "/electrum-drk-client/electrum-drk/lib/transaction.py", line 684, in is_complete
    s, r = self.signature_count()
    File "/electrum-drk-client/electrum-drk/lib/transaction.py", line 677, in signature_count
    signatures = filter(lambda x: x is not None, txin['signatures'])
    KeyError: 'signatures'
     
  25. flare

    flare Administrator
    Dash Core Team Moderator

    Joined:
    May 18, 2014
    Messages:
    2,287
    Likes Received:
    2,406
    Trophy Points:
    1,183
    Works now, thanks!

    Yep, the client is using the litecoin retarget algorithm, and therefore is not able to stay in sync with the server. I need to port DGW3 to Python first :D

    This works for me - are you doing something special about the transaction?

    [​IMG]
     
  26. darkzero

    darkzero Member

    Joined:
    Jun 6, 2014
    Messages:
    44
    Likes Received:
    35
    Trophy Points:
    58
    Ok well let me know if i can be of any help.

    It's a mined transaction like this one:

    Status: 18 confirmations
    Date: 16/07/14 18:20
    Source: Generated
    Credit: 5.00 DRK (matures in 102 more blocks)
    Net amount: 0.00 DRK
    Transaction ID: 0bc2c06febbb4210aed91d687b56a95e2bd4767ddeb3dbadc8227e8305df38b2

    Generated coins must mature 120 blocks before they can be spent. When you generated this block, it was broadcast to the network to be added to the block chain. If it fails to get into the chain, its state will change to "not accepted" and it won't be spendable. This may occasionally happen if another node generates a block within a few seconds of yours.
     
  27. flare

    flare Administrator
    Dash Core Team Moderator

    Joined:
    May 18, 2014
    Messages:
    2,287
    Likes Received:
    2,406
    Trophy Points:
    1,183
    Maybe that's the root cause of this error, need to dig into the code to check if coinbase transactions are handled differently.
     
  28. raze

    raze King of the Morlocks
    Foundation Member Masternode Owner/Operator

    Joined:
    Mar 9, 2014
    Messages:
    337
    Likes Received:
    372
    Trophy Points:
    233
    Dash Address:
    Xtrdw361DvoyDhxL5XoeAvTxTPvM4dXuLW
    [​IMG]

    [​IMG]

    [​IMG]
     
    • Like Like x 5
  29. flare

    flare Administrator
    Dash Core Team Moderator

    Joined:
    May 18, 2014
    Messages:
    2,287
    Likes Received:
    2,406
    Trophy Points:
    1,183
    raze: This is awesome, you can read my mind :)

    Already registered http://electrum-drk.org and will setup the website today :)
     
    • Like Like x 3
  30. flare

    flare Administrator
    Dash Core Team Moderator

    Joined:
    May 18, 2014
    Messages:
    2,287
    Likes Received:
    2,406
    Trophy Points:
    1,183
    May i ask for a 256x256 and 128x128 version of this, too? :)