BlockchainConsensusAlgorithm/README.md
2024-05-29 18:44:46 +08:00

639 B

BlockchainConsensusAlgorithm

介绍

使用 Python 实现了区块链的 DPOSPOW 共识算法,并使用 Flask 框架编写了 API 接口

获取项目

git clone -b main --depth 1 https://git.intpointer.com/Anchor-x/BlockchainConsensusAlgorithm.git

项目启动

安装依赖

使用 miniconda 进行环境管理

conda create -n BlockchainConsensusAlgorithm python=3.12.3
pip install -r requirements.txt

运行

DPOS

cd DPOS
python dpos_api.py

POW

cd POW
python pow_api.py

测试

使用 ApiFox 进行测试或使用