September 2019
Intermediate to advanced
350 pages
9h 23m
English
Let's look at chaincode development in the Go language for the use case discussed:
import ( "bytes" "encoding/json" "fmt" "strconv" "time" "github.com/hyperledger/fabric/core/chaincode/shim" "github.com/hyperledger/fabric/protos/peer")
// Chaincode implementationtype EducationChaincode struct {}// receiver/student structtype Receiver struct { ObjectType string `json:"docType"` //docType is used to distinguish the various types of objects in state database Receiver_id string `json:"receiver_id"` Receiver_name string `json:"receiver_name"` Upload_org string `json:"upload_org"`}// certificate data structtype Certificate ...Read now
Unlock full access