|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.google.bitcoin.crypto.MnemonicCode
public class MnemonicCode
A MnemonicCode object may be used to convert between binary seed values and lists of words per the BIP 39 specification
| Nested Class Summary | |
|---|---|
static class |
MnemonicCode.Version
|
| Field Summary | |
|---|---|
static String |
BIP39_ENGLISH_SHA256
|
| Constructor Summary | |
|---|---|
MnemonicCode()
|
|
MnemonicCode(InputStream wordstream,
String wordListDigest)
Creates an MnemonicCode object, initializing with words read from the supplied input stream. |
|
| Method Summary | |
|---|---|
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)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static String BIP39_ENGLISH_SHA256
| Constructor Detail |
|---|
public MnemonicCode()
throws IOException
IOException
public MnemonicCode(InputStream wordstream,
String wordListDigest)
throws IOException,
IllegalArgumentException
IOException
IllegalArgumentException| Method Detail |
|---|
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
MnemonicException.MnemonicLengthException
MnemonicException.MnemonicWordException
MnemonicException.MnemonicChecksumException
public List<String> toMnemonic(byte[] entropy)
throws MnemonicException.MnemonicLengthException
MnemonicException.MnemonicLengthException
public void check(List<String> words)
throws MnemonicException
MnemonicException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||