A blockchain linker to help understand hash functions in blockchain
Project description
justblockchain
A blockchain linker to help understand hash functions in blockchain
Free software: MIT license
Documentation: https://justblockchain.readthedocs.io.
Quick start
pip install justblockchain
>>> from justblockchain import justblockchain
>>> blockchain = justblockchain.Blockchain()
>>> blockchain.add_block("some block content")
#display the blockchain
>>> blockchain.chain
[{'previous_hash': '0', 'hash':
'816534932c2b7154836da6afc367695e6337db8a921823784c14378abed4f7d7',
'timestamp': 1465154705, 'index': 0, 'data': 'my genesis block!!'},
{'previous_hash':
'816534932c2b7154836da6afc367695e6337db8a921823784c14378abed4f7d7', 'hash':
'a046e0b31d2374d171a6bf62f15261f8bb1f71e6351aab2ce7ce6d550506d9ee',
'timestamp': '1521013680', 'index': 1, 'data': 'some block content'}]
Credits
This package was created with Cookiecutter and the audreyr/cookiecutter-pypackage project template.
History
0.1.0 (2018-03-13)
First release on PyPI.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
justblockchain-0.1.0.tar.gz
(9.6 kB
view hashes)
Built Distribution
Close
Hashes for justblockchain-0.1.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 63441f8160f44916b4ea1f63953f2bc025f0ac526e02338fa5e5b256a463939c |
|
MD5 | 5bb2eca6e72312314688e1daa2f70c11 |
|
BLAKE2b-256 | eee816dd05f6a7d6b7ad1fc9c74eef4d5e75365f3f4e05a551e6fce19d505009 |