-
Notifications
You must be signed in to change notification settings - Fork 111
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot restore wallet from 12-word secret phrase #62
Comments
` |
This issue arises from people who have initialized a wallet in Trust wallet which ambiguously creates a TON wallet from 12 words using their method. Trust wallet does not support Jettons at all, and people need to import the 12 word key in order to retrieve Jettons erroneously sent to trust wallet recipient address. I've tried to create a program using the tonweb package to create a transaction from 12 word but was able to generate addresses but unable to create addresses consistent with the output of trust wallet. Example
|
@snowkidind I do not think The proper solution here would be to write code that will extract the private key of a TON wallet based on 12-word mnemonic. We recently implemented a very similar approach for extracting from Ledger's 24-word mnemonic here: https://github.com/mytonwalletorg/ton-ledger-export/blob/master/src/index.js You can try to adapt that code from Ledger's 24 words to Trust's 12 words. Then the received private key (hex string) can be imported directly in MyTonWallet. |
It is a bit annoying to be forced to use 24-word if you wish 12-word as that provides a good security already. |
There is no difference 12 or 24 words — if they are from Trust Wallet, they will not be accepted by MyTonWallet. So extracting the private key would be the solution. |
12-word is simpler to store, so giving the use the possibility to choose either 12 or 24 would be better rather than just have 24 as an option, then any 12 or 24 word can be used on any Hot Wallet software that supports the coin. |
Can't Mytonwallet simply accept 12-word in order to restore a wallet ? |
I see no feature that allows this type of import. Desktop, browser extension or mobile. |
What would be the block for Mytonwallet to accept 12 word recovery phrase along with the existing 24 word and also give the user the option to generate new seed with 12 word as well ? |
@mytonwalletorg what would take to develop a way to allow the create or import 12-word seed phrase on mytonwallet interface instead of just 24. Even if it uses another method, as long it has enough security is fine. @snowkidind the scenario you describe is pretty much what brought me here. Thanks for sharing your tentative. Perhaps a solution can be found to that that allows the user to choose either 12 or 24 words when creating or importing a wallet. |
|
Just choose "24 Secret Words" and paste your hex private key. |
@mytonwalletorg do you think is doable to have also the option to enter a 12-word seed or give the user option to generate both as per his preference ? |
Are you kidding or is this an easter egg? |
Ok I see the function made the latest update - thanks! But a couple issues have now presented themselves:
I have notified trust wallet of their issue |
@snowkidind please do so. TrustWallet is very very bad at communication. Very bad support system, they loose emails in between the interaction and are unable to be aware of the issue. But above all this issue needs to be treated. Seems MyTonWallet needs these improvements and being limited to 24-word only is not a good thing. Add the 12-word support whenever possible please. |
Just use Settings > Exit or Remove Wallet. |
|
@snowkidind @mytonwalletorg Trust wallet uses |
Can you please provide a code example or a diff? |
@Ajaxy I changed this line to get values at const seedContainer = derivePath(`m/44'/607'/${index}'`, seed.toString('hex')); |
Great thing. Hopefully 12 words can ve a standard option as well in order to make it more like most wallets.
|
This resolves the issue of jettons inadvertently sent to trust wallet. Modifying the above file to |
I am trying to use MyTonWallet restoring a previous wallet I had however MyTonWallet required 24-word secret phrase to restore and doesn't give the option to use 12-word. If it was possible to generate a secret key with 12-word in another wallet software why isn't possible to use in MyTonWallet ?
The text was updated successfully, but these errors were encountered: