Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package main
- import (
- "encoding/hex"
- "fmt"
- "github.com/bytom/wallet/mnemonic"
- )
- func main() {
- strEntropy := "089fe9bf0cac76760bc4b131d938669e"
- byteEntropy, _ := hex.DecodeString(strEntropy)
- result, err := mnemonic.NewMnemonic(byteEntropy, "en")
- if err != nil {
- fmt.Println(err)
- }
- fmt.Println(result)
- }
Add Comment
Please, Sign In to add comment