Skip to content

Commit

Permalink
Add a comment to hash value
Browse files Browse the repository at this point in the history
  • Loading branch information
orhoj committed Jan 16, 2024
1 parent b1c00fa commit 2f572c4
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,8 @@ public static ConcordiumHdWallet fromSeedPhrase(List<String> seedPhrase, Network
// Validate whether the input seed phrase is valid or not.
StringBuilder builder = new StringBuilder(WordLists.ENGLISH);
InputStream in = new ByteArrayInputStream(builder.toString().getBytes("UTF-8"));

// This hash is taken from MnemonicCode.BIP39_ENGLISH_SHA256, where it is private.
String BIP39_ENGLISH_SHA256 = "ad90bf3beb7b0eb7e5acd74727dc0da96e0a280a258354e7293fb7e211ac03db";
MnemonicCode mnemonicCode = new MnemonicCode(in, BIP39_ENGLISH_SHA256);

Expand Down

0 comments on commit 2f572c4

Please sign in to comment.