Programming the smart contract

Up until this point in the chapter, we have designed the data model for our assets, transactions, and events, and have installed the development tools necessary to write our smart contract. The next step is to program the actual smart contract (called chaincode from this point forward) in the Go language. In the following sections, we will do the following:

  • Set up a workspace in VSCode for our chaincode project(s)
  • Install and initialize some missing Go packages/commands
  • Program the actual chaincode, including the data objects, transactions, and events

Get Blockchain across Oracle now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.