Participant definitions

We now move to the next set of definitions in the model file: the participants!

Let's have a look at the first participant definition:

participant Bank identified by bankID {  o String bankID  o String name}

This is our first participant type definition, a bank. In the sample application, we have two instances of this type: Dinero Bank and Eastwood Bank.

We can see that participants are identified by the participant keyword, after which follows the type nameBank. In this case, a participant type is an organization, rather than an individual. As with assets, every participant has a unique ID for identification, and we can see that for banks, it's the bankID field:

participant Bank identified by bankID

For our example, ...

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.