Network model file (.cto)

A CTO file is composed of the following elements:

Element

Description

A single namespace

Defines the composer model namespace; every .cto model file requires a namespace.

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

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.