From c5e82e6bc55481d973642cc823dfb486fab22d6a Mon Sep 17 00:00:00 2001 From: Andreas Schildbach Date: Fri, 25 Apr 2014 19:44:58 +0200 Subject: [PATCH] Expose word list of MnemonicCode. It's useful for auto-completion. --- .../main/java/com/google/bitcoin/crypto/MnemonicCode.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/core/src/main/java/com/google/bitcoin/crypto/MnemonicCode.java b/core/src/main/java/com/google/bitcoin/crypto/MnemonicCode.java index 6e25c4ce..8e2585d5 100644 --- a/core/src/main/java/com/google/bitcoin/crypto/MnemonicCode.java +++ b/core/src/main/java/com/google/bitcoin/crypto/MnemonicCode.java @@ -1,5 +1,6 @@ /* * Copyright 2013 Ken Sedgwick + * Copyright 2014 Andreas Schildbach * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -79,6 +80,13 @@ public class MnemonicCode { } } + /** + * Gets the word list this code uses. + */ + public List getWordList() { + return wordList; + } + /** * Convert mnemonic word list to seed. */