Skip to content

Commit

Permalink
Update bip39.go
Browse files Browse the repository at this point in the history
  • Loading branch information
meiyoung authored and tyler-smith committed Oct 17, 2018
1 parent 7ea8b33 commit e5cf001
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions bip39.go
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,12 @@ func GetWordList() []string {
return wordList
}

// GetWordIndex get word index in wordMap
func GetWordIndex(word string) (int, bool) {
idx, ok := wordMap[word]
return idx, ok
}

// NewEntropy will create random entropy bytes
// so long as the requested size bitSize is an appropriate size.
//
Expand Down

0 comments on commit e5cf001

Please sign in to comment.