A private key is the secret half of a key pair in public-key cryptography. Its owner uses it to create digital signatures and, in some systems, to decrypt messages, while the matching public key can be shared freely so that others can verify those signatures. In cryptocurrency, a private key is what authorises a transfer from an address: the network accepts a transaction only if it carries a valid signature made with the right key.
Private keys are used well beyond crypto, in website certificates, secure email, card payment hardware and bank messaging. On Money Wiki the general concept of a cryptographic key has its own page; this entry focuses on private keys as they are used to hold digital assets. The old title's "PK" is avoided because the same letters are widely used for "public key".
Private key in plain terms
Picture a glass mailbox in a public square. Everyone can see what is inside and anyone can drop coins in through the slot, which is like knowing the address. Only one physical key opens the door and lets coins out, and whoever has that key can empty the box, no questions asked.
A private key is that door key, written as a very long number. There is no bank to call if it is lost, and no way to cancel it if it is copied. That is why people say "not your keys, not your coins".
How private keys work
In Bitcoin and Ether the private key is a 256-bit number, chosen at random, that is used with the elliptic curve called secp256k1. The public key is derived from it by elliptic-curve multiplication:
- is the private key, a random whole number between 1 and the order of the curve (just under ).
- is a fixed starting point on the curve, published in the standard.
- is the resulting public key, a point on the curve.
Going from to is quick, but going back from to is believed to be infeasible with today's computers. An address is then made by hashing the public key, for example Ethereum takes the last 20 bytes of a Keccak-256 hash. The scale is what makes the system work: is roughly , so a correctly generated random key is, for practical purposes, impossible to guess. When the owner spends, the wallet uses to produce a digital signature over the transaction, which nodes check against without ever learning .
Seed phrases and wallets
Most modern wallets do not show users individual keys. Under the BIP-32 and BIP-39 standards, a wallet generates one random value, displays it as a seed phrase of 12 or 24 words, and derives a whole tree of private keys from it. Backing up the phrase backs up every key the wallet will ever produce. How keys are held defines the type of wallet:
- Custodial. In a custodial wallet, an exchange or crypto custody provider holds the keys and the user holds a claim on the provider.
- Self-custody. In a non-custodial wallet, only the user holds the keys or seed phrase.
- Offline storage. A cold wallet or hardware device keeps keys off internet-connected machines; see cold storage of keys.
- Shared control. A multi-sig wallet requires signatures from several keys, and a multi-party computation (MPC) wallet splits one key into shares so no single device ever holds it whole.
Risks and losses
Because a private key is a bearer credential, theft and loss are final. The main threats are:
- Exposure. Keys pasted into chats, stored in cloud notes or committed to public code repositories are found within minutes by bots running a private key sweeper script.
- Social engineering. Fake support agents, fake wallet apps and phishing sites trick users into typing a seed phrase; see social engineering.
- Weak randomness. Keys generated from guessable inputs, such as "brain wallets" built from a memorable sentence, have been emptied by attackers testing common phrases.
- Loss. Forgotten passwords, discarded drives and owners who die without passing on access have left large amounts of bitcoin permanently unspendable.
Keys in regulated custody
For institutions, key management is the core of crypto custody. Regulators and auditors look at how keys are generated, where they are stored, who can approve a signature and how backups are protected. Frameworks such as the EU's Markets in Crypto-Assets Regulation (MiCA) and state regimes such as the New York BitLicense require custodians to safeguard client assets, keep them separate from their own and maintain security controls. Firms often combine hardware security modules, multi-person approval and geographically separate backups. Looking further ahead, a large enough quantum computer could in theory derive private keys from exposed public keys, and blockchain developers are studying migration to quantum-resistant signature schemes.