Author

Topic: getnewaddress per wallet (Read 2441 times)

Hal
vip
Activity: 314
Merit: 4276
March 01, 2011, 08:11:26 PM
#11
It may be a good security to generate 1'000'000'000 addresses to avoid someone to send your wallet over the web :p
Actually there's respectable cryptographic research into making signing keys enormous, potentially GBs in size. The purpose is to make it hard for a virus to steal them. Then you might say, well, how do I sign with a multi-GB key? This is the trick, you can sign using a small subset of the key, but the subset changes for each signature, so the virus has to steal the whole key in order to sign arbitrary data.

Not too applicable to Bitcoin, but the basic idea might be useful sometimes.
administrator
Activity: 5222
Merit: 13032
March 01, 2011, 03:18:28 PM
#10
The addresses don't take up all that much room. The wallet.dat size is mostly all the sent/received transactions of yours.
hero member
Activity: 540
Merit: 500
March 01, 2011, 12:43:42 PM
#9
It may be a good security to generate 1'000'000'000 addresses to avoid someone to send your wallet over the web :p
newbie
Activity: 45
Merit: 0
March 01, 2011, 08:37:11 AM
#8
I created 10,000 addresses and that gave a wallet of around 6.2MB - so they will build up after time but I'm sure by the time it matters we'll have other tools to manage them.
hero member
Activity: 607
Merit: 500
March 01, 2011, 03:49:14 AM
#7
I think that future Bitcoin clients will have the ability to merge Bitcoin addresses into one - by sending their balance to one final address, and discarding old ones. Would make sense for me.
newbie
Activity: 27
Merit: 0
March 01, 2011, 02:40:50 AM
#6
Sorry to bump an old topic. I am researching this subject...

Is this correct? Does my wallet save every single address?

Yes.

The getaccountaddress method will return the same address until it is used (until a payment is received on that address).


Why create a new address when a payment is received?

In a few years, won't there be hundreds or even thousands of addresses if bitcoin is used regularly? That would be very "messy" since bitcoin stores all the addresses.

Won't it be "cleaner" if user just reuse existing addresses until the user decide to create a new address?....May be anonymity is not an issue for an user and the user wish to use the same address again and again.
legendary
Activity: 1652
Merit: 2301
Chief Scientist
December 07, 2010, 07:40:20 AM
#5
Is this correct? Does my wallet save every single address?

Yes.

The getaccountaddress method will return the same address until it is used (until a payment is received on that address).

But getnewaddress always creates, stores, and returns a new address.
legendary
Activity: 1596
Merit: 1100
December 07, 2010, 03:52:59 AM
#4
This is another reason to have a more modularized bitcoin software... someone could make a wallet-management module that uses a database instead of a file, to better scale...

Is the wallet.dat file indexed?

wallet.dat is a db4 key/value database.
legendary
Activity: 1106
Merit: 1004
December 07, 2010, 03:27:08 AM
#3
It has to store both, you can't deduce the public key from the private key...

This is another reason to have a more modularized bitcoin software... someone could make a wallet-management module that uses a database instead of a file, to better scale...

Is the wallet.dat file indexed?
legendary
Activity: 1596
Merit: 1100
December 07, 2010, 02:41:15 AM
#2
Hey,

Quote
< MT`AwAy> genjix: http://pastecoin.com/ <- you're generating a new
                 bitcoin address at each page load, don't you fear wallet.dat
                 will grow to astronomical size?

Is this correct? Does my wallet save every single address?

That you generate?  If I understand correctly, it's a public/private keypair, and you have to store the private key.
legendary
Activity: 1232
Merit: 1076
December 07, 2010, 02:39:24 AM
#1
Hey,

Quote
< MT`AwAy> genjix: http://pastecoin.com/ <- you're generating a new
                 bitcoin address at each page load, don't you fear wallet.dat
                 will grow to astronomical size?

Is this correct? Does my wallet save every single address?
Jump to: