...

Package example04

import "github.com/hyperledger/fabric/examples/chaincode/go/example04"
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. These are stored in the key/value pair in the state

func (*SimpleChaincode) Invoke

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

Invoke is called by fabric to execute a transaction

Subdirectories

Name Synopsis
..
cmd