public class MnemonicCode extends Object
Modifier and Type | Class and Description |
---|---|
static class |
MnemonicCode.Version |
Modifier and Type | Field and Description |
---|---|
static String |
BIP39_ENGLISH_SHA256 |
Constructor and Description |
---|
MnemonicCode() |
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.
|
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.
|
static byte[] |
toSeed(List<String> words,
String passphrase,
MnemonicCode.Version version) |
public static String BIP39_ENGLISH_SHA256
public MnemonicCode() throws IOException
IOException
public MnemonicCode(InputStream wordstream, String wordListDigest) throws IOException, IllegalArgumentException
IOException
IllegalArgumentException
public static byte[] toSeed(List<String> words, String passphrase)
public static byte[] toSeed(List<String> words, String passphrase, MnemonicCode.Version version)
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
MnemonicException
Copyright © 2014. All rights reserved.