-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
gaiacli keys add
UX could be much improved
#2091
Labels
Comments
9 tasks
Note also that the HD derivation isn't yet hooked up - #1527 (comment). |
I'm working on this... expect a PR tomorrow. |
Quick update on this - I've implemented everything, and am working on automation now. It's a bit tough to unit test prompts. |
5 tasks
mslipper
added a commit
to mslipper/cosmos-sdk
that referenced
this issue
Aug 29, 2018
Complete! |
For anyone who had thoughts on this, I'm now trying to add similar functionality for the KMS's YubiHSM-based key management: tendermint/tmkms#56 (review) |
4 tasks
20 tasks
chillyvee
pushed a commit
to chillyvee/cosmos-sdk
that referenced
this issue
Mar 1, 2024
* docs: bypass msg * docs: update globalfee docs * docs: formatting * Update globalfee.md * docs: fix link * docs: min_gas_prices -> minimum-gas-prices * docs: Updating globalfee docs (cosmos#2107) * add maxBypassMinFeeMsgGasUsage var and docstring * improve docstring in FeeDecorator.AnteHandle * updating docs * refactor globalfee documentation * refactor docs * fix typo * Update x/globalfee/ante/fee.go Co-authored-by: MSalopek <35486649+MSalopek@users.noreply.github.com> --------- Co-authored-by: Matija Salopek <matija.salopek994@gmail.com> Co-authored-by: MSalopek <35486649+MSalopek@users.noreply.github.com> * docs: update globalfee doc * cleanup examples --------- Co-authored-by: Marius Poke <marius.poke@posteo.de> Co-authored-by: Matija Salopek <matija.salopek994@gmail.com> Co-authored-by: MSalopek <35486649+MSalopek@users.noreply.github.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
gaiacli keys add
is a bit weird. It has strange flags like:--no-backup
. Why would I ever run the command if people are watching? Seems unecessary--dry-run
. What's the point of this? Seems like we're just trying to generate a mnemonic and not make a key - that should probably be a separate command, otherwise we're just burdening this one with random flags--recover
. It's not always recovery. Sometimes we just want to make a new key from the same mnemonic (ie. with a different BIP44 path)--account
and--index
. Not sure why this is better than just using a full. Let's just use the full path?--type
flag but currently only allow one type (secp256k1)I think we should leave
add
for legacy sake but add two new commands:mnemonic
andnew
.Mnemonic
The output is just a straight up sequence of bip39 words to write down. By passing
--user
one can specify their own entropy (eg. by rolling ~99 die) instead of reading from system entropy.New
This will completely replace
add
. Instead of flags, we use an interactive prompt that looks like:The result is the creation of the key named
bucky
in the gaiacli db, just likeadd
would have done.If you don't provide a mnemonic, one will be generated for you and output to the screen to be written down.
To avoid the prompts, use
--default
. It will generate (and print) your mnemonic and use default values for the path and bip39 passphrase. It will still ask you for a password to encrypt your privkey on disk, of course.Related:
The text was updated successfully, but these errors were encountered: