Question: how are ethereum private keys generated?
Answer: Private keys are generated as random 256 bits, which is 64 (hex) characters or 32 bytes. After this, Ethereum public keys (128 characters / 64 bytes) are created using an algorithm called Elliptic Curve Digital Signature Algorithm (ECDSA). Ethereum uses secp256k1 to generate public keys.