/// <summary> /// Computes double SHA256 of data: SHA256(SHA256(data)) /// </summary> /// <param name="data">Input: bytes to be hashed.</param> /// <returns>SHA256 of SHA256 of data.</returns> public static KzUInt256 HASH256(this ReadOnlySequence <byte> data) { var h2 = new KzUInt256(); data.HASH256(h2.Span); return(h2); }