Bitcoin Forum
October 20, 2018, 04:34:30 PM *
News: Make sure you are not using versions of Bitcoin Core other than 0.17.0 [Torrent], 0.16.3, 0.15.2, or 0.14.3. More info.
 
   Home   Help Search Donate Login Register  
Pages: [1]
  Print  
Author Topic: Possible to run Electrum for Web Apps instead of Bitcoind?  (Read 1899 times)
crazy_rabbit
Legendary
*
Offline Offline

Activity: 1176
Merit: 1000


RUM AND CARROTS: A PIRATE LIFE FOR ME


View Profile
January 27, 2013, 11:31:24 PM
 #1

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.

more or less retired.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
1540053270
Hero Member
*
Offline Offline

Posts: 1540053270

View Profile Personal Message (Offline)

Ignore
1540053270
Reply with quote  #2

1540053270
Report to moderator
btcven
Hero Member
*****
Offline Offline

Activity: 717
Merit: 500


Bitcoin Venezuela


View Profile WWW
January 28, 2013, 03:28:33 AM
 #2

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.

Admin: rdymac (PGP) | contacto@bitcoinvenezuela.com | @cafebitcoin | Electrum, lightweight bitcoin client
If I've been helpful tip me a coffee! Cheesy1rdymachKZpA9pTYHYHMYZjfjnoBW6B3k Bitrated user: rdymac.
crazy_rabbit
Legendary
*
Offline Offline

Activity: 1176
Merit: 1000


RUM AND CARROTS: A PIRATE LIFE FOR ME


View Profile
January 28, 2013, 03:19:09 PM
 #3

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.

more or less retired.
BkkCoins
Hero Member
*****
Offline Offline

Activity: 784
Merit: 1000


firstbits:1MinerQ


View Profile WWW
February 03, 2013, 01:35:47 AM
 #4

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.


Vitalik Buterin
Sr. Member
****
Offline Offline

Activity: 331
Merit: 309


View Profile
February 05, 2013, 11:48:28 AM
 #5

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).

Argumentum ad lunam: the fallacy that because Bitcoin's price is rising really fast the currency must be a speculative bubble and/or Ponzi scheme.
btcven
Hero Member
*****
Offline Offline

Activity: 717
Merit: 500


Bitcoin Venezuela


View Profile WWW
February 05, 2013, 12:24:30 PM
 #6

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.

Admin: rdymac (PGP) | contacto@bitcoinvenezuela.com | @cafebitcoin | Electrum, lightweight bitcoin client
If I've been helpful tip me a coffee! Cheesy1rdymachKZpA9pTYHYHMYZjfjnoBW6B3k Bitrated user: rdymac.
BkkCoins
Hero Member
*****
Offline Offline

Activity: 784
Merit: 1000


firstbits:1MinerQ


View Profile WWW
February 05, 2013, 02:44:10 PM
 #7

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.

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!