WalletToolsBCH implements IWalletTools { @Override public Classification classify(String input, String cryptoCurrencyHint) { return classify(input); }  @Override String generateSeedMnemonicSeparatedBySpaces(); MasterPrivateKeyBCH getMasterPrivateKey(String seedMnemonicSeparatedBySpaces, String password, String cryptoCurrency, int standard); @Override MasterPrivateKeyBCH 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); boolean isAddressValid(String address, String cryptoCurrency); @Override ISignature sign(String privateKey, byte[] hashToSign, String cryptoCurrency); @Override Classification classify(String input, String cryptoCurrencyHint); @Override Classification classify(String input); @Override Set<String> supportedCryptoCurrencies(); String generateWalletPrivateKeyWithPrefix(String prefix, String cryptoCurrency); static final int XPUB; static final int XPRV; static final String BITCOINCASH_PREFIX; }
@Test public void classify() { Assert.assertEquals("BCH", walletToolsBCH.classify("qp8xmf4rpa40vzpvf282njskd50yfng72vkz0rwau3", "BCH").getCryptoCurrency()); Assert.assertEquals("qp8xmf4rpa40vzpvf282njskd50yfng72vkz0rwau3", walletToolsBCH.classify("bitcoincash:qp8xmf4rpa40vzpvf282njskd50yfng72vkz0rwau3", "BCH").getCleanData()); }