阅读所有关于我如何写这个和理解BIP39 。
除了生成种子外,英语,法语,西班牙语和日语,但由于WordList是一个界面,您可以提供自己的界面。
安装
使用以下两个存储库之一:
repositories {
jcenter()
}
要么:
repositories {
maven {
url 'https://dl.bintray.com/novacrypto/BIP/'
}
}
添加依赖项:
dependencies {
compile 'io.github.novacrypto:BIP39:2019.01.27'
}
用法
生成助记符
使用StringBuilder :
StringBuilder sb = new StringBuilder();
byte[] entropy = new byte[Words.TWELVE.byteLength()];
new SecureRandom().nextBytes(entropy);
new MnemonicGenerator(English.INSTANCE)
.c
1