Designing business models

Now that we have reviewed the basic composer model language and structure, it is time to implement an insurance claim using Hyperledger Composer.

For simplicity's sake, we will allow participants to have permission to read and write for all resources in this example. Remove the sample resource related to ACL and update the rule as follows:

rule EverybodyCanReadEverything {    description: "Allow all participants read access to all resources"    participant: "**"    operation: READ    resource: "com.packt.quickstart.claim.*"    action: ALLOW}rule EverybodyCanSubmitTransactions {    description: "Allow all participants to submit transactions"    participant: "**"    operation: CREATE    resource: "**"    action: ALLOW}

With simplified ACL, we ...

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.