public final class MnemonicGenerator
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
MnemonicGenerator.Target |
| Constructor and Description |
|---|
MnemonicGenerator(WordList wordList)
Create a generator using the given word list.
|
| Modifier and Type | Method and Description |
|---|---|
void |
createMnemonic(byte[] entropy,
MnemonicGenerator.Target target)
Create a mnemonic from the word list given the entropy.
|
void |
createMnemonic(java.lang.CharSequence entropyHex,
MnemonicGenerator.Target target)
Create a mnemonic from the word list given the entropy.
|
public MnemonicGenerator(WordList wordList)
wordList - A known ordered list of 2048 words to select from.public void createMnemonic(java.lang.CharSequence entropyHex,
MnemonicGenerator.Target target)
entropyHex - 128-256 bits of hex entropy, number of bits must also be divisible by 32target - Where to write the mnemonic topublic void createMnemonic(byte[] entropy,
MnemonicGenerator.Target target)
entropy - 128-256 bits of entropy, number of bits must also be divisible by 32target - Where to write the mnemonic to