Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateSeedFromMnemonic ¶
CreateSeedFromMnemonic creates a seed from a mnemonic.
Types ¶
type MnemonicGenerator ¶
type MnemonicGenerator struct {
// contains filtered or unexported fields
}
func NewMnemonicGenerator ¶
func NewMnemonicGenerator(language string) (*MnemonicGenerator, error)
NewMnemonicGenerator returns a new MnemonicGenerator for the given language.
func (*MnemonicGenerator) Generate ¶
func (mg *MnemonicGenerator) Generate(strengthOption ...int) (string, error)
Generate Create a new mnemonic using a random generated number as entropy. As defined in BIP39, the entropy must be a multiple of 32 bits, and its size must be between 128 and 256 bits. Therefore the possible values for `strength` are 128, 160, 192, 224 and 256. If not provided, the default entropy length will be set to 128 bits. The return is a list of words that encodes the generated entropy.
Click to show internal directories.
Click to hide internal directories.