Giter Club home page Giter Club logo

tixl-consensus's Introduction

Stellar Consensus Protocol in Typescript for Tixl

This should be considered a prototype which is WIP. The consensus algorithm is only one part of the Tixl core. We decided to make it open source because we don't see a significant risk of somebody stealing the code and using it for another privacy coin. You will see a lot of commits in this repository over the next weeks. We think that combined with the commit messages of the other repositories being pushed into Discord, a good overview of our technical progress is given.

Installation

  1. Clone the repository
  2. yarn to install
  3. yarn cli to run a simulation

You can pass command line arguments.:

  • --help show all arguments
  • -s --slot Select slot for this run (default 1)
  • -r --runs Set count of runs. (default 1)
  • -x --mindelay Set lower bound of message delay in ms (default 50)
  • -y --maxdelay Set upper bound of message delay in ms (default 100)
  • -g --seed Set the seed for the random numbers
  • --debug true Show advanced logs

Example:
yarn cli -x 1000 -y 5000 --debug true

Configuration

You can define the slices of the nodes in the config.toml file. Default is each four nodes A,B,C,D and each needs agreement with two other of those nodes.

Federated Byzantine Agreement System Visualisation

If you want to see the visualization for the FBAS follow these steps:

  • git checkout b20658a7f80c4fda4e5c15aed60b01707d4691f4
  • yarn in both folders
  • yarn start in both folders
  • Open multiple tabs in browser to run multiple clients

If you want to understand the basics of FBAS please read our Medium article.

tixl-consensus's People

Contributors

strernd avatar onchainguy-eth avatar ceichinger avatar tammo avatar

Stargazers

STYLIANOS IORDANIS avatar Jedsada Tiwongvorakul avatar Joahna Cuevas avatar bioharz avatar Jan Christoph Bernack avatar  avatar  avatar Christoph avatar Mike Lohmann avatar Dominic avatar Ansgar Mertens avatar Marius Margowski avatar  avatar

Watchers

 avatar James Cloos avatar  avatar  avatar bioharz avatar jamal avatar  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.