We now come to the first really significant definition–the 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 ...