Skip to content

Instantly share code, notes, and snippets.

@id6827
Created October 5, 2019 13:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save id6827/284e4a29c1b473e7f7463f23339c814b to your computer and use it in GitHub Desktop.
Save id6827/284e4a29c1b473e7f7463f23339c814b to your computer and use it in GitHub Desktop.
public DeterministicKey deterministicKey() {
final DeterministicSeed seed =
new DeterministicSeed(mnemonicCode, null, passphrase, new Date().getTime());
final DeterministicKeyChain chain = DeterministicKeyChain.builder().seed(seed).build();
final List<ChildNumber> keyPath = HDUtils.parsePath("M/44H/60H/0H/0/0");
return chain.getKeyByPath(keyPath, true);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment