Skip to content
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

How to generate same address with TrustWallet? #95

Open
mekery opened this issue Apr 1, 2022 · 4 comments
Open

How to generate same address with TrustWallet? #95

mekery opened this issue Apr 1, 2022 · 4 comments

Comments

@mekery
Copy link

mekery commented Apr 1, 2022

I'm trying to get address by fromMnemonic, while the address is different with the one generated in TrustWallet using the same mnemonic.

Is there a way to generate same address with TrustWallet by this great package? Thanks!

https://github.com/moneytrackio/tezart/blob/main/example/example.dart#L28-L35

final keystore = Keystore.fromMnemonic(mnemonic);
print(keystore.address);
@Pierre-Michard
Copy link
Contributor

I don't know how TrustWallet generates Tezos private keys from mnemonics. Nevertheless Keystore.fromMnemonic has two optionnal parameters email and password you may use to change the key computed.

Is TrustWallet asking for credentials? if so, you may try to use them as email and password.

@mekery
Copy link
Author

mekery commented Apr 2, 2022

I don't know how TrustWallet generates Tezos private keys from mnemonics. Nevertheless Keystore.fromMnemonic has two optionnal parameters email and password you may use to change the key computed.

Is TrustWallet asking for credentials? if so, you may try to use them as email and password.

It seems that the address generation is not affected by the password in TrustWallet. I researched more wallets, such as imToken and Temple, they all generate same address when use same mnemonic.

Here is the way Temple use:
https://github.com/madfish-solutions/templewallet-extension/blob/2465deca4c/src/lib/temple/back/vault.ts#L329-L345

@sneurlax
Copy link

sneurlax commented Nov 17, 2023

Kukai, Trust, and Spire all generate the same addresses (and different than tezarts'). Are they incorrect? Which implementation(s) does tezart match?

@ArunBabu98
Copy link

I'm facing the same problem. Is tezart using a different derivation path than trust wallet?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants