Class MnemonicCode


  • public class MnemonicCode
    extends java.lang.Object
    A MnemonicCode object may be used to convert between binary seed values and lists of words per the BIP 39 specification
    • Constructor Summary

      Constructors 
      Constructor Description
      MnemonicCode()
      Initialise from the included word list.
      MnemonicCode​(java.io.InputStream wordstream, java.lang.String wordListDigest)
      Creates an MnemonicCode object, initializing with words read from the supplied input stream.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void check​(java.util.List<java.lang.String> words)
      Check to see if a mnemonic word list is valid.
      java.util.List<java.lang.String> getWordList()
      Gets the word list this code uses.
      byte[] toEntropy​(java.util.List<java.lang.String> words)
      Convert mnemonic word list to original entropy value.
      java.util.List<java.lang.String> toMnemonic​(byte[] entropy)
      Convert entropy data to mnemonic word list.
      static byte[] toSeed​(java.util.List<java.lang.String> words, java.lang.String passphrase)
      Convert mnemonic word list to seed.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait