Python-Blockchain

所属分类:区块链开发
开发工具:Python
文件大小:7KB
下载次数:0
上传日期:2019-11-05 14:19:23
上 传 者sh-1993
说明:  Python区块链、公共区块链和GUI,用于不可变的去中心化数据存储。
(Python-Blockchain,Public blockchain and GUI for immutable decentralised data storage.)

文件列表:
LICENSE (1068, 2019-11-05)
app (0, 2019-11-05)
app\__init__.py (70, 2019-11-05)
app\templates (0, 2019-11-05)
app\templates\base.html (419, 2019-11-05)
app\templates\index.html (1269, 2019-11-05)
app\views.py (1638, 2019-11-05)
block.py (463, 2019-11-05)
blockchain.py (2928, 2019-11-05)
gui.py (43, 2019-11-05)
node.py (3140, 2019-11-05)
settings.py (102, 2019-11-05)

# Python Blockchain: immutable decentralised data storage A public blockchain and GUI allowing users to store and share information that can't be tampered with or repudiated. The architecture is based on the [IBM Blockchain](https://www.ibm.com/blockchain), however Proof of Work (PoW) is used as a consensus algorithm instead of IBM SE. The PoW structure is adapted from Kansal (2018) with SHA256 as the cryptographic hash function. This software is licensed under the MIT software license (see LICENSE file). Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. The author of this software makes no representation or guarantee that this software (including any third-party libraries) will perform as intended or will be free of errors, bugs or faulty code. The software may fail which could completely or partially limit functionality or compromise computer systems. If you use or implement the software, you do so at your own risk. In no event will the author of this software be liable to any party for any damages whatsoever, even if it had been advised of the possibility of damage. ## Requirements - Python 3 ## Install ``` pip3 install flask requests ``` ## Run Open two terminal windows and navigate to the project folder in both. Start the node in one window: ``` python3 node.py ``` Run the GUI in the other window: ``` python3 gui.py ``` You can now view and interact with the blockchain at [http://localhost:5000](http://localhost:5000). Blockchain difficulty can be adjusted in `settings.py` (a higher number means a more expensive computation). For larger-scale implementations, please modify the confirm() function to split transactions appropriately and security audit the code.

近期下载者

相关文件


收藏者