Bitcoin Forum

Bitcoin => Development & Technical Discussion => Topic started by: wsxdrfv on April 27, 2018, 01:21:28 AM



Title: How to run seperate wallet on same server?
Post by: wsxdrfv on April 27, 2018, 01:21:28 AM
I bought server hardware from remote server provider, there installed ubuntu 16.04, bitcoin daemon.

In this situation, can I install another bitcoin and send bitcoin (for test) to each other?

How to?


Title: Re: How to run seperate wallet on same server?
Post by: RGBKey on April 27, 2018, 01:34:05 AM
I would never run a Bitcoin wallet on a VPS. There have been cases in the past where the people running the VPS have stolen money. I'd only do it unless you're doing it with a very well known provider.


Title: Re: How to run seperate wallet on same server?
Post by: starmyc on April 27, 2018, 04:43:41 AM
I bought server hardware from remote server provider, there installed ubuntu 16.04, bitcoin daemon.

In this situation, can I install another bitcoin and send bitcoin (for test) to each other?

Yes, you can. Just use a diff a different datadir & different ports for listening, using datadir, port, rpcport configuration variables.
I've already write a few bits about this there (https://bitcointalk.org/index.php?topic=3307461.msg34515601#msg34515601).


Title: Re: How to run seperate wallet on same server?
Post by: wsxdrfv on April 27, 2018, 07:07:27 AM
I would never run a Bitcoin wallet on a VPS. There have been cases in the past where the people running the VPS have stolen money. I'd only do it unless you're doing it with a very well known provider.
So VPS service provider themselves are thief? And they can see whole server's whats going on? So how much money he was stolen?


Title: Re: How to run seperate wallet on same server?
Post by: The best one on April 28, 2018, 01:58:59 PM
I bought server hardware from remote server provider, there installed ubuntu 16.04, bitcoin daemon.

In this situation, can I install another bitcoin and send bitcoin (for test) to each other?

How to?

My opimion Although many people are looking to run separate wallet on same server, very few people are aware of what types of security risks are associated with this process. The user pointed out how running  seperate wallet on same server at risk of undergoing scans to determine whether or not there is a wallet address file stored somewhere. The server will automatically reject most of these scan requests, but it is something to be aware of at all times.


Title: Re: How to run seperate wallet on same server?
Post by: Aleister Crowley on April 28, 2018, 10:05:55 PM
I would never run a Bitcoin wallet on a VPS. There have been cases in the past where the people running the VPS have stolen money. I'd only do it unless you're doing it with a very well known provider.
scammer is very vulnerable to happen if you use this method .. RGBKey I think has a lot of experience related to this and you have to learn a lot of it ... indeed in some cases a lot of losses if doing or running Bitcoin wallet on a VPS ,, but if you still want to do it ,, I think you should be ready with any risks that you may experience


Title: Re: How to run seperate wallet on same server?
Post by: bob123 on April 29, 2018, 05:48:53 PM
So VPS service provider themselves are thief? And they can see whole server's whats going on?

No, not every VPS service provider is a thief. It depends on the setup whether they can access the server or not.

But usually there is no reason to store a wallet on a VPS.
You could run a full node on the VPS and then use a wallet on your local machine and communicate with your node.

What kind of setup do you want to accomplish? There probably is a more elegant way of achieving it (without storing your wallet file on a 3rd party server).


Title: Re: How to run seperate wallet on same server?
Post by: wsxdrfv on May 03, 2018, 07:42:14 AM
So I don't understand well.

So eventually, I want to run few hundreds or more seperate some alt-coin's wallet(litecoin cloned) in same server.

How to do this?

Different rpcport, p2pport, datadir each other? If port is different, they can't each other communicate and connect, isn't it?

And if datadir is different, so then all datadir will have same block data maybe?





Title: Re: How to run seperate wallet on same server?
Post by: starmyc on May 03, 2018, 09:37:00 AM
So I don't understand well.

So eventually, I want to run few hundreds or more seperate some alt-coin's wallet(litecoin cloned) in same server.

How to do this?

Different datadir & protocol port & rpc port.


Different rpcport, p2pport, datadir each other? If port is different, they can each other communicate and connect, isn't it?

Yes.

And if datadir is different, so then all datadir will have same block data maybe?

Yes. Data files won't be shared. This will take a lot of space, and it is most likely useless to have multiple instance of the same daemon coin running on one server.


Title: Re: How to run seperate wallet on same server?
Post by: wsxdrfv on May 03, 2018, 10:39:07 AM

yes different rpcport, p2pport, datadir each other
being the port different, they can each other communicate and connect
I can't understand... if port is different, how can those wallet can communicate each other? Even if they are emerged from same source code.


Title: Re: How to run seperate wallet on same server?
Post by: HeRetiK on May 03, 2018, 01:36:54 PM
Running full nodes on a VPS is fine, but you definitely want to store the funds in cold storage.

Either implement application logic to immediately move the coins from your VPS hot wallet to cold storage, or better yet, use an xpub key to have the coins sent straight to cold storage without even touching the online server. Then fill the hot wallet from there, as required.

If you have an online server sending Bitcoins to another online server you're doing security wrong.


[...] The server will automatically reject most of these scan requests, but it is something to be aware of at all times.

Only if you set the server up accordingly. Out of the box your run-of-the-mill VPS server is a hackers-delight free-for-all all-you-can-crack buffet.


Title: Re: How to run seperate wallet on same server?
Post by: bob123 on May 04, 2018, 10:09:54 AM
I can't understand... if port is different, how can those wallet can communicate each other? Even if they are emerged from same source code.

What exactly is your concern?

You can setup wallet A at port X and wallet B at port Y on your machine.
Then use port X to access/query wallet A (and port Y for wallet B).

This works fine if you want to have several wallets (and services) on the same machine.

I might not fully understand the problem you are facing. May you elaborate it please?


Title: Re: How to run seperate wallet on same server?
Post by: wsxdrfv on May 06, 2018, 11:49:13 PM
Running full nodes on a VPS is fine, but you definitely want to store the funds in cold storage.
Either implement application logic to immediately move the coins from your VPS hot wallet to cold storage, or better yet, use an xpub key to have the coins sent straight to cold storage without even touching the online server. Then fill the hot wallet from there, as required.

How to do using [xpub key]? How to do this? How it can send coins send straight to cold hardware storage? (I want to use ledger nano s something..)


Title: Re: How to run seperate wallet on same server?
Post by: bob123 on May 07, 2018, 11:14:15 AM
How to do using [xpub key]? How to do this? How it can send coins send straight to cold hardware storage? (I want to use ledger nano s something..)

Import your xpub key into the software of your VPS.
You will be able to derive public keys (and therefore addresses to deposit to) on your VPS without needing to store the private key online.

You can get the xpub of your ledger nano s from the Bitcoin wallet (chrome) application: 'My Account' -> 'Account settings' gives you the option to export a public key.
Afterwards you will be able to derive addresses from this xpub. The actual command depends on your programming language / libary.


Title: Re: How to run seperate wallet on same server?
Post by: RGBKey on May 07, 2018, 04:59:35 PM
How to do using [xpub key]? How to do this? How it can send coins send straight to cold hardware storage? (I want to use ledger nano s something..)

Import your xpub key into the software of your VPS.
You will be able to derive public keys (and therefore addresses to deposit to) on your VPS without needing to store the private key online.

You can get the xpub of your ledger nano s from the Bitcoin wallet (chrome) application: 'My Account' -> 'Account settings' gives you the option to export a public key.
Afterwards you will be able to derive addresses from this xpub. The actual command depends on your programming language / libary.

IIRC xpub format and methods to derive segwit addresses are not yet standard yet, so if you're using segwit addresses (which is likely), it might not work.


Title: Re: How to run seperate wallet on same server?
Post by: wsxdrfv on May 09, 2018, 02:42:05 AM
How to do using [xpub key]? How to do this? How it can send coins send straight to cold hardware storage? (I want to use ledger nano s something..)

Import your xpub key into the software of your VPS.
You will be able to derive public keys (and therefore addresses to deposit to) on your VPS without needing to store the private key online.

You can get the xpub of your ledger nano s from the Bitcoin wallet (chrome) application: 'My Account' -> 'Account settings' gives you the option to export a public key.
Afterwards you will be able to derive addresses from this xpub. The actual command depends on your programming language / libary.

IIRC xpub format and methods to derive segwit addresses are not yet standard yet, so if you're using segwit addresses (which is likely), it might not work.
Yes I am using segwit address on ledger nano, so it does not have menu like above (MyAccount-> Account settings), nor xpub.


Title: Re: How to run seperate wallet on same server?
Post by: HCP on May 09, 2018, 09:17:26 AM
Yes I am using segwit address on ledger nano, so it does not have menu like above (MyAccount-> Account settings), nor xpub.
Yes it does... it's just might not be "obvious", because the default view for "Ledger Wallet Bitcoin" is to show an overview of accounts (even if you only have one)...

What you need to do is click on the account you want the XPUB for:
https://talkimg.com/images/2023/11/15/zKIMw.png


Then select the "Account Settings" option on the right:
https://talkimg.com/images/2023/11/15/zKsy9.png


Then select the "Export" option for the Extended Public Key:
https://talkimg.com/images/2023/11/15/zK3bN.png


You'll then be given the XPUB and the matching QR-Code:
https://talkimg.com/images/2023/11/15/zKvSa.png


NOTE: if your server doesn't allow you to specify the derivation path (m/49'/0'/0') you may find that it doesn't generate the same addresses as your Ledger wallet


Title: Re: How to run seperate wallet on same server?
Post by: btc_enigma on May 09, 2018, 04:57:22 PM
After you find you xpub... you can generate addresses using pycoin (https://github.com/richardkiss/pycoin) library. If you prefer API calls, you can use blockonomics API (https://www.blockonomics.co/views/api.html#payments)


Title: Re: How to run seperate wallet on same server?
Post by: Luckyji on May 13, 2018, 09:26:22 AM
If your goal is only test whether your wallet is working, i will not advice you the same wallet on same device instead use a different wallet  application altogether to send bitcoin.  But it's possible to run more than a Bitcoin client.
 


Title: Re: How to run seperate wallet on same server?
Post by: The best one on June 09, 2018, 02:06:19 PM
I think that How to run seperate wallet on same server? Today  many people are looking to run separate wallet on same server, very few people are aware of what types of security risks are associated with this process. The user pointed out how running  seperate wallet on same server at risk of undergoing scans to determine whether or not there is a wallet address file stored somewhere. The server will automatically reject most of these scan requests, but it is something to be aware of at all times.


Title: Re: How to run seperate wallet on same server?
Post by: fatihbilgin on June 13, 2018, 01:31:03 AM
You can decrypt the wallet data. That way if someone access to your machine can't use it. Hide the encryption key somewhere else and manually enter it whenever you run the wallet.


Title: Re: How to run seperate wallet on same server?
Post by: bob123 on June 13, 2018, 07:29:54 AM
You can decrypt the wallet data. That way if someone access to your machine can't use it.

I guess you mean to encrypt the wallet?



Hide the encryption key somewhere else and manually enter it whenever you run the wallet.

You would have to 'hide' the decryption key (either the same as the encryption key [symmetric encryption (https://en.wikipedia.org/wiki/Symmetric-key_algorithm)] or called private key [asymmetric encryption (https://en.wikipedia.org/wiki/Public-key_cryptography)]).

Note that this is effictively not an option since the wallet has to run all the time on the server (depending on the application).
If automated transactions are made, the wallet has to be accessable to the node/software.


Title: Re: How to run seperate wallet on same server?
Post by: fatihbilgin on June 28, 2018, 10:38:22 PM
You can decrypt the wallet data. That way if someone access to your machine can't use it.

I guess you mean to encrypt the wallet?



Hide the encryption key somewhere else and manually enter it whenever you run the wallet.

You would have to 'hide' the decryption key (either the same as the encryption key [symmetric encryption (https://en.wikipedia.org/wiki/Symmetric-key_algorithm)] or called private key [asymmetric encryption (https://en.wikipedia.org/wiki/Public-key_cryptography)]).

Note that this is effictively not an option since the wallet has to run all the time on the server (depending on the application).
If automated transactions are made, the wallet has to be accessable to the node/software.

Sorry yes i meant encrypt there.