Bitcoin Forum
December 09, 2016, 01:32:24 PM *
News: To be able to use the next phase of the beta forum software, please ensure that your email address is correct/functional.
 
   Home   Help Search Donate Login Register  
Pages: [1]
  Print  
Author Topic: [Electrum] remote wallets  (Read 2292 times)
ThomasV
Legendary
*
Offline Offline

Activity: 1722



View Profile WWW
February 22, 2012, 05:06:44 PM
 #1

Electrum 0.41 has support for remote wallets.
With this you can generate addresses on a website without leaving the private keys on the server.

This is possible because Electrum uses a "type 2" deterministic wallet;
this means that it is possible to generate new addresses without the wallet seed.

Electrum 0.41 includes two new files:
*remote_wallet.py : a script that is run on a remote server and can be queried with jsonrpc
*remote.php : An example in php. See it live here: http://ecdsa.org/remote.php

Here is how to create and use a remote wallet:

On your local machine, create a new wallet, and create a neutralized copy (without seed):
Code:
$ ./electrum -w mywallet create
$ ./electrum -w mywallet seed | awk '{print $1}'> seedfile
$ cat mywallet | sed "s/`cat seedfile`//g" > neutralized_wallet
Copy the neutralized_wallet to your webserver.
On your webserver, edit the configuration variables in remote_wallet.py (username, password, wallet path).
Then, start the script:
Code:
$ nohup python remote_wallet.py > /var/log/remote_wallet.log &
On your local machine, start Electrum with the --remote option:
Code:
$ ./electrum -w wallet --remote=http://foo:bar@myserver.org:8444
Your local wallet will be synchronized with the remote wallet.
If you visit remote.php on your server, you can create new adresses in the remote wallet.
Everytime a new address is created on the remote wallet, it will show up in the local wallet.

Note that the remote wallet does not need to be connected to an Electrum server.
All this script does is generate new addresses, and tell your local wallet how many it generated.

Electrum: the convenience of a web wallet, without the risks
1481290344
Hero Member
*
Offline Offline

Posts: 1481290344

View Profile Personal Message (Offline)

Ignore
1481290344
Reply with quote  #2

1481290344
Report to moderator
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
1481290344
Hero Member
*
Offline Offline

Posts: 1481290344

View Profile Personal Message (Offline)

Ignore
1481290344
Reply with quote  #2

1481290344
Report to moderator
finway
Hero Member
*****
Offline Offline

Activity: 714


View Profile
February 23, 2012, 07:46:58 AM
 #2

That's cool.

Pages: [1]
  Print  
 
Jump to:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!