Bitcoin Forum
July 09, 2024, 08:12:48 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: All existing bitcoins can be in your wallet (where is my mind?)  (Read 201 times)
Forsyth Jones (OP)
Hero Member
*****
Offline Offline

Activity: 1218
Merit: 722


Duelbits - Play for Free | Win for Real


View Profile WWW
June 13, 2024, 11:40:35 PM
Merited by vapourminer (4), bitmover (2), NeuroticFish (1)
 #1

Do you believe in address/private key collision?
e.g.

Wallet A with or without Passphrase
Wallet B of 12 to 24 words with or without passphrase generate the same xpriv or the same addresses? I know it's such an absurd probability that we don't even need to worry about it.

It's true that the number of possible private keys corresponds to the same as each atom in the Universe.
Hence the importance of generating a random number, as these will be the entropy used to discover a bitcoin wallet/addresses.

Before the seed phrase pattern was so well known, wallets like Bitcoin-Qt (before it was renamed to Core) were known to generate 100 random keys by default, so you had to make a backup to avoid the risk of the wallet generating a change address in that you didn't make a backup, BIP-32 solved this, creating the concept of "seed", a single random number gen a root key and following a standardized process, this root key gen the child keys infinitely in a deterministic way.

In other words, just a random atom from the universe is chosen but the path to the next numbers is pre-determined by this process.

It didn't take long, someone came up with the idea of ​​converting this seed into words (BIP-39), making users' lives easier, a single list of words would protect the user's wallet so that he only needed that to restore his coins.



As the algorithms used in this process generate infinite child keys, is it possible to generate all existing private keys in the universe, considering other derivation paths?

If you create addresses infinitely, one day you may generate an address with balance, and this address probably belongs to another seed

And even if you don't find it, we still have the possibility of using infinite passphrases with the same seed, which you will eventually find.

Do you folks consider this possibility?

And finally, as I was writing another question came to mind, addresses created randomly without seeds, are they possibly associated with a seed?

I know it is possible for two xpriv to generate the same addresses

███████████████████████████
███████▄████████████▄██████
████████▄████████▄████████
███▀█████▀▄███▄▀█████▀███
█████▀█▀▄██▀▀▀██▄▀█▀█████
███████▄███████████▄███████
███████████████████████████
███████▀███████████▀███████
████▄██▄▀██▄▄▄██▀▄██▄████
████▄████▄▀███▀▄████▄████
██▄███▀▀█▀██████▀█▀███▄███
██▀█▀████████████████▀█▀███
███████████████████████████
.
.Duelbits.
..........UNLEASH..........
THE ULTIMATE
GAMING EXPERIENCE
DUELBITS
FANTASY
SPORTS
████▄▄█████▄▄
░▄████
███████████▄
▐███
███████████████▄
███
████████████████
███
████████████████▌
███
██████████████████
████████████████▀▀▀
███████████████▌
███████████████▌
████████████████
████████████████
████████████████
████▀▀███████▀▀
.
▬▬
VS
▬▬
████▄▄▄█████▄▄▄
░▄████████████████▄
▐██████████████████▄
████████████████████
████████████████████▌
█████████████████████
███████████████████
███████████████▌
███████████████▌
████████████████
████████████████
████████████████
████▀▀███████▀▀
/// PLAY FOR  FREE  ///
WIN FOR REAL
..PLAY NOW..
pooya87
Legendary
*
Offline Offline

Activity: 3500
Merit: 10703



View Profile
June 14, 2024, 02:57:17 AM
Merited by d5000 (3), ABCbits (3), bitmover (2), vapourminer (1), nc50lc (1)
 #2

Do you believe in address/private key collision?
It's not something you can choose to believe in or not. It is pure math. According to Pigeonhole Principle when we have 2256 keys and usually 2128 hash in the address, there is going to be addresses (pigeonhole) that correspond to more than one key (hold more than one pigeon).

Quote
Wallet B of 12 to 24 words with or without passphrase generate the same xpriv or the same addresses?
At the heart of BIP32 as a KDF we are using hashes and hashes can have collision meaning there can be same key being derived from two unequal seeds.

Quote
I know it's such an absurd probability that we don't even need to worry about it.
So what exactly is your question here?

Quote
Before the seed phrase pattern was so well known, wallets like Bitcoin-Qt (before it was renamed to Core) were known to generate 100 random keys by default, ~ BIP-32 solved this, creating the concept of "seed",
Seed is different from "seed phrase". Seed is the entropy entered into a KDF to derive a "tree of keys". Seed phrase is a set of words that represent that seed.
Bitcoin core still doesn't use any seed phrases (BIP39, etc.) algorithm.

Quote
As the algorithms used in this process generate infinite child keys, is it possible to generate all existing private keys in the universe, considering other derivation paths?
Theoretically it should be possible. There may be unforeseen exceptions in the implementations of BIP32 considering it is not designed to derive 2256 keys (like the depth field that is limited to one byte and is encoded into the base58 extended key).

Quote
If you create addresses infinitely, one day you may generate an address with balance, and this address probably belongs to another seed
The universe would end before you can generate that many keys.

Quote
And finally, as I was writing another question came to mind, addresses created randomly without seeds, are they possibly associated with a seed?
That's the same question as the collision above. It is theoretically possible for an address generated randomly to also be generated in a deterministic way but the possibility of it is so small it can be considered zero (aka impossible).

.
.BLACKJACK ♠ FUN.
█████████
██████████████
████████████
█████████████████
████████████████▄▄
░█████████████▀░▀▀
██████████████████
░██████████████
████████████████
░██████████████
████████████
███████████████░██
██████████
CRYPTO CASINO &
SPORTS BETTING
▄▄███████▄▄
▄███████████████▄
███████████████████
█████████████████████
███████████████████████
█████████████████████████
█████████████████████████
█████████████████████████
███████████████████████
█████████████████████
███████████████████
▀███████████████▀
█████████
.
ABCbits
Legendary
*
Offline Offline

Activity: 2926
Merit: 7643


Crypto Swap Exchange


View Profile
June 14, 2024, 09:05:23 AM
Merited by bitmover (1)
 #3

It didn't take long, someone came up with the idea of ​​converting this seed into words (BIP-39), making users' lives easier, a single list of words would protect the user's wallet so that he only needed that to restore his coins.

It's the opposite, where BIP 39 let you convert words to seed. If you check https://github.com/bitcoin/bips/blob/master/bip-0039.mediawiki, there's section "From mnemonic to seed".

Do you folks consider this possibility?

Technically possible, but not probable.

And finally, as I was writing another question came to mind, addresses created randomly without seeds, are they possibly associated with a seed?

Not associated, but theorically the same address could be generated from certain seed.

█▀▀▀











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











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

Activity: 2352
Merit: 6103


bitcoindata.science


View Profile WWW
June 14, 2024, 10:53:56 AM
Merited by Forsyth Jones (2)
 #4

Do you folks consider this possibility?

Technically possible, but not probable.

I always like to share this. The power of math



Quote
As the algorithms used in this process generate infinite child keys, is it possible to generate all existing private keys in the universe, considering other derivation paths?

As I recently shared in our local board, the key generation is exponential in HD wallets and you basically save billions of keys when saving a single Seed.



Ofc you potentially can find some address with balance or from other wallets, but the chances are virtually zero. You don't have to worry about that...


I think it is always good to read Mastering Bitcoin, which explains all those basic concepts of bitcoin and keys generation
https://github.com/bitcoinbook/bitcoinbook/blob/develop/ch05_wallets.adoc

.
.BLACKJACK ♠ FUN.
█████████
██████████████
████████████
█████████████████
████████████████▄▄
░█████████████▀░▀▀
██████████████████
░██████████████
████████████████
░██████████████
████████████
███████████████░██
██████████
CRYPTO CASINO &
SPORTS BETTING
▄▄███████▄▄
▄███████████████▄
███████████████████
█████████████████████
███████████████████████
█████████████████████████
█████████████████████████
█████████████████████████
███████████████████████
█████████████████████
███████████████████
▀███████████████▀
█████████
.
Forsyth Jones (OP)
Hero Member
*****
Offline Offline

Activity: 1218
Merit: 722


Duelbits - Play for Free | Win for Real


View Profile WWW
June 15, 2024, 07:28:16 PM
 #5

So what exactly is your question here?
Just curiosity

Quote
Seed is different from "seed phrase". Seed is the entropy entered into a KDF to derive a "tree of keys". Seed phrase is a set of words that represent that seed.
Bitcoin core still doesn't use any seed phrases (BIP39, etc.) algorithm.
Yes, I'm aware of that. Seed is actually a hexadecimal combination whereas BIP39 takes this set and encodes them in word/mnemonic form.

Quote
The universe would end before you can generate that many keys.
Yes, that reminds me how incredible this topic about entropy is, so many things are possible with encryption algorithms.

I know it is possible for two xpriv to generate the same addresses

See this example, I gen a wallet for testing:
BIP39 example mnemonic:
Code:
enemy sport sock wink gentle tooth expose damage tube opera trash ball

This is the bip32 root key:
Code:
xprv9s21ZrQH143K2fVBZn1X9FGXH8WYN2Kb6i4dohJiKBTJ9iAhK83bcfhB5HXEKE9PuNzQbPcYMFHfn62yH1DUNudBdxPgNRnS1w4yuUH2pvc

I will use the BIP84 derivation path for this example, the same applies to the standard BIP39 derivation paths, this bip32 root key generates this set of addresses in BIP84:



In Account Extended Private Key we have an xpriv that specifically derives this same set of addresses, but at the account level:

Account Extended Private Key:
Code:
zprvAe77Vi8i8ATMyvWQ29w7T42ZgWvfXBUwviQMyp493WSjgKjcESdEnLE5LLR5UQg4GfjfYzMBZszFLjpeUYdGANjGRQqsv8B2FwpfewJt9KP

Same Account Extended Private Key in a Legacy Format:
Code:
xprv9zSatNnspoNQHL8AMSMs2sqZLadmdwVx6VMvR2GNHVgya879j8J7YCuoHvVuUbNDTPW443A4eZH9aAbX39oEZuN4gjT2kJY3iVhNsjp1ygu



I took this Account Extended Private Key and put it in the BIP32 Root Key field, I changed to the BIP141 tab and selected the P2WPKH type for the bech32 addresses, it resulted in the same set of addresses as that BIP32 root key:



What I get is that the BIP32 root key is for an entire set of addresses in a standard wallet, while the Account Extended Private Key is for the account level.

Two xprivs are capable of generating the same set of addresses, thanks to mathematics and cryptography.









███████████████████████████
███████▄████████████▄██████
████████▄████████▄████████
███▀█████▀▄███▄▀█████▀███
█████▀█▀▄██▀▀▀██▄▀█▀█████
███████▄███████████▄███████
███████████████████████████
███████▀███████████▀███████
████▄██▄▀██▄▄▄██▀▄██▄████
████▄████▄▀███▀▄████▄████
██▄███▀▀█▀██████▀█▀███▄███
██▀█▀████████████████▀█▀███
███████████████████████████
.
.Duelbits.
..........UNLEASH..........
THE ULTIMATE
GAMING EXPERIENCE
DUELBITS
FANTASY
SPORTS
████▄▄█████▄▄
░▄████
███████████▄
▐███
███████████████▄
███
████████████████
███
████████████████▌
███
██████████████████
████████████████▀▀▀
███████████████▌
███████████████▌
████████████████
████████████████
████████████████
████▀▀███████▀▀
.
▬▬
VS
▬▬
████▄▄▄█████▄▄▄
░▄████████████████▄
▐██████████████████▄
████████████████████
████████████████████▌
█████████████████████
███████████████████
███████████████▌
███████████████▌
████████████████
████████████████
████████████████
████▀▀███████▀▀
/// PLAY FOR  FREE  ///
WIN FOR REAL
..PLAY NOW..
odolvlobo
Legendary
*
Offline Offline

Activity: 4368
Merit: 3286



View Profile
June 15, 2024, 08:09:07 PM
Merited by ABCbits (1)
 #6

As the algorithms used in this process generate infinite child keys, is it possible to generate all existing private keys in the universe, considering other derivation paths?
If you create addresses infinitely, one day you may generate an address with balance, and this address probably belongs to another seed
And even if you don't find it, we still have the possibility of using infinite passphrases with the same seed, which you will eventually find.
Do you folks consider this possibility?

Questions regarding "infinity" are not related to reality. Ask a question about something real and you will get a real answer. Ask a question about infinity and you will get an answer that is only relevant within the scope of mathematics.

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

Activity: 3724
Merit: 6456


Looking for campaign manager? Contact icopress!


View Profile
June 16, 2024, 08:40:48 AM
Merited by vapourminer (1)
 #7

In other words, just a random atom from the universe is chosen but the path to the next numbers is pre-determined by this process.

I think that I understand your point. However, the path is not as restrictive as you fear, hence the result is still from a big enough set of values. It was built to be wide and it was checked too.

Even more, nobody forces you use HD wallet if you don't trust it. You can still generate a private key in the old fashion way. Just you will not gain anything in security (you will get numbers from the same range as from a HD wallet actually).


However, if you think you want to become really technical with real numbers, you may want to move this topic to "Development & Technical Discussion"

█████████████████████████
████▐██▄█████████████████
████▐██████▄▄▄███████████
████▐████▄█████▄▄████████
████▐█████▀▀▀▀▀███▄██████
████▐███▀████████████████
████▐█████████▄█████▌████
████▐██▌█████▀██████▌████
████▐██████████▀████▌████
█████▀███▄█████▄███▀█████
███████▀█████████▀███████
██████████▀███▀██████████
█████████████████████████
.
BC.GAME
▄▄░░░▄▀▀▄████████
▄▄▄
██████████████
█████░░▄▄▄▄████████
▄▄▄▄▄▄▄▄▄██▄██████▄▄▄▄████
▄███▄█▄▄██████████▄████▄████
███████████████████████████▀███
▀████▄██▄██▄░░░░▄████████████
▀▀▀█████▄▄▄███████████▀██
███████████████████▀██
███████████████████▄██
▄███████████████████▄██
█████████████████████▀██
██████████████████████▄
.
..CASINO....SPORTS....RACING..
bitmover
Legendary
*
Offline Offline

Activity: 2352
Merit: 6103


bitcoindata.science


View Profile WWW
June 16, 2024, 12:13:11 PM
 #8

Even more, nobody forces you use HD wallet if you don't trust it. You can still generate a private key in the old fashion way. Just you will not gain anything in security (you will get numbers from the same range as from a HD wallet actually).


I think you will lose privacy by doing so, as it will be very hard to generate many new addresses (specially change) .

You will probably reuse addresses by doing so..

.
.BLACKJACK ♠ FUN.
█████████
██████████████
████████████
█████████████████
████████████████▄▄
░█████████████▀░▀▀
██████████████████
░██████████████
████████████████
░██████████████
████████████
███████████████░██
██████████
CRYPTO CASINO &
SPORTS BETTING
▄▄███████▄▄
▄███████████████▄
███████████████████
█████████████████████
███████████████████████
█████████████████████████
█████████████████████████
█████████████████████████
███████████████████████
█████████████████████
███████████████████
▀███████████████▀
█████████
.
hatshepsut93
Legendary
*
Offline Offline

Activity: 3024
Merit: 2148


View Profile
June 16, 2024, 12:40:21 PM
 #9

And even if you don't find it, we still have the possibility of using infinite passphrases with the same seed, which you will eventually find.

Do you folks consider this possibility?


That's right, but we don't have infinite time. Even our Universe will not last infinitely. But on practice, you will not find any keys with balance in you lifetime, even in ten or hundred lifetimes, even if you use a supercomputer.

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!