Thank you very much for your attention
I think there is a misunderstanding that I need to explain further
I want to generate mnemonics using Python and then use that to create my wallet address and then create transactions.
The official documentation of the TON site recommends the "TonTools" library for interacting with the blockchain.
Now, using this library, I have started generating new mnemonics.
I suddenly realized that the mnemonic expressions generated in this way are not acceptable in the trust wallet.
And I even tried to generate mnemonic expressions with the mnemonic and BIP39 libraries, and even they were not acceptable for the "TonTools" library.
Nov 28, 2023, 1:09 PM
> Trust Wallet's mnemonics are incompatible with ones TON commonly uses.
You need to use other wallet application or other generation algorithm.
Nov 28, 2023, 1:10 PM
I tried this code but I can't use its mnemonic to work with "tontools".
from bip_utils import Bip39MnemonicGenerator, Bip39SeedGenerator, Bip39WordsNum
mnemonic = Bip39MnemonicGenerator().FromWordsNumber(words_num=Bip39WordsNum.WORDS_NUM_24)
print("Mnemonic:", mnemonic)
seed_bytes = Bip39SeedGenerator(mnemonic).Generate()
print("Seed:", seed_bytes.hex())
from bip_utils import Bip39MnemonicGenerator, Bip39SeedGenerator, Bip39WordsNum
mnemonic = Bip39MnemonicGenerator().FromWordsNumber(words_num=Bip39WordsNum.WORDS_NUM_24)
print("Mnemonic:", mnemonic)
seed_bytes = Bip39SeedGenerator(mnemonic).Generate()
print("Seed:", seed_bytes.hex())
Nov 28, 2023, 1:55 PM
But it won't work with TonTools, it will only work with Trust Wallet...
Nov 28, 2023, 1:56 PM
What do I need to do to work with TonTools?
Nov 28, 2023, 1:57 PM
You'd need to abandon Trust Wallet support.
Nov 28, 2023, 1:57 PM
So how does Trust Wallet support TON?
If Trust Wallet has been able to create this compatibility, so can we!
If Trust Wallet has been able to create this compatibility, so can we!
Nov 28, 2023, 2:00 PM
On a lower level, with private keys. Those are 256-bit for both (usually stored in 512-bit format, together with public key).
Nov 28, 2023, 2:01 PM
You sure is the TonTools library the best way to generate new addresses and create transactions using Python?
Nov 28, 2023, 2:23 PM
TON uses different word library than BIP39 I believe
Nov 28, 2023, 2:28 PM
I know
But what does it use?
But what does it use?
Nov 28, 2023, 2:31 PM