Example #1
0
        /// <summary>
        /// Computes RIPEMD160 of SHA256 of data: RIPEMD160(SHA256(data))
        /// </summary>
        /// <param name="data">Input: bytes to be hashed.</param>
        /// <param name="hash">Output: RIPEMD160 of SHA256 of data.</param>
        public static void HASH160(this ReadOnlySequence <byte> data, Span <byte> hash)
        {
            var h = data.SHA256();

            RIPEMD160(h.Span, hash);
        }