blockchain

package
v0.0.0-...-645c4f4 Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	SDK           *fabsdk.FabricSDK             // sdk handler
	ChannelName   = "assetschannel"             // channel
	ChainCodeName = "fabcar"                    // chaincode name
	Org           = "org1"                      // org name
	User          = "Admin"                     // user
	ConfigPath    = "blockchain/config.yaml"    // config
	ConfigCAPath  = "blockchain/config-ca.yaml" // config with ca
	EndPoint      = "peer1.org1.example.com"    // client endpoint
	EnableCA      = false                       // if enable ca
)

settings

Functions

func ChannelExecute

func ChannelExecute(fcn string, args [][]byte) (channel.Response, error)

ChannelExecute invoke chaincode and update

func ChannelQuery

func ChannelQuery(fcn string, args [][]byte) (channel.Response, error)

ChannelQuery invoke chaincode and query

func Init

func Init()

Init fabric sdk

Types

This section is empty.

Jump to

Keyboard shortcuts

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