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