Documentation ¶
Overview ¶
Package bip39 is the Golang implementation of the BIP39 spec. This code was copied from https://github.com/tyler-smith/go-bip39 which is also MIT licensed.
The official BIP39 spec can be found at https://github.com/bitcoin/bips/blob/master/bip-0039.mediawiki
This code was copied from https://github.com/tyler-smith/go-bip39 which is also MIT licensed.
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ( // ErrInvalidMnemonic is returned when trying to use a malformed // mnemonic. ErrInvalidMnemonic = errors.New("invalid mnenomic") // ErrChecksumIncorrect is returned when entropy has the incorrect // checksum. ErrChecksumIncorrect = errors.New("checksum incorrect") )
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
Functions ¶
func EntropyFromMnemonic ¶
EntropyFromMnemonic takes a mnemonic generated by this library, and returns the input entropy used to generate the given mnemonic. An error is returned if the given mnemonic is invalid.
Types ¶
This section is empty.