Skip to content

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.

License

alekssadowski95/simple-blockchain

Repository files navigation

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.

Download with:

pip install simple-blockchain

How to use

Create your own blockchain in 3 easy steps.

1. Create blockchain

from sample.blockchain import Blockchain
blockchain = Blockchain()

2. Add transactions

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

blockchain.display()

Documentation

http://simple-blockchain.alsado.de

About

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.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published