...

Package example05

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

Overview ▾

type SimpleChaincode

SimpleChaincode example simple Chaincode implementation

type SimpleChaincode struct{}

func (*SimpleChaincode) Init

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

Init takes two arguments, a string and int. The string will be a key with the int as a value.

func (*SimpleChaincode) Invoke

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

Subdirectories

Name Synopsis
..
cmd