-
Notifications
You must be signed in to change notification settings - Fork 41
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
CLI wallet: Ledger Nano support #1606
CLI wallet: Ledger Nano support #1606
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you remove let wallet = unlock_wallet(storage_path, None, None).await?;
from node_info_command()?
We don't need this for a stronghold wallet and certainly not for a ledger nano one
Please also check if there are other places where one is requested to insert a pw even if not needed (not needed at all or just not needed with a ledger nano)
Are sure you need to enter a password to run the |
Co-authored-by: DaughterOfMars <[email protected]>
Actually during current implementation of handling several secret managers I came to realize that this should require a password atm, because this command uses the node as stored in the wallet, not just any node. Hence the node used should be considered private information. An alternative would be to require the URL, but I guess that's not what we want. We want the node info of the node that specifically is used to sync the wallet. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Running just cargo run --release
has a different behavior (asks directly for stronghold pw) than running with init
(shows secret manager selection)
Should both be like the init command?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Running a wallet command after it got initialized with ledger nano returns Stronghold snapshot not found at './stardust-cli-wallet.stronghold'.
(get-info) or it asks for a stronghold password, just to then fail with wallet error: no mnemonic has been stored into the Stronghold vault
(new-account)
how did you run the wallet? |
Just |
gonna fix the quirks ... |
c1bbf5f
b09cc16
(don't merge yet please, still having a look) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Conflict
f877a07
62b57ba
Description of change
Adds support for Ledger Nano to the CLI wallet and fixes some usability issues.
Links to any relevant issues
Closes #144
Type of change
Choose a type of change, and delete any options that are not relevant.