Author

Topic: the Bitcoin "bank account" (Read 2795 times)

hero member
Activity: 695
Merit: 502
PGP: 6EBEBCE1E0507C38
March 02, 2011, 07:00:50 PM
#17
There is an android app now, once set up you can use it to send the commands to a linux box.
legendary
Activity: 1288
Merit: 1080
March 01, 2011, 05:14:46 PM
#16
That procedure should work. Though obviously you will want to switch back to the new wallet at the end of it.

Well, I would not try it on a healthy wallet though.   But I'll keep it in mind just in case...
full member
Activity: 126
Merit: 101
March 01, 2011, 05:10:27 PM
#15
That procedure should work. Though obviously you will want to switch back to the new wallet at the end of it.
legendary
Activity: 1288
Merit: 1080
March 01, 2011, 04:59:27 PM
#14
Yes in theory, no in practice. The client pregenerates batches of addresses so that you don't have to back up your wallet as often.

Ok, what about that then?

Code:

# get balance
balance=$(bitcoind getbalance)

# stop bitcoin
bitcoind stop

# rename corrupted wallet
mv .bitcoin/wallet.dat{,-CORRUPTED}

# restart bitcoin (thus creating a new wallet)
bitcoind

# generate a new address
addr=$(bitcoind getnewaddress)

# stop bitcoin
bitcoind stop

# backup new wallet
mv .bitcoin/wallet.dat{,-BRANDNEW}

# put the corrupted wallet back
mv .bitcoin/wallet.dat{-CORRUPTED,}

# start bitcoin
bitcoind

# send all bitcoins to addr
bitcoind sendtoaddress $addr $balance


hero member
Activity: 675
Merit: 502
March 01, 2011, 04:55:34 PM
#13
Quote: "As of now there is no known virus that steals wallet files."

Other than the "backup your wallet" one implemented and transmitted by Organic Peripheral Engineering, you mean?

-MarkM-

That is not a virus. It's just somebody asking people to send in their wallets.
full member
Activity: 126
Merit: 101
March 01, 2011, 04:47:48 PM
#12
Interesting situation.  Would it be fine to just run something like:

bitcoind sendtoaddress $(bitcoind getnewaddress) $(bitcoind getbalance)

which means:  create a new address, and send all my bitcoins to it?


Yes in theory, no in practice. The client pregenerates batches of addresses so that you don't have to back up your wallet as often.
legendary
Activity: 1288
Merit: 1080
March 01, 2011, 04:40:47 PM
#11
If you knew your wallet had been compromised it would be a race to get the coins out to another location.

Interesting situation.  Would it be fine to just run something like:

bitcoind sendtoaddress $(bitcoind getnewaddress) $(bitcoind getbalance)

which means:  create a new address, and send all my bitcoins to it?
legendary
Activity: 2940
Merit: 1090
March 01, 2011, 04:33:20 PM
#10
Quote: "As of now there is no known virus that steals wallet files."

Other than the "backup your wallet" one implemented and transmitted by Organic Peripheral Engineering, you mean?

-MarkM-
hero member
Activity: 675
Merit: 502
March 01, 2011, 11:47:05 AM
#9
Does this mean that if my computer with the wallet goes down my wallet is lost? If i get infected by a worm or trojan will a hacker be able to "steal" my wallet by downloading it to his computer and then deleting it on mine?

Yes, and possibly yes. It is very important to keep your wallet backed up somewhere safe, and to keep your computer secure.

As of now there is no known virus that steals wallet files.
full member
Activity: 126
Merit: 101
March 01, 2011, 11:46:47 AM
#8
If someone else has access to your wallet.dat file then they could spend your bitcoins. A hacker would be unlikely to delete your wallet file as that would tip you off and you should have a copy somewhere else. If you knew your wallet had been compromised it would be a race to get the coins out to another location.
legendary
Activity: 980
Merit: 1020
March 01, 2011, 11:45:17 AM
#7
Your "bank account" is more like a wallet. It's actually stored on your computer.

yeah have just been reading through the wiki while waiting for responses. But i cant really find any deeper information about the wallet all i seem to be able to find is this page:
https://en.bitcoin.it/wiki/Data_directory
that shows where the "wallet" data files are stored. Does this mean that if my computer with the wallet goes down my wallet is lost? If i get infected by a worm or trojan will a hacker be able to "steal" my wallet by downloading it to his computer and then deleting it on mine?

Yes. It's your responsibility to make sure you secure and backup your wallet.dat as well not downloading Trojans or worms.
newbie
Activity: 55
Merit: 0
March 01, 2011, 11:42:19 AM
#6
Your "bank account" is more like a wallet. It's actually stored on your computer.

yeah have just been reading through the wiki while waiting for responses. But i cant really find any deeper information about the wallet all i seem to be able to find is this page:
https://en.bitcoin.it/wiki/Data_directory
that shows where the "wallet" data files are stored. Does this mean that if my computer with the wallet goes down my wallet is lost? If i get infected by a worm or trojan will a hacker be able to "steal" my wallet by downloading it to his computer and then deleting it on mine?
legendary
Activity: 2940
Merit: 1090
March 01, 2011, 11:40:58 AM
#5
Hmm I think of the wallet as more like your collection of bank cards and passbooks and passwords and PIN numbers.

I regard my actual "bank accounts" as being distributed across the peer to peer network, so everyone and their bitcoind has a backup of my bank accounts complete with balances. But I need some info from my wallet to convince them all that the accounts actually are mine...

-MarkM-
full member
Activity: 126
Merit: 101
March 01, 2011, 11:39:20 AM
#4
There is a file stored on your computer named wallet.dat that contains the information necessary to spend the bitcoins.

Its exact location varies slightly by which OS you are using but its in \[username]\application data\...\bitcoin
legendary
Activity: 980
Merit: 1020
March 01, 2011, 11:37:50 AM
#3
Your "bank account" is more like a wallet. It's actually stored on your computer.
legendary
Activity: 1099
Merit: 1000
March 01, 2011, 11:36:00 AM
#2
mybitcoin.com
newbie
Activity: 55
Merit: 0
March 01, 2011, 11:07:17 AM
#1
Hi i just found out about bitcoin about an hour or so ago. My Bitcoin client is current downloading blocks so i am not able to use all its features yet.

but i am wondering with no log in system or anything how do i access my bitcoins when i am not at the computer i just installed the client on? what stops some one else to use my bitcoins and so on?
Jump to: