Documentation
¶
Index ¶
Constants ¶
View Source
const ( CosmosHDPath string = "m/44'/118'/0'/0/0" HardenedOffset int = 0x80000000 InitHRP string = "init" )
Variables ¶
View Source
var EnglishWordList = strings.Split(strings.TrimSpace(englishWordList), "\n")
EnglishWordList Language-specific wordlists
View Source
var ReverseWordMap = map[string]int{}
View Source
var WordList = EnglishWordList
WordList is the wordlist to use
Functions ¶
func GenerateMnemonic ¶
GenerateMnemonic generates new fresh mnemonic
func IsMnemonicValid ¶
IsMnemonicValid attempts to verify that the provided mnemonic is valid. Validity is determined by both the number of words being appropriate, and that all the words in the mnemonic are present in the word list.
func MnemonicToBech32Address ¶
MnemonicToBech32Address converts a mnemonic to a Cosmos SDK Bech32 address.
func PubKeyToBech32Address ¶ added in v0.3.1
PubKeyToBech32Address converts a hex string public key to a Cosmos SDK Bech32 address.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.