bigchaindb/bigchaindb
Troy McConaghy 63b33db950 Update version.py for the v1.1 release 2017-09-26 10:49:29 +02:00
..
backend Add the missing table asset in backend.schema 2017-07-10 17:54:04 +08:00
commands Allow scheme configuration for ws-server 2017-06-16 09:55:46 +02:00
common Fixed error line missing from transaction.py 2017-07-28 20:35:06 +01:00
log Set error log file according to user given setting 2017-04-18 16:21:02 +02:00
pipelines Plugins can subscribe to specific events 2017-08-08 11:28:35 +02:00
web Support for advertised host, port, scheme for Websockets (#1703) 2017-08-08 12:04:58 +02:00
README.md Server docs: Removed the old 'Topic Guides' section 2017-03-07 11:43:49 +01:00
__init__.py Support for advertised host, port, scheme for Websockets (#1703) 2017-08-08 12:04:58 +02:00
config_utils.py Plugins can subscribe to specific events 2017-08-08 11:28:35 +02:00
consensus.py move voting logic out of block_election_status 2017-02-23 21:53:12 +01:00
core.py Rename validity to blocks_validity_status 2017-07-09 12:22:39 +05:30
events.py Fix typo 2017-08-09 16:35:12 +02:00
exceptions.py voting module raises CriticalDuplicateVote if there's a duplicate vote 2017-03-20 17:30:02 +01:00
fastquery.py Remove unnecessary output_has_owner method. 2017-07-03 14:30:19 +02:00
models.py Merge remote-tracking branch 'origin/master' into pipeline-fast-transaction 2017-05-30 11:18:46 +02:00
processes.py Add docs 2017-08-09 16:14:14 +02:00
utils.py Remove unnecessary output_has_owner method. 2017-07-03 14:30:19 +02:00
version.py Update version.py for the v1.1 release 2017-09-26 10:49:29 +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.