本文介绍了在Hyperledger Fabric中,什么是组织和对等方?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是Hyperledger Fabric的新手,并希望通过实际使用案例来理解这些术语.

I am new to Hyperledger Fabric and would like to understand these terms with a real-world use case.

假设我们正在与多家医院建立医疗保健区块链网络.

Let's say we are building a Healthcare Blockchain Network with multiple Hospitals.

每个医院都有自己的医生和病人集.

Each Hospital has its own set of Doctors and Patients.

为简单起见,假设有两家医院,即A医院和B医院.那么这是否意味着A医院是一个组织,而B医院是另一个组织?

For simplicity lets assume there are two hospitals, Hospital A and Hospital B. So does this mean Hospital A is one organization and Hospital B is another Organization?

在这种情况下,什么是同级?参与者(医生,患者等)是否是个人同行?

In this case, what is a peer? Are participants (Doctor, Patient etc) individual peers?

请更正我对Hyperledger Fabric环境的理解.我通过互联网进行了研究,找不到与现实世界相关的这些术语的简单解释.所有的解释都是技术性的,尤其是在官方文档中.

Please correct my understanding of the Hyperledger Fabric Environment. I researched through the internet and I could not find a simple explanation of these terms which are related to the real world. All the explanations are technical, especially in the official Docs.

推荐答案

我认为您是对的.但这取决于要作为应用程序提供的功能级别.

I think you are right. But it depends on the level of functionality you want to provide as an application.

首先,医院可以是组织.

其次,进入主要功能 Peers 是具有业务逻辑/Chaincode和数据库(分类帐)的文件.所以,就您而言

Secondly, coming to the main functionality Peers are the ones that have a business logic/ Chaincode and a database(ledger). So, in your case

  • 同伴可以是医生,因为每个医生都有自己的(数据库)患者,并且(业务逻辑),例如精神科医生,心脏病专家等.
  • 同伴就像是一家医院的接待员,该医院将所有患者和医生的所有记录存储为状态.
  • Peers can be Doctors because every doctor has there own (database) patients and(business logics) like psychiatrist, Cardiologist etc.
  • Peers can be like receptionist of a hospital that has all the records of all the patients and doctors stored as a state.

虽然患者基本上是应用程序用户.因此,这完全取决于您要如何塑造网络.您可以考虑使用 私人数据 ,用于存储价格或患者报告等详细信息;)

While the patients are basically the application users. So it completely depends on how you want to shape your network. There can be many scenarios that you can think of like using Private data to store details like pricing or patients reports etc. ;)

这篇关于在Hyperledger Fabric中,什么是组织和对等方?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-24 12:41