DEFINITION of 'Public Key'

A public key is a cryptographic code that allows a user to receive cryptocurrencies into his or her account. The public key coupled with the private key are significant tools required to ensure the security of the crypto economy.

BREAKING DOWN 'Public Key'

When a user initiates his/her first-ever transaction with bitcoin or altcoins, a unique pair of public key and private key is created. Each of the keys are 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 broadcasted to the network where distributed nodes (i.e. people behind computers) confirm the validity of the transaction before finalizing it and recording it on the blockchain. Before the transaction is broadcasted, 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.

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 its 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
  1. Private Key

    A private key is a sophisticated form of cryptography that allows ...
  2. Key Generator (KeyGen)

    Key Generator is a tool used to generate and validate the necessary ...
  3. Stealth Address (Cryptocurrency)

    Stealth addresses hide the identity of the receiver of a blockchain ...
  4. Key Image (Cryptocurrency)

    Key image is used as an integral part of Monero's ring signature ...
  5. Public Company

    A public company issues securities through an initial public ...
  6. Privately Owned

    Privately owned refers to businesses that have not offered public ...
Related Articles
  1. Small Business

    Why Companies Stay Private

    Many private companies prefer to stay private and find alternate sources of capital. Find out what firms have to gain by eschewing the windfall from a flashy IPO.
  2. Tech

    Coinbase Wins Patent for Securing Bitcoin Payments

    Coinbase secures a patent for a system that prevents crypto payments from compromising security.
  3. Tech

    What is a Cryptocurrency Public Ledger?

    Investopedia looks at what is a cryptocurrency public ledger and how it operates.
  4. Tech

    How Does Blockchain Work?

    Blockchain technology supports the cryptocurrency space and many other promising applications.
  5. Tech

    Protect Your Bitcoins Against Theft and Hacks

    Because hacking methods change, vigilant investors have the best chance of avoiding trouble.
  6. Investing

    How to Invest in Private Equity

    Private equity might be a pricey investment, but the payoff could be big. Here's why and where you should invest in private equity.
  7. Investing

    Using Public SEC Filings To Analyze Companies

    Reports from the Securities and Exchange Commission provide investors with an edge in determining the investment value of companies. Learn what to look for in these financial reports.
  8. Tech

    Indian Exchange Coinsecure Hit By $3.5 Million Bitcoin Theft

    India's Coinsecure exchange said 438 bitcoin, or about $3.5 million, had been stolen from the company's wallet.
RELATED FAQS
  1. Is a private company required to show financial information?

    Understand whether a private company is required to disclose financial information to the public. Learn what is required ... Read Answer >>
  2. How can I sell private company stock?

    In some instances, both private and public companies may issue shares to their own employees as part of a compensation program. ... Read Answer >>
  3. What are the advantages and disadvantages for a company going public?

    Companies often use an initial public offering (IPO) as a way to generate capital. There are both advantages and disadvantages ... Read Answer >>
Trading Center