Lab 2 — Simple Hash Function¶
Goal¶
Implement a simple hash function and find a collision.
External notebooks¶
- Notebook 1: https://colab.research.google.com/drive/132exIRjgj0SpNZYyNm4TxAP1TcsN2k0L?usp=sharing
- Notebook 2: https://colab.research.google.com/drive/1o0S5vRe4BvL9H8j9A3tlf9uIqmASr99M?usp=sharing
Tasks¶
- Implement the provided simple hash function.
- Test determinism.
- Modify inputs and observe output changes.
- Find two different inputs with the same hash output.
- Explain why production blockchains use cryptographic hash functions such as SHA-256.
Deliverable¶
Completed Colab notebook or exported .ipynb file.