Address { static String ripemd160HashToAddress(boolean testNet, byte[] hashedPublicKey) { byte version = (byte) (testNet ? TYPE_TESTNET : TYPE_MAINNET); return ripemd160HashToAddress(version, hashedPublicKey); } Address(@Nullable String address);   Address(boolean testNet, Transaction.Script.WitnessProgram witnessProgram); @NonNull @Override String toString(); static boolean verify(@Nullable String address, boolean acceptSegwit); static boolean verify(@Nullable String address); @Override boolean equals(Object o); @Override int hashCode(); @SuppressWarnings("WeakerAccess")
    @KeyhashType
    final int keyhashType; }
@Test public void ripemd160HashToAddress() { assertEquals("1PMycacnJaSqwwJqjawXBErnLsZ7RkXUAs", Address.ripemd160HashToAddress(false, BTCUtils.fromValidHex("f54a5851e9372b87810a8e60cdd2e7cfd80b6e31"))); assertEquals("1111111111111111111114oLvT2", Address.ripemd160HashToAddress(false, new byte[20])); assertEquals("111111111111111111117K4nzc", Address.ripemd160HashToAddress(false, new byte[19])); assertEquals("1Wh4bh", Address.ripemd160HashToAddress(false, new byte[0])); }