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, SSN, and policyNumber.
In Go language, it allows the ...