@Test public void testVerifyAddress() { assertTrue(Keys.verifyAddress("0xbac68e5cb986ead0253e0632da1131a0a96efa18")); assertTrue(Keys.verifyAddress("0Xbac68e5cb986ead0253e0632da1131a0a96efa18")); assertTrue(Keys.verifyAddress("bac68e5cb986ead0253e0632da1131a0a96efa18")); assertFalse(Keys.verifyPrivateKey("xbac68e5cb986ead0253e0632da1131a0a96efa18")); assertFalse(Keys.verifyPrivateKey("0bac68re5cb986ead0253e0632da1131a0a96efa18")); assertFalse(Keys.verifyPrivateKey("gac68e5cb986ead0253e0632da1131a0a96efa18")); }
public static boolean verifyAddress(String address) { return address.matches(ADDR_REGEX); }
Keys { public static boolean verifyAddress(String address) { return address.matches(ADDR_REGEX); } }
Keys { public static boolean verifyAddress(String address) { return address.matches(ADDR_REGEX); } private  Keys(); }
Keys { public static boolean verifyAddress(String address) { return address.matches(ADDR_REGEX); } private  Keys(); static ECKeyPair createEcKeyPair(); static String getAddress(ECKeyPair ecKeyPair); static String getAddress(BigInteger publicKey); static String getAddress(String publicKey); static byte[] getAddress(byte[] publicKey); static byte[] serialize(ECKeyPair ecKeyPair); static ECKeyPair deserialize(byte[] input); static boolean verifyAddress(String address); static boolean verifyPrivateKey(String privateKey); }
Keys { public static boolean verifyAddress(String address) { return address.matches(ADDR_REGEX); } private  Keys(); static ECKeyPair createEcKeyPair(); static String getAddress(ECKeyPair ecKeyPair); static String getAddress(BigInteger publicKey); static String getAddress(String publicKey); static byte[] getAddress(byte[] publicKey); static byte[] serialize(ECKeyPair ecKeyPair); static ECKeyPair deserialize(byte[] input); static boolean verifyAddress(String address); static boolean verifyPrivateKey(String privateKey); static final int ADDRESS_SIZE; static final int ADDRESS_LENGTH_IN_HEX; static final int PRIVATE_KEY_LENGTH_IN_HEX; }