Model-first design approach
As with most modern (micro)services or APIs, it is best to start by designing the specification first and defining what operations are exposed to the outside. The same goes for smart contracts on the blockchain. It's best to start every new contract using a model-first design approach. What I mean by this is to define the data objects (participants, assets (including its attributes), complex types, and enumerations) and the request and response objects for our transactions and events. You can start out on paper, use tools to create entity relationship diagram (ERD) models (for instance, https://draw.io), or design your business model using Hyperledger Composer, a declarative modeling language and development toolset ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access