Cryptocurrency wallets from scratch

Lesson 3 of 8

Lessons completed: 0 of 8 (0%)

Public address, private key and seed phrase

This is the central lesson. By the end it should be obvious which secret you never type into a website, and never type into an Academy exercise.

10-12 minutes

Public address, private key and seed phrase

Three different things

You can give a public address to a sender. It shows where the funds should be credited, and people can often look up the history in an explorer.

A private key is the secret used to sign a transaction. A seed phrase, also called a recovery phrase or a mnemonic phrase, is a set of words from which the wallet derives its keys again. Lose the phrase and the device, and access is often gone with them. If the phrase leaks, another person may gain that access.

How the phrase is tied to the addresses

Modern wallets are usually hierarchical deterministic, HD for short. Fixed rules derive many keys and addresses from one phrase. One backup can therefore cover several accounts inside the same wallet.

The path is simple: seed phrase, then key generation, then private keys, then public addresses. A new address does not need a new phrase if it comes from the same backup.

  1. Seed phrase
  2. Key generation
  3. Private keys
  4. Public addresses

A password, the phrase and an extra passphrase

An app password locks the program on that device. It does not restore the wallet on a new phone. Restoration needs the seed phrase.

An extra passphrase is a further word that some wallets add to the seed phrase. If you set one and later forget it, the ordinary phrase opens a different, empty set of addresses. Losing the passphrase can make the old access impossible, even when every word of the phrase is still intact.

Seven rules, and a teaching example

Tell the seed phrase to nobody. Do not send it in a messenger or by email. Do not keep it as plain text in a cloud note. Do not type it into a website because someone claiming to be support asked. Do not photograph it or forward it unless you have a serious reason. Keep the backup where strangers cannot read it, and where a single sheet will not be the only copy that can burn. Do not mix the phrase up with the app password.

The Academy never asks you to enter a real seed phrase in a test, a form or a demonstration field. The line below is only a teaching string. It is not a real phrase, and it cannot be imported into a wallet: demo-one demo-two demo-three demo-four demo-five demo-six.

If someone asks you to check the phrase, that person is not wallet support. A real phrase is not needed here.

Remember

  • The address is public. The key and the phrase are secret.
  • One phrase can restore many addresses.
  • An app password does not replace a seed phrase.
  • A forgotten passphrase can close off the previous access.

Check yourself

1. What else is a seed phrase called?
2. What does an HD wallet do?
3. How does an app password differ from a seed phrase?
4. What can happen if you forget an extra passphrase?
5. May you enter a real seed phrase in an Academy task?