Blockchain tutorial 28: Bitcoin Improvement Proposal 39 (BIP-39) mnemonic words

This is part 28 of the Blockchain tutorial.

In this video series different topics will be explained which will help you to understand blockchain.
It is recommended to watch each video sequentially as I may refer to certain Blockchain topics explained earlier.

A wallet stores private keys.
The word wallet is misleading, it just stores private keys and not the coins.
The public addresses are automatically derived from the private keys.
If you open your Bitcoin wallet and one of your Bitcoin addresses shows that is has a balance of 5 BTC, than these bitcoins are not actually stored in your wallet.
It means that these 5 bitcoins were transferred to your Bitcoin address during a transaction.
This transaction (TX) information is stored on the blockchain.
Your wallet queries the blockchain and searches for Unspent TX Outputs (UTXO) for all your Bitcoin addresses to display their balances.
The bitcoins on these UTXO can be unlocked and transferred to another Bitcoin address using the private keys stored in the wallet.

Wallets stores private keys but they also create these private keys.
The private keys are randomly generated numbers which are not related to each other.
You can not derive these private keys with an algorithm.
Hence the words “non-deterministic”.

If you use a non-deterministic wallet you must make regular backups of these private keys.
If you have problems with your wallet, you can restore your wallet by importing the backupped private keys.
Explaining a non-deterministic wallet (for educational purpose only), see:

A deterministic wallet uses 12 – 24 words to create a 512 bit seed.
These words are called mnemonic words, because they are more easily to remember than this long hexadecimal string.
The 512 bit seed is used to create a master private key.
This master private key in turn is used to create private keys and corresponding public addresses.

Generally speaking using these 12 – 24 words will complete restore your wallet with exactly the same private keys and corresponding public addresses.
Hence the word “deterministic”.
It is imperative that you safely store these 12 – 24 words, without it you have no access to your private keys.
To see how an Ethereum deterministic wallet works, see YouTube movie:

The acronym BIP means Bitcoin Improvement Proposal.
BIPs are design documents for introducing features or information to Bitcoin.
An overview can be found at:
BIP-39 describes the implementation of mnemonic words for the generation of deterministic wallets, see:
BIP-39 is becoming an industry standard which is not only used for Bitcoin wallets but it is also used in Ethereum, Dash and other Altcoin wallets.

The wordlist can be found at:

For additional security you can allow users to enter a passphrase.

Use the Password-Based Key Derivation Function 2 (PBKDF2) together with the mnemonic phrase and salt to produce a 512 bits seed.
If an attacker gets its hands on your mnemonic words the passphrase (it you have set it) will prevent the attacker to access the private keys.
PBKDF2 is purposefully made slow to make brute force dictionary attack very difficult.

The 512 bit seed is used to generate deterministic wallets.
How to generate deterministic wallets is explained in BIP-32 and BIP-44.
It is important to know that each time you enter a different passphrase it will generate a valid 512 bit seed and thus a valid wallet with valid public and private key pairs.
This feature can help you limit your loss after a 5$ wrench attack.
You can setup a second deterministic wallet with some coins to satisfy the attacker.
If you do not know what a 5$ wrench attack is watch this comic:
Storing your passphrase at the same location as your mnemonic words is not recommended and beats the purpose.
But if you lose your passphrase, you have lost access to your coins.

A JavaScript implementation of BIP-39 can be found at:

How this JavaScript library is used see:

A Mnemonic Code Converter web application can be found at:

Check out all my other Blockchain tutorial videos

Subscribe to my YouTube channel

The presentation used in this video tutorial can be found at:

#mobilefish #blockchain #bitcoin #cryptocurrency #ethereum

(Visited 232 times, 1 visits today)

You might be interested in


Your email address will not be published. Required fields are marked *

EOS (EOS) 0,728614 2,02%
Aave (AAVE) 79,13 1,65%
The Graph (GRT) 0,284804 0,17%
Kusama (KSM) 26,60 4,81%
Waves (WAVES) 2,26 1,62%
Dash (DASH) 26,78 1,81%
Bitcoin (BTC) 61.290,29 0,59%
Ethereum (ETH) 2.838,29 0,69%
Cardano (ADA) 0,428046 2,76%
Tether (USDT) 0,917904 0,05%
XRP (XRP) 0,471555 1,35%
Solana (SOL) 162,89 2,40%
Polkadot (DOT) 6,40 1,91%
USDC (USDC) 0,918822 0,06%
Dogecoin (DOGE) 0,138425 2,09%
Uniswap (UNI) 7,10 2,28%
Terra Luna Classic (LUNC) 0,000096 3,01%
Litecoin (LTC) 76,69 0,51%
Chainlink (LINK) 15,33 0,76%
Bitcoin Cash (BCH) 441,61 2,08%
Algorand (ALGO) 0,161536 2,69%
Polygon (MATIC) 0,632242 2,34%
Stellar (XLM) 0,098156 0,68%
Cosmos Hub (ATOM) 7,63 2,08%
Filecoin (FIL) 5,12 4,92%
TRON (TRX) 0,111719 0,54%
Ethereum Classic (ETC) 25,64 1,62%
Dai (DAI) 0,917904 0,03%
Tezos (XTZ) 0,846607 1,91%
Monero (XMR) 124,24 0,10%