Python code to help an Algorand (ALGO) crypto wallet holder fix a private key phrase that has limited issues. Instructions are included below.
I hope it did. It helped me too! If you feel inclined to tip, here is an Algo wallet address I set up specifically for tips (not necessary but certainly welcome!)
5Q2RGRRXLC3643TFP22Y5LITE5P3SPQLZO2U4KLDALLMUMZWCOEFVEKQEQ
After writing down my algorand wallet (wallet.myalgo.com) 25 phrase words,
I wasn't able to access my wallet the next day. I figured that I had
either mistyped a phrase word or swapped word positions on accident.
so, I wrote this script to try to recover my wallet.
It worked
and recovered my wallet for me. Apparently, when I wrote down the words, I
had switched the positions of two of them.
- fix a single swapped pair of words in the phrase (all other words must be spelled correctly and in the correct positions)
- fix a single missing missing word (all other words must be spelled correctly and in the correct positions)
- fix a single misspelled word (all other words must be spelled correctly and in the correct positions)
-
INSTALL THE ALGOSDK PACKAGE!
-more information about this package is available here: https://github.com/algorand/py-algorand-sdk
-note of security -- the package referenced is from the "verified" algorand github account
-to install the package: $ pip3 install py-algorand-sdk -
LOAD THE WORD LIST!
-download the sdk wordlist from here: https://github.com/algorand/py-algorand-sdk/blob/develop/algosdk/wordlist.py
-save that file as wordlist.py in the directory that you save this script, because this script imports the wordlist script -
KNOW YOUR WALLET PUBLIC ADDRESS!
-you should have this if you sent any coins to the wallet. look at your outgoing transactions from the source where you sent from. you will need to enter this into the appropriate hardcoded variable in the script. -
HAVE YOUR PHRASE LIST OF AT LEAST 24 of 25 WORDS, WHICH YOU BELIEVE HAS AN ISSUE!
-a single spelling error,
-a single missing word,
-or, a single pair of swapped phrase words.
-you will need to enter this into the appropriate hardcoded variable in the script.