Created
November 15, 2021 11:36
-
-
Save yoyoismee/8ee313b6900e1ca18c5103ebb04c99c6 to your computer and use it in GitHub Desktop.
elrond wallet recovery
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from erdpy.wallet.core import derive_keys | |
from erdpy.wallet import bech32 | |
target = 'erd1tfnwjve3nj39vfzrj7vwkrawkw9m0zl05v66l0p8jxazds0es5qstxzlpr' | |
with open("erdpy/wallet/bip39words.txt", 'r') as fp: | |
words = fp.read().split('\n') | |
for w in words: | |
# replace with your seed phase and use {w} to mark the missing word | |
# in this example you not sure about your 3rd word | |
seed = f"seedword seedword {w} seedword seedword seedword seedword seedword seedword seedword seedword seedword seedword seedword seedword seedword seedword seedword seedword seedword seedword seedword seedword seedword" | |
HRP = "erd" | |
b32 = bech32.bech32_encode(HRP, bech32.convertbits(derive_keys(seed, 0)[1], 8, 5)) | |
print(b32) | |
if b32 == target: | |
print(seed) | |
break |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment