Versions in this module Expand all Collapse all v1 v1.1.0 Sep 30, 2020 v1.0.0 Aug 7, 2020 Changes in this version + var BcryptSecurityParameter = 12 + func ArmorInfoBytes(bz []byte) string + func ArmorPubKeyBytes(bz []byte, algo string) string + func DecryptArmorPrivKey(armorStr string, passphrase string) (privKey crypto.PrivKey, algo string, err error) + func EncryptArmorPrivKey(privKey crypto.PrivKey, passphrase string, algo string) string + 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() crypto.PubKey + Generate func() (string, crypto.PrivKey) + ImportPrivKey func(armor, passphrase string) (crypto.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)