Summary
The design and implementation of a well-functioning contract is a complex software engineering task that requires both knowledge of the Fabric architecture, API functions, and at least one of the contract API languages as well as the correct implementation of the business requirements.
In this chapter, we have learned step-by-step how to use VS Code with the IBM Blockchain Platform extension to open and edit contract projects as well as how to use a VS Code integrated local Fabric network to deploy and debug contracts.
We then learned how to implement the contracts of our scenario. We explored the Contract
, Context
, ClientIdentity
, and ChaincodeStub
interfaces and classes through which the contract receives requests from clients, explored the access control mechanism, and the various APIs available to the developer to implement contract functionality.
Finally, we learned how to test a contract in the terminal and VS Code, and how to integrate logging functionality...