A blockchain is a decentralized and immutable digital ledger that records transactions across multiple computers. It ensures transparency, security, and trust in financial transactions by linking blocks of data together in a sequential and cryptographically secure manner.
This project is written in C++ and requires Mingw C/C++ compiler to compile and run the code.
- Downlode and install MinGW compiler from the internet
- Add
C:\MinGW\bin
path to the system environment variablePATH
- Open the command prompt (CMD) or terminal.
- Navigate to the project folder using the
cd
command. For Example:cd /d "D:\Ajay Kumar Block Chain"
- To compile the code, run the following command:
g++ -o main main.cpp block.cpp blockChain.cpp transaction.cpp
- Once the compilation is successful, you can run the project by executing the generated executable
main
file.