Code Monkey home page Code Monkey logo

blockchain's Introduction

Cheese Coin Project

The project is about developing a blockchain peer-to-peer system called Cheese Coin. This is a network system which is based on the ideas of Bitcoin but simpler. In this system we have implemented the tracker to keep track of other peer-to-peer users in the network, simulating the mining feature with proof-of-work with difficulty of 0000, and auto-creation of transaction with signature.

Project Poster

Getting Started

Prerequisites

  • The blockchain of each member is stocked in a file .JSON in the folder data. You should make sure to have the same blockchain for all members at the beginning to run the test. You can download the folder data or create it by yourself.
  • You need to download the files following for the interface:
    code/clientapp.ui
    code/trackerapp.ui
    code/transactor.ui
    img/bg.png
    img/bgTracker.png
    img/bgTran.png
    

Installing

You need to declare the IP address and port number for tracker, transactor, and all members. Eg.

tracker_address = 'localhost'
member_address = 'localhost'

By defaut, the port of members will be :

tracker_port = 9999 #Tracker
server_port = 10001 #Member1
server_port = 10002 #Member2
server_port = 10003 #Member3

Running the tests

Execute the files following:

code/Clien01_GUI.py
code/Clien02_GUI.py
code/Clien03_GUI.py
code/Tracker.py
code/transactor.py

Tracker GUI

Member GUI

  1. Select Tracker in the combobox then click Connect.
  2. Click ReqMemberlist to ask for the Member List.
  3. Select AllClients in the combobox then click Connect.

Transactor GUI

  1. Click ConnectTracker then Click getMemberlist to get IP address of all members.
  2. Click Connect Clients.
  3. Start sending transactions by clicking Start Sending. By default, one transaction will be released every 5 seconds.

System Structure

Contributors

Contributing

Please read protocol.md for details on our code of conduct.

blockchain's People

Contributors

doantumy avatar nathaliewang avatar trantuananhvn93 avatar twitwi avatar

Stargazers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.