Cryptocurrency Wallet and Mnemonic Words

Cryptocurrency address§

If you want to buy some coins in any public blockchain network or cryptocurrency exchange, you need an address which should be a hex string.

Blockchain networks are anonymous, and our addresses are exposed on the web; anybody can see and trace them. So, when we try to deposit coins from a blockchain address, how does the blockchain network know the user is the owner of the address? The answer is that the blockchain network will check the transaction signature signed by the user with his private key.

That's it. We have a key pair, a private key, and a public key. The blockchain address is like a public key. So any user who has the corresponding private key can deposit coins from the address.

Wallet§

The address is a kind of hex string that looks like the following:

0xf24FF3a9CF04c71Dbc94D0b566f7A27B94566cac

We need to keep the address string in our minds or write it on paper and type them in when we need it. That's not user-friendly, so we need a wallet like metamask to help us do the work.

metamask will store our addresses in local storage. You may wonder if metamask uses our wallet to deposit coins, which won't happen because wallet apps or extensions are all open sources and under surveillance.

When you uninstall the wallet app, the app will delete your addresses from local storage, and if you want to use them again, you need to recover them from your mind or a paper. If you forget or lose the document, you lose your addresses and coins.

Hierarchical deterministic wallet§

If we have lots of addresses(key pairs), that's hard to manage them.

Hierarchical deterministic wallets(or shortly HD wallets) bring the possibility of deriving all the addresses (public and private key pairs) from a single recovery seed. This means an HD wallet needs only one backup.

The advantages of hierarchical deterministic wallets over standard cryptocurrency wallets are:

  • Easy backups - if you control the recovery seed, you can generate the entire tree of children's keys (public/private key pairs).
  • Storing your private keys offline - possible to derive the entire tree of public keys (addresses) from a parent public key without needing any private keys.
  • Access controls - Hierarchical deterministic wallets are arranged in a tree formation. The owner of the master seed controls all assets in the wallet and can create whole branches of keypairs if he or she wants to let someone spend only part of the coins in the wallet.
  • Accounting - The owner of the master seed can create public keys at any level of a wallet tree formation to let someone access the transaction history of a specific part of the wallet.

Mnmemonic words§

A recovery seed is represented in hex string, and it's difficult to type it in. BIP-39 proposed a method mapping a binary seed into memorizable words. We have carefully chosen words to finish the mapping.

When recovering, it will map mnemonic words back into binary seed. Then we use the binary seed to derive our key pairs.

References§