diff --git a/src/main/java/io/ipfs/multihash/Multihash.java b/src/main/java/io/ipfs/multihash/Multihash.java index 2fb6776..3717f74 100644 --- a/src/main/java/io/ipfs/multihash/Multihash.java +++ b/src/main/java/io/ipfs/multihash/Multihash.java @@ -148,6 +148,10 @@ public static Type lookup(int t) { return type; } + @Override + public int hashCode() { + return index; + } } private final Type type;