Bitcoin Forum
June 19, 2024, 02:54:39 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: How does one run a wallet on a server?  (Read 942 times)
Nullu (OP)
Hero Member
*****
Offline Offline

Activity: 532
Merit: 500


View Profile
September 20, 2014, 05:26:49 PM
 #1

I've done a fair bit of PHP scripting using the jsonRPCCLIENT library, but I've always ran my scripts locally. My intention is to run this for altcoins, not necessarily have a bitcoind command-line to work with, but will have to work with an open wallet.

What do I need to take into consideration? Is there a server mode for wallets? Any help would be appreciated. I'm pretty new to running wallets on servers.

BTC - 14kYyhhWZwSJFHAjNTtyhRVSu157nE92gF
cr1776
Legendary
*
Offline Offline

Activity: 4074
Merit: 1303


View Profile
September 20, 2014, 05:38:04 PM
 #2

There are a lot of security considerations. A few are discussed here:

https://bitcointalk.org/index.php?topic=176766.0
https://bitcointalk.org/index.php?topic=524984.0

A low value alt is a good way to test things.

:-)
Nullu (OP)
Hero Member
*****
Offline Offline

Activity: 532
Merit: 500


View Profile
September 20, 2014, 06:14:47 PM
 #3

There are a lot of security considerations. A few are discussed here:

https://bitcointalk.org/index.php?topic=176766.0
https://bitcointalk.org/index.php?topic=524984.0

A low value alt is a good way to test things.

:-)

It sounds like I need to be more concerned about protecting my wallet from the host providers, rather than users of my service. I can protect against SQL injection. I can encrypt database data, but I don't see how I could protect the wallet from the host provider. If the wallet is going to be sending coins, then it's going to have to be unlocked. Even if I keep it locked and only unlock it when needed, it will still be vulnerable.

BTC - 14kYyhhWZwSJFHAjNTtyhRVSu157nE92gF
cr1776
Legendary
*
Offline Offline

Activity: 4074
Merit: 1303


View Profile
September 21, 2014, 12:00:58 AM
 #4

Protecting from host, protecting from users, protecting from outside attackers are all considerations.  It isn't something to take lightly, cold storage is a consideration for a majority of the coins.

VPS can be a problem too.  One host wasn't erasing the disk space between VPS sessions for example.  You have to worry about hypervisor issues etc.  A lot also depends on what attacks you are trying to prevent.  E.g. if this is on a coin with a total market cap of $1.00 then it really doesn't matter much.

Here are a few more threads, there have been a number of discussions which should help to start.  Experience will be key though:
https://bitcointalk.org/index.php?topic=106339.0
https://bitcointalk.org/index.php?topic=27250.0
Nullu (OP)
Hero Member
*****
Offline Offline

Activity: 532
Merit: 500


View Profile
September 21, 2014, 12:47:19 PM
 #5

While security is very important, it doesn't quite answer my question.

Right now, I'm running my wallet on a windows machine. How do I run a wallet on a webhost if it's windows only?

BTC - 14kYyhhWZwSJFHAjNTtyhRVSu157nE92gF
Dare
Hero Member
*****
Offline Offline

Activity: 508
Merit: 500


Techwolf on #bitcoin and Reddit


View Profile WWW
September 23, 2014, 12:39:04 AM
 #6

All you'll need for a server wallet is bitcoind (or the altcoin's equivalent), which is cross-platform. It's the backend of the Qt wallet you're probably used to, so it's pretty much the same aside from its lack of a GUI (since it's a daemon, and therefore necessarily headless).

However, don't forget about the security concerns; I suggest encrypting the wallet and manually entering the password when you run your scripts, and carefully validating any user input, though if you're working with a low-value altcoin it may not be as important to you. I made a small altcoin to play with a while back, it has no value at the moment and probably never will so I didn't implement too much in the way of security; if you're preparing for something more important, you should spend more time on it accordingly.

BTC: 1M8oUcBnkRDEhWWgV8ZXLTB6p1mgnejVbX
How Forum Activity Works
Bitcointalk Forum Rules
|
|
|
Firstbits (lucky vanitygen): 1WoLfRUGDx1
How Forum Trust Works
Bitcoin Source Code
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!