Simple implementation of Blockchain for Blockchain course
Make a block without data
Show the chain of the block
Show chain validity
Make a block with data
Request Headers:
- Content-Type: application/json
Request Body:
Key | Type | Default | Required | Description |
---|---|---|---|---|
data | String | Yes | New data for the block |
Modify block data
Request Headers:
- Content-Type: application/json
Request Body:
Key | Type | Default | Required | Description |
---|---|---|---|---|
data | String | No | New data for the block | |
hash | String | No | New hash for the block |
At least one of 'hash' or 'data' must be provided
- flask
- Clone the repo
$ git clone https://github.com/martuafernando/simple-blockchain-implementation.git
$ cd simple-blockchain-implementation
- Install requirements.txt
pip install -r requirements.txt
- Run program
python main.py