Documentation ¶
Overview ¶
Package bip39 is an immutable class that represents a BIP39 Mnemonic code.
See BIP39 specification for more info: https://github.com/bitcoin/bips/blob/master/bip-0039.mediawiki A Mnemonic code is a a group of easy to remember words used for the generation of deterministic wallets. A Mnemonic can be used to generate a seed using an optional passphrase, for later generate a HDPrivateKey.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Mnemonic ¶
type Mnemonic struct {
// contains filtered or unexported fields
}
Mnemonic ...
func NewMnemonicFromEntropy ¶
NewMnemonicFromEntropy Generates a Mnemonic based on a known entropy (stored as hex bytes)
func NewMnemonicFromSentence ¶
NewMnemonicFromSentence Generates a menmonic based on a known code (list of words).
func NewMnemonicRandom ¶
NewMnemonicRandom creates a new random (crypto safe) Mnemonic.Use size 128 for a 12 words code.
func (*Mnemonic) GetEntropyStrHex ¶
GetEntropyStrHex get the entryope as hex in a string, for easy storage
func (*Mnemonic) GetSentence ¶
GetSentence Return the words from this Mnemonic.
Click to show internal directories.
Click to hide internal directories.