Java Code Examples for net.bither.bitherj.crypto.mnemonic.MnemonicCode#setMnemonicWordList()
The following examples show how to use
net.bither.bitherj.crypto.mnemonic.MnemonicCode#setMnemonicWordList() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: ColdActivity.java From bither-android with Apache License 2.0 | 6 votes |
private MnemonicCode getMnemonicCode(String string) { MnemonicWordList mnemonicWordList = MnemonicWordList.getMnemonicWordListForHdSeed(string); if (mnemonicWordList == null && string.equals(MnemonicWordList.getBitpieColdQrCodeFlag())) { mnemonicWordList = MnemonicWordList.English; } MnemonicCode mnemonicCode = null; if (mnemonicWordList != null) { try { mnemonicCode = new MnemonicCodeAndroid(); mnemonicCode.setMnemonicWordList(mnemonicWordList); } catch (Exception e) { e.printStackTrace(); } } return mnemonicCode; }
Example 2
Source File: MnemonicCodeAndroid.java From bither-android with Apache License 2.0 | 4 votes |
static public void setMnemonicCode(MnemonicWordList mnemonicWordList) throws IOException { MnemonicCode mnemonicCode = new MnemonicCodeAndroid(); mnemonicCode.setMnemonicWordList(mnemonicWordList); MnemonicCode.setInstance(mnemonicCode); }