October 2018
Intermediate to advanced
530 pages
14h 25m
English
In this section, we are going to code part of our chaincode using a step-by-step approach so that you can easily follow along yourself. The part that we are going to implement is the definition of the base and accident assets and objects and the registration of a new accident. The chaincode will take shape after finishing each step, so don't worry if the compiler raises exceptions during development. Look at the error, and debug the program if there is something that you may have missed.
You can program applications in Go, separating data objects called structs in different files. Hyperledger Fabric expects all of the data objects and transactions in one chaincode file with the same name as the parent directory ...
Read now
Unlock full access