Bitcoin Forum
April 26, 2024, 06:52:47 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Electrum seed generation options  (Read 228 times)
dwitten (OP)
Newbie
*
Offline Offline

Activity: 4
Merit: 0


View Profile
July 04, 2018, 04:14:47 PM
 #1

Hi, I have a few seed/security questions:


1) Am I correct in assuming that I can effectively create a "brain wallet" with Electrum by creating a sha256 hash of whatever secret phrase or set of words that I want to use, and then making an Electrum wallet using that hash as a seed, rather than having the wallet create a wordlist for me?

2) If, in using the sha256 hash as my seed, I select the BIP39 option to create a wallet with segwit addresses, I can ignore the warnings about future BIP39 compatibility as long as I have/use the original sha256 hash that I created the wallet with as a seed?

3) I noticed in experimentation that I can even use a sha512 hash as a seed when I select the BIP39 option. Seems like using a sha512 hash for this would be "wasted entropy", as it would provide more entropy than the seed conversion algorithm could translate into a private key.
Correct?

Thanks to any & all who weigh in on these questions. I'm trying to learn more about encryption & the calcs that go into key and wallet creation, and Electrum is interesting in how it does things a bit differently.
1714114367
Hero Member
*
Offline Offline

Posts: 1714114367

View Profile Personal Message (Offline)

Ignore
1714114367
Reply with quote  #2

1714114367
Report to moderator
1714114367
Hero Member
*
Offline Offline

Posts: 1714114367

View Profile Personal Message (Offline)

Ignore
1714114367
Reply with quote  #2

1714114367
Report to moderator
1714114367
Hero Member
*
Offline Offline

Posts: 1714114367

View Profile Personal Message (Offline)

Ignore
1714114367
Reply with quote  #2

1714114367
Report to moderator
"If you don't want people to know you're a scumbag then don't be a scumbag." -- margaritahuyan
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1714114367
Hero Member
*
Offline Offline

Posts: 1714114367

View Profile Personal Message (Offline)

Ignore
1714114367
Reply with quote  #2

1714114367
Report to moderator
Abdussamad
Legendary
*
Offline Offline

Activity: 3598
Merit: 1560



View Profile
July 04, 2018, 09:14:02 PM
Merited by pooya87 (1)
 #2

1. This is a recipe for getting robbed. Humans are not a good source of randomness so whatever phrase you come up with will not be secure. See here.

2. bip39 doesn't result in segwit wallets. maybe you mean selecting the p2sh segwit derivation path? the warning for bip39 compatibility will apply to you too regardless.

3. when you check bip39 it lets you type anything in the seed box. as mentioned in 1 your seed has poor entropy because you are generating it yourself. hashing it with sha256sum or sha512sum doesn't make any difference.

dwitten (OP)
Newbie
*
Offline Offline

Activity: 4
Merit: 0


View Profile
July 05, 2018, 01:02:38 AM
 #3

Thank you very much for your advice. I have read many warnings about the false security of brainwallets, and your link is one of the strongest & best ones.

To clarify, I havent decided to implement the wallet I mentioned...for now it's more of a learning exercise that I was considering.

1) The seed would be about a half-dozen "made up" words from a short story for children that I wrote many years ago, and never shared with anyone.. The "made up" words
aren't real words in any language and as such, are in no dictionary and I've never heard them anywhere else.

My thought was to take those "fake" words that I remember well, and hash them as a string, then using a script, run the result through several thousand more hashes
to generate a seed. It does seem like a lot of trouble compared to just writing down seed words, but this is a learning exercise for me, so it's largely theoretical.

2) Also, I didnt state the BIP39 question well, and I appreciate your clarification. My desire would be a segwit wallet, but my real concern is whether I could use the sha256 hash, or the resulting xpriv
generated from the method described above to restore the wallet in Electrum in the future.

3) Question # 3 was more academic than anything. Assuming I used a cryptographically secure method to generate a random 256 bit and 512 bit seed hash, would I get any extra entropy
benefit in electrum from using the random 512 bit instead of the random 256 bit seed?

Lastly, I see that you are connected with the bitcoinpakistan site. I have come across your site before and I think it is an excellent resource. Thank you for your work and help to us all.

Abdussamad
Legendary
*
Offline Offline

Activity: 3598
Merit: 1560



View Profile
July 05, 2018, 01:45:03 PM
 #4

no it doesn't make any difference if you hash with sha512sum or sha256sum. in fact you need not hash it at all. just enter whatever random bits you have into the seed entry field. like i said before electrum will let you put anything in there if you check the bip39 option. you can even click on the little folder icon in the corner to load the entropy/seed from a file.

as for backups you can always rely on soft copy backup of the electrum wallet via file menu > save copy. a wallet file backup will include the derived xpriv so everything you need is in there.

if you want to create a p2sh segwit wallet i have a guide here for it.
Rayser
Newbie
*
Offline Offline

Activity: 28
Merit: 2


View Profile
July 05, 2018, 03:03:19 PM
 #5

You can download the https://iancoleman.io/bip39/ and create a BIP39 seed offline.
tarball
Jr. Member
*
Offline Offline

Activity: 98
Merit: 5


View Profile
July 08, 2018, 06:02:21 PM
 #6

2. bip39 doesn't result in segwit wallets. maybe you mean selecting the p2sh segwit derivation path? the warning for bip39 compatibility will apply to you too regardless.

Actually, it can. When you import a BIP39 seed into Electrum, you can choose derivation of 44 (p2pkh), 49 (p2sh(p2wpkh)), or 84 (p2wpkh). You will get native segwit by choosing 84 derivation.

Thanks for reading my post.
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!