Versions in this module Expand all Collapse all v0 v0.2.0 Mar 23, 2023 v0.1.0 Jul 20, 2022 Changes in this version + var BcryptSecurityParameter = 12 + func ArmorInfoBytes(bz []byte) string + func ArmorPubKeyBytes(bz []byte, algo string) string + func EncryptArmorPrivKey(privKey crypto.PrivKey, passphrase string, algo string) string + func UnarmorDecryptPrivKey(armorStr string, passphrase string) (privKey crypto.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() 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 NewMnemonicKeyManagerWithHDPath(mnemonic, algo, hdPath string) (KeyManager, error) + func NewPrivateKeyManager(priv []byte, algo string) (KeyManager, error)