Add missing 'fullWordList' function to Mnemonic plugins.

This commit is contained in:
Kevin Gorham 2020-06-04 06:38:07 -04:00
parent 3529fc9fdd
commit 59a2b0d7ea
No known key found for this signature in database
GPG Key ID: CCA55602DF49FC38
3 changed files with 10 additions and 2 deletions

View File

@ -1,2 +1,4 @@
# zcash-android-wallet-plugins
[![Release](https://jitpack.io/v/zcash/zcash-android-wallet-plugins.svg)](https://jitpack.io/#zcash/zcash-android-wallet-plugins)
Generic interfaces for plugging functionality into the wallets

View File

@ -1,6 +1,6 @@
buildscript {
ext {
kotlin_version = '1.3.61'
kotlin_version = '1.3.72'
}
repositories {
jcenter()
@ -14,7 +14,7 @@ buildscript {
apply plugin: 'java-library'
apply plugin: 'kotlin'
// jitpack
// jitpack (note: to change the version, push another release per https://jitpack.io/docs/#publishing-on-jitpack)
apply plugin: 'com.github.dcendents.android-maven'
group = 'com.github.zcash'

View File

@ -41,4 +41,10 @@ interface MnemonicPlugin {
*/
fun toWordList(mnemonic: CharArray): List<CharArray>
/**
* Provide the full word list for the given ISO 639-1 language code or throw an exception if
* the language is unsupported. Strings are fine here because this information is not sensitive.
*/
fun fullWordList(languageCode: String): List<String>
}