Research Article

Based on Consortium Blockchain to Design a Credit Verifiable Cross University Course Learning System

Algorithm 6

Chaincode for university and teachers to check student’s information on the blockchain.
(1)func (t Chaincode) CheckStudent(APIstub shim.ChaincodeStubInterface, args []string) peer.Response {
(2) if len(args) ! = 1 {
(3)  return shim.Error(“Incorrect number of arguments. Expecting 1″)
(4) }
(5) studentAsBytes, _: = APIstub.GetState(args[0])
(6) return shim.Success(studentAsBytes)
(7)}