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
The idea in one line
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.
Real-life lens
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
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.
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.
Notice the benefit
Collision resistance helps preserve the integrity of blocks and Merkle-tree summaries.
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.