Exemplo n.º 1
0
        /// <inheritdoc />
        public bool Equals(Witness other)
        {
            if (ReferenceEquals(this, other))
            {
                return(true);
            }
            if (other is null)
            {
                return(false);
            }

            return(InvocationScript.SequenceEqual(other.InvocationScript) && VerificationScript.SequenceEqual(other.VerificationScript));
        }
Exemplo n.º 2
0
        /// <summary>
        /// Check if is equal to other
        /// </summary>
        /// <param name="obj">Other</param>
        /// <returns>Return true if equal</returns>
        public override bool Equals(object obj)
        {
            if (ReferenceEquals(this, obj))
            {
                return(true);
            }
            if (obj is null)
            {
                return(false);
            }

            if (!(obj is Witness other))
            {
                return(false);
            }

            return(InvocationScript.SequenceEqual(other.InvocationScript) && VerificationScript.SequenceEqual(other.VerificationScript));
        }