A hash is a function that converts an input (or ‘message’) into a fixed-size string of bytes. The output is typically a ‘digest’ that represents concisely the original set of data. Hashes are used in blockchains for securing data and efficiently verifying the integrity of data.