Skip to content

VladislavGlupak/Blockchain-based-ledger-system

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Contributors Forks Stargazers

Blockchain-based-ledger-system

The repository represents a blockchain-based ledger system with a user-friendly web interface. This ledger allows partner banks to conduct financial transactions (that is, to transfer money between senders and receivers) and to verify the integrity of the data in the ledger. It is a simple version for learning purposes.


Approach

Step 1: Create a Record Data Class that repponsible for hashing.

Step 2: Create Chain class that repsponsible for adding blocks to chain and validation blockchain.

Step 3: Create UI with Streamlit service

Step 4: Testing


Technologies

This project leverages the following tools for financial analysis:

  • Conda - source package management system and environment management system.

  • Pandas - Python library that’s designed specifically for data analysis.

  • Streamlit - Streamlit turns data scripts into shareable web apps.

  • Python - is a programming language.

Libraries:

import streamlit as st
from dataclasses import dataclass
from typing import Any, List
import datetime as datetime
import pandas as pd
import hashlib

How to run

  1. Install Streamlit pip install streamlit

  2. Clone the repository git clone https://github.com/VladislavGlupak/Blockchain-based-ledger-system.git

  3. Go to repository folder and run streamlit run pychain.py

  4. You will see simple user interface which allows to learn basic blockchain principles, such as creating block, hashing block, adding block to chain, verificationofthe blockchain.


Example of running

The user can see several blocks created and added into the chain. Also, the user can see result of verification of the blockchain (True).

Step by step:

  1. Enter values for the sender, receiver, and amount, and then click the Add Block button. Do this several times to store several blocks in the ledger.

Screenshot

  1. Check the chain and click Validate chain.

Screenshot

  1. Full screen

Screenshot


Contributors

Glupak Vladislav Linkedin

License

License: MIT

About

Simple blockchain with chain verification mechanism

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages