diff --git a/src/main/java/com/sparrowwallet/drongo/OutputDescriptor.java b/src/main/java/com/sparrowwallet/drongo/OutputDescriptor.java index fb380dd..4857971 100644 --- a/src/main/java/com/sparrowwallet/drongo/OutputDescriptor.java +++ b/src/main/java/com/sparrowwallet/drongo/OutputDescriptor.java @@ -654,4 +654,21 @@ public class OutputDescriptor { return keyBuilder.toString(); } + + @Override + public final boolean equals(Object o) { + if(this == o) { + return true; + } + if(!(o instanceof OutputDescriptor that)) { + return false; + } + + return toString().equals(that.toString()); + } + + @Override + public int hashCode() { + return toString().hashCode(); + } }