Deploying your smart contract 

Before we can deploy our smart contract, we need to put the latest version of the chaincode into a .zip file. The content of the .zip file is a directory with the same name as the Go source file, and of course the Go source file itself is placed in that directory. You can download the latest version of this file from https://git.io/fAH3Q.

Follow these steps to create a valid deployment artifact:

  • Create a directory called insurancechain on your filesystem
  • Put the downloaded file (insurancechain.go) into this directory
  • Create a .zip archive of the insurancechain directory

The artifact should look like the following screenshot:

The insurancechain .zip archive, including the insurancechain directory and Go source ...

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.