Bitcoin Forum
June 23, 2024, 11:24:42 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: « 1 [2]  All
  Print  
Author Topic: I lost my password to an electrum wallet  (Read 286 times)
pooya87
Legendary
*
Offline Offline

Activity: 3486
Merit: 10666



View Profile
November 02, 2020, 05:52:31 AM
 #21

I need a bitcoin developer to confirm me if there's a way to convert the array of strings, which are the seeds, to private keys and then start checking if there funds on each address.
this is not how brute force supposed to work. you have to think about removing all the bottlenecks and optimizing the algorithm as much as you can instead of adding more bottlenecks. right now your work with "strings" and "printing them" are two huge bottlenecks that slow down anything you want to do.
there is also another step that you are missing which is checking the correctness of the checksum of each seed phrase before moving on to trying to create private keys.

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

Activity: 1554
Merit: 7607


Protocols over bureaucrats


View Profile
November 02, 2020, 06:26:08 AM
 #22

this is not how brute force supposed to work. you have to think about removing all the bottlenecks and optimizing the algorithm as much as you can instead of adding more bottlenecks. right now your work with "strings" and "printing them" are two huge bottlenecks that slow down anything you want to do.
What do you mean by saying bottlenecks? I don't get it? I can't think of a more productive way to do it. First take all the possible combinations, and then run a program that checks every line.

there is also another step that you are missing which is checking the correctness of the checksum of each seed phrase before moving on to trying to create private keys.
About that, on BIP39 I've noticed that it doesn't matter the checksum. Whatever seed you'll submit on electrum it will take it.

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

Activity: 3486
Merit: 10666



View Profile
November 02, 2020, 06:36:05 AM
 #23

What do you mean by saying bottlenecks? I don't get it? I can't think of a more productive way to do it. First take all the possible combinations, and then run a program that checks every line.
1. you are working with strings, they are inherently slower than integers (or bits to be more exact).
2. that also means you have to keep converting back and forth between strings and bytes when creating checksum while also having to normalize the text with Electrum defined algorithm
3. printing the result whether to UI or to file is also an extremely slow process (that is why your UI hangs when the number of words is higher than 4-5).
4. you don't have to produce ALL possible combinations, it can be reduced by 94% if you validate checksum! (about 6% are correct in BIP39 and i believe it is the close to same value for Electrum).

Quote
About that, on BIP39 I've noticed that it doesn't matter the checksum. Whatever seed you'll submit on electrum it will take it.
it should matter, if your checksum is invalid then this line will return false (an invalid seed phrase).
same with BIP39, if your SHA256 checksum is invalid it will be rejected (reference implementation).

.
.BLACKJACK ♠ FUN.
█████████
██████████████
████████████
█████████████████
████████████████▄▄
░█████████████▀░▀▀
██████████████████
░██████████████
████████████████
░██████████████
████████████
███████████████░██
██████████
CRYPTO CASINO &
SPORTS BETTING
▄▄███████▄▄
▄███████████████▄
███████████████████
█████████████████████
███████████████████████
█████████████████████████
█████████████████████████
█████████████████████████
███████████████████████
█████████████████████
███████████████████
▀███████████████▀
█████████
.
Pages: « 1 [2]  All
  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!