Hyperledger Composer is a programming model containing a modeling language, and a set of APIs to quickly define and deploy business networks and applications that allow participants to send transactions that exchange assets
Assets are tangible or intangible goods, services, or property, and are stored in registries.
Participants are members of a business network. They may own assets and submit transactions.
Transactions are the mechanism by which participants interact with assets.
This examples include the following components :
-
Participants
- Citizen
- Government
- NGO
-
Assets
- Pothole-Info s
-
Transactions
- PotholeSent
- PotholeFixed
- A citizen creates a pothole asset which will consist of its location, dimensions and present status of the pothole, intially the status is 'CREATED'.
- Only the user can submit the pothole asset and its status is changed to 'IN_PROCESS', using the PotholeSent Transaction.
- NGO's and Government can view all the assets and transaction on the network.
- Once a pothole is fixed the Government submits the PotholeFixed trasaction with changes the status to 'FIXED'.
- Rules for each participant are defined in the permissions.acl file with is written in Access Control Language.