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 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.