Asset definitions

We now come to the first really significant definitionthe letter of credit asset:

 asset LetterOfCredit identified by letterId {   o String letterId   --> Customer applicant   --> Customer beneficiary   --> Bank issuingBank   --> Bank exportingBank   o Rule[] rules   o ProductDetails productDetails   o String [] evidence   --> Person [] approval   o LetterStatus status   o String closeReason optional }

Let's spend a little time on this definition, as it's both central to understanding the business network, and Hyperledger Composer in particular. First, note the asset keyword. It indicates that what follows is a data structure that describes an asset. It's just like a type definition in a normal programming language, but with some special characteristics ...

Get Hands-On Blockchain 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.