Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrDecrypt = errors.New("could not decrypt key with given passphrase")
)
Functions ¶
func GetBech32AddrByPubkey ¶ added in v1.0.3
func GetBech32AddrByPubkey(pubkey secp256k1.PubKeySecp256k1) (string, error)
func GetBech32AddrByPubkeyStr ¶ added in v1.0.3
Types ¶
type CryptoJSON ¶
type EncryptedKeyJSON ¶
type EncryptedKeyJSON struct {
Address string `json:"address"`
Crypto CryptoJSON `json:"crypto"`
Id string `json:"id"`
Version string `json:"version"`
}
type KeyManager ¶
type KeyManager interface {
Sign(msg tx.StdSignMsg) ([]byte, error)
SignBytes(msg []byte) ([]byte, error)
GetPrivKey() crypto.PrivKey
GetAddr() types.AccAddress
}
func NewKeyStoreKeyManager ¶
func NewKeyStoreKeyManager(file string, auth string) (KeyManager, error)
func NewKeystoreByImportKeystore ¶ added in v1.0.2
func NewKeystoreByImportKeystore(file string, auth string) (KeyManager, error)
Click to show internal directories.
Click to hide internal directories.