@Test public void verify() { assertTrue(Address.verify("1111111111111111111114oLvT2", false)); assertTrue(Address.verify("1111111111111111111114oLvT2", true)); assertFalse(Address.verify("111111111111111111117K4nzc", false)); assertFalse(Address.verify("111111111111111111117K4nzc", true)); assertFalse(Address.verify("1Wh4bh", false)); assertFalse(Address.verify("1Wh4bh", true)); }
public static boolean verify(@Nullable String address, boolean acceptSegwit) { Address decodedAddress = decode(address); return decodedAddress != null && (acceptSegwit || decodedAddress.witnessProgram == null); }
Address { public static boolean verify(@Nullable String address, boolean acceptSegwit) { Address decodedAddress = decode(address); return decodedAddress != null && (acceptSegwit || decodedAddress.witnessProgram == null); } }
Address { public static boolean verify(@Nullable String address, boolean acceptSegwit) { Address decodedAddress = decode(address); return decodedAddress != null && (acceptSegwit || decodedAddress.witnessProgram == null); } Address(@Nullable String address);   Address(boolean testNet, Transaction.Script.WitnessProgram witnessProgram); }
Address { public static boolean verify(@Nullable String address, boolean acceptSegwit) { Address decodedAddress = decode(address); return decodedAddress != null && (acceptSegwit || decodedAddress.witnessProgram == null); } 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(); }
Address { public static boolean verify(@Nullable String address, boolean acceptSegwit) { Address decodedAddress = decode(address); return decodedAddress != null && (acceptSegwit || decodedAddress.witnessProgram == null); } 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; }