Public Key

Public Key

A public key is a cryptographic code that allows users to receive cryptocurrencies into their accounts. Since a public key is fashioned from the private key, the user’s public key is used to prove that the digital signature came from his private key. Since it's impossible to regenerate the private key from public key or address, if a user loses his private key, any bitcoin or altcoin located at his public address will be inaccessible forever. The cryptocurrency network stays secure by using complicated mathematical functions to ensure that a private key is not able to be worked out from the public key, especially since the public key and its hash version are seen by everyone on the network. In effect, the private key generates the public key, which, in turn, generates the public address.

A public key is a cryptographic code used to facilitate transactions between parties, allowing users to receive cryptocurrencies in their accounts.

What Is a Public Key?

A public key is a cryptographic code that allows users to receive cryptocurrencies into their accounts. The public key and the private key are the tools required to ensure the security of the crypto economy.

A public key is a cryptographic code used to facilitate transactions between parties, allowing users to receive cryptocurrencies in their accounts.
Users are issued a private key and a public key when first initiating a transaction.
The private key is made available only to its user and authorizes the user to facilitate transactions from their account.
The public key is used to verify the digital signature, which proves ownership of the private key.

How a Public Key Works

When a user initiates his or her first transaction with bitcoin or altcoins, a unique pair of a public key and a private key is created. Each of the keys consists of a long string of alphanumeric characters that help to keep a user’s holdings secure in the digital ecosystem.

The private key is known to the user alone and serves as the user’s digital ID. The private key authorizes the user to spend, withdraw, transfer, or carry out any other transaction from his or her account. A sophisticated algorithm is applied to the private key to generate the public key, and both keys are stored in a digital wallet.

When a transaction is initiated by a user to send, say bitcoins, to another person, the transaction has to be broadcast to the network where distributed nodes confirm the validity of the transaction before finalizing it and recording it on the blockchain.

Before the transaction is broadcast, it is digitally signed using the private key. The signature proves ownership of the private key, although it does not divulge the details of the private key to anyone. Since a public key is fashioned from the private key, the user’s public key is used to prove that the digital signature came from his private key. Once the transaction has been verified as valid, the funds are sent to the recipient’s public address.

The public address is a hashed version of the public key. Because the public key is made up of an extremely long string of numbers, it is compressed and shortened to form the public address. In effect, the private key generates the public key, which, in turn, generates the public address.

When two people enter into an agreement where one sends the other tokens or coins, they reveal their public addresses to each other. The public address is like a bank account number. The sender needs the number to be able to send the funds to the recipient who will then be able to spend or withdraw it with his private key. The recipient can also verify the sender’s batch of coins using the sender’s public address that will be displayed on his or her screen.

Special Considerations

Although the public key and address are worked out from the private key, the reverse case is nearly impossible.

The cryptocurrency network stays secure by using complicated mathematical functions to ensure that a private key is not able to be worked out from the public key, especially since the public key and its hash version are seen by everyone on the network.

Since it's impossible to regenerate the private key from public key or address, if a user loses his private key, any bitcoin or altcoin located at his public address will be inaccessible forever. On the other hand, a user who loses his public key can have it recreated with the private key.

Related terms:

Altcoin Investing: What Investors Need to Know

An Altcoin is an alternate cryptocurrency other than Bitcoin. Learn about Altcoins, how they work, and which are the most popular. read more

Introduction to the Bitcoin Wallet

A Bitcoin wallet is a software program in which Bitcoins are stored. Discover how Bitcoin wallets work here. read more

Bitcoin

Bitcoin is a digital or virtual currency created in 2009 that uses peer-to-peer technology to facilitate instant payments. read more

Blockchain : What You Need to Know

A guide to help you understand what blockchain is and how it can be used by industries. You've probably encountered a definition like this: “blockchain is a distributed, decentralized, public ledger." But blockchain is easier to understand than it sounds. read more

Cryptocurrency : What Is Cryptocurrency?

A cryptocurrency is a digital or virtual currency that uses cryptography and is difficult to counterfeit because of this security feature. read more

What Is a Digital Wallet?

A digital wallet is a a piece of software that stores payment information and transaction history. read more

Distributed Applications (ĐApps)

Distributed Applications (DApps) are software applications that are stored mostly on cloud computing platforms and that run on multiple systems simultaneously. read more

Private Key

A private key is a sophisticated form of cryptography that allows a user to access their cryptocurrency. read more

Proof of Work (PoW)

Proof of work describes the process that allows the bitcoin network to remain robust by making the process of mining, or recording transactions, difficult. read more

Stealth Address (Cryptocurrency)

Stealth addresses hide the identity of the receiver of a blockchain transaction, ensuring stronger privacy and anonymity on the Monero network read more