Skip to main content

How Is a Bitcoin Private Key Generated?

A Bitcoin private key is essentially a large, random number, typically a 256-bit number. It is generated by a cryptographically secure pseudo-random number generator (CSPRNG).

The quality of the randomness is paramount; if the number is not truly random, the private key could be guessed, leading to the theft of funds. The number is usually represented as a sequence of letters and numbers or as a 12- or 24-word seed phrase (BIP-39).

Can a Seed Phrase Be Used to Restore Multiple Private Keys?
What Is the Relationship between a Private Key and a Seed Phrase?
What Is the Recommended Practice for Backing up a Private Key or Seed Phrase?
What Is the Purpose of the ‘Passphrase’ in a BIP-39 Seed Phrase?