2 min to read.
Private Key
A secret number that proves ownership of cryptocurrency and is used to sign transactions.
What is a Private Key?
A private key is a secret number that gives control over the cryptocurrency associated with it. It is used to create digital signatures, which prove to the network that a transaction was authorised by the owner. Whoever knows the private key can spend the coins, and nobody can spend them without it.
How it works
Cryptocurrencies use public-key cryptography. A wallet generates a private key at random; in Bitcoin and Ethereum it is a 256-bit number. From it, a public key is calculated using elliptic-curve mathematics, and from the public key an address is derived. These steps work in one direction only. Knowing an address or public key does not make it feasible to compute the private key.
To spend coins, the wallet signs the transaction with the private key. Nodes verify the signature using the public key. The private key itself is never sent to the network.
The number of possible keys is so large that two people generating keys properly at random will, for all practical purposes, never create the same one.
Example
Written in hexadecimal, a private key is a string of 64 characters. Most users never see it. Modern wallets derive all their private keys from a single seed phrase of 12 or 24 words, and that phrase is what users back up.
Why it matters
There is no password reset on a blockchain. A lost private key, with no backup, means that the coins can never be moved again. A stolen or copied key means that someone else can move them, and the transaction cannot be reversed. The saying "not your keys, not your coins" refers to this: coins held on an exchange are controlled by the exchange's keys.
Risks and precautions
- Never share a private key or seed phrase. No legitimate service or support agent needs it.
- Do not store keys in screenshots, email or cloud notes.
- Phishing sites and fake wallet apps exist to trick people into typing their keys.
- Keep backups offline, in more than one safe place.