Class MnemonicSentence


  • public class MnemonicSentence
    extends Object

    MnemonicSentence

    BIP-0039
    • Method Detail

      • generateEntropy

        public static byte[] generateEntropy​(int entropyStrength)
        Create a new entopy using a random generated number.
        Parameters:
        entropyStrength - 128, 160, 192, 224 or 256 bits
        Returns:
        .
      • entropyToMnemonic

        public static String entropyToMnemonic​(byte[] entropy)
        entropyToMnemonic
        Parameters:
        entropy - .
        Returns:
        mnemonicSentence
      • mnemonicToEntropy

        public static byte[] mnemonicToEntropy​(String mnemonicSentence)
        mnemonicToEntropy
        Parameters:
        mnemonicSentence - .
        Returns:
        .
      • mnemonicToSeed

        public static byte[] mnemonicToSeed​(String mnemonicSentence,
                                            String passphrase)
      • isWordValid

        public static boolean isWordValid​(String mnemonicWord)
      • isSentenceValid

        public static boolean isSentenceValid​(String mnemonicSentence)
      • seedToExtendedKey

        public static String seedToExtendedKey​(byte[] seed,
                                               Int xkeyPrefix)