Bitcoin Forum
December 15, 2024, 07:13:53 AM *
News: Latest Bitcoin Core release: 28.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Need a script to find valid mnemonic seed  (Read 260 times)
Scottrudkin (OP)
Newbie
*
Offline Offline

Activity: 3
Merit: 0


View Profile
February 23, 2021, 07:18:12 PM
 #1

Hello,

I basicly need a script that will give all valid bip39 seed combinations from a set of 12 or 24 words.

Does this exist or can somebody write this? Should be able to run on Windows.

Willing to pay up to 300USD in btc if somebody can write this.

I am new here so restricted to send PM.

Regards.
bitmover
Legendary
*
Offline Offline

Activity: 2520
Merit: 6374


Wheel of Whales 🐳


View Profile WWW
February 23, 2021, 08:28:38 PM
Merited by coinableS (2), ABCbits (1)
 #2

Hello,

I basicly need a script that will give all valid bip39 seed combinations from a set of 12 or 24 words.

You have no idea about how many combinations 2048^24 means

I found this interesting post in reddit

https://www.reddit.com/r/Bitcoin/comments/eelqdo/number_of_bip39_seed_word_combinations_vs_atoms/


I know not all those combinations are valid, but that number is so absurd.

There is no way to store all combinations in an excel file, or even send it online.


Edit: You can play around here:
https://iancoleman.io/bip39/

███████████▄
████████▄▄██
█████████▀█
███████████▄███████▄
█████▄█▄██████████████
████▄█▀▄░█████▄████████
████▄███░████████████▀
████░█████░█████▀▄▄▄▄▄
█████░█
██░█████████▀▀
░▄█▀
███░░▀▀▀██████
▀███████▄█▀▀▀██████▀
░░████▄▀░▀▀▀▀████▀
 

█████████████████████████
████████████▀░░░▀▀▀▀█████
█████████▀▀▀█▄░░░░░░░████
████▀▀░░░░░░░█▄░▄░░░▐████
████▌░░░░▄░░░▐████░░▐███
█████░░░▄██▄░░██▀░░░█████
█████▌░░▀██▀░░▐▌░░░▐█████
██████░░░░▀░░░░█░░░▐█████
██████▌░░░░░░░░▐█▄▄██████
███████▄░░▄▄▄████████████
█████████████████████████

█████████████████████████
████████▀▀░░░░░▀▀████████
██████░░▄██▄░▄██▄░░██████
█████░░████▀░▀████░░█████
████░░░░▀▀░░░░░▀▀░░░░████
████░░▄██░░░░░░░██▄░░████
████░░████░░░░░████░░████
█████░░▀▀░▄███▄░▀▀░░████
██████░░░░▀███▀░░░░██████
████████▄▄░░░░░▄▄████████
█████████████████████████
.
...SOL.....USDT...
...FAST PAYOUTS...
...BTC...
...TON...
Scottrudkin (OP)
Newbie
*
Offline Offline

Activity: 3
Merit: 0


View Profile
February 23, 2021, 08:33:22 PM
 #3

I mean all combinations from a set of 24 bip39 words that i provide so not all possible combinations from the 2048 words.
PawGo
Legendary
*
Offline Offline

Activity: 952
Merit: 1386


View Profile
February 23, 2021, 09:07:34 PM
 #4

It is possible.
Check my program https://github.com/PawelGorny/lostword
Currently there is option to check all possible seeds with a given words if one word is missing and then check balance online. But to be honest it is not very useful...

As I understand you have list of words: word1, word2, word3...  word12 and you want to check which combinations are correct (have correct checksum), right?
I could do this... technically.... but output will be huge. For 12 words it is doable. For 24? It will take years...

http://users.telenet.be/vdmoortel/dirk/Maths/permutations.html
Scottrudkin (OP)
Newbie
*
Offline Offline

Activity: 3
Merit: 0


View Profile
February 23, 2021, 09:13:44 PM
 #5

It is possible.
Check my program https://github.com/PawelGorny/lostword
Currently there is option to check all possible seeds with a given words if one word is missing and then check balance online. But to be honest it is not very useful...

As I understand you have list of words: word1, word2, word3...  word12 and you want to check which combinations are correct (have correct checksum), right?
I could do this... technically.... but output will be huge. For 12 words it is doable. For 24? It will take years...

http://users.telenet.be/vdmoortel/dirk/Maths/permutations.html


Yeah i want all correct checksums from a set of 24 or 12 words.
BlackHatCoiner
Legendary
*
Offline Offline

Activity: 1736
Merit: 8452


Fiatheist


View Profile WWW
February 23, 2021, 09:29:00 PM
 #6

I mean all combinations from a set of 24 bip39 words that i provide so not all possible combinations from the 2048 words.
I was going to make it, but then I saw reply from @PawGo.  Tongue
Yes, actually with 24 words it is almost impossible. With 12, you may be able to achieve it. I had written the code below in javascript some months ago:

Code:
<script>
var seedArr = [],
  usedChars = [];

function getAllDifferentCombinations(input) {
  var i, ch;
  for (i = 0; i < input.length; i++) {
    ch = input.splice(i, 1)[0];
    usedChars.push(ch);
    if (input.length == 0) {
      seedArr.push(usedChars.slice());
  seedArr.push("</br>")
    }
    getAllDifferentCombinations(input);
    input.splice(i, 0, ch);
    usedChars.pop();
  }
  return seedArr
};

var comb = getAllDifferentCombinations(["word1", "word2", "word3", "word4", "word5", "word6", "word7", "word8", "word9", "word10", "word11", "word12"]).toString();
comb = comb.replaceAll(",", " ");
document.write(comb);
</script>
(You can change the number of words on the above file, e.g: ["word1", "word2", "word3"] only)

It doesn't check for checksum, but if you try it you'll see how abruptly the possibilities increase. You can just paste it on an html file and then open it with a browser. With a java script, like lostword, it'll be much faster because it uses more computational power than a javascript file, but you get the idea.

█▀▀▀











█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀
e
▄▄▄▄▄▄▄▄▄▄▄
█████████████
████████████▄███
██▐███████▄█████▀
█████████▄████▀
███▐████▄███▀
████▐██████▀
█████▀█████
███████████▄
████████████▄
██▄█████▀█████▄
▄█████████▀█████▀
███████████▀██▀
████▀█████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
c.h.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀█











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
PawGo
Legendary
*
Offline Offline

Activity: 952
Merit: 1386


View Profile
February 23, 2021, 10:00:28 PM
Merited by BlackHatCoiner (1)
 #7

OK, done in version 0.11. Please check the updated README and example nr 18.
math09183
Member
**
Offline Offline

Activity: 170
Merit: 58


View Profile
February 26, 2021, 02:08:48 PM
 #8


Willing to pay up to 300USD in btc if somebody can write this.


Paid?  Cheesy
coinableS
Legendary
*
Offline Offline

Activity: 1442
Merit: 1186



View Profile WWW
February 27, 2021, 04:00:48 AM
 #9

If you're only missing one word out of the twelve you can use mnemonic-recovery a javascript tool that you can download(https://github.com/coinables/mnemonic-recovery/) and run offline. It requires you to provide a known address from the HD chain. Javascript is slow but will work for one missing seed word on BIP44, 49 or 84 derivations.

Demo: https://coinables.github.io/mnemonic-recovery

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!