Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var A, B string
View Source
var Aval, Bval, X int
Functions ¶
This section is empty.
Types ¶
type SimpleChaincode ¶
type SimpleChaincode struct{}
simple chaincode示例simple chaincode实现
func (*SimpleChaincode) Init ¶
func (t *SimpleChaincode) Init(stub shim.ChaincodeStubInterface) pb.Response
表示调用链码的init回调 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
Click to show internal directories.
Click to hide internal directories.