Skip to main content

This is a simplified model of a blockchain, which is also the technology behind the well known crypto-currency Bitcoin.

Project description

Copyright (c) 2021 Aleksander Sadowski

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Description: # Simplified Blockchain

This simplified model of a blockchain was created to help students understand the blockchain technology, which is also the technology behind the well known crypto-currency Bitcoin.

## How to use Create your own blockchain in 3 easy steps.

### 1. Create blockchain `python blockchain = Blockchain() ` ### 2. Add transactions `python transaction_1 = Transaction("Aleksander Sadowski", "Wiktor Domaradzki", 1.00) transaction_2 = Transaction("Aleksander Sadowski", "Wiktor Domaradzki", 2.50) transaction_3 = Transaction("Wiktor Domaradzki", "Aleksander Sadowski", 3.50) blockchain.add_transactions([transaction_1, transaction_2, transaction_3]) ` ### 3. Display blockchain `python blockchain.display() `

Platform: UNKNOWN Classifier: Development Status :: 4 - Beta Classifier: Intended Audience :: Education Classifier: Operating System :: Microsoft :: Windows :: Windows 10 Classifier: License :: OSI Approved :: MIT License Classifier: Programming Language :: Python :: 3

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

simple-blockchain-0.1.1.tar.gz (3.5 kB view details)

Uploaded Source

File details

Details for the file simple-blockchain-0.1.1.tar.gz.

File metadata

  • Download URL: simple-blockchain-0.1.1.tar.gz
  • Upload date:
  • Size: 3.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.7.9

File hashes

Hashes for simple-blockchain-0.1.1.tar.gz
Algorithm Hash digest
SHA256 bff75adeaca50329204ac3870a844fc518fabea55fcc987b98cdde894da3bd73
MD5 db3cb1d84d6fd863fd4346211c9cfe1f
BLAKE2b-256 ed6b23eaabc4c437c28ea526fede4263ebaa5924fb07eb04694925370d57142e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page