Bitcoin Forum
May 05, 2024, 04:35:49 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Create a new seed in Electrum: any way to replace 2 words and keep seed valid?  (Read 240 times)
winrendorr (OP)
Newbie
*
Offline Offline

Activity: 2
Merit: 2


View Profile
July 19, 2020, 03:08:32 PM
 #1

Hello! Please sorry for my english.

When I create a new wallet in Electrum v4 and choose to create a new seed (type segwit), the program generates 12 words.

I spent several hours trying to find a convenient phrase for me. Finally I got almost good seed. No, it's not simple, just contains words that it’s easier to remember only for me. But now I want to replace just a few words (for example 1 and 3) with others from the built-in dictionary to make it better for remember.

Of course I can't do this so easy because the checksum is violated, If I understood correctly, the last word is control? So I agree to replace it too.

It’s hard for me to understand the Electrum seed checksum calculation algorithm. Can I choose instead of this two word any from built-in dictionary and then somehow find out the correct last word? If not, perhaps possible to get a list of different words with control word so that I can choose?

I tried to choose randomly words (№ 1, № 3 and last) manually in the hope that button "Next" will become active, but in half an hour not a single successful attempt.

I think only a script can solve this task, who has any ideas? The closest I found is https://github.com/gurnec/btcrecover but as I understand it, it's suitable only for older versions of the Electrum (v1, v2) and not works with Electrum v3, v4 seed type
BitcoinCleanup.com: Learn why Bitcoin isn't bad for the environment
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1714926949
Hero Member
*
Offline Offline

Posts: 1714926949

View Profile Personal Message (Offline)

Ignore
1714926949
Reply with quote  #2

1714926949
Report to moderator
1714926949
Hero Member
*
Offline Offline

Posts: 1714926949

View Profile Personal Message (Offline)

Ignore
1714926949
Reply with quote  #2

1714926949
Report to moderator
1714926949
Hero Member
*
Offline Offline

Posts: 1714926949

View Profile Personal Message (Offline)

Ignore
1714926949
Reply with quote  #2

1714926949
Report to moderator
Husires
Legendary
*
Offline Offline

Activity: 1596
Merit: 1285



View Profile WWW
July 19, 2020, 06:09:48 PM
Last edit: July 19, 2020, 06:28:08 PM by Husires
 #2

new seed = new private keys. you can generate your own new wallet seed words and move your coins to it.

If you want to create a new wallet seed just because if it's easier to remember for you (& others,) the idea is bad. There are better ways to secure your wallet seeds.

you can create a custom wallet seed using brain wallet. (Risky)

pick your own words from https://github.com/bitcoin/bips/blob/master/bip-0039/english.txt and use this tool to generate correct checksum https://iancoleman.io/bip39/

.BEST..CHANGE.███████████████
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
███████████████
..BUY/ SELL CRYPTO..
DireWolfM14
Copper Member
Legendary
*
Offline Offline

Activity: 2170
Merit: 4238


Join the world-leading crypto sportsbook NOW!


View Profile WWW
July 19, 2020, 09:48:12 PM
 #3

You might be able to replace two words and still have a valid bip39 phrase, but it's highly unlikely.  The odds that you'll stumble upon two words that will meet your standards and satisfy either the bip39 or Electrum checksums is near impossible.

If you want to play around with it, use the Ian Coleman Bip39 tool.  You can also download it and run it off of your hard drive for a more secure setup, and on an air-gapped machine for the ultimately cautious among us.   Grin

And, here's the bip39 word list in various languages:
https://github.com/bitcoin/bips/tree/master/bip-0039

I do however want to caution you against relying on memorizing your seed phrase, and taking no other precaution to back it up.  Memory fails us all sooner or later.  It's just a matter of time.  I suggest you write down your seed phrase and secure it in a safe manner, regardless of your desire and ability to memorize it.

  ▄▄███████▄███████▄▄▄
 █████████████
▀▀▀▀▀▀████▄▄
███████████████
       ▀▀███▄
███████████████
          ▀███
 █████████████
             ███
███████████▀▀               ███
███                         ███
███                         ███
 ███                       ███
  ███▄                   ▄███
   ▀███▄▄             ▄▄███▀
     ▀▀████▄▄▄▄▄▄▄▄▄████▀▀
         ▀▀▀███████▀▀▀
░░░████▄▄▄▄
░▄▄░
▄▄███████▄▀█████▄▄
██▄████▌▐█▌█████▄██
████▀▄▄▄▌███░▄▄▄▀████
██████▄▄▄█▄▄▄██████
█░███████░▐█▌░███████░█
▀▀██▀░██░▐█▌░██░▀██▀▀
▄▄▄░█▀░█░██░▐█▌░██░█░▀█░▄▄▄
██▀░░░░▀██░▐█▌░██▀░░░░▀██
▀██
█████▄███▀▀██▀▀███▄███████▀
▀███████████████████████▀
▀▀▀▀███████████▀▀▀▀
▄▄██████▄▄
▀█▀
█  █▀█▀
  ▄█  ██  █▄  ▄
█ ▄█ █▀█▄▄█▀█ █▄ █
▀▄█ █ ███▄▄▄▄███ █ █▄▀
▀▀ █    ▄▄▄▄    █ ▀▀
   ██████   █
█     ▀▀     █
▀▄▀▄▀▄▀▄▀▄▀▄
▄ ██████▀▀██████ ▄
▄████████ ██ ████████▄
▀▀███████▄▄███████▀▀
▀▀▀████████▀▀▀
█████████████LEADING CRYPTO SPORTSBOOK & CASINO█████████████
MULTI
CURRENCY
1500+
CASINO GAMES
CRYPTO EXCLUSIVE
CLUBHOUSE
FAST & SECURE
PAYMENTS
.
..PLAY NOW!..
pooya87
Legendary
*
Offline Offline

Activity: 3444
Merit: 10549



View Profile
July 20, 2020, 02:57:58 AM
Merited by DireWolfM14 (1)
 #4

When I create a new wallet in Electrum v4 and choose to create a new seed (type segwit), the program generates 12 words.

Of course I can't do this so easy because the checksum is violated, If I understood correctly, the last word is control? So I agree to replace it too.

no, you are confusing BIP39 seeds with Electrum seeds. they are different and use a different algorithm. Electrum seeds don't have any checksum, instead they have a version bit(s) that has to be generated after computing HMACSHA512 of the seed phrase.

since you are using SegWit wallet type the result of HMACSHA512(msg=normalized_seed, key = "Seed version") must start with 0x1000. since this is 2 bytes and you are changing 2 words you might have a chance at finding a collision. just write a loop computing HMAC for each change until you find it.

if you start with a truly random key and only change 2 words, the final result could be considered still-random. but if you don't and use something like brainwallet and choose all words and then brute force that, then your result is not-random.

.
.BLACKJACK ♠ FUN.
█████████
██████████████
████████████
█████████████████
████████████████▄▄
░█████████████▀░▀▀
██████████████████
░██████████████
████████████████
░██████████████
████████████
███████████████░██
██████████
CRYPTO CASINO &
SPORTS BETTING
▄▄███████▄▄
▄███████████████▄
███████████████████
█████████████████████
███████████████████████
█████████████████████████
█████████████████████████
█████████████████████████
███████████████████████
█████████████████████
███████████████████
▀███████████████▀
█████████
.
o_e_l_e_o
In memoriam
Legendary
*
Offline Offline

Activity: 2268
Merit: 18509


View Profile
July 20, 2020, 11:28:39 AM
 #5

If you are generating an Electrum seed, you can also specify your own wordlist to use rather than using the default BIP39 wordlist. The order of the words will still be random, and you will be given more than 12 words, since your smaller wordlist will still have to encode the same amount of entropy. For example, if your custom word list has only 100 words rather than 2048, then your seed phrase will be 20 words long (as 10020 it needed to reach the same amount of entropy as 204812). You can either choose your own words entirely, or you can choose a subset of words from the BIP39 word list.

Navigate to your Electrum install directory, and look in the subfolder "electrum" then "wordlist" for the file "english.txt". Make a back up of this, and then edit the original to your own custom wordlist. Once you've done this, open Electrum and generate a seed.
HCP
Legendary
*
Offline Offline

Activity: 2086
Merit: 4316

<insert witty quote here>


View Profile
July 24, 2020, 01:55:42 AM
 #6

When I create a new wallet in Electrum v4 and choose to create a new seed (type segwit), the program generates 12 words.

Of course I can't do this so easy because the checksum is violated, If I understood correctly, the last word is control? So I agree to replace it too.
no, you are confusing BIP39 seeds with Electrum seeds. they are different and use a different algorithm. Electrum seeds don't have any checksum, instead they have a version bit(s) that has to be generated after computing HMACSHA512 of the seed phrase.
THIS^^

So, you're likely to have more success using BIP39 seeds to do what you're trying to achieve... although that comes with the caveat that Electrum make no guarantees that they will always support BIP39 (although I don't see any reason they'd drop the support at this point in time).

As others have mentioned, it seems like you're trying to memorise your seed... while that is admirable, it is a risky strategy for securing your seed mnemonic and not recommended.

█████████████████████████
████▐██▄█████████████████
████▐██████▄▄▄███████████
████▐████▄█████▄▄████████
████▐█████▀▀▀▀▀███▄██████
████▐███▀████████████████
████▐█████████▄█████▌████
████▐██▌█████▀██████▌████
████▐██████████▀████▌████
█████▀███▄█████▄███▀█████
███████▀█████████▀███████
██████████▀███▀██████████
█████████████████████████
.
BC.GAME
▄▄░░░▄▀▀▄████████
▄▄▄
██████████████
█████░░▄▄▄▄████████
▄▄▄▄▄▄▄▄▄██▄██████▄▄▄▄████
▄███▄█▄▄██████████▄████▄████
███████████████████████████▀███
▀████▄██▄██▄░░░░▄████████████
▀▀▀█████▄▄▄███████████▀██
███████████████████▀██
███████████████████▄██
▄███████████████████▄██
█████████████████████▀██
██████████████████████▄
.
..CASINO....SPORTS....RACING..
█░░░░░░█░░░░░░█
▀███▀░░▀███▀░░▀███▀
▀░▀░░░░▀░▀░░░░▀░▀
░░░░░░░░░░░░
▀██████████
░░░░░███░░░░
░░█░░░███▄█░░░
░░██▌░░███░▀░░██▌
░█░██░░███░░░█░██
░█▀▀▀█▌░███░░█▀▀▀█▌
▄█▄░░░██▄███▄█▄░░▄██▄
▄███▄
░░░░▀██▄▀


▄▄████▄▄
▄███▀▀███▄
██████████
▀███▄░▄██▀
▄▄████▄▄░▀█▀▄██▀▄▄████▄▄
▄███▀▀▀████▄▄██▀▄███▀▀███▄
███████▄▄▀▀████▄▄▀▀███████
▀███▄▄███▀░░░▀▀████▄▄▄███▀
▀▀████▀▀████████▀▀████▀▀
winrendorr (OP)
Newbie
*
Offline Offline

Activity: 2
Merit: 2


View Profile
July 29, 2020, 04:07:22 PM
Merited by pooya87 (1), Husna QA (1)
 #7

Tanks everyone for the answers!
no, you are confusing BIP39 seeds with Electrum seeds. they are different and use a different algorithm. Electrum seeds don't have any checksum, instead they have a version bit(s) that has to be generated after computing HMACSHA512 of the seed phrase.
Special thanks for your answer, I was able to solve the problem and wrote a script. It's very simple (I'm not a programmer), but works, in 20-30 minutes it generates all combinations of two words (about 1000) with which the seed phrase is valid (created in electrum v4, segwit type)
pooya87
Legendary
*
Offline Offline

Activity: 3444
Merit: 10549



View Profile
July 30, 2020, 04:47:04 AM
 #8

Tanks everyone for the answers!
no, you are confusing BIP39 seeds with Electrum seeds. they are different and use a different algorithm. Electrum seeds don't have any checksum, instead they have a version bit(s) that has to be generated after computing HMACSHA512 of the seed phrase.
Special thanks for your answer, I was able to solve the problem and wrote a script. It's very simple (I'm not a programmer), but works, in 20-30 minutes it generates all combinations of two words (about 1000) with which the seed phrase is valid (created in electrum v4, segwit type)

good job. make sure to test the end result with Electrum itself to see if it actually works.
also keep in mind that Electrum itself takes some additional steps while "normalizing" the seed phrase before passing it to HMACSHA512 which don't matter if you are using the English word-list and don't add any extra spaces. otherwise if you use other word-lists that contain words with accents, Chinese letters,... it must be "normalized" the same way.
for reference: https://github.com/spesmilo/electrum/blob/f49e766b218649a5b64a196bcc055e41291fb223/electrum/mnemonic.py#L79-L90

.
.BLACKJACK ♠ FUN.
█████████
██████████████
████████████
█████████████████
████████████████▄▄
░█████████████▀░▀▀
██████████████████
░██████████████
████████████████
░██████████████
████████████
███████████████░██
██████████
CRYPTO CASINO &
SPORTS BETTING
▄▄███████▄▄
▄███████████████▄
███████████████████
█████████████████████
███████████████████████
█████████████████████████
█████████████████████████
█████████████████████████
███████████████████████
█████████████████████
███████████████████
▀███████████████▀
█████████
.
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!