BitShares Forum

Other => Graveyard => MemoryCoin => Topic started by: KillerByte on February 09, 2014, 10:17:38 pm

Title: Electrum for Memorycoin
Post by: KillerByte on February 09, 2014, 10:17:38 pm
Ths has never been done by any other cryptocurrency community before...

...and here it is!

That is right! Electrum (https://electrum.org/), a popular Bitcoin thin client, has been ported for Memorycoin! It is ultra secure, lightweight (no blockchain download), and user-friendly. It can be used as an offline wallet. I have been using it as my offline wallet!

DOWNLOAD:

Electrum Client: https://github.com/KillerByte/electrum/archive/master.zip
Electrum Server: https://github.com/KillerByte/electrum-server/archive/master.zip

MAC (curtosy of s4l1h:

http://www.memorycoin.org/downloads/electrum-mmc-macosx.dmg

GITHUB SOURCE:

Electrum Client: https://github.com/KillerByte/electrum
Electrum Server: https://github.com/KillerByte/electrum-server

If you would like to use electrum, all you need is the electrum client

Getting Started Tutorials: https://electrum.org/tutorials.html

Let me know of any problems on this thread

To run an electrum server, see the howto guide: https://github.com/KillerByte/electrum-server/blob/master/HOWTO.md

I have done my best to update documentation appropriately

Let me know of any problems.
Title: Re: Electrum for Memorycoin
Post by: s4l1h on February 10, 2014, 12:14:16 am
Very good.
Title: Re: Electrum for Memorycoin
Post by: ManeBjorn on February 10, 2014, 12:42:16 am
Excellent work!
 :)
Title: Re: Electrum for Memorycoin
Post by: KillerByte on February 10, 2014, 02:02:05 am
Glad to hear people like it!

...but seriously, servers are needed. The instructions are on the first post.
Title: Re: Electrum for Memorycoin
Post by: ManeBjorn on February 10, 2014, 02:55:09 am
If I had a motherboard for my AMD Phenom X4 9750 I would do it.  The mainboard blew a couple weeks ago so I am down to my laptop.  I don't have the money to replace the MB right now.


Glad to hear people like it!

...but seriously, servers are needed. The instructions are on the first post.
Title: Re: Electrum for Memorycoin
Post by: itsik78 on February 10, 2014, 08:47:03 am
Great job!!!
These are the things that could raise our coin's value.
I'll test it and start releasing some posts about it.
Title: Re: Electrum for Memorycoin
Post by: reorder on February 11, 2014, 01:50:08 am
By far the best that was ever done for the coin. Voted my first time.
Title: Re: Electrum for Memorycoin
Post by: KillerByte on February 12, 2014, 05:55:52 am
Thanks reorder!

At long last, we should have new nodes coming into existance for the wallet software hopefully by tomorrow. Emre has graciously provided 2 additional nodes, and BTChris has mentioned he will run a server node as well.

Nobody has reported any problems, which is good. The 2 nodes I run have been unbelievably stable. Free Trade unfortunately has not given the wallet a try yet, but I am sure he will give it some publicity eventually.
Title: Re: Electrum for Memorycoin
Post by: FreeTrade on February 12, 2014, 06:33:55 am
Yes, I'm very excited about it! I'm going to try it on Windows. :) Thanks KB, really excellent start to your CNOship!
Title: Re: Electrum for Memorycoin
Post by: bgaer on February 12, 2014, 09:17:08 am
what are the suggested specs for a host machine?   I work for a major hosting company - so I get a very steep discount.  If it can run in a shared hosting environment its about $1 a month for high end shared hosting. 

Virtual and Dedicated are a bit more costly - but depending on bandwidth I am pretty sure I can get it to happen.

Just let me know what type of hardware/bandwidth is required - if it will run on a shared server I can spin up a few of them pretty quick.

Biran
Title: Re: Electrum for Memorycoin
Post by: KillerByte on February 12, 2014, 02:33:19 pm
what are the suggested specs for a host machine?   I work for a major hosting company - so I get a very steep discount.  If it can run in a shared hosting environment its about $1 a month for high end shared hosting. 

Virtual and Dedicated are a bit more costly - but depending on bandwidth I am pretty sure I can get it to happen.

Just let me know what type of hardware/bandwidth is required - if it will run on a shared server I can spin up a few of them pretty quick.

Biran

all that is needed is to run the memorycoind daemon and a little bit of patience to set up really, all that it does is indexes all transactions and passes data along to the electrum clients.

just so long as you have a static IP and basic bandwidth (I have tested 1gb/s), you could run the server easily.

ALSO...

Default servers have been updated. Please update your clients. Your wallet money should not be impacted in any way
Title: Re: Electrum for Memorycoin
Post by: barwizi on February 12, 2014, 05:17:37 pm
can anyone confirm that it is working?
Title: Re: Electrum for Memorycoin
Post by: emre on February 12, 2014, 05:45:23 pm
can anyone confirm that it is working?

I am using it, working like a charm.

thanks KB,

we have 5 nodes right now, please considering your spare servers for additional electrum nodes.
Title: Re: Electrum for Memorycoin
Post by: BTChris on February 12, 2014, 11:13:08 pm
ELECTRUM ON WINDOWS

1) open setup.py with text editor and change line 18 from
Code: [Select]
usr_share = '/usr/share'to
Code: [Select]
usr_share = 'C:\Users\<YOUR USER NAME>\AppData\Roaming\Electrum-MMC'
2) Download & install python

3) open cmd line and go to your electrum directory

4) Depending on where your python is installed, execute 
Code: [Select]
C:\Python27\python.exe .\setup.py install
5) Download PyQT4 from http://www.riverbankcomputing.co.uk/software/pyqt/download
Select the correct PyQt4 Download based on your installed python version! 32 vs 64 Bit is based on your python version, not OS!

6) Install PyQt4; on "choose components" screen, select at least "Qt runtime" and "developer tools"

7) open cmd line and go to your electrum directory

8 ) Depending on where your python is installed, execute 
Code: [Select]
C:\Python27\Lib\site-packages\PyQt4\pyrcc4.exe icons.qrc -o gui/qt/icons_rc.py
9) Start Electrum GUI with
Code: [Select]
C:\Python27\python.exe .\electrum
Title: Re: Electrum for Memorycoin
Post by: KillerByte on February 13, 2014, 03:00:46 am
ELECTRUM ON WINDOWS

1) open setup.py with text editor and change line 18 from
Code: [Select]
usr_share = '/usr/share'to
Code: [Select]
usr_share = 'C:\Users\<YOUR USER NAME>\AppData\Roaming\Electrum-MMC'
2) Download & install python

3) open cmd line and go to your electrum directory

4) Depending on where your python is installed, execute 
Code: [Select]
C:\Python27\python.exe .\setup.py install
5) Download PyQT4 from http://www.riverbankcomputing.co.uk/software/pyqt/download
Select the correct PyQt4 Download based on your installed python version! 32 vs 64 Bit is based on your python version, not OS!

6) Install PyQt4; on "choose components" screen, select at least "Qt runtime" and "developer tools"

7) open cmd line and go to your electrum directory

8 ) Depending on where your python is installed, execute 
Code: [Select]
C:\Python27\Lib\site-packages\PyQt4\pyrcc4.exe icons.qrc -o gui/qt/icons_rc.py
9) Start Electrum GUI with
Code: [Select]
C:\Python27\python.exe .\electrum

Hey, is it possible if someone with a little technical background, after getting this to work, could use the py2exe application (http://py2exe.org/) to simplify all this into a single, standalone executabe? Like they have on the original electrum download page.

I will hold off on updating the instructions until we know for sure.

Thanks BTChris for the detailed instructions, which I am not good at :)
Title: Re: Electrum for Memorycoin
Post by: Armchair Miner on February 13, 2014, 05:04:29 am
This sounds excellent. You're way ahead of me, I don't even have a bitcoin offline wallet!

So far electrum seems the easiest way to create offline wallets. Another site I looked at (for bitcoin offline wallet) couldn't even run with less than X Gbyte of memory.
Title: Re: Electrum for Memorycoin
Post by: bgaer on February 13, 2014, 05:52:24 am
I will be back home (traveling at the moment) Friday or Saturday night - as soon as I am back I will setup a shared hosting account at Go Daddy and if I am able to get it working well - I can setup about 15 more.   

Does it matter what host name I use?  I have a few domains  that I really dont care much about that I can donate to the cause if host-name is not important.


Thanks,

Brian aer
Title: Re: Electrum for Memorycoin
Post by: KillerByte on February 13, 2014, 06:11:40 am
I will be back home (traveling at the moment) Friday or Saturday night - as soon as I am back I will setup a shared hosting account at Go Daddy and if I am able to get it working well - I can setup about 15 more.   

Does it matter what host name I use?  I have a few domains  that I really dont care much about that I can donate to the cause if host-name is not important.


Thanks,

Brian aer

15 nodes? The original Electrum network only has 8 or so... :)

Wow, that is... unbelievable.

The hostname is not important, just so long as the hosting is reliable.
Title: Re: Electrum for Memorycoin
Post by: FreeTrade on February 13, 2014, 10:29:45 am
Hey, is it possible if someone with a little technical background, after getting this to work, could use the py2exe application (http://py2exe.org/) to simplify all this into a single, standalone executabe? Like they have on the original electrum download page.

This is a great idea. Is there a similar packager for the Mac?

Also the install for Android looks very daunting. Is it achievable in theory to package everything required into a single .adt - or even distribute through the Play store?
Title: Re: Electrum for Memorycoin
Post by: KillerByte on February 13, 2014, 01:34:50 pm
Hey, is it possible if someone with a little technical background, after getting this to work, could use the py2exe application (http://py2exe.org/) to simplify all this into a single, standalone executabe? Like they have on the original electrum download page.

This is a great idea. Is there a similar packager for the Mac?

Also the install for Android looks very daunting. Is it achievable in theory to package everything required into a single .adt - or even distribute through the Play store?

For Mac, Yep, I believe it says I'm the package description on the front of the package repository.

Android install depends on a library Google does not allow on the play store, so no.
Title: Re: Electrum for Memorycoin
Post by: barwizi on February 13, 2014, 03:08:16 pm
Hey, is it possible if someone with a little technical background, after getting this to work, could use the py2exe application (http://py2exe.org/) to simplify all this into a single, standalone executabe? Like they have on the original electrum download page.

This is a great idea. Is there a similar packager for the Mac?

Also the install for Android looks very daunting. Is it achievable in theory to package everything required into a single .adt - or even distribute through the Play store?

For Mac, Yep, I believe it says I'm the package description on the front of the package repository.

Android install depends on a library Google does not allow on the play store, so no.

what does this part do? self.headers_url = 'http://xpool.xram.co/blockchain_headers.bin'

when i use the link in a browser it attempts a download, the websit it'self is a XPM pool
Title: Re: Electrum for Memorycoin
Post by: jernau on February 13, 2014, 08:46:34 pm
Hey, is it possible if someone with a little technical background, after getting this to work, could use the py2exe application (http://py2exe.org/) to simplify all this into a single, standalone executabe? Like they have on the original electrum download page.

This is a great idea. Is there a similar packager for the Mac?

Also the install for Android looks very daunting. Is it achievable in theory to package everything required into a single .adt - or even distribute through the Play store?

For Mac, Yep, I believe it says I'm the package description on the front of the package repository.

Android install depends on a library Google does not allow on the play store, so no.

Which library is responsible for that?

Maybe you can explore fdroid as an alternative to Google Play.

Sent from my GT-I5700 using Tapatalk 2

Title: Re: Electrum for Memorycoin
Post by: KillerByte on February 13, 2014, 11:26:46 pm
Quote
what does this part do? self.headers_url = 'http://xpool.xram.co/blockchain_headers.bin'

when i use the link in a browser it attempts a download, the websit it'self is a XPM pool

The domain itself is an XPM pool I run, but it also hosts a download for some preliminary blocks to be added to the client database, to speed sync.

Quote
Which library is responsible for that?

Maybe you can explore fdroid as an alternative to Google Play.

FDroid is an idea... but does it support python? That is the big barrier here.
Title: Re: Electrum for Memorycoin
Post by: toonces on February 14, 2014, 05:06:48 am
Quote
'http://xpool.xram.co/blockchain_headers.bin'
Is this the same with bootstrap.dat ?
So you can load it with memorycoind -loadblock ?
Title: Re: Electrum for Memorycoin
Post by: KillerByte on February 14, 2014, 05:25:09 am
Quote
'http://xpool.xram.co/blockchain_headers.bin'
Is this the same with bootstrap.dat ?
So you can load it with memorycoind -loadblock ?


no, its just a pregenerated file made by the servers which can be directly downloaded to the client to speed up the block header download.

bootstrap.dat? No, and you dont load it in memorycoind, it only works with the electrum wallet.
Title: Re: Electrum for Memorycoin
Post by: jernau on February 14, 2014, 07:43:59 pm
Quote
what does this part do? self.headers_url = 'http://xpool.xram.co/blockchain_headers.bin'

when i use the link in a browser it attempts a download, the websit it'self is a XPM pool

The domain itself is an XPM pool I run, but it also hosts a download for some preliminary blocks to be added to the client database, to speed sync.

Quote
Which library is responsible for that?

Maybe you can explore fdroid as an alternative to Google Play.

FDroid is an idea... but does it support python? That is the big barrier here.

 https://f-droid.org/wiki/page/FAQ_-_App_Developers

See above. I don't see an issue as long as the fdroid guys can compile from your source and you satisfy the licensing constraints. 

Sent from my GT-I5700 using Tapatalk 2

Title: Re: Electrum for Memorycoin
Post by: Banch on February 16, 2014, 12:55:14 am
Hi there. This sounds like a good idea.

How much bandwidth one needs to run this?  I have a spare dedicated server with 8 core, 24gb ram on 1GBIT line.

I might be able to set some nodes.
Title: Re: Electrum for Memorycoin
Post by: KillerByte on February 17, 2014, 12:57:37 am
Hi there. This sounds like a good idea.

How much bandwidth one needs to run this?  I have a spare dedicated server with 8 core, 24gb ram on 1GBIT line.

I might be able to set some nodes.

Not very much... just reliability. I think we are OK on nodes for right now though, so hold off.
Title: Re: Electrum for Memorycoin
Post by: s4l1h on February 18, 2014, 03:59:16 am
MemoryCoin Electrum for Mac Os X

http://www.memorycoin.org/downloads/electrum-mmc-macosx.dmg

Tested: 10.8.5

(http://gyazo.com/eeb2c16f9eaf91dad0ebad356db4fb12.png)
Title: Re: Electrum for Memorycoin
Post by: KillerByte on February 18, 2014, 11:16:59 pm
First post has been updated with the Mac version, thanks s4l1h.
Title: Re: Electrum for Memorycoin
Post by: SlyWax on March 24, 2014, 09:39:15 pm
On ubuntu I had a problem about : "Error: Could not import icons_rc.py, please generate it with: 'pyrcc4 icons.qrc -o gui/qt/icons_rc.py'"
So I had to create it and relaunch the setup install.

Here is how to do it :
You may have to install python-qt4 and pip:
Code: [Select]
sudo apt-get install python-qt4 python-pip
cd to the directory where you unzipped the https://github.com/KillerByte/electrum/archive/master.zip
Code: [Select]
pyrcc4 icons.qrc -o gui/qt/icons_rc.py
sudo python setup.py install

Then type electrum to run it
Title: Re: Electrum for Memorycoin
Post by: splat44 on April 01, 2014, 10:52:28 pm
ELECTRUM ON WINDOWS

1) open setup.py with text editor and change line 18 from
Code: [Select]
usr_share = '/usr/share'to
Code: [Select]
usr_share = 'C:\Users\<YOUR USER NAME>\AppData\Roaming\Electrum-MMC'
2) Download & install python

3) open cmd line and go to your electrum directory

4) Depending on where your python is installed, execute 
Code: [Select]
C:\Python27\python.exe .\setup.py install
5) Download PyQT4 from http://www.riverbankcomputing.co.uk/software/pyqt/download
Select the correct PyQt4 Download based on your installed python version! 32 vs 64 Bit is based on your python version, not OS!

6) Install PyQt4; on "choose components" screen, select at least "Qt runtime" and "developer tools"

7) open cmd line and go to your electrum directory

8 ) Depending on where your python is installed, execute 
Code: [Select]
C:\Python27\Lib\site-packages\PyQt4\pyrcc4.exe icons.qrc -o gui/qt/icons_rc.py
9) Start Electrum GUI with
Code: [Select]
C:\Python27\python.exe .\electrum

I downloaded: https://github.com/KillerByte/electrum/archive/master.zip (https://github.com/KillerByte/electrum/archive/master.zip) and extracted client in:
c:\electrum-master and I got following:

traceback (most recent call last):
File ".\setup.py", line 5 in <module>
from setuptools import setup
ImportError: No module named as setuptools

After checking directory where I extract file, I see no setuptool anywhere!


It possible that module is named as something else or it missing!
Title: Re: Electrum for Memorycoin
Post by: KillerByte on April 01, 2014, 11:32:19 pm
yes, there is a module missing. its here... not sure how to install it on windows though. BTChris?

https://pypi.python.org/pypi/setuptools

Title: Re: Electrum for Memorycoin
Post by: splat44 on April 02, 2014, 08:15:25 pm
yes, there is a module missing. its here... not sure how to install it on windows though. BTChris?

https://pypi.python.org/pypi/setuptools

I agree we need to know how to install this in windows so setup from client does it job and without other missing things or other errors in process that is!
Title: Re: Electrum for Memorycoin
Post by: SlyWax on April 02, 2014, 11:48:01 pm
On linux MMC electrum is installed as "electrum" command line.
So it seams that it will interfere with the original bitcoin electrum !?
( althoug the wallet is safe since it is named ending with MMC )

How about rename it ?
Title: Re: Electrum for Memorycoin
Post by: robonix on April 02, 2014, 11:57:42 pm
I would really like to see this wallet available for MMC https://play.google.com/store/apps/details?id=de.schildbach.wallet (https://play.google.com/store/apps/details?id=de.schildbach.wallet)
Title: Re: Electrum for Memorycoin
Post by: KillerByte on April 03, 2014, 12:54:40 am
I would really like to see this wallet available for MMC https://play.google.com/store/apps/details?id=de.schildbach.wallet (https://play.google.com/store/apps/details?id=de.schildbach.wallet)

I know, but I have to work on other things.

I will get to it sometime soon after P2Pool is started and XRamPool XPM is updated.
Title: Re: Electrum for Memorycoin
Post by: KillerByte on April 07, 2014, 10:13:45 pm
This thread has been moved to MMC-Square: https://www.mmc-square.com/index.php/topic,33.0.html