package
Version:
v0.0.0-...-82c4c57
Opens a new window with list of versions in this module.
Published: Feb 1, 2021
License: Apache-2.0
Opens a new window with license information.
Imports: 8
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
-
func GenKey(hrp, hdpath string) (string, string, []byte)
-
func GenKeyByMnemonic(mnemonic, hrp, hdpath string) (string, []byte)
-
func SignBytes(privkey []byte, data []byte) ([]byte, []byte)
-
func SignBytesHex(privkeyHex string, dataHex string) ([]byte, []byte)
GenKey generate a cosmos-sdk based account
GenKeyByMnemonic generate a cosmos-sdk based account for the given mnemonic words
SignBytes signs the given data with provided privkey
SignBytesHex signs the given data with provided privkey, returns the signed data and the pubkey bytes
Source Files
¶
Click to show internal directories.
Click to hide internal directories.