cosmos-sdk
cosmos-sdk copied to clipboard
simd keys odd behaviour
Summary of Bug
Various operations using simd keys
fail with various errors. For example:
johnk@REGEN:~/src/cosmos-sdk$ simd keys add new_validator --keyring-backend file
Enter keyring passphrase:
Re-enter keyring passphrase:
- address: cosmos10gx90fkk7anup5num86mkxaapu04xkv9td35tu
name: new_validator
pubkey: '{"@type":"/cosmos.crypto.secp256k1.PubKey","key":"Ay271JAI9+rn5CHIk3/jp8ajPX8PO/wLhOY31LK/lZj7"}'
type: local
**Important** write this mnemonic phrase in a safe place.
It is the only way to recover your account if you ever forget your password.
{MNEMONIC}
johnk@REGEN:~/src/cosmos-sdk$ simd keys list --keyring-backend file
migrate err: keyhash.info: key not foundEnter keyring passphrase:
Error: illegal base64 data at input byte 0
Usage:
simd keys list [flags]
Flags:
-h, --help help for list
-n, --list-names List names only
Global Flags:
--home string The application home directory (default "/home/johnk/.simapp")
--keyring-backend string Select keyring's backend (os|file|test) (default "os")
--keyring-dir string The client Keyring directory; if omitted, the default 'home' directory will be used
--log_format string The logging format (json|plain) (default "plain")
--log_level string The logging level (trace|debug|info|warn|error|fatal|panic) (default "info")
--output string Output format (text|json) (default "text")
--trace print out full stack trace on errors
johnk@REGEN:~/src/cosmos-sdk$
Note the error:
migrate err: keyhash.info: key not foundEnter keyring passphrase:
Error: illegal base64 data at input byte 0
Version
25feb237f891432e9326b879217581a852825b1a
johnk@REGEN:~/src/cosmos-sdk$ simd version
0.46.0-alpha2-161-g25feb237f
johnk@REGEN:~/src/cosmos-sdk$
Steps to Reproduce
- git clone from master
-
make build && make install
- Follow the Cosmos tutorial for adding a key to one or more backends (I tried test and file)
- Do
simd keys list --keyring-backend file
For Admin Use
- [ ] Not duplicate issue
- [ ] Appropriate labels applied
- [ ] Appropriate contributors tagged
- [ ] Contributor assigned/self-assigned
Having same issues w/ https://github.com/notional-labs/craft SDK 46-beta3 latest
Ubuntu 20.04 focal Server [x86_64 Linux 5.4.0-90-generic]
migrate err: config.info: key not foundmigrate err: data.info: key not foundmigrate err: keyhash.info: key not foundEnter keyring passphrase:
Error: read /root/.craftd/config: is a directory
after reboot: Error: No such interface “org.freedesktop.DBus.Properties” on object at path /
x86_64 Linux 5.16.15-arch1-1 [Fresh install today]
and also Monjaro 21.2.1
Above installs followed the following: https://github.com/notional-labs/notional/blob/master/infrastructure/standup.bash
craftd keys list --keyring-backend os
migrate err: config.info: key not foundmigrate err: data.info: key not foundmigrate err: keyhash.info: key not foundEnter keyring passphrase:
Error: read /root/.craftd/config: is a directory
craftd keys list --keyring-backend file
migrate err: keyhash.info: key not foundEnter keyring passphrase:
Error: illegal base64 data at input byte 0
I am not able to reproduce this. @frumioj could you confirm it is still an issue ?
I am not able to reproduce this. @frumioj could you confirm it is still an issue ?
I haven't checked lately, but will check out the latest and retry when I get time.