-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
SDK NewMnemonic Passphrase Issue #8635
Comments
This looks like a keyring issue. @alessio ? |
I need to investigate into this. We've used an empty value for
But that seems wrong. |
@alessio that is the exact issue here. the Can we fix this so that we separate the logic? here is an example (adding passphrase as an argument):
|
I agree with the proposed solution here. It's also not clear from the description that the |
This is another issue because the |
Summary of Bug
Issue with the account that is created using
NewMnemonic
.NewMnemonic
does not require a passphrase argument and the passphrase passed toNewAccount
inside the method is set toDefaultBIP39Passphrase
. The issue that this causes is that the passphrase is now set automatically to an empty string (""
) and it cannot be changed. If we decide the use the mnemonic that is outputted by theNewMnemonic
method intoNewAccount
, this causes two accounts to be created, where the first one would have the empty string as the passphrase and the second account will have the passphrase set.Proposed Solution:
Remove the
NewAccount
method insideNewMnemonic
and have theNewMnemonic
method only output the bip39 mnemonic and err (nil if none). Then that mnemonic can be used insideNewAccount
- which can be left the way it is.Would like to discuss here before opening any PRs. Thanks guys
Version
v0.41.3
Steps to Reproduce
For Admin Use
The text was updated successfully, but these errors were encountered: