(P)BFT Library -- initially used for archistar project
Switch branches/tags
Nothing to show
Failed to load latest commit information.
src A TransactionManager should be a (functional) View/Era Oct 19, 2014
.gitignore Initial commit Feb 18, 2014
.travis.yml add travis-ci configuration Feb 18, 2014
README.md add README with link to new repository Oct 28, 2015
checkstyle.xml forgot the style file Oct 17, 2014
pom.xml bump version for beta release Oct 19, 2014


Note: we're currently focusing our development effort on a new generation of the software which can also be found on gitlab

archistar-bft Build Status

archistar-bft is an Java Open-Source library. It was developed for and within the Archistar-core project, in 2014 the BFT algorithm's state engine was extracted into a library of its own. The reasoning behind extracting the library was to create a platform- and transport-independent BFT engine which can be reused within other projects. This allows for a very clear and compact code base (currently ~800LOC BFT code and 200LOC test cases).

For example Archistar combines the BFT state-machine with a netty.io http transport. We hope that other projects can reuse this code and/or extend it.

As the code handles an abstract BFT state-machine test-cases can easily be written without the need of a network simulation software. The test-cases themself should be meaningful enough to get an better overview of BFT.

Current ongoing research is mostly in the fault-tolerance area. The view-change code is lacking at best, state-transfer call-backs need to be implemented. Help is always welcome.

Byzantine Fault Tolerance (BFT) Algorithms

Byzantine Fault Tolerance's objective is to find consensus within a distributed system in which every participating client or server can fail. In addition to "normal" stop-faults (faulty components stop communicating or signal an error) byzantine-fault-tolerant systems can deal with arbitrary errors, i.e. components can maliciously produce faulty outputs or corrupt their internal state.

Initially this subject was breached by Lamport, Shostak and Pease in 1982, but the proposed protocols were too expensive for general use. In 1999 Castro and Liskov's Practical Byzantine Fault Tolerance kindled new research into BFT algorithms. Protocols like Zyzzyva further improved good-case performance, but Clement, Wong, Alvisi, Dahlin found those protocols susceptible to denial-of-service attacks and proposed Aardvark, a robust PBFT implementation with constant performance under pressure. Archistar uses an Aardvark-influenced BFT protocol with adoptions for secret-sharing algorithm integration.

BFT algorithms impose restrictions upon the minimal server count. Algorithms without special hardware requirements typically need at lease 3f+1 to 5f+1 servers for handling f faulty servers. In addition servers (also called replicas in BFT terminology) contain active logic. They are able to perform cryptographic algorithms, manage multiple collections of operation states as well as communicate with each other.

Differences to other solutions

In PBFT a client initiates an operation by sending the operation to each of the 3f+1 replicas. For our storage use-case this would mandate that an encrypted copy of the whole user dataset would be sent to each server -- thus beating privacy. Within the Archistar BFT protocol the client splits up data into 3f+1 encrypted fragments, each server only receives one of the fragments. The used secret-sharing algorithm ensures that a single replica is not able to reconstruct the plaintext.

One important non-functional requirement of Archistar is a ``hackable'' code-base. As we embarked on testing different algorithms and protocols lean and agile source code was paramount. We believe in Abstract's and Aardvark's commitment to software engineering.

Citing Archistar

If you find Archistar useful for your work or if you use Archistar in a project, paper, website, etc., please cite the software as

T. Lorünser, A. Happe, D. Slamanig (2014). “ARCHISTAR – A framework for secure distributed storage”. GNU General Public License. http://ARCHISTAR.at