Skip to content
    Blockchain notesCollision Resistant Hash Functions

    Unit 1 – Introduction to Blockchain · 07

    Collision Resistant Hash Functions

    Collision resistance means it should be computationally impractical to find any two different inputs that produce the same hash digest. This property helps a blockchain make changes to recorded data detectable.

    Animated diagram

    It should be extremely hard to create two different documents with the same unique seal, even when you are free to design both documents

    Message A → Hash → Digest → Message B. Follow the flow to see how collision resistant hash functions fits into a blockchain system.

    Make the invisible feel visible.

    Collision resistance means it should be computationally impractical to find any two different inputs that produce the same hash digest. This property helps a blockchain make changes to recorded data detectable.

    Think of it like this

    It should be extremely hard to create two different documents with the same unique seal, even when you are free to design both documents.

    Under the hood

    How it works, step by step

    01

    Start with the idea

    Collision resistance means it should be computationally impractical to find any two different inputs that produce the same hash digest. This property helps a blockchain make changes to recorded data detectable.

    02

    Follow the example

    If a transaction changes, its digest changes; a block’s transaction summary and later block links then no longer match the altered history.

    03

    Notice the benefit

    Collision resistance helps preserve the integrity of blocks and Merkle-tree summaries.

    04

    Check the limitation

    No finite hash output can avoid collisions mathematically; the goal is to make finding one infeasible with current methods.

    Make it concrete

    Collision Resistant Hash Functions in practice

    Collision Resistant Hash Functions in practice

    If a transaction changes, its digest changes; a block’s transaction summary and later block links then no longer match the altered history.

    Key point: No finite hash output can avoid collisions mathematically; the goal is to make finding one infeasible with current methods.

    Balanced view

    Advantages & disadvantages

    Advantages

    • Collision resistance helps preserve the integrity of blocks and Merkle-tree summaries.

    Disadvantages

    • No finite hash output can avoid collisions mathematically; the goal is to make finding one infeasible with current methods.

    Keep these close

    Takeaways & common traps

    What to remember

    • Collision resistance means it should be computationally impractical to find any two different inputs that produce the same hash digest. This property helps a blockchain make changes to recorded data detectable.
    • Collision resistance helps preserve the integrity of blocks and Merkle-tree summaries.
    • No finite hash output can avoid collisions mathematically; the goal is to make finding one infeasible with current methods.

    Watch out for

    • Do not assume collision resistant hash functions guarantees more than its design can prove.
    • Do not ignore the trade-off: No finite hash output can avoid collisions mathematically; the goal is to make finding one infeasible with current methods.

    Quick check

    Questions people ask

    Why is collision resistant hash functions useful?

    Collision resistance helps preserve the integrity of blocks and Merkle-tree summaries.

    What is an important limitation?

    No finite hash output can avoid collisions mathematically; the goal is to make finding one infeasible with current methods.