@Before
  public void setup() {
    BriefLogFormatter.init();

    DeterministicSeed seed = new DeterministicSeed(ENTROPY, "", 0);
    masterKey = HDKeyDerivation.createMasterPrivateKey(seed.getSeedBytes());
    DeterministicHierarchy hierarchy = new DeterministicHierarchy(masterKey);
    DeterministicKey rootKey =
        hierarchy.get(ImmutableList.of(ChildNumber.ZERO_HARDENED), false, true);
    chain = new SimpleHDKeyChain(rootKey);
    chain.setLookaheadSize(10);
  }
  public static DeterministicKey keyFromMnemonic(String mnemonic) {
    final byte[] mySeed = getSeedFromPassphrase(mnemonic);
    final DeterministicKey deterministicKey = HDKeyDerivation.createMasterPrivateKey(mySeed);

    return deterministicKey;
  }
 @Override
 public ISigningWallet deriveChildKey(final ChildNumber childNumber) {
   return new DeterministicSigningKey(HDKeyDerivation.deriveChildKey(hdWallet, childNumber));
 }