Public Key

A public key is a cryptographic value mathematically derived from a private key. It can be shared openly and lets others verify signatures made with that private key. On most blockchains, wallet addresses are generated from it.

Wallet software creates a public key from a private key using elliptic curve cryptography. Bitcoin and Ethereum both use the secp256k1 curve. The calculation is quick in one direction, but working backward from a public key to its private key is computationally infeasible. That one-way property is why a public key can be shown to anyone without putting funds at risk.

Its main job is verification. When a transaction is sent, the wallet signs it with the private key. Nodes on the network then use the matching public key to confirm the signature is valid, without ever seeing the private key. This proves the owner authorised the transaction.

Most blockchains do not use the raw public key as the receiving address. Bitcoin hashes it with SHA-256 and then RIPEMD-160, adds a checksum, and encodes the result in a format such as Base58Check or Bech32. Ethereum takes the Keccak-256 hash of the public key and keeps the last 20 bytes, which are displayed as an address starting with 0x.

A common misconception is that the public key and the address are the same thing, and the name "public address key" adds to the confusion. They are linked, but the address is usually a shorter, hashed form of the key. Sharing either one lets others send funds and view on-chain activity, but neither can be used to move funds. Only the private key, or the seed phrase it comes from, must stay secret.

Learn more

Related terms