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 do I change the derivation path when generating a key from a seed phrase? #69

Open
minhduytran opened this issue Nov 22, 2024 · 0 comments

Comments

@minhduytran
Copy link

`class CreateAccountKeyBySeedExample(Example):
def init(self) -> None:
super().init(
tag="A.3.", name="CreateAccountKeyBySeedExample", sort_order=803
)

async def run(self, ctx: Config):
    # This function return AccountKey and Signer
    _, _ = AccountKey.from_seed(
        sign_algo=signer.SignAlgo.ECDSA_P256,
        hash_algo=signer.HashAlgo.SHA3_256,
        seed="JNFWM-NDDSE-GENPV-BUBYK-XAVEJ-MVECB-UHIHT-FKKHR-FFDQX-HNSIQ-QVATO-ZEHEQ",
    )`

I checked the AccountKey.from_seed function, and I couldn't find a way to change the derivation path.

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

1 participant