public override bool Equals(object obj)
{
if (!(obj is TxOutput))
return false;
var other = (TxOutput)obj;
return other.Value == this.Value && other.ScriptPublicKey.SequenceEqual(this.ScriptPublicKey);
}
}