12 / 736KEY

Private Key

secret signing key

The secret a wallet uses to authorize payments. How private keys work, why they must stay private, and how they differ from a PIN and recovery words.

A Private Key is a secret number that a wallet uses to create digital signatures. A signature proves authorization to spend the relevant bitcoin without revealing the key to anyone else. The money is not stored inside the key: the network records amounts and the conditions for spending them. The key lets you satisfy those conditions, which is why protecting it matters.

Suppose you want to send bitcoin to a friend. Your wallet prepares a transaction and signs it with a private key. Other network participants can use the corresponding public key to check the signature; they do not need the secret itself. With a correct implementation, the signature does not reveal it. The public key is therefore for verification, the private key for signing. A receiving address is something you can give the payer, not a private key. More elaborate arrangements may require more than one signature: Multisig requires several signatures, and a time lock may delay spending. [1] [2]

A wallet creates secure keys from high-quality randomness or derives them from a securely generated starting secret, the seed. A favorite sentence or a birthday is predictable for this purpose. Technically, the key is a number greater than zero and smaller than the group order of secp256k1, the mathematical system Bitcoin uses for signatures. A public key can be calculated from it; reversing that calculation is not practical under the usual security assumptions. If you encounter WIF, it is a format for transferring a key with a check for copying errors. It is not encryption: anyone who gets that representation gets the key. [1] [3] [5]

A typical modern wallet manages many keys. BIP 32 derives them like branches of a tree from a common starting point; backing up one branch does not save the others. A Seed Phrase, recovery words used for example in BIP 39, helps recover that starting point. It is not simply one private key written as words. An optional BIP39 passphrase is another input to the derivation: different text produces a different seed and wallet, usually with no warning about a typo. A PIN, by contrast, protects access to a particular device or app. Changing it does not change existing keys. [3] [4]

A Hardware Wallet is a separate device designed to protect keys and sign transactions internally. It can return a signed transaction to the computer without giving it the private key. This reduces the risk of malware on the computer stealing the key. What you approve still matters: check the destination address and amount on the device’s trusted screen. Security also depends on its software and how you store the backup. Simply owning a hardware wallet therefore does not guarantee that funds are safe in every situation. [5]

Losing a phone need not mean losing funds if you have a usable backup and can restore the keys from it. Without keys or a way to recover them, however, there is no central office that can grant access again. The opposite problem arises if someone copies the secret: they still know it after you change the PIN or app password. If you think the key has leaked, create a new wallet securely with independent keys and move any funds still available to it. Never send real keys or recovery words to a chat or a website offering to check or repair a wallet. Test recovery through your trusted device’s procedure, not by entering secrets into someone else’s form. [3] [4] [5]

For the clearest picture, read this entry together with Wallet, Transaction, UTXO, Bitcoin. The reverse links also lead from Transaction, UTXO, Wallet, Taproot.

01Must a Private Key leave the signing device to sign?

No. The device can create a signature internally and return signed data without the Private Key. Exporting or typing the key into another environment expands the places where it could leak.

02Can a lost Private Key be reset?

There is no service that can reset a lost key and issue a new one with the same access. You can recover the original from a copy or the correct wallet backup, including the necessary derivation information. Some arrangements already allow another way to spend, such as a different permitted combination of signatures. Meeting those conditions may preserve access to the funds, but does not restore the lost key.

DOC · 001libsecp256k1: secret-key interfacePrimary DOC · 002Bitcoin Developer Reference: TransactionsPrimary DOC · 003BIP 32: hierarchical deterministic walletsPrimary DOC · 004BIP 39: mnemonic to seedPrimary DOC · 005Bitcoin Developer Guide: WalletsPrimary
Revised: Source-first · No investment advice