fabric是什么意思(Fabric快速入门讲解)

fabric是什么意思(Fabric快速入门讲解)  下面我们来学习Fabric的网络。在这里我贴出了英语原文,英语不好的小伙伴可直接看中文(翻译的不贴切的地方,请多多指教)。本系列教程上中下三部分。在本节我们先来学习下

  下面我们来学习Fabric的网络。在这里我贴出了英语原文,英语不好的小伙伴可直接看中文(翻译的不贴切的地方,请多多指教)。本系列教程上中下三部分。在本节我们先来学习下“什么是Fabric网络”,“fabric网络在公司应用中的例子”,“网络的组件”和“如何创建一个Fabric网络”。

  Fabric网络是具有权限管理的区块链网络,技术架构上为消费者和管理员提供分布式的账本服务。在大部分情况下,在一个联盟中,最初配置时是需要有网络管理权限的。并且,联盟中的成员达成一致后,策略是可以改变的。

  A Fabric permissioned blockchain network is a technical infrastructure that provides ledger services to application consumers and administrators. In most cases, multiple organizationscome together as a consortium to form the network and their permissions are determined by a set of policies that are agreed to by the consortium when the network is originally configured. Moreover, network policies can change over time subject to the agreement of the organizations in the consortium.

  有RA,RB,RC和RD四个组织决定利用Fabric网络进行共同投资。组织RA将会部署3个Peer节点和2个客户端应用。组织RB将会部署4个Peer节点和一个客户端应用。组织RC将会部署3个Peer节点和两个客户端应用。组织RD将会部署4个排序节点。RA和RB之间可以形成一个联盟,并且建立一个通道在他们之间。同理,RC和RD也可以这么做。每个应用通道又可以配置自己的策略。

  The organizations RA, RB, RC and RD have decided to jointly invest in a Fabric blockchain network. Organization RA will contribute 3 peers, and 2 client applications of RA will consume the services of the blockchain network. Organization RB will contribute 4 peers and has 1 client application. Organization RC contributes 3 peers and has 2 client applications. Organization RD contributes 4 orderers. Organization RA and RB have decided to form a consortium and exploit a separate application channel between the two of them. Organization RB and RC have decided to form another consortium and also exploit a separate application channel between the two of them. Each application channel has its own policy.

  一个Fabric网络由以下部分组成:

  网络服务的消费者

  网络的策略和身份

  Fabric证书颁发机构(CA)颁发证书,让组织验证身份。组织中有一个或者多个CA,可以选择一个去使用。除此之外,客户端应用使用证书去认证交易提案,peer节点使用证书去为提案背书并且把合法的交易提交到账本。

  The Fabric Certificate Authority (CA) issues the certificates for organizations to authenticate to the network. There can beone or more CAs on the network and organizations can choose to use their own CA. Additionally, client applications owned by organizations in the consortium use certificates to authenticate transaction proposals, and peers use them to endorse proposals and commit transactions to the ledger if they are valid.

  Fabric网络实例(来源Fabric官方文档)

  上面图表的解释如下:Fabric网络N中有策略网络NP1,排序服务O。通道策略CP1管理通道C1。联盟RARB建立了通道C1,排序服务O管理通道C1,peer节点P1和P2和客户端节点A1和A2在通道C1上可以进行交易。客户端应用A1属于组织RA。证书颁发机构CA1为组织RA服务。P2维护账本L1和L2。P2利用链码S4和S5。排序服务节点O属于组织RD.。

  The explanation of the diagram is as follows: There is a Fabric network N with network policy NP1 and ordering service O. Channel C1 is governed by channel policy CP1. Channel C1 has been established by consortium RARB. Channel C1 is managed by ordering service O and peers P1 and P2 and client applications A1 and A2 have been granted permission to transact on C1. Client application A1 is owned by organization RA. Certificate authority CA1 serves organization RA. Peer P2 maintains ledger L1 associated with channel C1 and L2 associated with C2. Peer P2 makes use of chain code S4 and S5. The orderer nodes of ordering service O are owned by organization RD.

  网络的创建是由客户端,peer节点,channel通道和ordering服务节点的联盟创建的。排序服务是网络中的地位十分重要,因为它包含着网络中的通道的配置。每个通道的配置包含通道的策略和membership信息(比如X509根证书)。

  创建Fabric网络(图片来自Fabric官方文档)

  The network is created from the definition of the consortium including its clients, peers, channels, and ordering service(s). The ordering service is the administration point for the network because it contains the configuration for the channel(s) within the network. The configurations for each channel includes the policies for the channel and the membershipinformation (in this example X509 root certificates) for each member of the channel.

  

内容来源网络,如有侵权,联系删除,本文地址:https://www.230890.com/zhan/264.html

(0)

相关推荐

  • 早安|小科普——隔夜的凉白开可以喝

    隔夜的凉白开可以喝 凉白开中没有什么特殊物质,即使是隔了好几夜,也不会产生致癌物,可以放心喝。不过要注意准备好盖子,否则水里落了灰和小虫子,那就真的不能喝了。

    生活 2021年9月13日
  • 现在能去广州吗?广州疫情出入最新政策

    现在能去广州吗?广州疫情出入最新政策 大家都知道北上广是超一线城市,全国各地有很多人去广东打拼,尤其是广州、东莞深圳,但是近日广州和东莞都出现了疫情,那么现在能去广州吗?低风险地区进广州需要核酸检测吗?下面小

    电商 2021年12月17日
  • 什么品牌的童鞋质量好,童鞋哪个牌子的比较好妈妈帮

    不仅孩子们在长脚,而且他们中的许多人还在学习走路。如果鞋子不合脚,不仅会影响脚的发育,还会让很多孩子不敢再尝试走路。所以,给孩子选一双好鞋,成了无数家长的追求。总之父母永远都是放在...

    阅读 2022年7月1日
  • 四大银行是哪四大(解析中国四大银行)

    四大银行是哪四大(解析中国四大银行)近日,金融委办公室发布11条金融改革措施。其中,第二条是出台《中小银行深化改革和补充资本工作方案》,进一步推动中小银行深化改革,加快中小银行补充资本。
    那么,中小银行是指哪些银行呢?这

    电商 2021年12月3日
  • 什么是混合基金,什么是混合债券基金

    什么是混合基金,什么是混合债券基金 小白零基础学基金一、什么是基金1.基金:代表一种委托关系,而股票、债券、银行等都相当直接投资。这种委托关系就是让专业的机构帮你理财,进一步说就是我们把钱交给基金公司,然后基金经理拿

    攻略 2021年11月1日
  • 《超级贪玩饼干》走进元宇宙奥利奥首次选角NFO演绎中国水墨风格。

    NFT(Non-Fungible Token即非同质化通证)作为当下极受关注的区块链技术,在全球范围内刮起数字艺术旋风。作为食品行业的“头号玩家”,奥利奥迎风而上,首创由5000块NFO (Non-fungible OREO)铸成的国风水墨NFT艺术作品,为消费者带来独一无二、永不过期的玩心体验。

    科技 2021年10月26日