Bitcoin Forum
April 23, 2024, 01:54:35 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: bitcoind - Watch Only Address  (Read 1539 times)
Miitch (OP)
Full Member
***
Offline Offline

Activity: 126
Merit: 100


View Profile
November 20, 2014, 04:43:19 AM
 #1

For an upcoming project I am wanting to use pre-generated keys. The idea being that I can generate 10,000~ pre-generated keys on an offline computer. Then I could import the public keys as 'watch only' into bitcoind on an Internet connected server. The Internet connected server would have full access to track incoming transactions and even if the server was hacked there would be no risk of player deposits being compromised.

I've checked the bitcoind API calls list and can't find a way to do this:
https://en.bitcoin.it/wiki/Original_Bitcoin_client/API_calls_list

I found a discussion of this issue on Github with no clear solution:
https://github.com/bitcoin/bitcoin/pull/3383

Can anyone please give me some input about whether it is possible to add watch-only addresses into bitcoind?

Thanks in advance!

▇ ▇ ▇ ▇ ▇ ▇ ▇ ▇ ▇   COIN-SWEEPER
▇ ▇ ▇ ▇ ▇ ▇ ▇ ▇    Avoid Bombs Win BIG
▇ ▇ ▇ ▇ ▇ ▇ ▇ ▇   1% House Edge   ▇ ▇ ▇ ▇ ▇ ▇ ▇
1713880475
Hero Member
*
Offline Offline

Posts: 1713880475

View Profile Personal Message (Offline)

Ignore
1713880475
Reply with quote  #2

1713880475
Report to moderator
1713880475
Hero Member
*
Offline Offline

Posts: 1713880475

View Profile Personal Message (Offline)

Ignore
1713880475
Reply with quote  #2

1713880475
Report to moderator
1713880475
Hero Member
*
Offline Offline

Posts: 1713880475

View Profile Personal Message (Offline)

Ignore
1713880475
Reply with quote  #2

1713880475
Report to moderator
Each block is stacked on top of the previous one. Adding another block to the top makes all lower blocks more difficult to remove: there is more "weight" above each block. A transaction in a block 6 blocks deep (6 confirmations) will be very difficult to remove.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1713880475
Hero Member
*
Offline Offline

Posts: 1713880475

View Profile Personal Message (Offline)

Ignore
1713880475
Reply with quote  #2

1713880475
Report to moderator
1713880475
Hero Member
*
Offline Offline

Posts: 1713880475

View Profile Personal Message (Offline)

Ignore
1713880475
Reply with quote  #2

1713880475
Report to moderator
1713880475
Hero Member
*
Offline Offline

Posts: 1713880475

View Profile Personal Message (Offline)

Ignore
1713880475
Reply with quote  #2

1713880475
Report to moderator
amaclin
Legendary
*
Offline Offline

Activity: 1260
Merit: 1019


View Profile
November 20, 2014, 12:06:24 PM
 #2

Quote
Can anyone please give me some input about whether it is possible to add watch-only addresses into bitcoind?

1) create new wallet.dat
2) import private keys to it
3) set a very loooooong password. Something like "jfjflkjiu48t48476873284efbsdsdff8*DDD#*#*RF$*FH$NFN$F$*F$*F*@NF#*F*#FN#*fjdsjfkdsjl"
4) do not keep this password.

You will receive watch-only wallet.dat because nobody (even you) knows the password to spend funds.

PS. Do not use password from this example - it belongs to me and my wallet.dat
bloodDiamond
Full Member
***
Offline Offline

Activity: 168
Merit: 100


View Profile
November 20, 2014, 06:38:45 PM
 #3

Quote
Can anyone please give me some input about whether it is possible to add watch-only addresses into bitcoind?

1) create new wallet.dat
2) import private keys to it
3) set a very loooooong password. Something like "jfjflkjiu48t48476873284efbsdsdff8*DDD#*#*RF$*FH$NFN$F$*F$*F*@NF#*F*#FN#*fjdsjfkdsjl"
4) do not keep this password.

You will receive watch-only wallet.dat because nobody (even you) knows the password to spend funds.

PS. Do not use password from this example - it belongs to me and my wallet.dat


the complexity of the private key is all for safety ... especially for online wallet ...
where it can be done brute force attack starting from a dictionary basis key with a high probability of resolution.
for stronger security you should set a password with a GUID generator online ...

you will have a code like this 9bc0926f-4ab2-4aea-9109-e9fd50c44a23

difficult to attack

 Grin Grin Grin Grin Grin
Miitch (OP)
Full Member
***
Offline Offline

Activity: 126
Merit: 100


View Profile
November 21, 2014, 02:07:25 AM
 #4

Thanks for the replies! Will I need the private key for the wallet to import more keys into it in the future though...?

▇ ▇ ▇ ▇ ▇ ▇ ▇ ▇ ▇   COIN-SWEEPER
▇ ▇ ▇ ▇ ▇ ▇ ▇ ▇    Avoid Bombs Win BIG
▇ ▇ ▇ ▇ ▇ ▇ ▇ ▇   1% House Edge   ▇ ▇ ▇ ▇ ▇ ▇ ▇
bloodDiamond
Full Member
***
Offline Offline

Activity: 168
Merit: 100


View Profile
November 21, 2014, 06:20:14 PM
 #5

Thanks for the replies! Will I need the private key for the wallet to import more keys into it in the future though...?

i think you will need private key just to spend bitcoin present in wallet.
Dabs
Legendary
*
Offline Offline

Activity: 3416
Merit: 1912


The Concierge of Crypto


View Profile
November 24, 2014, 06:05:57 AM
 #6

You'll want to look into importing watch only addresses using pywallet, into encrypted wallets. It can insert a public key into your wallet.dat file, and include a dummy or fake private key.

emrebey
Sr. Member
****
Offline Offline

Activity: 476
Merit: 250


View Profile
November 24, 2014, 02:26:32 PM
 #7

if you consider using armory(d) wallet, you get watch-only feature.

https://github.com/etotheipi/BitcoinArmory

I used this in one small project - it works well.
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!