Bitcoin Forum
May 11, 2024, 10:11:41 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Understanding BIP 39 as a layperson - offline seed generation  (Read 83 times)
edk1988 (OP)
Newbie
*
Offline Offline

Activity: 5
Merit: 0


View Profile
December 31, 2023, 01:31:36 PM
 #1

Take 8 coins and number them.

Then you can roll all 8 and record the results in binary in chunks of 1 byte

Once you roll 32x you have a 256 bit binary number.

Each "word" is 11 bits so you break your 256 bit number into 23 chunks of 11 bits plus remainder (23x11 = 253, remainder is 3 bits)

The remainder must be padded with "the checksum" (8 bits or 1 byte) to make it 11 bits long just like the others.

You have to perform the checksum operation by hashing the original 256 bits thru 1 round of sha 256 (binary).  This part was hard for me to figure out the best way to to this offline.  If the computer requires hex input then you must convert your number to hex.  If the computer accepts binary input then you have to type it correctly.  If you have the typical hex output then the first 2 char's constitute 1 byte and must be converted to binary, and appended to the end of the 24th word.  I guess you can just do a sh256 in linux.  Like I said, I wasn't able to do this without an online tool (not ideal).

You can do sha256 by hand if you are a genius.

Now you have 24 chunks of 11 bits.  Convert from binary to decimal, and index the wordlist (word 1 = 0).
The grue lurks in the darkest places of the earth. Its favorite diet is adventurers, but its insatiable appetite is tempered by its fear of light. No grue has ever been seen by the light of day, and few have survived its fearsome jaws to tell the tale.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
digaran
Copper Member
Hero Member
*****
Offline Offline

Activity: 1330
Merit: 899

🖤😏


View Profile
January 01, 2024, 06:40:32 AM
 #2

How do you perform sha256 by hand? That's not called being genius but rather stupid, because you could just use a script to do that for you. Also there is no need to generate seeds manually, just use a standard and secure wallet to do all of that. Manipulating things like that is bound for disaster.

🖤😏
edk1988 (OP)
Newbie
*
Offline Offline

Activity: 5
Merit: 0


View Profile
January 01, 2024, 08:28:14 PM
 #3

How do you perform sha256 by hand? That's not called being genius but rather stupid, because you could just use a script to do that for you. Also there is no need to generate seeds manually, just use a standard and secure wallet to do all of that. Manipulating things like that is bound for disaster.

Hello.

Nothing has been manipulated here.  This is how the BIP 39 seed phrase is derived from a 256 bit random number.

Thanks for your input - the subject was "understanding BIP 39 as a layperson" so yes, it may or may not be important to any given individual, not sure, if BIP 39 will remain as an important protocol in bitcoin, or if bitcoin is important to the world in general.
digaran
Copper Member
Hero Member
*****
Offline Offline

Activity: 1330
Merit: 899

🖤😏


View Profile
January 01, 2024, 09:42:07 PM
 #4

Don't get me wrong, I'm all about educating people, but important things such as seeds should be taught by experts with detailed and perfect technicalities. A layperson is better off generating their seeds by using trusted wallets. So this should not be recommended for anyone to use and store any real coins, maybe just for testing with testnet coins.
Which then would require you to provide a layperson tutorial on how to acquire testnet coins etc. 🤭

🖤😏
apogio
Sr. Member
****
Offline Offline

Activity: 434
Merit: 967



View Profile WWW
January 02, 2024, 03:12:55 PM
 #5

The easiest way to explain BIP39 to a layperson would be to simply tell them that those 12 words is their password without which they would lose their money.

If they wanted to know how it works technically, you should show them this picture:


edk1988 (OP)
Newbie
*
Offline Offline

Activity: 5
Merit: 0


View Profile
January 03, 2024, 11:39:44 AM
 #6


If they wanted to know how it works technically, you should show them this picture:


Great pic,

the rolling coins procedure falls broadly under "generate entropy" and yeah shannon information entropy is a whole separate business, that's why this demo is described using coins because rolling coins provides a binary output no modulation is needed.

It's not difficult, I think it's reasonable to give people the benefit of the doubt and have an expectation that if they're going to use btc they should know the fundamentals,

I know this issue is discussed at length in the literature but I don't care for 128 bit seed phrases the whole system is based of sha256
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!