What are public keys, private keys and wallet addresses? (2024)

Understanding addresses, public keys, and private keys is critical to understanding how cryptocurrencies work.

In this article, you will learn the difference between a private key and a public key.

In cryptography, a public key and private key are both needed to access any encrypted information. In essence, cryptography is the practice of encrypting certain information to keep it secret from third parties. It is used to ensure that only a party with permission can decipher the data.

What is cryptography?

The term “cryptography” has Greek roots and originally meant “secret writing.” Over time, cryptography evolved from intelligence agencies and the military writing and decoding confidential messagesand became a separate branch of computer science. Similar to the internet, the origins of cryptocurrencies can be traced back to academic and military use cases, which eventually expanded to the private sphere.

People involved in this movement refer to themselves as “cypherpunks” and have been advocating a shift to greater privacy and control over our data since the late 1980s.

The origins of cryptocurrencies can be traced back to academic and military use cases, which eventually expanded to the private sphere.

Why do cryptocurrencies such as Bitcoin use a two-key system?

The basic concept behind the two-key system is the following: the public key allows you to receive transactions, while the private key is necessary to send transactions. It gets a little bit more complicated when we take a look at how this ingenious system actually works.

Using two different keys (a public and a private key) is called asymmetric cryptography, which is a vital aspect of a blockchain. The two keys are connected to each other in mathematical terms.

The unique public key has its origins in the private key. This connection allows users to create unforgeable signatures, which can only be validated by other participants of the network who have knowledge of the corresponding public key.

Using two different keys - a public and a private key - is called asymmetric cryptography.

What’s the difference between an address, a key, and a wallet?

There are a lot of misconceptions regarding the differences between addresses, keys, and wallets. To provide more clarity on this topic, let’s look at their characteristics one by one.

Address

An address is a randomly generated set of numbers and letters which represent a type of unique number similar to a bank account number. As an example, here is the Bitcoin genesis address - the first Bitcoin address ever: 1A1zP1eP5QGefi2DMPTfTL5SLmv7DivfNa.

The difference is that an address can be created for free by anyone and within a matter of seconds without needing a third party. You can create as many public addresses as you like or need.

You can freely share your public address with others. That way, people can send cryptocurrencies to your address.

Because the Bitcoin or Ethereum networks are not anonymous but pseudonymous, your holdings and transactions can be viewed by anyone who knows your public address.

Keys

There are two types of keys: public keys and private keys. Public keys are comparable to account numbers. They can be freely shared with everyone, and anyone can potentially send transactions to them.

Private keys, on the other hand, should be kept private, as their name suggests. You can think of them as a kind of PIN or verification code, which, together with its corresponding public key grants you access to the actual funds on the blockchain.

You should NEVER, under any circ*mstances, share your private key(s) with any other person. It’s best to store them in the most secure way possible (e.g. on a paper wallet or a hardware wallet).

Note that the keys are not stored on a blockchain. Instead, they can be kept in an (encrypted) file, which can be saved anywhere and stored offline.

Wallet

You can think of a wallet as a sort of encrypted virtual keychain, containing all the information needed to access your funds on the Bitcoin blockchain. A wallet combines and contains both your address(es) as well as your digital key(s).

The simplest form of a wallet is a file containing a database. It can also be stored offlinebecause it does not need a connection to an actual blockchain.

What are public keys, private keys and wallet addresses? (2024)

FAQs

What are public keys, private keys and wallet addresses? ›

Public Wallet Address: A public wallet address is like an email address for your Web3 wallet. It's a unique identifier that you share with others so they can send digital assets to your wallet. Private Key: A private key is like the password to your Web3 wallet.

What is the difference between a public key and a private key in a wallet? ›

A public key allows you to receive cryptocurrency transactions. It's a cryptographic code that's paired to a private key. While anyone can send transactions to the public key, you need the private key to “unlock” them and prove that you are the owner of the cryptocurrency received in the transaction.

What are private and public keys? ›

Together, they encrypt and decrypt data that resides or moves in a network. The public key is truly public and can be shared widely while the private key should be known only to the owner. In order for a client to establish a secure connection with a server, it first checks the server's digital certificate.

What is a public key address? ›

Public keys are comparable to account numbers. They can be freely shared with everyone, and anyone can potentially send transactions to them. Private keys, on the other hand, should be kept private, as their name suggests.

What is a wallet address? ›

A wallet address is a string of letters and numbers from which cryptocurrencies or NFTs can be sent to and from. A wallet address is also known as a Public Key and can be shared with different contacts like an email address.

How do I find my private wallet key? ›

Use the account selector at the top of the wallet view to switch to the account whose private key you want to access. Tap the ellipsis button immediately underneath the account's name, to the right of its truncated public address. Tap 'Show private key'. Enter your wallet password and hit 'Next'.

What is an example of a private key? ›

Private key encryption is often used to encrypt data stored or transmitted between two parties. For example, when you log in to a website using a username and password, the password is often encrypted using a private key before it is transmitted to the web server.

What is a public key example? ›

Public keys are important because they help protect sensitive information and send it securely. For example, imagine sending a confidential letter that's only intended for the recipient, you might consider sending the letter in a locked box, but you would also have to send the key.

What are public and private keys for dummies? ›

The public key is used to encrypt the data, while the private key, which is securely stored on the recipient's device, is used to decrypt the data. This asymmetric encryption ensures that only the intended recipient can access and read the encrypted information, even if the data passes through unsecured networks.

How to verify private key and public key? ›

Those commands validate if the private key belongs to the public certificate:
  1. openssl x509 -noout -modulus -in <public.crt> | openssl md5 > /tmp/crt.pub. Note: Replace <public. ...
  2. openssl rsa -noout -modulus -in <private.key> | openssl md5 > /tmp/key.pub. Note: Replace <private. ...
  3. diff /tmp/crt.pub /tmp/key.pub.
Jul 24, 2023

What is a wallet key? ›

It's a secret, alphanumeric string of characters that grants you access to your wallet and allows you to authorize transactions. You should never share your private key with anyone, as possessing it would give them full control over your funds.

Can anyone access a public key? ›

In a public-key encryption system, anyone with a public key can encrypt a message, yielding a ciphertext, but only those who know the corresponding private key can decrypt the ciphertext to obtain the original message.

How do I know my wallet address? ›

Fortunately, most wallet providers make it easy to find and share your wallet address. A few taps in your wallet app's settings menu should reveal your address when needed. Many even let you generate a QR code for easier sharing.

Can I trace a wallet address? ›

Wallet tracking can be done using blockchain explorers or special applications to screen or stalk the selected wallet. Dedicated wallet trackers are designed to give clearer information on moves made by the wallet and notify the investor.

Is wallet address same as public address? ›

It's important to note that a wallet address and a public key are not the same thing, as the wallet address is derived from the public key. However, it's important to understand that while cryptocurrency transactions are not anonymous, they are pseudonymous.

What do I put for wallet address? ›

Your wallet address is the unique identity of your wallet that's used to send and receive cryptocurrency. Each currency has its own logic, but generally, they look something like this: 1A1zP1eP5QGefi2DMPTfTL5SLmv7DivfNa (that's the world's first Bitcoin address, if you were wondering).

Does each wallet have a private key? ›

Each crypto account in your wallet is controlled by a separate private key. This private key is what allows you to sign transactions, verifying that you agree to the terms of each proposal. Each transaction you sign is executed one specific account, which is signed with the corresponding private key.

What is public key in trust wallet? ›

A public key (think bank account number) is an address that you send out to others to receive crypto, while your private key (think transaction pin) grants you ownership of the wallet. Viktor Radchenko introduced Trust Wallet to allow users to send, receive and trade crypto in the simplest way.

Is private key wallet safe? ›

As long as you — and only you — have access to your private key, your funds are safe and can be managed anywhere in the world with an internet connection.

What is the difference between a public key and a private key when sending transactions? ›

The main difference lies in their usage. A public key is used to receive funds and is safe to share. A private key, on the other hand, is used to sign transactions and must be kept secret to maintain security.

Top Articles
Latest Posts
Article information

Author: Rueben Jacobs

Last Updated:

Views: 5739

Rating: 4.7 / 5 (57 voted)

Reviews: 80% of readers found this page helpful

Author information

Name: Rueben Jacobs

Birthday: 1999-03-14

Address: 951 Caterina Walk, Schambergerside, CA 67667-0896

Phone: +6881806848632

Job: Internal Education Planner

Hobby: Candle making, Cabaret, Poi, Gambling, Rock climbing, Wood carving, Computer programming

Introduction: My name is Rueben Jacobs, I am a cooperative, beautiful, kind, comfortable, glamorous, open, magnificent person who loves writing and wants to share my knowledge and understanding with you.