예제 #1
0
        // TODO: Compute hash with outer merkle root method.
        public byte[] GetUnitHash()
        {
            IEnumerable <byte[]> blockHashes = blockStorage.Select(block => block.Hash);

            byte[] unitHash = merkleRootComputer.GetMerkleRoot(blockHashes, digest);

            return(unitHash);
        }