Author

Topic: Working with encrypted remote wallet over PHP? (Read 1025 times)

member
Activity: 90
Merit: 10
November 27, 2013, 08:38:24 AM
#10
i seem to have been wrong
it seems like you can generate new addresses without unlocking with bitcoind
it's just bitcoin-qt that asks for a password for that

ok is decrypting only necessary only when sending money with bitcoind?
member
Activity: 90
Merit: 10
while it's unlocked for the timeout time everyone from the host  can take it right?

and seems like it needs to be unlocked for generating new addresses too, so chances are it will be unlocked good amount of the time
did i get it right?


if that's so, encrypting it, makes it only a tiny bit harder for someone from the host to take it, right?
newbie
Activity: 56
Merit: 0
wait? why intermediate?
i can't just give it commands over php from the site?
not really sure i understand Sad

Assuming you're using the jsonRPCClient class and have an object of the class, you can call whatever method you want by $bitcoin->methodhere('param1', 'param2');
member
Activity: 90
Merit: 10
wait? why intermediate?
i can't just give it commands over php from the site?
not really sure i understand Sad
newbie
Activity: 48
Merit: 0
site should connect to intermediate which in turn issues commands to bitcoind:

site connects to:

intermediate (either on separate or bitcoind server): sanitize inputs (reject sending more than x BTC for instance) and issue walletunlock

bitcoind
member
Activity: 90
Merit: 10
i'm passsing them through array
ok if it's that simple i'll play a bit, but still ready to use code would have been better Smiley
member
Activity: 98
Merit: 10
nearly dead

is there a sample php code that does that?

How do you currently use RPC through PHP ? All you do is use the walletpassphrase the same way you use other commands, passing the password you used to encrypt the wallet and a number of seconds that specifies for how long the wallet will stay decrypted.
member
Activity: 90
Merit: 10
nah, don't worry i'm just learning Smiley

is there a sample php code that does that?
member
Activity: 98
Merit: 10
nearly dead
For security reasons the bitcoind and wallet are on separate server from the site.
The communication between the site and bitcoind is over SSL RPC.
php on the site side

Now I would like to encrypt the wallet, but then how do i remotely decrypt it to send money?
to be honest i really don't have idea how this would work Sad

I really hope you are not running any service, this is very basic usage.

First you unlock the wallet, then do the operation you want. Check out the walletpassphrase command.
member
Activity: 90
Merit: 10
For security reasons the bitcoind and wallet are on separate server from the site.
The communication between the site and bitcoind is over SSL RPC.
php on the site side

Now I would like to encrypt the wallet, but then how do i remotely decrypt it to send money?
to be honest i really don't have idea how this would work Sad
Jump to: