A mini blockchain implementation in C++14 构建迷你区块链——《深入浅出区块链》
tinychain是一个业余的项目,旨在为大家提供微型的简单易懂的供学习的代码。 以下是涉及的一些基础技术:
On workpath of tinychain:
$ mkdir -p build && cd build
$ cmake ..
$ make
Specifically, build on Windows (example):
> mkdir build
> cd build
> cmake .. -G "Visual Studio 15 2017 Win64" -DBOOST_ROOT=/local/boost_1_67_0
Open tinychain.sln under build subfolder with Visual Studio to compile.
On workpath of tinychain:
$ cd build/bin
$ mkdir -p webroot && cp -f ../../etc/index.html webroot
$ ./tinychain
Specifically, run on Windows (example):
> cd build\bin\Release
> mkdir webroot
> copy /Y ..\..\..\etc\index.html webroot
> tinychain.exe