Business network archive
Composer business is comprised of four different types of files: model file (.cto
), script file (.js
), access control list (ACL) file (.acl
), and query file (.qry
).
Network model file (.cto)
A CTO file is composed of the following elements:
Element | Description |
A single namespace | Defines the composer model namespace; every |
Resources - asset | Anything of value that can be exchanged between parties. |
Resources - participant | Business network member. |
Resources - enum | A data type consisting of a set of named values. |
Resources - concept | Any object you want to model that is not one of the other types. |
Resources - transactions | Defines the blockchain business logic. |
Resources - events | Blockchain transaction notification. |
Import | Imports resources from other namespaces. |
The composer model language, like other programming languages, has data types including String, Double, Integer, and so on.
Let's see some samples of assets, participants, transactions, and events...