Documentation
¶
Overview ¶
Package bft implements the main functions to work with the Blockfreight™ Network.
Index ¶
- type BftApplication
- func (app *BftApplication) CheckTx(tx []byte) types.Result
- func (app *BftApplication) Commit() types.Result
- func (app *BftApplication) DeliverTx(tx []byte) types.Result
- func (app *BftApplication) Info() (resInfo types.ResponseInfo)
- func (app *BftApplication) Query(reqQuery types.RequestQuery) (resQuery types.ResponseQuery)
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) 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. |
Click to show internal directories.
Click to hide internal directories.