This project is a simple implementation of a blockchain using C++ and OpenSSL's SHA256 algorithm.
Before you begin, ensure you have met the following requirements:
- You have "make" tool in your
- You have installed the latest version of CMake.
- You have installed vcpkg, a C++ package manager, and setted-up VCPKG_ROOT variable.
To build the project, follow these steps:
- Clone the repository:
git clone https://github.com/vsavchyn-dev/blockchain
cd blockchain- Install the projcet dependencies:
This project depends on OpenSSL. You can install it using vcpkg in directory:
vcpkg install openssl- Configure the project with CMake:
cmake -B build . -DCMAKE_TOOLCHAIN_FILE=$VCPKG_ROOT/scripts/buildsystem/vcpkg.cmake- Build the project:
cd ./build/ && makeor
cmake --build build && cd ./build/After building the project, you can run it from build directory with:
./blockchain-exmpThis will start the blockchain simulation.