dvf/blockchain
소개
Python으로 구현한 간단한 블록체인
비즈니스 및 금융측정된 스타 증가
- in 24h
- 0
- in 7 days
- +2
- in 15 days
- +2
- in 1 month
- +3
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
OriginalAre you looking for the source code for my book?
Please find it here: https://github.com/dvf/blockchain-book
The book is available on Amazon: https://www.amazon.com/Learn-Blockchain-Building-Understanding-Cryptocurrencies/dp/1484251709
Learn Blockchains by Building One
This is the source code for my post on Building a Blockchain.
Installation
- Make sure Python 3.6+ is installed.
- Install pipenv.
$ pip install pipenv
- Install requirements
$ pipenv install
- Run the server:
$ pipenv run python blockchain.py$ pipenv run python blockchain.py -p 5001$ pipenv run python blockchain.py --port 5002
Docker
Another option for running this blockchain program is to use Docker. Follow the instructions below to create a local Docker container:
- Clone this repository
- Build the docker container
$ docker build -t blockchain .
- Run the container
$ docker run --rm -p 80:5000 blockchain
- To add more instances, vary the public port number before the colon:
$ docker run --rm -p 81:5000 blockchain
$ docker run --rm -p 82:5000 blockchain
$ docker run --rm -p 83:5000 blockchain
Installation (C# Implementation)
Install a free copy of Visual Studio IDE (Community Edition): https://www.visualstudio.com/vs/
Once installed, open the solution file (BlockChain.sln) using the File > Open > Project/Solution menu options within Visual Studio.
From within the "Solution Explorer", right click the BlockChain.Console project and select the "Set As Startup Project" option.
Click the "Start" button, or hit F5 to run. The program executes in a console window, and is controlled via HTTP with the same commands as the Python version.
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
관련 프로젝트 살펴보기
불러오는 중…