Public Key
A public key is computed from a private key and lets anyone verify its signatures. Addresses are derived from public keys; knowing one does not allow spending.
What Is a Public Key?
A public key is the counterpart of a private key: a number computed from it that anyone may see and that lets others check signatures made with the private key. The calculation runs one way only. Bitcoin and Ethereum both use the elliptic curve secp256k1 for it, and no known method leads from the public key back to the private key.
An address is not the public key itself but is derived from it. Most Bitcoin address types contain a hash of the public key, and an Ethereum address is the last 20 bytes of a hash of it. When coins are spent, the network checks the signature against the public key to confirm that the holder of the private key authorised the transaction.
Wallets work with many keys. From one seed they derive a tree of key pairs, and an extended public key (xpub) can generate all the public keys and addresses of an account without any private key. That is how a companion app shows balances and creates receive addresses while the private keys stay inside the hardware wallet.
Public does not mean harmless to share. Whoever has your xpub can see every address and the full history of that account, though they cannot spend from it. Give it only to software you trust.
Real-World Examples
Example 1: An Ngrave Zero is paired with its phone app by scanning QR codes. What passes to the phone are public keys: enough to show balances and prepare transactions, not enough to sign them.
Example 2: A shop owner loads the xpub of their hardware wallet into payment software that creates a fresh address for each invoice. The server can receive payments, but a breach of it cannot move the funds.
Frequently Asked Questions
Can someone steal my coins if they know my public key or address?
No. A public key lets others check signatures, but spending requires a signature made with the private key, and no known method leads from the public key back to the private key. Addresses are derived from public keys, so sharing an address to receive funds does not let anyone move them.
Is it risky to share my xpub?
An xpub cannot be used to spend, but it is a privacy risk. It generates all the public keys and addresses of an account, so whoever has it can see every address and the full history of that account. Give it only to software you trust, such as a companion app or payment software that needs to show balances or create receive addresses.
How can a companion app show my balance without my private keys?
The hardware wallet gives the app public keys, typically an extended public key for each account. From these the app derives addresses, looks up balances and prepares transactions. Signing still needs the private keys, which stay inside the device, so the app can display and prepare but cannot spend.
Ready to Choose a Secure Wallet?
Use our tools to find the right hardware wallet for your needs.