bft

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2017 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package bft implements the main functions to work with the Blockfreight™ Network.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BftApplication

type BftApplication struct {
	types.BaseApplication
	// contains filtered or unexported fields
}

func NewBftApplication

func NewBftApplication() *BftApplication

func (*BftApplication) CheckTx

func (app *BftApplication) CheckTx(tx []byte) types.Result

func (*BftApplication) Commit

func (app *BftApplication) Commit() types.Result

func (*BftApplication) DeliverTx

func (app *BftApplication) DeliverTx(tx []byte) types.Result

tx is either "key=value" or just arbitrary bytes

func (*BftApplication) Info

func (app *BftApplication) Info() (resInfo types.ResponseInfo)

func (*BftApplication) Query

func (app *BftApplication) Query(reqQuery types.RequestQuery) (resQuery types.ResponseQuery)

Directories

Path Synopsis
Package bf_tx is a package that defines the Blockfreight™ Transaction (BF_TX) transaction standard and provides some useful functions to work with the BF_TX.
Package bf_tx is a package that defines the Blockfreight™ Transaction (BF_TX) transaction standard and provides some useful functions to work with the BF_TX.
Package common provides some useful functions to work with the Blockfreight project.
Package common provides some useful functions to work with the Blockfreight project.
Package crypto provides useful functions to sign BF_TX.
Package crypto provides useful functions to sign BF_TX.
Package leveldb provides some useful functions to work with LevelDB.
Package leveldb provides some useful functions to work with LevelDB.
Package validator is a package that provides functions to assure the input JSON is correct.
Package validator is a package that provides functions to assure the input JSON is correct.

Jump to

Keyboard shortcuts

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