mirror of
https://github.com/bitcoinj/bitcoinj.git
synced 2024-11-19 09:50:32 +01:00
Assume wordlist will be 2048 words in size.
This commit is contained in:
parent
761b06fb8a
commit
549f228d29
@ -87,7 +87,7 @@ public class MnemonicCode {
|
||||
*/
|
||||
public MnemonicCode(InputStream wordstream, String wordListDigest) throws IOException, IllegalArgumentException {
|
||||
BufferedReader br = new BufferedReader(new InputStreamReader(wordstream, "UTF-8"));
|
||||
this.wordList = new ArrayList<String>();
|
||||
this.wordList = new ArrayList<String>(2048);
|
||||
MessageDigest md;
|
||||
try {
|
||||
md = MessageDigest.getInstance("SHA-256");
|
||||
|
Loading…
Reference in New Issue
Block a user