How is the "Private Key" created in the first place?
I understand that once you have your wallet, you will also gain access to your public key and private key...
But in order to have a wallet address, one first must have a public key and in order to have a public key, one must have a private key.
So back in the days when crypto wallets did NOT exist, how did it happen?
I am trying to understand what actually happens first. After all, a wallet simply provides a simple view into what is happening on the blockchain (allowing to send and receive), but there is actually no crypto in a wallet, since everything is attached onto the blockchain.
Actually, what is the data attached too? Is there some sort of account created on the blockchain, that then has private keys, public keys and wallet addresses associated with it?