package com.itranswarp.bitcoin.wallet;

import java.util.Arrays;
import java.util.Objects;

public class SecretKey {

	public final String label;
	public final byte[] key;

	public SecretKey(String label, byte[] key) {
		this.label = label;
		this.key = key;
	}

	public SecretKey copy() {
		byte[] copy = Arrays.copyOf(this.key, this.key.length);
		return new SecretKey(this.label, copy);
	}

	public boolean equals(Object o) {
		if (o instanceof SecretKey) {
			SecretKey k = (SecretKey) o;
			return Objects.equals(this.label, k.label) && Objects.deepEquals(this.key, k.key);
		}
		return false;
	}

}

@@ -383,24 +383,35 @@
  copy);%0A%09%7D%0A%0A
+%09@Override%0A
 %09public bool
@@ -607,10 +607,111 @@
 se;%0A%09%7D%0A%0A
+%09@Override%0A%09public int hashCode() %7B%0A%09%09return Objects.hash(this.label, Arrays.hashCode(this.key));%0A%09%7D%0A
 %7D%0A

fix hashCode