bigchaindb/bigchaindb
Sylvain Bellemare 81c910cb0e Bump version up for 0.10.3 2017-06-29 11:45:15 +02:00
..
backend Merge branch 'feat/1281/mongodb-ssl-auth' of https://github.com/tomconte/bigchaindb into tomconte-feat/1281/mongodb-ssl-auth 2017-03-28 15:16:16 +02:00
commands Apply log level cmd line option to log file 2017-04-18 16:21:02 +02:00
common Merge pull request #1294 from bigchaindb/bug/1291/threshold-conditions-duplicated-pks 2017-03-17 10:32:21 +01:00
log Set error log file according to user given setting 2017-04-18 16:21:02 +02:00
pipelines added tests for the events 2017-04-07 15:02:49 +02:00
web Use "allow_headers" keyword to initialize CORS 2017-06-29 11:06:49 +02:00
README.md Server docs: Removed the old 'Topic Guides' section 2017-03-07 11:43:49 +01:00
__init__.py Use lower case for default log level 2017-04-18 16:21:02 +02:00
config_utils.py Fail if config file not found 2017-06-29 11:06:49 +02:00
consensus.py move voting logic out of block_election_status 2017-02-23 21:53:12 +01:00
core.py Fixed docstring. 2017-04-06 16:07:35 +02:00
events.py cleanup code 2017-04-07 08:42:22 +02:00
exceptions.py voting module raises CriticalDuplicateVote if there's a duplicate vote 2017-03-20 17:30:02 +01:00
models.py Voting pipeline now checks for duplicated transactions in blocks during 2017-04-04 17:57:44 +02:00
processes.py Add WebSocket server 2017-04-07 09:16:22 +02:00
utils.py Refactor core.BigchainDB.get_outputs 2017-03-31 16:29:16 +02:00
version.py Bump version up for 0.10.3 2017-06-29 11:45:15 +02:00
voting.py voting module raises CriticalDuplicateVote if there's a duplicate vote 2017-03-20 17:30:02 +01:00

README.md

Overview

A high-level description of the files and subdirectories of BigchainDB.

There are three database tables which underpin BigchainDB: backlog, where incoming transactions are held temporarily until they can be consumed; bigchain, where blocks of transactions are written permanently; and votes, where votes are written permanently. It is the votes in the votes table which must be queried to determine block validity and order. For more in-depth explanation, see the whitepaper.

Files

core.py

The Bigchain class is defined here. Most operations outlined in the whitepaper as well as database interactions are found in this file. This is the place to start if you are interested in implementing a server API, since many of these class methods concern BigchainDB interacting with the outside world.

models.py

Block, Transaction, and Asset classes are defined here. The classes mirror the block and transaction structure from the documentation, but also include methods for validation and signing.

consensus.py

Base class for consensus methods (verification of votes, blocks, and transactions). The actual logic is mostly found in transaction and block models, defined in models.py.

processes.py

Entry point for the BigchainDB process, after initialization. All subprocesses are started here: processes to handle new blocks, votes, etc.

config_utils.py

Methods for managing the configuration, including loading configuration files, automatically generating the configuration, and keeping the configuration consistent across BigchainDB instances.

Folders

pipelines

Structure and implementation of various subprocesses started in processes.py.

commands

Contains code for the CLI for BigchainDB.

db

Code for building the database connection, creating indexes, and other database setup tasks.