Versions in this module Expand all Collapse all v1 v1.0.1 Mar 10, 2023 Changes in this version + var BcryptSecurityParameter = 12 + func ArmorInfoBytes(bz []byte) string + func ArmorPubKeyBytes(bz []byte, algo string) string + func EncryptArmorPrivKey(privKey cryptotypes.PrivKey, passphrase string, algo string) string + func UnarmorDecryptPrivKey(armorStr string, passphrase string) (privKey cryptotypes.PrivKey, algo string, err error) + func UnarmorInfoBytes(armorStr string) ([]byte, error) + func UnarmorPubKeyBytes(armorStr string) (bz []byte, algo string, err error) + type KeyManager interface + ExportPrivKey func(password string) (armor string, err error) + ExportPubKey func() cryptotypes.PubKey + Generate func() (string, cryptotypes.PrivKey) + ImportPrivKey func(armor, passphrase string) (cryptotypes.PrivKey, string, error) + Sign func(data []byte) ([]byte, error) + func NewAlgoKeyManager(algo string) (KeyManager, error) + func NewKeyManager() KeyManager + func NewMnemonicKeyManager(mnemonic string, algo string) (KeyManager, error) + func NewPrivateKeyManager(priv []byte, algo string) (KeyManager, error)