private Wallet initFromMasterSeed(final String masterSeed) { try { final DeterministicSeed seed = getSeed(masterSeed); seed.check(); return constructFromSeed(seed); } catch (final UnreadableWalletException | MnemonicException e) { throw new RuntimeException("Unable to create wallet. Seed is invalid"); } }
seed = new DeterministicSeed(split, null, passphrase, creationTimeSecs); try { seed.check(); } catch (MnemonicException.MnemonicLengthException e) { System.err.println("The seed did not have 12 words in, perhaps you need quotes around it?");
@Test public void checkSeed() throws MnemonicException { wallet.getKeyChainSeed().check(); }