Hi all. I'd like to know how to convert 64 hex private keys back into mnemonics. For example, here:
https://answers.ton.org/question/1620783559922946048/
@pcrafter has replied:
"It should be possible to cut off the last half of key (64 HEX characters), which is actually public key, and use the rest in other wallets."
Now, suppose that I have done the above cutoff, and next, I want to convert the first 64-hex back into mnemonic, so that I can restore the wallet in another app (Tonkeeper, etc.). Now my question is: how to do this?
Nov 7, 2023, 3:55 PM
it's not possible
Nov 7, 2023, 4:06 PM
So, any other way to restore the wallet from the hex?
Nov 7, 2023, 4:06 PM
what do you mean by "restore the wallet"
Nov 7, 2023, 4:10 PM
I mean, to be able to access the wallet, and to send transactions from it. E.g., to withdraw tons from it
Could you guide me how to do the coding, please?
Nov 7, 2023, 4:15 PM
You can use TonWeb or @ton/ton to do so.
Nov 7, 2023, 4:18 PM
Done! Thanks 🙏
Note. Although the 2nd half of the 128-length string was used to generate the public key, for the secret key I had to use the whole length again. Using only the 1st 64-length half caused the error 'bad key size.'
Note. Although the 2nd half of the 128-length string was used to generate the public key, for the secret key I had to use the whole length again. Using only the 1st 64-length half caused the error 'bad key size.'
Nov 7, 2023, 8:00 PM