Public Key
A public key is like a lock that everyone can see but only you can unlock. It is a long string of characters that is mathematically derived from your private key, which you keep secret. Just like a lock, the public key is used to secure transactions on the blockchain. When someone wants to send you cryptocurrency, they use your public key — or more commonly, a shorter address derived from it — to direct the funds to your wallet. Anyone can see this address and send funds to it, but only the holder of the corresponding private key can authorize spending from it.
The relationship between a public key and a private key is one-way by design. It is computationally easy to generate a public key from a private key, but essentially impossible to reverse-engineer the private key from the public key given current mathematics and computing power. This asymmetry is the foundation of public key cryptography, and it is what allows cryptocurrency networks to be transparent and auditable while still preserving the security of individual accounts. Every transaction on a public blockchain is signed with the sender's private key and verified by the network using the public key.
In practice, most users interact with a wallet address rather than a raw public key. A wallet address is derived from the public key through a series of hashing functions, making it shorter and easier to use. Despite this abstraction, the underlying public key infrastructure remains the backbone of all cryptocurrency ownership and transaction verification. Understanding this relationship helps traders appreciate why wallet security matters and why sharing an address to receive funds carries no risk — only exposing the private key does.