https://github.com/cprieto/blockchain_sample
https://github.com/cprieto/blockchain_sample
blockchain flask flask-restful python
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/cprieto/blockchain_sample
- Owner: cprieto
- Created: 2017-10-04T11:57:21.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-10-20T00:25:17.000Z (over 8 years ago)
- Last Synced: 2025-06-19T17:52:59.222Z (about 1 year ago)
- Topics: blockchain, flask, flask-restful, python
- Language: Python
- Homepage:
- Size: 12.7 KB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Blockchains and Python
Nothing magnificent here, just trying to repeat what I read in a medium article about blockchains. Go, read it at [Learn blockchains by building one](https://hackernoon.com/learn-blockchains-by-building-one-117428612f46)
I don't know you but I learn code writing code, go write yours!
The proof algorithm is easy, the has of the concatenation of our proof and previous proof should finish in 4 zeroes
```py
hash('previous' + 'proof')[:4] == '0000'
```
Easy to proof, difficult to calculate!