[ 3 / biz / cgl / ck / diy / fa / ic / jp / lit / sci / vr / vt ] [ index / top / reports ] [ become a patron ] [ status ]
2023-11: Warosu is now out of extended maintenance.

/biz/ - Business & Finance


View post   

File: 100 KB, 432x474, unknown-1429.png [View same] [iqdb] [saucenao] [google]
52484986 No.52484986 [Reply] [Original]

I have an old account I forgot the phrase to, but confidently narrowed it down to ~2.5mln possibilities. Can something be done to check all of them offline?

>> No.52485213

>>52484986
If you know the address of the account, yes.
You can use the same derivation route that Metamask uses(ie which BIP, 39?) and then generate the public keys and then from that the addresses and check if they match the one your looking for.
Each seed will deterministically generate each account in the same order.
If you need to check the balance of an account though, you would need to have that data available.

>> No.52485947
File: 40 KB, 450x684, 1642656838643.jpg [View same] [iqdb] [saucenao] [google]
52485947

>>52485213
This basically. It can be done something like this

from mnemonic import mnemonic
from binascii import hexlify

mnemo = mnemonic.Mnemonic("english")
words = ""
seed = hexlify(mnemo.to_seed(words, passphrase=""))
keypair = generate_keypair("btc", seed)

print(keypair["public"]["address"])

words is just your space separated bip39 wordlist.

>> No.52486062

>>52484986
https://iancoleman.io/bip39/
Play around with this tool but I wouldn’t put a seed to wallets with funds in them or that I’m planning to use in the future

>> No.52486148

>>52485947
Noticed I missed the import for generate_keypair, it's provided by moneywagon.