Cryptocurrency wallets from scratch

Lesson 1 of 8

Lessons completed: 0 of 8 (0%)

What a cryptocurrency wallet is and how it works

After this lesson you can explain what a wallet is for, and which details you may show to another person.

8-10 minutes

What a cryptocurrency wallet is and how it works

What a wallet is and why you need one

A cryptocurrency wallet is a tool for working with addresses on a blockchain. You use it to see a balance, to receive a transfer and to ask the network to record a new transaction.

A network has no window labelled my account. It has an address, and proof that the instruction came from the person who holds the matching secret. The wallet keeps that secret and helps you use it.

Why the coins are not inside the app

The balance is written on the blockchain, the shared ledger of the network. The phone app only shows what is already written, and it prepares a new record.

If you delete the app, the network record does not vanish. What you lose is convenient access. You can restore that access if the seed phrase is still saved, or another secret from which the wallet rebuilds the keys. Lesson 3 goes into that.

How a wallet talks to the blockchain

You choose a recipient and an amount. The wallet builds a transaction and signs it with the private key. The network checks the signature and, if the rules are met, adds the record to the chain. The recipient sees the credit on the blockchain, not inside your app.

A public address is a little like a number you give out so that someone can send you funds. A private key is more like the secret tool that confirms an instruction to spend those funds. The picture helps, but a crypto wallet is not a bank account. A bank can stop a payment. A confirmed record on a blockchain usually cannot be undone with a button.

  1. User
  2. Crypto wallet
  3. Transaction signature
  4. Blockchain
  5. Recipient

The address, the key and the wallet

An address is the string you give to a sender. One wallet can have several addresses. The wallet itself is the program or device that holds the keys and shows those addresses.

Whoever can use the private key can sign a transfer. That is why access to the key means control of the funds. An address without the key only lets someone send you funds or look at the history.

A practical note: you may give an address to the person who is sending you funds. You do not hand over the private key or the seed phrase. In the check below, mark every option that is all right to share.

Remember

  • A wallet shows the network record and signs new transfers.
  • Coins are not stored as a file inside the phone.
  • You can share an address. You cannot share a key.
  • A wallet is not the same thing as a bank account.

Check yourself

1. Where is a cryptocurrency balance actually recorded?
2. What does a private key do?
3. How is an address different from a wallet?
4. Why is the bank-account comparison incomplete?
5. Which of these can you hand to another person?