wordlists

package
v0.0.0-...-9872875 Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2022 License: MIT Imports: 1 Imported by: 0

README

wordlists

Introduction

This is an auxliary library to the bip39 package. The wordlists package includes the wordlists for all languages provided in the BIP39 specifications. The code is heavily inspired by Tyler Smith's wordlists package, but without any hash check.

Example

package main

import (
    "fmt"

    "github.com/augcos/gomnemonic"
    "github.com/augcos/gomnemonic/wordlists"
)

func main() {
    // we change the language to Portuguese
    gomnemonic.SetWordList(wordlists.Portuguese)

    // we generate the random entropy
    entropy, _ := gomnemonic.GenEntropy(256)
    // we generate the mnemonic corresponding to that entropy
    mnemonic, _ := gomnemonic.GetMnemonicFromEntropy(entropy)
    
    fmt.Printf("Entropy: %x\n", entropy)
    fmt.Println("Mnemonic:", mnemonic)
}

References

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ChineseSimplified = strings.Split(strings.TrimSpace(chineseSimplified), "\n")

ChineseSimplified is a slice of mnemonic words taken from the bip39 specification https://raw.githubusercontent.com/bitcoin/bips/master/bip-0039/chinese_simplified.txt

View Source
var ChineseTraditional = strings.Split(strings.TrimSpace(chineseTraditional), "\n")

ChineseTraditional is a slice of mnemonic words taken from the bip39 specification https://raw.githubusercontent.com/bitcoin/bips/master/bip-0039/chinese_traditional.txt

View Source
var Czech = strings.Split(strings.TrimSpace(czech), "\n")

Czech is a slice of mnemonic words taken from the bip39 specification https://raw.githubusercontent.com/bitcoin/bips/master/bip-0039/czech.txt

View Source
var English = strings.Split(strings.TrimSpace(english), "\n")

English is a slice of mnemonic words taken from the bip39 specification https://raw.githubusercontent.com/bitcoin/bips/master/bip-0039/english.txt

View Source
var French = strings.Split(strings.TrimSpace(french), "\n")

French is a slice of mnemonic words taken from the bip39 specification https://raw.githubusercontent.com/bitcoin/bips/master/bip-0039/french.txt

View Source
var Italian = strings.Split(strings.TrimSpace(italian), "\n")

Italian is a slice of mnemonic words taken from the bip39 specification https://raw.githubusercontent.com/bitcoin/bips/master/bip-0039/italian.txt

View Source
var Japanese = strings.Split(strings.TrimSpace(japanese), "\n")

Japanese is a slice of mnemonic words taken from the bip39 specification https://raw.githubusercontent.com/bitcoin/bips/master/bip-0039/japanese.txt

View Source
var Korean = strings.Split(strings.TrimSpace(korean), "\n")

Korean is a slice of mnemonic words taken from the bip39 specification https://raw.githubusercontent.com/bitcoin/bips/master/bip-0039/korean.txt

View Source
var Portuguese = strings.Split(strings.TrimSpace(portuguese), "\n")

Spanish is a slice of mnemonic words taken from the bip39 specification https://raw.githubusercontent.com/bitcoin/bips/master/bip-0039/spanish.txt

View Source
var Spanish = strings.Split(strings.TrimSpace(spanish), "\n")

Spanish is a slice of mnemonic words taken from the bip39 specification https://raw.githubusercontent.com/bitcoin/bips/master/bip-0039/spanish.txt

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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