tendermint / tmkms

Key Management service for Tendermint Validator nodes

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

error: invalid key type: priv_validator[tmkms v0.6.3]

wlsaud619 opened this issue · comments

commented

Summary

Problems occur when importing keys while checking the "--help" option.
The actual importable key types are wrap, json, or base64, but the description says wrap or private_validator.
Please update the description later because it can be confusing.

Version

tmkms v0.6.3

Steps to Reproduce

  1. tmkms yubihsm keys import -i 1 priv_validator priv_validator_key.json
    -> error: invalid key type: prive_validator

  2. tmkms yubihsm keys import -i 1 priv_validator priv_validator_key.json --help
    -> description: -t, --key-type KEY-TYPE type of key to import (wrap or priv_validator)

  3. Check "tmkms-0.6.3/src/commands/yubihsm/keys/import.rs"
    -> description: Type of key to import (either wrap, json, or base64, default wrap)

image

image

It looks like it's presently gated off the filename, rather than the -t flag. Can you try importing a file named priv_validator.json?

I agree that -t priv_validator should work, and some of the documentation incorrectly suggests it does already.