public class MnemonicCode extends Object
| Modifier and Type | Field and Description |
|---|---|
static long |
BIP39_STANDARDISATION_TIME_SECS
UNIX time for when the BIP39 standard was finalised.
|
static MnemonicCode |
INSTANCE |
| Constructor and Description |
|---|
MnemonicCode()
Initialise from the included word list.
|
MnemonicCode(InputStream wordstream,
String wordListDigest)
Creates an MnemonicCode object, initializing with words read from the supplied input stream.
|
| Modifier and Type | Method and Description |
|---|---|
void |
check(List<String> words)
Check to see if a mnemonic word list is valid.
|
List<String> |
getWordList()
Gets the word list this code uses.
|
byte[] |
toEntropy(List<String> words)
Convert mnemonic word list to original entropy value.
|
List<String> |
toMnemonic(byte[] entropy)
Convert entropy data to mnemonic word list.
|
static byte[] |
toSeed(List<String> words,
String passphrase)
Convert mnemonic word list to seed.
|
public static long BIP39_STANDARDISATION_TIME_SECS
public static MnemonicCode INSTANCE
public MnemonicCode()
throws IOException
IOExceptionpublic MnemonicCode(InputStream wordstream, String wordListDigest) throws IOException, IllegalArgumentException
IOExceptionIllegalArgumentExceptionpublic static byte[] toSeed(List<String> words, String passphrase)
public byte[] toEntropy(List<String> words) throws MnemonicException.MnemonicLengthException, MnemonicException.MnemonicWordException, MnemonicException.MnemonicChecksumException
public List<String> toMnemonic(byte[] entropy) throws MnemonicException.MnemonicLengthException
public void check(List<String> words) throws MnemonicException
MnemonicExceptionCopyright © 2015. All rights reserved.