Blockchain Demo (C++)
https://github.com/ihsan215/Blockchain-Demo-CPP
Repository
C++Blockchain demo
Blockchain Demo (C++)
This repository is a compact hands-on introduction to how a blockchain is wired together: each block carries an index, timestamp, arbitrary data, the previous block hash, and its own hash so the list stays tamper-evident.
You can mine new blocks with custom payload text, walk the sequence in memory, and persist the result to a text file—enough to demonstrate classes, vectors, and file I/O while the story stays focused on hashes and linkage.
It is intentionally small-scope C++ (MIT-licensed) aimed at readers who want to see blockchain mechanics in code before jumping to distributed consensus or production cryptography.
Tech stack
C++ · OOP · std::vector · File I/O · Blockchain fundamentals · GitHub
Screens & flows
- Block model: index, timestamp, data, previous hash, current hash
- Mining loop to append blocks with user-defined content
- Chain validation narrative through hash linkage
- Export / snapshot of the chain to a text file
- Project layout: classes, vectors, and file operations as learning anchors
- Public source on GitHub for clone-and-run exploration