Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
您如何处理网络中的多种参与者类型?如果我为拍卖师建模,我可能希望它成为用户的延伸。
以下示例概述了您要查找的内容
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 { }