keys

package
v1.3.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 24, 2020 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CompressedPubKey2UNCompressedPubKey added in v1.1.9

func CompressedPubKey2UNCompressedPubKey(compressedPubKey string) (unCompressedPubKey []byte, err error)

func GetAccAddressByBechAddress added in v1.3.1

func GetAccAddressByBechAddress(bech32addr string) (types.AccAddress, error)

func PubKey2AddressBech32 added in v1.0.9

func PubKey2AddressBech32(pubKey crypto.PubKey) (string, error)

func PubKeyHexString2Address added in v1.3.1

func PubKeyHexString2Address(pubKeyStr string) (addr types.AccAddress, err error)

func PubKeyHexString2AddressBech32 added in v1.0.9

func PubKeyHexString2AddressBech32(pubKeyStr string) (string, error)

func UNCompressedPubKey2Address added in v1.0.9

func UNCompressedPubKey2Address(uncompressedPubKey string) (crypto.Address, error)

func UNCompressedPubKey2AddressBech32 added in v1.0.9

func UNCompressedPubKey2AddressBech32(uncompressedPubKey string) (string, error)

func UNCompressedPubKey2CompressedPubKey added in v1.0.9

func UNCompressedPubKey2CompressedPubKey(uncompressedPubKey string) (compressedPubKey []byte, err error)

Types

type KeyManager

type KeyManager interface {
	Sign(msg tx.StdSignMsg) ([]byte, error)
	SignBytes(msg []byte) ([]byte, error)
	GetPrivKey() crypto.PrivKey
	GetAddr() types.AccAddress

	GetUCPubKey() (UCPubKey []byte, err error)
}

func NewKeyManager added in v1.0.9

func NewKeyManager(file string, auth string) (KeyManager, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL