Hash Function
A one-way function that turns any input into a fixed-size fingerprint, used to chain blocks and detect tampering.
- glossary
A hash function (also called a cryptographic hash function) takes an input of any size and deterministically produces a fixed-size output, or digest, such that changing even one bit of the input scrambles the output completely and finding two inputs with the same digest is computationally infeasible. Bitcoin chains its blocks by embedding the double SHA-256 hash of each block header inside the next one, so altering any past block would change its hash and break every block after it. Ethereum uses a related function, Keccak-256, to derive account addresses from public keys and to build its Merkle trees. This tamper-evidence is also what underpins cryptographic security for a tokenized domain: the NFT representing ownership is committed into the same hash-secured chain state as every other on-chain asset.
Related keywords
- hash function
- cryptographic hash function
- SHA-256
- Keccak-256
- hashing
- collision resistance