Defining an issuance claim

Let's write a chaincode. Open LiteIDE and create a new file called claimcontract.go, as follows:

In the insurance claim use case analysis, we analysed the participants in the issuance claim process. There are three participants for whom we need to define a chaincode: insuree, broker, and insurer, as shown in the following example:

type Insuree struct {         Id           string `json:"id"`         FirstName    string `json:"firstName"`         LastName     string `json:"lastName"`         SSN          string `json:"ssn"`         PolicyNumber string `json:"policyNumber"`}

In Insuree, we define Id, firstname, LastName, SSNand policyNumber.

In Go language, it allows the ...

Get Blockchain Development with Hyperledger now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.