Implementation of the basic operation of a blockchain
- initialize a new blockchian
- mine the genesis block
- mine following blocks
compile command:
gcc -lstdc++ -o main -std=c++11 -stdlib=libc++ -x c++ main.cpp Block.cpp Blockchain.cpp sha256.cpp
run command:
./main