Bitcoin Private Key vs Public Address: What You Can Share
Understand Bitcoin addresses, private keys, WIF and recovery phrases, including what to back up when generating a custom Bitcoin address.

Overview
Putting the address on an invoice can be appropriate. Putting the private key on that invoice would give the recipient access to the funds controlled by it. The distinction sounds simple, but confusion often begins when both outputs appear as long strings in the same result panel.
The address is not the public key
“Public address” and “public key” are related terms, not interchangeable ones. For a legacy P2PKH address, the address encodes a hash of the public key together with version and checksum information. Bitcoin supports other output types with different constructions.
The Bitcoin transaction guide explains how spending conditions and public-key hashes fit together. An address is a convenient way for a wallet to construct the intended payment output; it is not a container holding a secret.
This also explains why knowing a receiving address does not let someone calculate its private key through a normal reverse operation. Sharing an address is necessary for receiving payments. Sharing its key is not.
What is a WIF private key?
WIF means Wallet Import Format. It is an encoding used to transfer a Bitcoin private key between compatible tools. The format includes information relevant to interpretation, including the network version and, when present, the compressed-public-key marker. It is not encryption.
Someone who receives an unencrypted WIF key has received the secret, even though it does not look like a short password. The Bitcoin wallet reference describes private-key formats and their encoding.
Keep the original export intact. Do not remove a character, change its case or pass it through an online “converter” simply because an import form rejects it. First check whether that wallet supports the exported key and intended address type.
A recovery phrase is a different backup
A recovery phrase can restore the keys derived from that phrase. A separately generated vanity key is not automatically one of those keys. Importing it into a wallet does not retroactively derive it from an existing phrase.
The Bitcoin wallet guide distinguishes independent keys from deterministic wallets. For your own records, identify whether this specific receiving address is restored by a seed backup, a separate key export or another supported backup method.
Do that before the address receives anything important. A backup labeled only “Bitcoin wallet” is ambiguous if you have several wallets and loose imported keys.
Importing and sweeping do different things
Importing adds a key to a compatible wallet so it can manage the associated outputs. Sweeping creates a transaction that spends available funds to a destination controlled by the receiving wallet. A sweep is a network operation and normally involves a fee.
Sweeping to a new address does not make that new address inherit your vanity pattern. It also does not redirect future payments sent to the old address. Electrum's import and sweep FAQ explains the distinction in its own workflow.
Choose based on your purpose: continuing to use a custom address is different from moving funds away from a key you no longer want to rely on.
Separate public information from backups
Keep the receiving address, network and intended use in ordinary payment records. Keep private-key material in your chosen secure backup system. Avoid placing both in a shared spreadsheet, design file or issue report.
A support request should describe the error and public address when needed; it should never contain the private key. If troubleshooting requires someone to possess your key, stop and reconsider the process.
When using CustomBTCAddress, verify the generated address in a compatible wallet and record its address type. Preserve the matching private-key export separately. The pattern is the visible part of the result; the backup is what makes that result usable later.
المصادر والمنهج التحريري
تدعم المراجع التقنية أدناه المفاهيم التي يناقشها هذا المقال. الأمثلة وأوراق المقارنة توضيحية، وليست قياسات معيارية لأداء الخدمة.


