fabric: github.com/hyperledger/fabric/examples/chaincode/go/example01 Index | Files | Directories

package example01

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

Index

Package Files

chaincode.go

Variables

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

type SimpleChaincode Uses

type SimpleChaincode struct{}

SimpleChaincode example simple Chaincode implementation

func (*SimpleChaincode) Init Uses

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 Uses

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

Directories

PathSynopsis
cmd

Package example01 imports 4 packages (graph) and is imported by 1 packages. Updated 2018-07-17. Refresh now. Tools for package owners.