Documentation
¶
Index ¶
- func CompressedPubKey2UNCompressedPubKey(compressedPubKey string) (unCompressedPubKey []byte, err error)
- func GetAccAddressByBechAddress(bech32addr string) (types.AccAddress, error)
- func PubKey2AddressBech32(pubKey crypto.PubKey) (string, error)
- func PubKeyHexString2Address(pubKeyStr string) (addr types.AccAddress, err error)
- func PubKeyHexString2AddressBech32(pubKeyStr string) (string, error)
- func UNCompressedPubKey2Address(uncompressedPubKey string) (crypto.Address, error)
- func UNCompressedPubKey2AddressBech32(uncompressedPubKey string) (string, error)
- func UNCompressedPubKey2CompressedPubKey(uncompressedPubKey string) (compressedPubKey []byte, err error)
- type KeyManager
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetAccAddressByBechAddress ¶
func GetAccAddressByBechAddress(bech32addr string) (types.AccAddress, error)
func PubKeyHexString2Address ¶
func PubKeyHexString2Address(pubKeyStr string) (addr types.AccAddress, err error)
Types ¶
type KeyManager ¶
type KeyManager interface { Sign(msg types.StdSignMsg) ([]byte, error) SignBytes(msg []byte) ([]byte, error) GetPrivKey() crypto.PrivKey GetAddr() sdk.AccAddress GetUCPubKey() (UCPubKey []byte, err error) }
func NewKeyManager ¶
func NewKeyManager(file string, auth string) (KeyManager, error)
Click to show internal directories.
Click to hide internal directories.