Fix build depedencies

This commit is contained in:
fekt
2024-11-18 17:52:51 +00:00
parent fb0d13dffb
commit b913dacebf
4 changed files with 8 additions and 4 deletions

View File

@@ -10,7 +10,9 @@ import java.util.*
import java.util.Locale.ENGLISH
class Mnemonics : MnemonicPlugin {
/* Build fails for overrides nothing
override fun fullWordList(languageCode: String) = Mnemonics.getCachedWords(Locale.ENGLISH.language)
*/
override fun nextEntropy(): ByteArray = WordCount.COUNT_24.toEntropy()
override fun nextMnemonic(): CharArray = MnemonicCode(WordCount.COUNT_24).chars
override fun nextMnemonic(entropy: ByteArray): CharArray = MnemonicCode(entropy).chars
@@ -22,4 +24,4 @@ class Mnemonics : MnemonicPlugin {
fun validate(mnemonic: CharArray) {
MnemonicCode(mnemonic).validate()
}
}
}