keys

package
v0.0.0-...-82c4c57 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenKey

func GenKey(hrp, hdpath string) (string, string, []byte)

GenKey generate a cosmos-sdk based account

func GenKeyByMnemonic

func GenKeyByMnemonic(mnemonic, hrp, hdpath string) (string, []byte)

GenKeyByMnemonic generate a cosmos-sdk based account for the given mnemonic words

func SignBytes

func SignBytes(privkey []byte, data []byte) ([]byte, []byte)

SignBytes signs the given data with provided privkey

func SignBytesHex

func SignBytesHex(privkeyHex string, dataHex string) ([]byte, []byte)

SignBytesHex signs the given data with provided privkey, returns the signed data and the pubkey bytes

Types

This section is empty.

Jump to

Keyboard shortcuts

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