Bitcoin Forum
May 05, 2024, 03:22:04 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: wallet.dat - count of total addresses  (Read 240 times)
zielar (OP)
Full Member
***
Offline Offline

Activity: 277
Merit: 106


View Profile
April 21, 2022, 09:53:43 AM
Last edit: April 21, 2022, 10:04:53 AM by zielar
 #1

Hello,
I have a question to check the plausibility of two .dat files containing a valuable address. In order to complete this check, I need knowledge about the generated number of additional addresses when creating a wallet in the past (when uncompressed addresses were created) and today (when compressed addresses are created).
Well, in this old one there is one valuable with an uncompressed address (with an allegedly forgotten password) and 1000 empty uncompressed ones. No outbound transaction has been made. The other one has one valuable compressed address and 200 other blank compressed addresses. At first glance, I could say that these are stickers to the original empty wallets, because the number of all wallets is 1001 and 201 (i.e. one too many), although the second theory I take into account is the fact that this one too many is the main address and the others 1000 and 200 are additional addresses. Nevertheless - in order to dispel these doubts - I am asking as at the beginning. Thanks in advance for your help.
P.S. I have my own control methods, so seriously - I'm only interested in the knowledge of the structure in terms of which I asked :-)

[EDIT]

And a second question:
Until what period (date) did the client generate uncompressed addresses by default, and how many of them? Similarly - how many compressed addresses were generated by default by the client at a later time?

If you want - you can send me a donation to my BTC wallet address 31hgbukdkehcuxcedchkdbsrygegyefbvd
1714879324
Hero Member
*
Offline Offline

Posts: 1714879324

View Profile Personal Message (Offline)

Ignore
1714879324
Reply with quote  #2

1714879324
Report to moderator
1714879324
Hero Member
*
Offline Offline

Posts: 1714879324

View Profile Personal Message (Offline)

Ignore
1714879324
Reply with quote  #2

1714879324
Report to moderator
1714879324
Hero Member
*
Offline Offline

Posts: 1714879324

View Profile Personal Message (Offline)

Ignore
1714879324
Reply with quote  #2

1714879324
Report to moderator
Every time a block is mined, a certain amount of BTC (called the subsidy) is created out of thin air and given to the miner. The subsidy halves every four years and will reach 0 in about 130 years.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
odolvlobo
Legendary
*
Offline Offline

Activity: 4298
Merit: 3214



View Profile
April 21, 2022, 12:50:30 PM
 #2

I think your approach has a problem because the number of addresses that can be generated by a wallet is unlimited.

I think a better approach might be to compare the total number of addresses in the block chain to the number of possible addresses.

Join an anti-signature campaign: Click ignore on the members of signature campaigns.
PGP Fingerprint: 6B6BC26599EC24EF7E29A405EAF050539D0B2925 Signing address: 13GAVJo8YaAuenj6keiEykwxWUZ7jMoSLt
jackg
Copper Member
Legendary
*
Offline Offline

Activity: 2856
Merit: 3071


https://bit.ly/387FXHi lightning theory


View Profile
April 21, 2022, 02:27:45 PM
 #3

In the past when wallets were made, addresses normally weren't the default expectation (I'm not sure if that's still the case). There was a keypool introduced at some point to help with backups but this was something that could be changed to a users' needs via the command line, as well as the number of addresses in a wallet (actively displayed).
zielar (OP)
Full Member
***
Offline Offline

Activity: 277
Merit: 106


View Profile
April 21, 2022, 09:12:49 PM
 #4

That's why I asked for a DEFAULT customer-created quantity then and today. For example - I find out about the existence of BitCoin ... I download the client and when creating a wallet I have my first address + x other  addresses for future transactions (by default). And that's what the question is ... how many were once outside the main (uncompressed) and how many have been since they are compressed. I know that there is an unlimited amount, but the system, after creating the first wallet, does not generate and does not generate as many as it could fit on the disk.

If you want - you can send me a donation to my BTC wallet address 31hgbukdkehcuxcedchkdbsrygegyefbvd
odolvlobo
Legendary
*
Offline Offline

Activity: 4298
Merit: 3214



View Profile
April 21, 2022, 09:38:05 PM
Merited by vapourminer (2)
 #5

There is nothing in an address that indicates whether it is derived from a compressed or uncompressed public key. I can't tell you when various wallets switched from uncompressed to compressed, but maybe somebody else can. Regardless, it is unlikely that you will be able to find out how many wallets have existed, how many addresses have been generated, and how many addresses were compressed or uncompressed addresses.

The original Bitcoin-Qt wallet created a pool of 100 addresses by default. That may or may not have changed when it was switched to an HD wallet. An HD wallet does not need a pool of addresses since an address can be generated on demand.


Maybe I am misunderstanding your question. You stated that your goal is to "check the plausibility of two .dat files containing a valuable address". Do you mean two different wallets having the same address that has bitcoins? If that is the case then I think the solution would start with finding the probability that any random address is in a UTXO. Then, by counting the number of addresses in a wallet, you can compute the probability of that wallet having an address in a UTXO. An address in a UTXO was generated by some wallet, so that gives you the probability that the wallet in question shares an address with another wallet (assuming that it is not the wallet the created the transaction).

Join an anti-signature campaign: Click ignore on the members of signature campaigns.
PGP Fingerprint: 6B6BC26599EC24EF7E29A405EAF050539D0B2925 Signing address: 13GAVJo8YaAuenj6keiEykwxWUZ7jMoSLt
BitMaxz
Legendary
*
Offline Offline

Activity: 3248
Merit: 2965


Block halving is coming.


View Profile WWW
April 21, 2022, 11:59:49 PM
Merited by vapourminer (1), ABCbits (1)
 #6

I think the default key pool size for HD wallet is increased to 1000 which is the default unless if your wallet was generated from an old wallet(Bitcoin QT) by default it's a 100 key pool size.

You can change the key pool size anytime if you want to generate more than 1000 you can add this in your Bitcoin.conf file

Code:
keypool=10000

10k is just an example you can change it if you want lesser than 1k or more than that.

█▀▀▀











█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀
e
▄▄▄▄▄▄▄▄▄▄▄
█████████████
████████████▄███
██▐███████▄█████▀
█████████▄████▀
███▐████▄███▀
████▐██████▀
█████▀█████
███████████▄
████████████▄
██▄█████▀█████▄
▄█████████▀█████▀
███████████▀██▀
████▀█████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
c.h.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀█











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
nc50lc
Legendary
*
Offline Offline

Activity: 2408
Merit: 5588


Self-proclaimed Genius


View Profile
April 22, 2022, 03:36:48 AM
Merited by vapourminer (2), ABCbits (2)
 #7

-snip-
P.S. I have my own control methods, so seriously - I'm only interested in the knowledge of the structure in terms of which I asked :-)
I'll just leave these links here, you can check the dates and the comments in each for more info:

This post indicated the version which "keypool" has been introduced: /index.php?topic=1414.0
The commit that introduced keypool and the default 100 value: key pool for safer wallet backup

Then the default was changed to 1000: PR#10831: Batch flushing operations to the walletdb during top up and increase keypool size.
Commit: https://github.com/bitcoin/bitcoin/pull/10831/commits/41dc1635878766e4a810e6a7c57637d079fced64

[EDIT]

And a second question:
Until what period (date) did the client generate uncompressed addresses by default, and how many of them? Similarly - how many compressed addresses were generated by default by the client at a later time?
Compressed PubKey was introduced in this PR: https://github.com/bitcoin/bitcoin/pull/649 That was posted years before the default keypool was set to 1000.

.
.HUGE.
▄██████████▄▄
▄█████████████████▄
▄█████████████████████▄
▄███████████████████████▄
▄█████████████████████████▄
███████▌██▌▐██▐██▐████▄███
████▐██▐████▌██▌██▌██▌██
█████▀███▀███▀▐██▐██▐█████

▀█████████████████████████▀

▀███████████████████████▀

▀█████████████████████▀

▀█████████████████▀

▀██████████▀▀
█▀▀▀▀











█▄▄▄▄
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
.
CASINSPORTSBOOK
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀▀█











▄▄▄▄█
DannyHamilton
Legendary
*
Offline Offline

Activity: 3388
Merit: 4616



View Profile
April 26, 2022, 01:34:43 PM
Merited by vapourminer (1), hugeblack (1)
 #8

Maybe I am misunderstanding your question. You stated that your goal is to "check the plausibility of two .dat files containing a valuable address". Do you mean two different wallets having the same address that has bitcoins?

Perhaps I'm mistaken, but the question posted by OP feels a bit like an XY Problem.

Trying to read between the lines and guess at what's actually going on here, MAYBE what OP is actually saying is:

"I've been given the opportunity to purchase 2 wallets.dat files.  I've been told that each of these wallet.dat files contains a different address that has received a significant sum of bitcoins. I've also been told that the reason these wallet.dat files are for sale is that the password has been forgotten and therefore the original owner is no longer able to access the Bitcoins. I'm attempting to use various heuristics to measure for myself the amount of risk that these addresses were artificially added to the wallet without the appropriate private key instead of having been generated by the wallet (with the private key), as a method of determining how much I'm willing to pay for the possibility. One of the things I've noticed is that neither of these wallets has a nice even, pretty number of addresses that might be considered to be a natural breakpoint for a default number of addresses generated when first installed, instead they have 201 and 1001 addresses. I'm curious about what the actual default number of addresses is for freshly installed wallets at various times in the past because I think it might help me understand if I need to be concerned about the fact that these wallets have 201 addresses and 1001 addresses.  Knowing when various changes were made to the default number of addresses, and comparing those dates to the dates of when the transactions were sent to the addresses in question might also help me determine if the story I've been told about these wallets makes any sense at all.  Can someone please share with me the date of when Bitcoin Core began using compressed addresses by default at the time of installation, and what the default quantity of addresses generated at installation have been each time it changed (as well as the dates when those changes happened)?"

That's my best guess. I could be wrong.
LowkeyAMD
Newbie
*
Offline Offline

Activity: 1
Merit: 0


View Profile
May 20, 2022, 02:43:05 PM
 #9

Good way to get yourself fucked up messing with a core wallet that isn’t yours just to warn you.
Bitcoin core is the OG official way to create a btc address. The formal way it was meant to be created before exchanges came and took all y’all’s monies because people don’t like to put the work in to run a bitcoin core wallet.

But wtf do I know.

$🖤$
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!