Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
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接受两个参数,一个字符串和int。这些参数存储在状态下的key/value对中。
func (*SimpleChaincode) Invoke ¶
func (t *SimpleChaincode) Invoke(stub shim.ChaincodeStubInterface) pb.Response
结构调用invoke以执行事务
Click to show internal directories.
Click to hide internal directories.