Operate crypto with copy trading at BitgetSponsoredCreate Account at Bitget
Public key and private key: what they are and how to protect their
Learn

Public key and private key: what they are and how to protect their

Whoever has the private key controls the coins. See how keys, addresses, signatures and seed phrase work and how to avoid losses and blows.

Photo: Unsplash

By Boletim Bitcoin newsroom

. 11 min reading.

In short: Every bitcoin and other cryptocurrency wallet works with a pair of keys. The private key is a 256-bit secret number that allows you to spend the coins; Anyone who knows her controls the funds. The public key is derived from the private one by a one-way mathematical operation and serves to generate the address and check signatures. You can share the address at will, but never the private key or the seed phrase, which is the readable way to store all the keys to a wallet. Understanding this is the first step to not losing money in crypto.

Keys in numbers

256 bitsSize of a Bitcoin Private Key
64 charactersprivate key written in hexadecimal
2,048 wordsList used in seed phrases BIP-39
12 a 24Words from a seed phrase

"Not Your Keys, Not Your Coins" is one of Bitcoin's most repeated mottos. It summarizes a technical truth: in the crypto world, possession is defined by those who have the private key, not by those who have their name in a register. This guide explains what are private key, public key and address, how they relate, the role of seed phrase, digital signatures and how to safely store everything. If you need it, read it before cryptocurrency wallet e seed phrase.

Public key cryptography, in a few lines

Public key encryption uses related key pairs: a public one, which can be shared, and a private one, which needs to be kept secret, according to the Wikipedia. Pairs are generated with one-way mathematical functions: it's easy to get from the private key to the public one, but practically impossible to do the other way around.

The idea was born in the 1970s. Whitfield Diffie and Martin Hellman published in 1976 a method for two parties to combine a secret through an open channel, and Rivest, Shamir and Adleman created the RSA in 1977. Today, the The same family of techniques protects the internet, internet banking and cryptocurrencies.

ElementWhich isCan share?
Private keySecret number authorizing expensesNever
Public keyDerived from the private; check signaturesYes, but it is rarely necessary
AddressSummarized version of the public key, to receiveYes
Seed phraseWords that generate all the keys of the walletNever

What is the private key

According to Bitcoin Wiki, the private key is a secret number that allows you to spend the bitcoins it controls, such as a "ticket" to spend. It is a 256-bit number, which can be written with 64 characters in hexadecimal. Almost every 256-bit number is a valid key, within a limit defined by the SECP256K1 curve used by Bitcoin.

The number of possible keys is so large that guessing someone's key for trial and error is unfeasible with current technology. The real risk is not mathematics, but the human being: keys generated with little randomness, copied to unsafe places, typed on fake or photographed sites.

A private key in the WIF format starts with "5", "K" or "L" on the main Bitcoin network, according to Bitcoin Wiki. If someone asks for this code, or your seed phrase, it's a scam.

Public key and address

The public key is calculated from the private with elliptical curve encryption. From the public key, the wallet generates the address, which is what you share to receive. Bitcoin Wiki notes that the private keys are mathematically related to all the addresses generated by the wallet.

The address works like the number of an account, but no name. Anyone can send it to him, and all transactions are visible on the blockchain. Therefore, the Bitcoin Whitepaper Recommends using a new key pair for each transaction, which makes it difficult to link payments to the same owner. Vide bitcoin address checker e UTXO.

  1. Private key256-bit random number, kept secret.
  2. Public keyCalculated from the private; The reverse path is unfeasible.
  3. AddressDerived from the public key and formatted to receive payments.
  4. SignatureThe private key signs the transaction; The network matches the public.

Digital signature: how the network knows you are

To spend, the wallet uses the private key to sign the transaction. The Wikipedia He explains that anyone with the corresponding public key can verify that the signature matches the message, and that a counterfeiter without the private key cannot produce a valid signature.

The Bitcoin whitepaper describes the tenure chain in the same way: each owner transfers the currency by signing the hash of the previous transaction and the next owner's public key, and the recipient can check the signatures. The private key never leaves the wallet; What goes to the network is just the signature.

Seed Phrase: all keys in 12 or 24 words

Few people deal directly with private keys. Modern wallets use a seed phrase, which holds the same information in a legible way. the pattern BIP-39 Transforms an amount of randomness of 128 to 256 bits into 12 to 24 words, taken from a list of 2,048 words. Each word represents 11 bits, and there is a checksum for detecting errors.

From these words, and from an optional additional password, the wallet calculates a 512-bit seed and, from it, derives as many keys as needed. Therefore, a single backup recovers the entire wallet in any compatible application. Vide seed phrase e multisig.

LayerWhat keepsLeak
Seed phraseAll wallet keysLoses everything the wallet controls
Private keyA specific keyLoses what that address controls
Additional password (passphrase)Extra layer over the seedAlone does not give access
App passwordProtect the app on mobileDoes not replace the seed

Broker or own wallet: who has the keys?

When you leave crypto at a brokerage, the company controls the keys. You have a balance in her system, like a bank. This is practical to negotiate, but it means trusting that the company will not break, be hacked or block looting. The attacks on Binance and the Bitcoin market in 2026 and cases like FTX and Mt. Gox show the risk. Vide What happened to FTX e Mt. Gox.

In a self-custody wallet, you hold the keys. There is no company in the middle, but there is also no support: if you lose the seed phrase, no one recovers. Many investors combine the two: they leave at the brokerage only what they are going to negotiate and keep the rest in hardware wallet. Vide best bitcoin wallet.

How to safely store keys and seeds

  • Write the seed phrase on paper or metal plate, never in photo, cloud, email or cell phone notepad.
  • Store copies in different physical locations, protected from fire and water.
  • Consider a hardware wallet, which keeps the keys off the computer.
  • Use the additional password (passphrase) if you understand how it works, and save it separately from the seed.
  • Never type the seed on the websites, forms or "supports" that ask for it.
  • Test recovery with a small value before saving large values.
  • Plan the inheritance: someone you trust needs to know how to access in an emergency.

More guidelines in crypto security checklist e Wallet Security Quiz.

What happens if you lose or leak

If the private key or SEED Phrase leaks, anyone can spend the funds, and Bitcoin Wiki recommends immediately moving the balance to a new and secure address. If lost without backup, the coins are inaccessible forever. It is estimated that millions of Bitcoins are lost like this. stories like those James Howells, who threw bitcoins in the trash, and from Stefan Thomas and the lost password show the cost of an error. see too lost bitcoins.

Blows that look at your keys

As the private key is everything, scammers don't try to break cryptography: they try to convince you to hand it over. The most common methods have been repeated for years and continue to function because they exploit haste, fear or greed. The defense is always the same: the seed doesn't get off the ground.

BlowHow it worksHow to protect yourself
False supportSomeone pretends to be an attendant and asks Seed to "solve" a problemReal support never asks for SEED
Cloned websiteThe same page as the wallet asks for the words to "synchronize"Never type the seed on websites
Fake appPirate application copies the generated keysDownload only from the official store and check the developer
"Gift" SeedScammer announces seed with balance to attract tax depositsIgnore; it's bait
MalwareProgram changes the copied address or reads filesUse hardware wallet and check the on-screen address

See examples in False Support Strike, telegram bots e How to protect crypto from scams and hackers.

What about Ethereum and other networks?

The logic is the same in virtually all cryptocurrencies. In Ethereum, the private key also has 256 bits and the address is derived from the public key; Transactions for smart contracts are authorized by the same signature. Ethereum.org recalls that transactions are linked to addresses, not identities, and that signing without understanding the content, the so-called blind signature, is a risk. Vide What is Smart Contract.

This guide is educational. No serious company asks for your private key or seed phrase. Whoever asks is trying to steal your funds.

Frequently asked questions

What is the difference between a public key and a private key?

The private key is a secret number that authorizes to spend the coins; Whoever has it controls the funds. The public key is derived from the private one, serves to check signatures and generate the receipt address. The path from the private to the public is easy; The reverse is unfeasible.

Can I share my public key?

It can, but it is rarely necessary. To receive, you share the address, which is derived from the public key. The private key and SEED Phrase should never be shared with anyone, not even with a brokerage or wallet support.

What is Seed Phrase?

It is a sequence of 12 to 24 words, usually in the BIP-39 pattern, which saves the information needed to generate all the keys of the wallet. With it, you recover the wallet in any compatible application. Whoever has access to the words controls the funds.

Can you find the private key from the address?

With current technology, no. The relationship between private key, public and address uses one-way mathematical functions. The number of possible keys is so large that guessing by trial and error is unfeasible. The real risk is in leaks and blows.

If I lose the private key, will I lose bitcoin?

If there is no SEED Phrase backup, yes: the funds are inaccessible forever, because there is no company or master password to recover. Therefore, store the seed in paper or metal, in more than one safe place, and test the recovery before saving high values.

At the brokerage, who has the private key?

The broker. You have a balance in her system, like a bank. It is practical to negotiate, but it depends on the solidity of the company. To store in the long run, many investors prefer a self-custody portfolio, preferably hardware.

Someone from the support asked for my seed. it's normal?

No. It's a blow. No brokerage, portfolio or serious company asks for private key or seed phrase. With this information, the scammer manages to take all the funds, and the transaction cannot be reversed. Close the contact and look for the official channel.

References

  1. Wikipedia: Public-key cryptography
  2. Bitcoin Wiki: Private key
  3. BIP-39: Mnemonic code for generating deterministic keys
  4. Satoshi Nakamoto: Bitcoin Whitepaper (transactions and privacy)
  5. Ethereum.org: Smart Contracts (addresses and signature blind)
  • private key
  • public key
  • seed phrase
  • self-custody
  • security
  • guide

This content is informative and is not an investment recommendation. found an error? Write to contato@boletimbitcoin.com.

Read also

Learn

Fundamentalist Indicators Quiz

Test if you know how to calculate and interpret P/L, P/VP, Dividend Yield, LPA, EV/EBITDA and Net Debt/EBITDA. 8 questions with explanation.

Start at Bitget Today

Open your Bitget account and access Spot, Futures, Copy Trading and Trading Robots in one app.

  • Copy trading
  • Spot and futures
  • Trading robots
  • All-in-one app
Advertising. Crypto involves risk, invest responsibly.
Create Account at Bitget