Bitcoin Forum
November 11, 2024, 03:08:33 AM *
News: Latest Bitcoin Core release: 28.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Generate 1000 addresses  (Read 2293 times)
muad_dib (OP)
Member
**
Offline Offline

Activity: 140
Merit: 10


View Profile
October 01, 2011, 01:07:04 AM
 #1

If you were to have to generate 1000 Bitcoin Addresses which approach would you take?

Can 1000 addresses be stored in one wallet?



I'm trying to implement the Merchant Lazy API
BurtW
Legendary
*
Offline Offline

Activity: 2646
Merit: 1137

All paid signature campaigns should be banned.


View Profile WWW
October 01, 2011, 01:29:10 AM
 #2

You can go to this website and it will generate as many public/private key pairs as you want/need:  bitaddress.org

Just use the bulk address option, set the number of rows to 1000 and it will generate a CSV file with 1000 addresses and their corresponding private keys.  All the private key generation takes place on your computer, not on the server, so with some care your private keys are secure.

Our family was terrorized by Homeland Security.  Read all about it here:  http://www.jmwagner.com/ and http://www.burtw.com/  Any donations to help us recover from the $300,000 in legal fees and forced donations to the Federal Asset Forfeiture slush fund are greatly appreciated!
payb.tc
Hero Member
*****
Offline Offline

Activity: 812
Merit: 1000



View Profile
October 01, 2011, 01:37:42 AM
 #3

You can go to this website and it will generate as many public/private key pairs as you want/need:  bitaddress.org

Just use the bulk address option, set the number of rows to 1000 and it will generate a CSV file with 1000 addresses and their corresponding private keys.  All the private key generation takes place on your computer, not on the server, so with some care your private keys are secure.

cool, haven't seen that site before.

if it's truly only done on your local machine, then you should be able to save that page full of javascript and run it offline, yes?
BurtW
Legendary
*
Offline Offline

Activity: 2646
Merit: 1137

All paid signature campaigns should be banned.


View Profile WWW
October 01, 2011, 01:41:02 AM
 #4

Just go to the page which will load the script.  Disconnect from the network.  Run the script.  Make address pairs to your hearts conntent.  Save all the files in a secure location.  Reconnect to the evil internet.  Of course you must be aware of any key loggers, etc.

Our family was terrorized by Homeland Security.  Read all about it here:  http://www.jmwagner.com/ and http://www.burtw.com/  Any donations to help us recover from the $300,000 in legal fees and forced donations to the Federal Asset Forfeiture slush fund are greatly appreciated!
mrb
Legendary
*
Offline Offline

Activity: 1512
Merit: 1028


View Profile WWW
October 01, 2011, 01:41:26 AM
 #5

Code:
for i in `seq 1 1000`; do bitcoind getnewaddress; done >addresses.txt
payb.tc
Hero Member
*****
Offline Offline

Activity: 812
Merit: 1000



View Profile
October 01, 2011, 01:45:21 AM
 #6

Just go to the page which will load the script.  Disconnect from the network.  Run the script.  Make address pairs to your hearts conntent.  Save all the files in a secure location.  Reconnect to the evil internet.  Of course you must be aware of any key loggers, etc.

well yes you could do that. although i was thinking more of transporting the javascript via USB to some '100% offline' machine.

anyway, awesome site, is it yours?

mrb: in the past (in older versions), i've found that method hanging bitcoind after 1 or 2 hundred. haven't tried with newer versions.
BurtW
Legendary
*
Offline Offline

Activity: 2646
Merit: 1137

All paid signature campaigns should be banned.


View Profile WWW
October 01, 2011, 01:48:27 AM
 #7

No, but the guy did a great job and I sent him a small donation. 

Our family was terrorized by Homeland Security.  Read all about it here:  http://www.jmwagner.com/ and http://www.burtw.com/  Any donations to help us recover from the $300,000 in legal fees and forced donations to the Federal Asset Forfeiture slush fund are greatly appreciated!
pointbiz
Sr. Member
****
Offline Offline

Activity: 437
Merit: 415

1ninja


View Profile
October 01, 2011, 02:12:44 AM
 #8

No, but the guy did a great job and I sent him a small donation. 

Thanks  Grin

Coder of: https://www.bitaddress.org      Thread
Open Source JavaScript Client-Side Bitcoin Wallet Generator
Donations: 1NiNja1bUmhSoTXozBRBEtR8LeF9TGbZBN   PGP
pointbiz
Sr. Member
****
Offline Offline

Activity: 437
Merit: 415

1ninja


View Profile
October 01, 2011, 02:13:55 AM
 #9

if it's truly only done on your local machine, then you should be able to save that page full of javascript and run it offline, yes?

Yes, that's the recommended approach. And verify the SHA-1 hash of the file.

Coder of: https://www.bitaddress.org      Thread
Open Source JavaScript Client-Side Bitcoin Wallet Generator
Donations: 1NiNja1bUmhSoTXozBRBEtR8LeF9TGbZBN   PGP
Stephen Gornick
Legendary
*
Offline Offline

Activity: 2506
Merit: 1010


View Profile
October 01, 2011, 04:12:49 AM
 #10

Can 1000 addresses be stored in one wallet

I know this probably isn't what you were asking for, but:  https://en.bitcoin.it/wiki/Key_pool

Unichange.me

            █
            █
            █
            █
            █
            █
            █
            █
            █
            █
            █
            █
            █
            █
            █
            █


muad_dib (OP)
Member
**
Offline Offline

Activity: 140
Merit: 10


View Profile
October 01, 2011, 10:30:15 AM
 #11

Can 1000 addresses be stored in one wallet

I know this probably isn't what you were asking for, but:  https://en.bitcoin.it/wiki/Key_pool

Thanx, I almost skipped that.


What happens if I generate 1000 addresses and my key pool is of only 100 addresses? Key Pool is automatically increased?


They should make a command to automatically generate multiple addresses.
Stephen Gornick
Legendary
*
Offline Offline

Activity: 2506
Merit: 1010


View Profile
October 01, 2011, 07:20:11 PM
 #12

What happens if I generate 1000 addresses and my key pool is of only 100 addresses? Key Pool is automatically increased?

Just to make sure you are understanding how the client works:
 - When you click "New" the client is grabbing an address from the key pool and, if necessary, subsequently generating a new address (that you don't yet see) to bring the keypool back to its target size.  So yes, the KeyPool is replenished each time you click New.

So the wallet holds all addresses including the "used" ones given to you when you clicked "new" and also all the "unused" ones from the key pool.  And just to clarify ... I'm referring to an address as "used" not necessarily to mean that it has been used in a transaction but instead just that it is no longer an "unused" address in the key pool.  

Unichange.me

            █
            █
            █
            █
            █
            █
            █
            █
            █
            █
            █
            █
            █
            █
            █
            █


muad_dib (OP)
Member
**
Offline Offline

Activity: 140
Merit: 10


View Profile
October 07, 2011, 08:40:14 PM
 #13

What happens if I generate 1000 addresses and my key pool is of only 100 addresses? Key Pool is automatically increased?

Just to make sure you are understanding how the client works:
 - When you click "New" the client is grabbing an address from the key pool and, if necessary, subsequently generating a new address (that you don't yet see) to bring the keypool back to its target size.  So yes, the KeyPool is replenished each time you click New.

So the wallet holds all addresses including the "used" ones given to you when you clicked "new" and also all the "unused" ones from the key pool.  And just to clarify ... I'm referring to an address as "used" not necessarily to mean that it has been used in a transaction but instead just that it is no longer an "unused" address in the key pool.  

Ok so the wallet holds all the old address + 100 (key pool).


Right?>
Stephen Gornick
Legendary
*
Offline Offline

Activity: 2506
Merit: 1010


View Profile
October 11, 2011, 08:32:27 AM
 #14

Ok so the wallet holds all the old address + 100 (key pool).


Right?>

Using the defaults, correct.  The size of the keypool can be specified with a command line argument.

Unichange.me

            █
            █
            █
            █
            █
            █
            █
            █
            █
            █
            █
            █
            █
            █
            █
            █


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!