8000 burrow/docs at master · adeebahmed/burrow · GitHub
[go: up one dir, main page]

Skip to content

Latest commit

 

History

History
 
 

docs

README.md

Introduction

Hyperledger Burrow is a permissioned Ethereum smart-contract blockchain node. It executes Ethereum EVM smart contract code (usually written in Solidity) on a permissioned virtual machine. Burrow provides transaction finality and high transaction throughput on a proof-of-stake Tendermint consensus engine.

burrow logo

What is Burrow?

Hyperledger Burrow is a permissioned blockchain node that executes smart contract code following the Ethereum specification. Burrow is built for a multi-chain universe with application specific optimization in mind. Burrow as a node is constructed out of three main components: the consensus engine, the permissioned Ethereum virtual machine and the rpc gateway. More specifically Burrow consists of the following:

  • Consensus Engine: Transactions are ordered and finalised with the Byzantine fault-tolerant Tendermint protocol. The Tendermint protocol provides high transaction throughput over a set of known validators and prevents the blockchain from forking.
  • Application Blockchain Interface (ABCI): The smart contract application interfaces with the consensus engine over the ABCI. The ABCI allows for the consensus engine to remain agnostic from the smart contract application.
  • Smart Contract Application: Transactions are validated and applied to the application state in the order that the consensus engine has finalised them. The application state consists of all accounts, the validator set and the name registry. Accounts in Burrow have permissions and either contain smart contract code or correspond to a public-private key pair. A transaction that calls on the smart contract code in a given account will activate the execution of that account’s code in a permissioned virtual machine.
  • Permissioned Ethereum Virtual Machine: This virtual machine is built to observe the Ethereum operation code specification and additionally asserts the correct permissions have been granted. Permissioning is enforced through secure native functions and underlies all smart contract code. An arbitrary but finite amount of gas is handed out for every execution to ensure a finite execution duration - “You don’t need money to play, when you have permission to play”.
  • Application Binary Interface (ABI): Transactions need to be formulated in a binary format that can be processed by the blockchain node. Current tooling provides functionality to compile, deploy and link solidity smart contracts and formulate transactions to call smart contracts on the chain.
  • API Gateway: Burrow exposes REST and JSON-RPC endpoints to interact with the blockchain network and the application state through broadcasting transactions, or querying the current state of the application. Websockets allow subscribing to events, which is particularly valuable as the consensus engine and smart contract application can give unambiguously finalised results to transactions within one blocktime of about one second.

Installation

Release binaries for different architectures can be found at https://github.com/hyperledger/burrow/releases.

Source

Install Go (Version >= 1.11) and set $GOPATH.

go get github.com/hyperledger/burrow
cd $GOPATH/src/github.com/hyperledger/burrow
make build

This will build the burrow binary and put it in the bin/ directory. It can be executed from there or put wherever is convenient.

You can also install burrow into $BIN_PATH/bin with make install, where $BIN_PATH defaults to $HOME/go/bin if not set in the environment.

Docker

Each release is also tagged and pushed to DockerHub. This can act as a direct replacement for the burrow binary, for example the following commands are equivalent:

burrow spec -v4
docker run hyperledger/burrow spec -v4

Ensure to mount local volumes for secrets / configurations when running a container to prevent data loss.

Kubernetes

Use our official helm charts to configure and run a burrow chain in your cluster.

0