0

I have been reading about Bitcoin, and one thing was about making Bitcoin extremely secure, which is to get a new address so that nobody knows, and then making it offline right away?

Is it like

0.01 Bitcoin    Address 123-456-789-876    encrypted by my public key

and then immediately change my address to something new, and then use the existing public key to encrypt it and publish it to the Ledger / Blockchain?

Should I get a new public / private key pair as well? The thing I don't understand is, don't I need to publish this new address to the Ledger? If it is, then other people know too. If I don't publish and other people don't know, then 1 year later, if I want to sell this 0.01 Bitcoin, how does the Ledger know it is a valid address?

2

Bitcoin wallets never contain money. The only important content is one secret number. This secret number is called a private-key. In most current wallets, the secret number is instead a seed from which a series of private keys are generated in a predictable (deterministic) way.

The only place you can find out how much money you control is in the public replicated journal of transactions called the blockchain. Every wallet has a copy or access to a nearby copy. Blockchain explorers let you search their copy.

You see how much money you have by making a list of the addresses* your wallet created and looking through the whole transaction journal for mentions of those addresses receiving or spending money and add up the amounts. Subtract the debits from the credits to calculate a balance.

The Bitcoin network doesn't encrypt any data.

You use a new receiving address for every transaction so that senders can't see what other money has passed through your address. For privacy.

You use offline wallets for security - a wallet on a computer that is connected to a network can potentially be hacked into. especially if it is a computer you also use for browsing web-pages and for downloading and playing games. An offline wallet in a computer that is never connected to a network is much safer.

All well-formed addresses are valid. They are just large numbers, all large numbers are valid (you may have to add a few checksum digits) but almost all of these large numbers will never be used because there are so many of them.

You don't have to publish addresses explicitly or separately, you just use them in transactions. Unlike street addresses, Bitcoin addresses do not identify people or locations - they are just a random-looking number without any special meaning. You don't have to claim ownership of an address. You can use mathematics to prove you know a secret number (private key) from which that address was derived. The proof doesn't disclose the secret number. The proof is what allows you to spend money, it doesn't matter who you are. The Bitcoin network doesn't keep accounts for people.

A Hierarchical Deterministic (HD) wallet creates new private and public key pairs as needed (usually a few in advance of need) from one master private key.

Your wallet will take care of all these details for you.


Related

5
  • can my address conflict with another address... what if somebody also has the same exact address and 1 year later he used it first, before I sell my 0.01 Bitcoin? So if I keep the 0.01 Bitcoin offline, how do I check after 1 month that I still have it? I can't really check the public Ledger but have to look at this offline wallet? – deeper-understanding Jan 29 at 11:12
  • If someone else has the same address, you can spend his money and he can spend yours. This will not happen because there are more addresses than there are atoms in the galaxy. – RedGrittyBrick Jan 29 at 11:15
  • @deeper-understanding That's why you input every new address (and ONLY) the address, as a "read only account" into the wallet software of an online computer/phone (or search it in a blockchain explorer) first, just to be 100% sure there have never been any transactions on your new address before. – Robherc KV5ROB Jan 29 at 13:39
  • @RedGrittyBrick I might suggest a slight edit to "master private key" in your post, as legacy P2PKH wallets only use a "private key" and bech32 et all use a "master seed"/"master seed mnemonic". – Robherc KV5ROB Jan 29 at 13:42
  • @RobhercKV5ROB: Suggestion accepted, thanks. – RedGrittyBrick Jan 29 at 13:57

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.