Documentation ¶
Index ¶
- func Add(serviceName string) *cobra.Command
- func Delete(serviceName string) *cobra.Command
- func GenerateNewEd25519() (crypto.PrivKey, error)
- func GetP2PKeyOrGenerateNewOne(ks *keystore.FSKeystore, nickname string) (crypto.PrivKey, error)
- func Import(serviceName string) *cobra.Command
- func List(serviceName string) *cobra.Command
- func Root(serviceName string) *cobra.Command
- type KeysConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateNewEd25519 ¶
func GetP2PKeyOrGenerateNewOne ¶
GetP2PKeyOrGenerateNewOne takes a nickname and either returns its corresponding private key if it doesn't exist, return the first key in the store if it doesn't exist, create a new key, store it in the keystore, then return it.
Types ¶
type KeysConfig ¶
type KeysConfig struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.