GithubHelp home page GithubHelp logo

salemmohammed / tiny_bitcoin Goto Github PK

View Code? Open in Web Editor NEW

This project forked from chenghu3/tiny_bitcoin

0.0 1.0 0.0 76.03 MB

A decentralized peer-to-peer cryptocurrency network using SWIM gossip protocol and Nakamoto consensus.

Go 69.15% Python 30.85%

tiny_bitcoin's Introduction

CS425 MP2 - Cryptocurrency

Group member

Jianfeng Xia(jxia11), Cheng Hu(chenghu3)

Environment

Go 1.11.4, Python 36

Design & Evaluation

For details of algorithms & system design and performance evalution, please refer:

  • docs/CS425_MP2_CP1_Report.pdf
  • docs/CS425_MP2_CP2_Report.pdf

Usage

  • The service should be run at VM number 7, port 8888

  • Log into group VMs and clone repository

  • To build: go build client.go

  • Run program: ./client PORT
    Alternatively, use our Python3 script experiment.py to start multiple clients (starting a node every 0.5s) and write stdout to logfiles.
    Usage of Python script:
    python36 experiment.py [NUMBER OF CLIENTS]

  • Plotting: We have also included scripts to analyze performance and generate plots. To run the scripts:

    • cd logs
    • python3 propagation.py
    • python3 bandwidth.py

    Note:

    1. Our plot scripts use matplotlib and numpy, we suggest to run those scripts on machine has those library.
    2. Because the log files are large(we use logs in the case of 100 nodes, 20 mesg/s), please be patient when running scripts.

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.