Bitcoin Forum
April 30, 2024, 05:57:00 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: [Electrum] remote wallets  (Read 2639 times)
ThomasV (OP)
Legendary
*
Offline Offline

Activity: 1896
Merit: 1353



View Profile WWW
February 22, 2012, 05:06:44 PM
Merited by DireWolfM14 (1)
 #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
1714499820
Hero Member
*
Offline Offline

Posts: 1714499820

View Profile Personal Message (Offline)

Ignore
1714499820
Reply with quote  #2

1714499820
Report to moderator
1714499820
Hero Member
*
Offline Offline

Posts: 1714499820

View Profile Personal Message (Offline)

Ignore
1714499820
Reply with quote  #2

1714499820
Report to moderator
In order to achieve higher forum ranks, you need both activity points and merit points.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
finway
Hero Member
*****
Offline Offline

Activity: 714
Merit: 500


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

That's cool.

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!