...

Package example01

import "github.com/hyperledger/fabric/examples/chaincode/go/example01"
Overview
Index
Subdirectories

Overview ▾

Variables

var A, B string
var Aval, Bval, X int

type SimpleChaincode

SimpleChaincode example simple Chaincode implementation

type SimpleChaincode struct{}

func (*SimpleChaincode) Init

func (t *SimpleChaincode) Init(stub shim.ChaincodeStubInterface) pb.Response

Init callback representing the invocation of a chaincode This chaincode will manage two accounts A and B and will transfer X units from A to B upon invoke

func (*SimpleChaincode) Invoke

func (t *SimpleChaincode) Invoke(stub shim.ChaincodeStubInterface) pb.Response

Subdirectories

Name Synopsis
..
cmd