0

您如何处理网络中的多种参与者类型?如果我为拍卖师建模,我可能希望它成为用户的延伸。

4

1 回答 1

1

以下示例概述了您要查找的内容

https://github.com/hyperledger/composer-sample-networks/blob/master/packages/carauction-network/models/auction.cto

abstract participant User identified by email {
  o String email
  o String firstName
  o String lastName
}

participant Member extends User {
 o Double balance
}

participant Auctioneer extends User {
}
于 2017-03-08T18:19:47.693 回答