Bitcoin Forum
April 19, 2024, 09:44:48 PM *
News: Latest Bitcoin Core release: 26.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Basics: Mnemonic seed and Private Keys  (Read 211 times)
Accounting87 (OP)
Newbie
*
Offline Offline

Activity: 140
Merit: 0


View Profile
April 28, 2019, 09:35:02 AM
 #1

Hi experienced crypto enthusiasts, a little help is needed  Cool

Mnemonic seed is a 12-word-long phrase, and each word can be converted into a number, right?
Then, we have 12 numbers. How exactly they generate private keys? And how the seed itself is generated in the first place?

I appreciate if you can tell me more about this in simple words, or share a link to a useful resource.  Roll Eyes
1713563088
Hero Member
*
Offline Offline

Posts: 1713563088

View Profile Personal Message (Offline)

Ignore
1713563088
Reply with quote  #2

1713563088
Report to moderator
1713563088
Hero Member
*
Offline Offline

Posts: 1713563088

View Profile Personal Message (Offline)

Ignore
1713563088
Reply with quote  #2

1713563088
Report to moderator
According to NIST and ECRYPT II, the cryptographic algorithms used in Bitcoin are expected to be strong until at least 2030. (After that, it will not be too difficult to transition to different algorithms.)
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
o_e_l_e_o
In memoriam
Legendary
*
Offline Offline

Activity: 2268
Merit: 18504


View Profile
April 28, 2019, 10:51:32 AM
Merited by pooya87 (1), DdmrDdmr (1), AdolfinWolf (1)
 #2

This link (https://github.com/bitcoin/bips/blob/master/bip-0039.mediawiki) will give you some relevant information about seed phrases.

Mnemonic seed is a 12-word-long phrase, and each word can be converted into a number, right?
Pretty much. Mnemonic seeds are commonly 12 words (corresponding to 128 bits of entropy) or 24 words (corresponding to 256 bits of entropy), but some wallets will also generate 15, 18 or 21 word long phrases. Each word is part of the BIP39 word list (https://github.com/bitcoin/bips/blob/master/bip-0039/english.txt). Each word represents 11 bits of entropy. 11 bits of entropy is 2^11, which gives 2048 possibilities, so each word has a corresponding number between 0 and 2047.

Then, we have 12 numbers. How exactly they generate private keys? And how the seed itself is generated in the first place?
When you first set up a new wallet, it generates a random number known as a seed which it then uses to generate all your future private keys. The process of generating private keys is quite complicated, and is laid out in BIP32 if you want to learn more (https://github.com/bitcoin/bips/blob/master/bip-0032.mediawiki). Wallets which do this are known as deterministic wallets. To generate your seed phrase, it splits this number in to 11 bit long sections, takes the numerical value (between 0-2047 as above) of each section, matches against the corresponding word in the word list, and then displays that list of words. To recover your seed from your seed phrase, the reverse is true.
Velkro
Legendary
*
Offline Offline

Activity: 2296
Merit: 1014



View Profile
April 28, 2019, 03:01:19 PM
 #3


Mnemonic seed is a 12-word-long phrase, and each word can be converted into a number, right?
Then, we have 12 numbers. How exactly they generate private keys? And how the seed itself is generated in the first place?


Its not that simple that words are converted to numbers or something similiar.
Words are converted to numbers to be included as seed in random numbers etc. Its complicated math that words are only little element.
AdolfinWolf
Legendary
*
Offline Offline

Activity: 1946
Merit: 1427


View Profile
April 28, 2019, 03:23:35 PM
 #4

Its not that simple that words are converted to numbers or something similiar.
Words are converted to numbers to be included as seed in random numbers etc. Its complicated math that words are only little element.
Huh. For someone that's running a Bitcoin vanity generator you barely know anything about it.

How ironic.  Roll Eyes

PrimeNumber7
Copper Member
Legendary
*
Offline Offline

Activity: 1610
Merit: 1899

Amazon Prime Member #7


View Profile
April 30, 2019, 03:04:06 AM
 #5

You should not try to manually convert your seed into a number nor should you try to calculate the xpriv key yourself. This is what your wallet software is for.

The mnemonic word list was chosen so that it allows the end user to make certain minor mistakes and still have access to their private keys. If you only know part of a word in your seed, you can deduct what the word is with limited information. If you know the first 4 letters of the word, there is only one possible word it could be.

When you generate your seed, you should write down the seed on a paper and you may not need to recover your seed with what you wrote down for a long time. You may have difficulties reading your handwriting or the paper may be partially damaged.

Your seed should be generated at random. The ultra paranoid will use dice to generate a seed, however for most people a computer should be fine to generate a seed as long as it doesn’t contain malware. For additional protection from malware, you can use a computer that has never and never will be connected to the internet to generate your seed. If you subsequently load the seed into wallet software on a computer connected to the internet, you will lost most of this protection.
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!