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. Stealth Address (Cryptocurrency)

    Stealth addresses hide the identity of the receiver of a blockchain ...
  2. Public Company

    A public company issues securities through an initial public ...
  3. Public Book (Of Orders)

    The public book (of orders) is an electronic list containing ...
  4. Private Sector

    The private sector is the part of the economy that is not state ...
  5. ZCash

    ZCash is a cryptocurrency with a decentralized blockchain that ...
  6. Paper Wallet

    A paper wallet is an offline mechanism for storing Bitcoins. ...
Related Articles
  1. Tech

    How Bitcoin Works

    Miners, hashes, keys, cold storage, blocks - it's confusing. We can help you understand how bitcoin works.
  2. Tech

    What is a Cryptocurrency Public Ledger?

    Investopedia looks at what is a cryptocurrency public ledger and how it operates.
  3. Investing

    Methods used in valuing private companies

    There are a few methods for calculating the valuation of a private company. By using financial information from peer groups, we can estimate the valuation of a target firm.
  4. Managing Wealth

    IPO Versus Staying Private: Pros and Cons of Each

    Here's a look at how the benefits or risks in having an IPO as opposed to going private.
  5. Financial Advisor

    Should My Portfolio Include Private Equity?

    Private equity offers a lot of potential, but is it worth the risk?
  6. Tech

    The Five Most Private Cryptocurrencies

    Investopedia's list of private cryptocurrencies that claim to offer enhanced security and protection of user identity.
  7. 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.
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. What does "going public" mean?

    Going public refers to a private company's initial public offering (IPO), thus becoming a publicly traded and owned entity. ... 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