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

Cannot convert mnemonic to seed #714

Closed
Erfansol21 opened this issue Jun 8, 2024 · 1 comment
Closed

Cannot convert mnemonic to seed #714

Erfansol21 opened this issue Jun 8, 2024 · 1 comment

Comments

@Erfansol21
Copy link

Hi, I'm trying to add a code that import wallet from mnemonic. I tried using the code that was in this issue:
#419
but it couldn't sign a transaction and gave this error: xrpl.asyncio.clients.exceptions.XRPLRequestFailureException: Request failed, invalidTransaction: fails local checks: Invalid signature.
and I tried making a seed from entropy using addresscodec.encode_seed but it gave the wrong seed and address in both ED25519 and SECP256K1

@ckeshava
Copy link
Collaborator

Hello,
Here is a xrpl.js utility function for generating a wallet using a mnemonic phrase: https://js.xrpl.org/classes/Wallet.html#fromMnemonic
We do not have an equivalent utility function in xrpl-py yet.

Here is a script written by @LimpidCrypto for this purpose: #419 (comment) -- I am not familiar with the bip_utils library myself, but this script appears to fit your requirement.

@ckeshava ckeshava closed this as completed Jul 1, 2024
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

2 participants