If you self custody your Bitcoin then you almost certainly have come across a mnemonic phrase of 12 or 24 words.

What is a mnemonic?
Why do I have one?
How does it work?

I’ve been working on Bitcoin for almost a decade, let me break it down for you 👇
A mnemonic is a tool that makes it easier to remember something.

You’ve probably used them in school to help you learn the planets (My Very Easy Method Just Speeds Up Naming Planets) or for biological classification (King Philip Came Over For Good Spaghetti).
So how are mnemonics used in Bitcoin?

They help you remember your private keys by making it easy to write down or even memorize your seed.

Why would it be hard to write down or memorize without a mnemonic?

Without it you’d have to memorize a string of 132 one’s and zero’s
Would you rather memorize:

100111111101001111110110111000001100011100101100010001101010110111001110010100011011101011011011001111110100001101111010100110001101

or

panther panic return mixture settle finger deer dance swamp wheel team coyote

The mnemonic is much simpler.
How does this work?

There’s a standard defined in a Bitcoin Improvement Proposal.

BIP-39 lays out how wallets should convert a random string of entropy into a mnemonic.

This standard makes it possible to recover your Bitcoin on any wallet or device that supports BIP-39.
It’s actually pretty easy to understand. You take the string of 132 1’s and 0’s and break it into a groups of 11 bits:

10011111110
10011111101
10111000001
10001110010
11000100011
01010110111
00111001010
00110111010
11011011001
11111010000
11011110101
00110001101
Each group of 11 digits is then converted from it’s binary representation to decimal.

With 11 binary digits we are guaranteed that each group will convert to a number between 0 and 2047.

A total of 2048 possible numbers.
So to continue the example:

10011111110 => 1278
10011111101 => 1277
10111000001 => 1473
10001110010 => 1138
11000100011 => 1571
01010110111 => 695
00111001010 => 458
00110111010 => 442
11011011001 => 1753
11111010000 => 2000
11011110101 => 1781
00110001101 => 397
BIP-39 defines a set of 2048 words that all wallets are supposed to use.

The words are picked carefully.

Each word should be identified uniquely by the first four letters.

Similar words should be avoided (woman vs women, built vs build, etc)

This helps us avoid mistakes
Once the set of words is picked we order them alphabetically and number them based on their order in the list.

We then take each decimal number the 11 bits converted to and look up that word in the list.
To continue the example:

1278 => panther
1277 => panic
1473 => return
1138 => mixture
1571 => settle
695 => finger
458 => deer
442 => dance
1753 => swamp
2000 => wheel
1781 => team
397 => coyote
When recovering your seed a wallet can take the 12 words you entered and perform this same process in reverse.

Look up the word in the list, get its number in decimal, and convert it to binary.

Group the strings of 11 bits together to get back to your 132 bit seed.

Simple.
I hope this helped you understand more about how mnemonics are used in Bitcoin to help you remember and store the seed that controls your Bitcoin.

Please follow me if you enjoy learning about Bitcoin every single day.

• • •

Missing some Tweet in this thread? You can try to force a refresh
 

Keep Current with John Cantrell

John Cantrell Profile picture

Stay in touch and get notified when new unrolls are available from this author!

Read all threads

This Thread may be Removed Anytime!

PDF

Twitter may remove this content at anytime! Save it as PDF for later use!

Try unrolling a thread yourself!

how to unroll video
  1. Follow @ThreadReaderApp to mention us!

  2. From a Twitter thread mention us with a keyword "unroll"
@threadreaderapp unroll

Practice here first or read more on our help page!

More from @JohnCantrell97

Jan 18
Did you know that it is possible to swap your on-chain Bitcoin with someone else’s lightning funds or the other way around without any trust or risk?

How does that work?
Why might you do it?

I’ve been working with lightning for years, let me break it down for you 👇
These swaps are called submarine swaps and use similar concepts to those used with regular lightning payments.

If you need a quick refresher on how HTLCs work, what hash locks are, and what time locks are then see my earlier thread here:
With swaps, let's call the person sending on-chain funds and receiving lightning funds the sender and the person receiving the on-chain funds but sending lightning funds the recipient.

So when I use the term sender and receiver I’m referring to movement of the on-chain funds.
Read 10 tweets
Jan 17
A lot of people think that Bitcoin is “too expensive” for them to get involved. That it’s a tool for the already wealthy. This is not true. You might be wondering:

Do I need to buy a whole coin?
How should I value Bitcoin?

Let me explain a bit about how I think about it 👇
First and foremost, no, you do not need to buy a whole coin.

A Bitcoin is divisible into 100M units called Satoshis (yes, after Satoshi Nakamoto, the pseudonymous creator of Bitcoin).

You can buy ANY amount you’re comfortable with. As little as $0.25 on the @ln_strike app!
There are a million ways people try to value Bitcoin and all of them will give you different results.

I try to stay away from short term price predictions and look at it as more than an investment.

Bitcoin provides a new form of digital money that is native to the internet.
Read 8 tweets
Jan 16
If you’ve done any research on the lightning network you’ve probably heard about Hash Time Locked Contracts (HTLCs):

What exactly are they?
Why do we need them?
How do they enable trustless payments?

I’ve been working with lightning for years, let me break it down for you 👇
Hash Time Locked Contracts are a way of doing conditional payments using smart contracts on Bitcoin.

As the name implies they use both a hashlock and a timelock to enable this functionality.

So what exactly are hashlocks and timelocks?
A hash refers to the output of a hash function like SHA256.

The important property to understand is that the hash provides no info about the input used to generate it.

A hashlock is a payment that is conditional on the recipient knowing the input that generates the hash
Read 12 tweets
Jan 15
Bitcoin is designed to emit a total of 21,000,000 coins with the last bits of coin to be mined in the year 2140.

What exactly is the supply schedule?
What happens after 2140?

The supply schedule is one of the most important aspects of Bitcoin, let me break it down for you 👇
Every block that is mined is allowed to produce a certain amount of bitcoin.

This amount is called the block reward and it started at 50 bitcoin per block.

Every 210,000 blocks (roughly every 4 years) this reward halves. From 50 to 25 to 12.5 to 6.25 and so on.
This is what is referred to as the supply schedule.

The exact parameters aren’t important, it’s the fact that it is known ahead of time and cannot change that makes Bitcoin so revolutionary.

Everyone can know exactly how much BTC will exist at any point in the future.
Read 9 tweets
Jan 14
What an exciting week it’s been in Bitcoin. Is it ever boring? Definitely not.

I hope you learned a lot from my educational threads this week.

In no particular order, here’s what I found most important or interesting this week 👇
@adamcurry explains to @joerogan why he believes his money is safer in Bitcoin, why it will be a huge part of our future, and why to stay away from shitcoins.

A must listen.

Read 9 tweets
Jan 14
If you’ve done any research into Bitcoin you’ve heard people talk about private key storage.

What are keys?
What’s the difference between hot and cold storage?
Which should I use?

Keys are one of the most important topics in Bitcoin. Let me break it down for you 👇
To understand keys you need to know a little bit about cryptography.

Keys generally come as a pair of public and private keys.

The most common use of keys is to encrypt and decrypt messages.

However, in Bitcoin they are primarily used to generate and verify signatures.
In order to spend Bitcoin you need to produce a signature by signing every tx you make in order to prove to the network that you control the UTXOs being spent.

You use your private keys to produce this signature.

If you need a refresher on UTXOs:
Read 11 tweets

Did Thread Reader help you today?

Support us! We are indie developers!


This site is made by just two indie developers on a laptop doing marketing, support and development! Read more about the story.

Become a Premium Member ($3/month or $30/year) and get exclusive features!

Become Premium

Too expensive? Make a small donation by buying us coffee ($5) or help with server cost ($10)

Donate via Paypal

Or Donate anonymously using crypto!

Ethereum

0xfe58350B80634f60Fa6Dc149a72b4DFbc17D341E copy

Bitcoin

3ATGMxNzCUFzxpMCHL5sWSt4DVtS8UqXpi copy

Thank you for your support!

Follow Us on Twitter!

:(