1.)
The private key is at the beginning a random number generated by the computer.
This results at the end to the final private key in base58 or bench32 (native segwit) format.
Generate a privat key (base58 format)
-Understanding Bits. …
-Understanding Random Numbers. …
-Step 1: Generate a random set of data. …
-Step 2: Convert random data to 256-bit number. …
-Step 3: Verify Number. …
-Step 4: Add version number. …
-Step 5: Add 32 bit checksum. …
-Step 6: Convert new hexadecimal to base58.
The public key is a special formular of the private key.
The private key must be kept secret
The public key can be shared publicly.
2.)
-
I can use the public key to encrypt a message and send it on an insecure network.
Only people with the private key can decrypt an read the message.
-
In Bitcoin i can sign a massage to proof that i am the owner of the private keys an the Bitcoins.
That was for example necessary for some airdrops. (Mimblewimble Coin, Hex)
That would also be a way for Craig Wright to prove that he really is satoshi nakamoto.
But he doesn’t do it… hmmm…