谁是验证对等方? [英] Who is a validating peer?

查看:123
本文介绍了谁是验证对等方?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

I don't see a definition of the terms Validating Peer and Non-Validating Peer in the Glossary. It is important to have this definition as a good deal of literature seems to depend on these types of peers.

是我的主要问题.

将区块链视为数据存储,很显然,该数据存储将公开用于更改和读取其存储状态的函数.因此,验证对等方是否是一个实体,它将验证以下事实:X在状态之前,T是应用的交易,X'是结果状态?

Looking at the Blockchain as a data-store, it is clear that, this datastore will expose functions to change and read the state of its store. Therefore, is the validating peer an entity that will verify the fact that, X was before state, T was the transaction applied and X' the resulting state?

或者,验证对等方还会验证T所代表的业务逻辑以及调用T应该存在的访问级别吗?

Or, will the validating peer also verify the business logic that T represents and the access level that should exist to invoke T?

集中式类比是使用SQL引擎公开存储状态的RDBMS.可以通过业务逻辑(例如规则引擎)和SQL命令(例如INSERT,SELECT等)的组合来更新此存储.我的问题是,验证者是否对确保SQL命令成功工作感兴趣?还是将验证扩展到规则引擎?

A centralized analogy is an RDBMS that uses a SQL engine to expose the state of store. This store can be updated via a combination of business logic (e.g. a rules engine) and SQL commands (e.g. INSERT, SELECT, etc.) My question is, is a validator interested in ensuring the SQL command worked successfully? Or, does it extend the validation to the rules engine also?

推荐答案

超级账本结构的v0.6 .他们是订购者,而没有验证的同行是同行.

The term validating peer was used in the v0.6 of Hyperledger Fabric. They were the orderers, and the No-validating peers, the Peers.

在v1.0中,有:

  • 背书者对等方:他们收到一笔交易.然后,他们根据Smart Contrat执行交易并签署结果.他们将签名的交易发送给已发送交易的同行.
  • 提交方对等方:对等方获取区块(带有验证交易)并将其提交到其分类帐中.
  • 订单:用于对交易进行排序并生成区块的节点.

编辑(添加以下内容):

对等方可以是Endorser和Comitter.另外,Endorser对等方可以执行自己的交易.

A peer can be Endorser and Comitter. Also, a Endorser Peer can execute its own transactions.

流程(简短地):

  • 对等方获取客户端请求.该对等方(初始对等方)将相应的请求发送给Endorser Peers.
  • Enderser对等方根据其智能合约执行请求.他们在响应上签名并将其发送给初始对等方.
  • 如果所有响应的结果均相等且签名正确,则初始对等方将使用签名构建事务.它被发送到订购者.
  • 在订购服务中验证签名.订购服务按时间顺序和按渠道创建块.它们被发送到Comitter Peers.
  • 每个提交方对等方都会验证块的每个事务.如果可以,则将阻止"附加到每个本地分类帐中.

这篇关于谁是验证对等方?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆