How mr-whoameye/efficient_file_integrity_verification_using_merkle-trees works
This repository is a Merkle-tree file-integrity package with a Streamlit interactive visualizer. The principal workflow chunks file data, builds a hash tree, then supports block-proof verification, tamper localization, and incremental updates. The app also renders the tree and operation results. Relationships for core algorithms are supported by source excerpts; README documents the visualizer capabilities. The app excerpt is partial, so its detailed UI wiring is not fully represented.
Main entry points: app.py Visualizer · tree.py Tree Builder · node.py Tree Nodes · proof.py Proof Verify
Components 8
Interactive Demo
- Visualizer
app.py
Integrity Operations
- Block Chunker
merkle/chunker.py - Tree Builder
merkle/tree.py - Proof Verify
merkle/proof.py - Tamper Locator
merkle/tamper.py - Block Updater
merkle/updater.py
Tree Core
- Tree Nodes
merkle/node.py
Other components
- User
Connections 13
- User → Visualizer: operates
README.md - Visualizer → Block Chunker: chunks data
app.py - Visualizer → Tree Builder: builds tree
app.py - Tree Builder → Tree Nodes: creates nodes
merkle/tree.py - Visualizer → Proof Verify: verifies blocks
app.py - Visualizer → Tamper Locator: locates tampering
app.py - Visualizer → Block Updater: updates blocks
app.py - Proof Verify → Tree Builder: reads tree
merkle/proof.py - Proof Verify → Tree Nodes: traverses nodes
merkle/proof.py - Tamper Locator → Tree Builder: compares trees
merkle/tamper.py - Tamper Locator → Tree Nodes: descends nodes
merkle/tamper.py - Block Updater → Tree Builder: mutates tree
merkle/updater.py - Block Updater → Tree Nodes: rehashes ancestors
merkle/updater.py