public final class SeedCalculatorByWordListLookUp
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
byte[] |
calculateSeed(java.util.Collection<? extends java.lang.CharSequence> mnemonic,
java.lang.String passphrase)
Calculate the seed given a mnemonic and corresponding passphrase.
|
public byte[] calculateSeed(java.util.Collection<? extends java.lang.CharSequence> mnemonic,
java.lang.String passphrase)
MnemonicValidator.
The purpose of this method is to avoid constructing a mnemonic String if you have gathered a list of
words from the user and also to avoid having to normalize it, all words in the WordList are normalized
instead.
Due to normalization, the passphrase still needs to be String, and not CharSequence, this is an
open issue: https://github.com/NovaCrypto/BIP39/issues/7
mnemonic - The memorable list of words, ideally selected from the word list that was supplied while creating this object.passphrase - An optional passphrase, use "" if not required