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
QA: Generate ED25519 recovery phrase #599
Comments
I am little unclear on the mnemonic feature we have support for (in general as this question is applicable to all SDKs). I can see we support 12 and 24 word mnemonic phrase generation. Initially we only supported ED25519 keys so it was obvious the recovery phrase feature would generate a recovery phrase and then you could generate an associated ED25519 key. Now we support both ED25519 and ECSDA. What I am unclear on is when I use:
How do I know which key type this mnemonic is going to generate keys for? Or do I specify that after I create the mnemonic/recovery phrase? I know that for ED key generation there is an index for every key and if you want to regenerate keys from a recovery phrase you have to also provide the index. Also is the above code snippet correct in what I am trying to achieve. |
Code Example
Output
|
One mnemonic can generate
As for the index, it's just the final derivation in the full SLIP-44 standard deviation path. It can be used to generate multiple different keys from the same mnemonic. It is defaulted in the C++ SDK to 0, but a user can provide a specific index if they so like. So that would look something like (using ECDSA this time):
The
|
Generate a recovery phrase that results in deriving ED25519 key types.
The text was updated successfully, but these errors were encountered: