WalletToolsETH implements IWalletTools { @Override public String getWalletAddressFromPrivateKey(String privateKey, String cryptoCurrency) { return null; }  @Override String generateSeedMnemonicSeparatedBySpaces(); MasterPrivateKeyETH getMasterPrivateKey(String seedMnemonicSeparatedBySpaces, String password, String cryptoCurrency, int standard); @Override MasterPrivateKeyETH getMasterPrivateKey(String prv, String cryptoCurrency, int standard); @Override String getWalletAddress(IMasterPrivateKey master, String cryptoCurrency, int accountIndex, int chainIndex, int index); @Override String getWalletAddressFromAccountPUB(String accountPUB, String cryptoCurrency, int chainIndex, int index); @Override String getWalletPrivateKey(IMasterPrivateKey master, String cryptoCurrency, int accountIndex, int chainIndex, int index); @Override String getAccountPUB(IMasterPrivateKey master, String cryptoCurrency, int accountIndex); @Override String getWalletAddressFromPrivateKey(String privateKey, String cryptoCurrency); @Override ISignature sign(String privateKey, byte[] hashToSign, String cryptoCurrency); boolean isAddressValid(String address, String cryptoCurrency); @Override Classification classify(String input, String cryptoCurrencyHint); @Override Classification classify(String input); @Override Set<String> supportedCryptoCurrencies(); static byte[] sha3(byte[] message); static String encodeAddressToIBAN(byte[] addrBytes); String generateWalletPrivateKeyWithPrefix(String prefix, String cryptoCurrency); static final int XPUB; static final int XPRV; }
@Test public void getWalletAddressFromPrivateKey() { String walletAddressFromPrv = walletToolsETH.getWalletAddressFromPrivateKey(walletToolsETH.getWalletPrivateKey(masterPrivateKey, "ETH", 0, 2, 3), "ETH"); Assert.assertEquals(null, walletAddressFromPrv); }