Bitcoin Asked on October 24, 2021
I have a cuple of questions about how wallet creation works. If I create a Bitcoin wallet offline, is there any way of like validate the new wallet, I mean, what if this wallet already exist? I know the posibilities are incredibly low.
And, if I create an address offline, how Bitcoin nodes would accept my address as valid (or this isn’t needed?) I mean, in which moment, Bitcoin nodes accept my offline-created address.
I have create a script that creates bitcoin wallets, and I create one offline, then I search for that address on https://www.blockchain.com/explorer and it shows my current address, so my question is how this address appear in this web?
How Bitcoin nodes validate a new wallet
Bitcoin nodes validate blocks and they validate the transactions within those blocks
Other nodes don't have access to your wallet and can't validate it or anything in it.
I mean, what if this wallet already exist?
No one knows or cares if the private-key initially generated by your wallet already exists. Nodes don't check for this type of "collision".
If someone else's wallet has the same private key, either of you could spend each-other's money as well as your own.
if I create an address offline, how Bitcoin nodes would accept my address as valid (or this isn't needed?)
Any address is accepted so long as it looks like an address. A well-formed address has an acceptable length, initial bytes and checksum.
I mean, in which moment, Bitcoin nodes accept my offline-created address.
each node accepts it at different moments. In whatever moment they happen to come across the address and see that it is a well-formed address.
how this address appear in this web?
A correctly generated well-formed address that has never been used and consequently never appeared in the blockchain is nevertheless a valid address. I expect most blockchain explorers would simply display it and show that there are no transactions associated with it.
In summary, no one keeps track of wallets, private-keys and addresses that have been created and never used. All of these are just as valid as a wallet, private-key or address that gets used a thousand times a day every day of the year.
There's a vast ocean of numbers, they are all valid. Some have been used, some not yet, almost all will never be used.
Answered by RedGrittyBrick on October 24, 2021
Addresses contain the network byte (hence old-style addresses start with
3) the 20-byte public key hash, and a checksum that doesn't let you lose funds if you mistype the recipient.
If the checksum is wrong, your wallet will warn you.
There's no way to prove that a public key hash was derived from a known public key. For example there's a corresponding private key to
1BitcoinEaterAddressDontSendf59kuE, but those burn addresses have their public key hash chosen, and no one will ever find their private keys.
Answered by MCCCS on October 24, 2021
1 Asked on March 5, 2021 by sachin-meier
1 Asked on February 20, 2021 by mcccs
5 Asked on February 18, 2021 by frdsbend
2 Asked on February 18, 2021 by jwinterm
1 Asked on February 12, 2021 by bbcdlearning
1 Asked on February 11, 2021 by framog
3 Asked on February 9, 2021 by tedy-s
1 Asked on January 29, 2021 by kisbitcoin
2 Asked on January 26, 2021 by rcfanboi
1 Asked on January 22, 2021 by katherine
1 Asked on January 20, 2021
5 Asked on January 16, 2021 by nmat
2 Asked on January 15, 2021 by erica-dawn
1 Asked on January 12, 2021 by eawf-bob
6 Asked on January 7, 2021 by neon-flash
2 Asked on January 7, 2021 by james-c
1 Asked on January 6, 2021 by johnsmiththelird
Get help from others!