Bitcoin Forum

Bitcoin => Electrum => Topic started by: crazy_rabbit on January 27, 2013, 11:31:24 PM



Title: Possible to run Electrum for Web Apps instead of Bitcoind?
Post by: crazy_rabbit on January 27, 2013, 11:31:24 PM
Would it be possible to use a local electrum client as the backend for a web app and connect to it similar to how one would normally connect to bitcoin via RPC?

I was thinking about the idea of hosting companies offering Bitcoin backend like they offer mysql and php. It would be interesting if your hosting account came with an electrum server that you didn't need to worry about.


Title: Re: Possible to run Electrum for Web Apps instead of Bitcoind?
Post by: btcven on January 28, 2013, 03:28:33 AM
You can use an Electrum instance by restoring from your Master Public Key and have http://acceptbit.com/ set to create receiving addresses for payments.

Then have the Electrum client with the seed in another PC, away from hackers that want to get into your precious server which only has an Electrum instance.


Title: Re: Possible to run Electrum for Web Apps instead of Bitcoind?
Post by: crazy_rabbit on January 28, 2013, 03:19:09 PM
I was thinking more like an electrum client that came preinstalled with hosting plans, with the server being run by the hosting provider allowing all their users to have a secure bitcoin backend.

Think of how for example how hosting companies have control panels that allow users to install things via script rather easily (For example, one click wordpress installations) could not there be "one click" bitcoin merchant services? Or one click secure wallets for users? If an instance of electrum client could be make to work in the browser, then you could easilly set up any number of bitcoin applications without needing to deal with securing the server or worrying about something like the linode password reset.


Title: Re: Possible to run Electrum for Web Apps instead of Bitcoind?
Post by: BkkCoins on February 03, 2013, 01:35:47 AM
There is a script in the Electrum github for managing a payment wallet on a server. I also wrote one in my repo that handles payments using a mysql database. Both use the MPK to establish a watch-only wallet - payments can be received but not sent. The MPK allows generating any number of addresses as needed by a web site for accepting payments.



Title: Re: Possible to run Electrum for Web Apps instead of Bitcoind?
Post by: Vitalik Buterin on February 05, 2013, 11:48:28 AM
You can use an Electrum instance by restoring from your Master Public Key and have http://acceptbit.com/ set to create receiving addresses for payments.

Then have the Electrum client with the seed in another PC, away from hackers that want to get into your precious server which only has an Electrum instance.

Problem with that is the Acceptbit doesn't have an API (as least back when I looked at it it didn't), so it's hard to work with. If someone could write a simple address generator that just takes in a master public key it would be nice (I might end up doing that myself at some point).


Title: Re: Possible to run Electrum for Web Apps instead of Bitcoind?
Post by: btcven on February 05, 2013, 12:24:30 PM
You can use an Electrum instance by restoring from your Master Public Key and have http://acceptbit.com/ set to create receiving addresses for payments.

Then have the Electrum client with the seed in another PC, away from hackers that want to get into your precious server which only has an Electrum instance.

Problem with that is the Acceptbit doesn't have an API (as least back when I looked at it it didn't), so it's hard to work with. If someone could write a simple address generator that just takes in a master public key it would be nice (I might end up doing that myself at some point).

Check the acceptbit code at GitHub https://github.com/kangasbros/electrumpos maybel you'll find it easier to adapt it to your needs rather than looking for a tool to accomplish what you want.


Title: Re: Possible to run Electrum for Web Apps instead of Bitcoind?
Post by: BkkCoins on February 05, 2013, 02:44:10 PM
You can use an Electrum instance by restoring from your Master Public Key and have http://acceptbit.com/ set to create receiving addresses for payments.

Then have the Electrum client with the seed in another PC, away from hackers that want to get into your precious server which only has an Electrum instance.

Problem with that is the Acceptbit doesn't have an API (as least back when I looked at it it didn't), so it's hard to work with. If someone could write a simple address generator that just takes in a master public key it would be nice (I might end up doing that myself at some point).
That's what the server script I mentioned above does. It generates addresses from the MPK and it monitors the addresses to notify of a payment. My script does the same but uses a mysql table rather than json rpc client/server.

Look in the scripts directory on github for the merhcant.py script.