blockchain-analyzer

module
v0.0.0-...-1340fc4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 28, 2019 License: Apache-2.0

README

Blockchain Analyzer: Analyzing Hyperledger Fabric Ledger, Transactions

Description

Each blockchain platform, including Hyperledger Fabric, provides a way to record information on blockchain in an immutable manner. In the case of Hyperledger Fabric, information is recorded as a key ]/value pair. All previous updates to a key are recorded in the ledger of a Hyperledger Fabric peer, but only the latest value of a key can be easily queried. This mechanism makes it challenging to perform analysis of updates to a key, a necessary requirement for information provenance.

To address this problem, we have created a project which can be used to analyze ledger data stored within a Hyperledger Fabric peer. This project can also be used to analyze operational data, such as number of blocks and transactions.

Currently, the project includes:

  1. an Elastic beats module (in Go), that ships ledger data from a Hyperledger peer to an Elasticsearch instance.

  2. generic Kibana dashboards, that allow selection of a particular key and visualization updates to it (channel, id, timestamp etc) - similar to Hyperledger Explorer.

  3. scripts to create Hyperledger Fabric network in different configurations, i.e., basic, mulitchannel, and appledemo.

  4. a program to generate test data

  5. a standalone utility to dump Fabric transaction data as JSON file for loading and analyzing in any document store.

  6. scripts to start and stop Elasticsearch and Kibana.

Eventual goal

The eventual goal of this project is to evaluate transactions of any blockchain using any document databases or search engines such as MongoDB, CouchDB, or Elastic stack.

Project background

This project was developed as part of Hyperledger summer internship program.

Getting Started

We recommend that you start with the instructions for basic network.

Once you have it up and running, you can try the multichannel, and appledemo.

If you want to learn more about fabricbeat configuration or connect it to your own blockchain network, click here.

If you want to understand dataflow involving fabricbeat, click here.

License

The Apache 2.0 License applies to the whole project, except for the stack directory and its contents.

Maintainers:

Salman Baset
Balazs Prehoda

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL