Coder Social home page Coder Social logo

consensus's Introduction

consensus

Byzantine fault-tolerant consensus based on Raft cluster-RBFT

This project is part of meteorchain(Confidential, not open source yet). We proposed an algorithm that solves the efficiency and security problems of the blockchain consensus algorithm through network sharding. The algorithm is based on two basic algorithms, PBFT and Raft.

This project implements the network fragmentation method and consensus strategy of the proposed algorithm. The source code can refer to the source file, based on go 1.14. You can find Bolt database and xml configuration usage method in "github.com/boltdb/bolt" and "github.com/beevik/etree".

We organized and published the basic results of the test to this project. It is worth noting that the test uses a virtual machine local area network, the network environment is relatively good, the project only tested the consensus algorithm part, did not include other core parts of the blockchain, such as Merkle tree, MVC, the transaction data structure of the test is relatively simple. But all tests (RBFT, raft, PBFT) are based on the same environment, so it can still illustrate the problem.

a brief usage description

  • Gomod is required to build this project, run go mod vendor to download related dependencies.
  • You can manually or automatically group nodes through the consistentHash module.see more details in "consistentHashgroup".
  • run go build to build an app.
  • the more usage canbe found in log files.

consensus's People

Contributors

justinli3707 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.