GithubHelp home page GithubHelp logo

nunofernandes-plight / sawtooth-pbft Goto Github PK

View Code? Open in Web Editor NEW

This project forked from hyperledger-archives/sawtooth-pbft

0.0 2.0 0.0 1.8 MB

Sawtooth PBFT consensus engine

Dockerfile 2.50% Python 10.22% Shell 9.49% Rust 77.79%

sawtooth-pbft's Introduction

Sawtooth PBFT

This repository contains an implementation of the Practical Byzantine Fault Tolerant (PBFT) consensus algorithm for Hyperledger Sawtooth.

Status

This project is in a highly experimental stage - there is a significant amount of work to be done before it is ready to be deployed in a production context. Please be aware that this repository might change often.

The proposal to include PBFT in Sawtooth is located in Sawtooth RFC 0019-pbft-consensus.md.

About PBFT

The PBFT algorithm was pioneered by Miguel Castro and Barbara Liskov in 1999, as described in their paper Practical Byzantine Fault Tolerance. PBFT is designed to tolerate the failure of nodes in a distributed network, as well as nodes sending incorrect messages to other nodes, as long as fewer than one-third of the nodes are considered faulty. PBFT networks need a minimum of four nodes to be Byzantine fault tolerant.

The Sawtooth PBFT implementation is based on the algorithm described in that paper, and is adapted for use in Hyperledger Sawtooth. Sawtooth PBFT uses the Sawtooth consensus API that is described by Sawtooth RFC 0004-consensus-api.md.

Note that this project uses the terms "primary" and "secondary" to refer to the role of nodes in the network, which differs slightly from the terminology used in the PBFT paper.

  • "Primary" is synonymous with "leader"
  • "Secondary" is synonymous with "follower" and "backup"
  • "Node" is synonymous with "server" and "replica"

Motivation

PBFT was chosen as an algorithm for the new Sawtooth consensus API in order to provide Byzantine fault tolerant consensus for a system without a Trusted Execution Environment (TEE).

Sawtooth initially supported only PoET consensus, and the Byzantine fault tolerant version (PoET-SGX) requires a Trusted Execution Environment (TEE). PoET simulator (for systems without a TEE) is only crash fault tolerant, so if any nodes in the network exhibit Byzantine behaviour, it causes issues with consensus.

Documentation

License

Hyperledger Sawtooth software is licensed under the Apache License Version 2.0 software license.

sawtooth-pbft's People

Contributors

ltseeley avatar bridger-herman avatar knkski avatar rbuysse avatar agunde406 avatar rberg2 avatar peterschwarz avatar

Watchers

Nuno Edgar Nunes Fernandes 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.