• Stars
    star
    627
  • Rank 71,654 (Top 2 %)
  • Language
    HTML
  • License
    Other
  • Created almost 7 years ago
  • Updated 5 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Source Code for my blog post: A Practical Introduction to Blockchain with Python

Blockchain Python tutorial

Important: This project is for educational purposes only and the source code shouldn't be use in production as it doesn't have good security, doesn't scale well and lacks many important features.

The github repository contains a basic implementation of a blockchain and its client using Python. This blockchain has the following features:

  • Possibility of adding multiple nodes to the blockchain
  • Proof of Work (PoW)
  • Simple conflict resolution between nodes
  • Transactions with RSA encryption

The blockchain client has the following features:

  • Wallets generation using Public/Private key encryption (based on RSA algorithm)
  • Generation of transactions with RSA encryption

This github repository also contains 2 dashboards:

  • "Blockchain Frontend" for miners
  • "Blockchain Client" for users to generate wallets and send coins

Dependencies

How to run the code

  1. To start a blockchain node, go to blockchain folder and execute the command below: python blockchain.py -p 5000
  2. You can add a new node to blockchain by executing the same command and specifying a port that is not already used. For example, python blockchain.py -p 5001
  3. TO start the blockchain client, go to blockchain_client folder and execute the command below: python blockchain_client.py -p 8080
  4. You can access the blockchain frontend and blockchain client dashboards from your browser by going to localhost:5000 and localhost:8080

Visit my Blog : http://adilmoujahid.com

More Repositories

1

DonorsChoose_Visualization

Source for blog post: Interactive Data Visualization with D3.js, DC.js, Python, and MongoDB
JavaScript
423
star
2

kaggle-talkingdata-visualization

Source code for blog post: Interactive Data Visualization of Geospatial Data using D3.js, DC.js, Leaflet.js and Python
JavaScript
339
star
3

deeplearning-cats-dogs-tutorial

Source code for blog post: A Practical Introduction to Deep Learning with Caffe and Python
Python
183
star
4

Twitter_Analytics

Source code for blog post: An Introduction to Text Mining using Twitter Streaming API and Python
Python
99
star
5

data-mining-nfts

Source Code for my blog post: Data mining Meebits NFTs using Python and OpenSea API
Jupyter Notebook
33
star
6

streamlit-messi-ronaldo

Analyzing Messi and Ronaldo's Games using Python and Streamlit
Python
32
star
7

Coursera_Analytics

Source code for blog post: Data Mining Coursera for Popular Courses with Python
Python
24
star
8

coronavirus-covid19-stocks-analysis

Coronavirus-covid19-stocks-analysis
Jupyter Notebook
16
star
9

schelling_simulations

Python implementation of Schelling segregation model
Python
15
star
10

Custom-KeenIO-Template

Custom keen.io template
JavaScript
13
star
11

Sabermetrics-intro

Source code for my blog post: Baseball Analytics - An Introduction to Sabermetrics using Python
Python
12
star
12

moonbirds-data-analysis

In-Depth Analysis of Moonbids NFTs using Python and Alchemy
Jupyter Notebook
8
star
13

streamlit-schelling

Implementation of schelling segregation model using Python and Streamlit
Python
6
star
14

ml-credit-card-default

Jupyter Notebook
4
star
15

kanji-flashcard-app-gpt4

A Japanese Kanji Flashcard App built using Python and Langchain, enhanced with the intelligence of GPT-4.
JavaScript
4
star
16

nft-qr-code

Make QR codes with a pixelated version of the word “NFT” in the middle.
Python
3
star
17

hello-nfts-tutorial

Source Code for my blog post: A Practical Introduction to NFTs using Solidity and Legos
JavaScript
3
star
18

Blog

HTML
2
star
19

pixel-editor

Pixel Editor is a simple web application that allows users to create pixel art, save their creations as assets, and import or export assets as images.
JavaScript
1
star
20

flask-twitter-clone

Python
1
star
21

js-notes

Javascript notes
1
star
22

my-scripts

Shell
1
star
23

datainpractice.com

HTML
1
star
24

iot-arduino-node-plotly

Source code for blog post: A Practical Introduction to IoT using Arduino, Node.js and Plotly
JavaScript
1
star
25

pfp-generator

PFP Generator is a simple web application that allows users to create custom profile pictures by selecting different layers and traits.
JavaScript
1
star