class 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);

}