区块链运作机制_区块链如何运作? 铂 3

区块链运作机制

This article was originally published on Blockchain Review. Thank you for supporting the partners who make SitePoint possible.

本文最初发表在《 区块链评论》上 感谢您支持使SitePoint成为可能的合作伙伴。

What is consensus and why does it matter?

什么是共识,为什么重要?

The world of Bitcoin and underlying technologies of distributed ledger and blockchain are experiencing rapid change and growth.

比特币世界以及分布式账本和区块链的基础技术正在经历快速的变化和增长。

As low-trust digital systems gain adherents and differing use cases, developers are creating new variant blockchains to deal with the inevitable fragmentation between public, consortium and private blockchain technologies.

随着低信任度数字系统获得拥护者和不同的用例,开发人员正在创建新的变体区块链,以应对公共,财团和私有区块链技术之间不可避免的分裂。

Let’s note the differences between public, consortium and private blockchains.

让我们注意一下公共,财团和私有区块链之间的区别。

Public  — Fully decentralized and uncontrolled networks with no access permission required — anyone can participate in the consensus process to determine which transaction blocks are added. There is usually little or no pre-existing trust between participants in a public blockchain.

公用 -完全分散且不受控制的网络,无需访问权限-任何人都可以参与共识过程以确定要添加哪些交易块。 公共区块链参与者之间通常很少或没有预先存在的信任。

Consortium  — The consensus process for new transaction blocks is controlled by a fixed set of nodes, such as a group of financial institutions where pre-existing trust is high.

联盟 -新交易块的共识过程由一组固定的节点控制,例如一组预先存在较高信任度的金融机构。

Private  — Access permissions are tightly controlled, with rights to read or modify the blockchain restricted to certain users. Permissions to read the blockchain may be restricted or public. [1]

私有 -访问权限受到严格控制,读取或修改区块链的权限仅限于某些用户。 读取区块链的权限可能受到限制或公开。 [ 1 ]

There is usually some degree of pre-existing trust between at least some private blockchain participants.

至少一些私有区块链参与者之间通常存在某种程度的预先存在的信任。

The degree of pre-existing trust that an organization requires, as well as necessary control over participant permissions, will determine what type of blockchain to use.

组织需要的现有信任程度以及对参与者权限的必要控制,将决定使用哪种类型的区块链。

Different blockchain solutions have advantages and disadvantages. Take for example the difference between how transactions are validated within each type of blockchain:

不同的区块链解决方案各有利弊。 例如,在每种类型的区块链中如何验证交易之间的区别:

Proof of Work (PoW): About "mining" transactions utilizing a resource-intensive hashing process, which (a) confirms transactions between network participants and (b) writes the confirmed transactions into the blockchain ledger as a new block.

工作量证明(PoW) :关于利用资源密集型哈希处理过程进行的“挖掘”交易,该过程(a)确认网络参与者之间的交易,并且(b)将确认的交易作为新块写入到区块链总账中。

The accepted new block is proof that the work was done, so the miner may receive a 25 BTC (Bitcoins) payment for successfully completing the work. The problem with PoW is that it is resource-intensive and creates a centralizing tendency among miners based on computer resource capability.

接受的新区块可证明工作已完成,因此矿工可能会因成功完成工作而获得25 BTC(比特币)付款。 PoW的问题在于它是资源密集型的,并基于计算机资源能力在矿工之间产生集中化趋势。

Proof of Stake (PoS): About "validating" blocks created by miners and requires users to prove ownership of their "stake" [2]. Validation introduces a randomness into the process, making the establishment of a validation monopoly more difficult, thereby enhancing network security.

权益证明(PoS) :关于“验证”矿工创建的区块,并要求用户证明其“权益”的所有权[ 2 ]。 验证在过程中引入了随机性,使验证垄断的建立更加困难,从而增强了网络安全性。

One problem with PoS is the "nothing at stake" issue, where miners have nothing to lose in voting for different blockchain histories, preventing a consensus from being created. There are several attempts to solve this problem underway.

PoS的一个问题是“无所不包”问题,矿工在投票支持不同区块链历史时不会失去任何利益,从而无法达成共识。 解决该问题的尝试有多种。

Additional developments in this area hope to combine PoW with PoS to create hybrid blockchains with the highest security and lowest resource requirements.

该领域的其他发展希望将PoW与PoS结合起来,以创建具有最高安全性和最低资源要求的混合区块链。

To that end, some developers are focused on enhancing network security through 'consensus without mining.' [3]

为此,一些开发人员专注于通过“无需挖掘即可达成共识”来增强网络安全性。 [ 3 ]

Tendermint co-founder Jae Kwon has published a paper describing his firm's concept and approach in this regard.

Tendermint联合创始人Jae Kwon发表了一篇论文,描述了该公司在这方面的概念和方法。

Existing Proof of Work and Proof of Stake protocols have various problems, such as requiring huge outlays of energy usage and increasing centralization (PoW) or participants having nothing at stake (PoS) possibly contributing to consensus disruption on mined blocks.

现有的工作量证明和权益证明协议存在各种问题,例如需要大量的能源使用费用和日益增加的集中化(PoW)或参与者无所作为(PoS)可能会导致对开采区块的共识破坏。

Kwon's solution is twofold and does not require Proof of Work mining:

Kwon的解决方案是双重的,不需要工作量证明挖掘:

  • A ⅔ majority of validators is required to sign off on block submission, with no more than ⅓ able to sign duplicate blocks without penalty

    block要求大多数验证者签署块提交,但不超过⅓个签名者可以签署重复的块而不会受到处罚
  • The protocol raises the penalty of double-spend attacks to unacceptably high levels by destroying the malicious actor's Bitcoin account values.

    该协议通过破坏恶意参与者的比特币账户价值,将双重支出攻击的惩罚提高到了令人无法接受的高水平。

The algorithm is based on a modified version of the DLS protocol and is resilient up to ⅓ of Byzantine participants.

该算法基于DLS协议的修改版本,在多达1/3的拜占庭参与者中具有弹性。

Kwon and his team at Tendermint hope to bring speed, simplicity and security to blockchain app development.

Kwon和他在Tendermint的团队希望为区块链应用程序开发带来速度,简单性和安全性。

So, how does one decide on what type of blockchain to use and their relevancy for your company use case? [4]

那么,如何决定使用哪种类型的区块链及其与贵公司用例的相关性呢? [ 4 ]

alt

Below are a few examples of different types of blockchains, depending on the organization's greatest prioritized need:

以下是不同类型的区块链的一些示例,具体取决于组织的最大优先需求:

One consideration is confidentiality. For example, in the case of a public financial blockchain, all the transactions appear on the ledgers of each participant. So while the identities of the transacting parties are not known, the transactions themselves are public.

一个考虑因素是保密性。 例如,在公共金融区块链的情况下,所有交易都出现在每个参与者的分类账上。 因此,虽然不知道交易方的身份,但交易本身是公开的。

Some companies are developing 'supporting' blockchains to avoid this problem, by storing or notarizing the contracts in encrypted form, and performing some basic duplicate detection. Each company would store the transaction data in their own database, but use the blockchain for limited memorialization purposes.

一些公司正在通过以加密形式存储或公证合同并执行一些基本的重复检测来开发“支持”区块链来避免此问题。 每个公司都将交易数据存储在自己的数据库中,但将区块链用于有限的纪念目的。

A second consideration is whether you need provenance tracking. Existing supply chains are rife with counterfeit and theft problems. A blockchain that collectively belongs to the supply chain participants can reduce or eliminate breaks in the chain as well as secure the integrity of the database tracking the supply chain.

第二个考虑因素是您是否需要溯源。 现有的供应链上充斥着假冒和盗窃问题。 集体属于供应链参与者的区块链可以减少或消除链条中的中断,并确保跟踪供应链的数据库的完整性。

A third example is the need for record-keeping between organizations, such as legal or accounting communications. A blockchain that timestamps and provides proof of origin for information submitted to a case archive would provide a way for multiple organizations to jointly manage the archive while keeping it secure from individual attempts to corrupt it.

第三个例子是需要在组织之间保持记录,例如法律或会计通讯。 时间戳记并为提交给案件档案的信息提供来源证明的区块链将为多个组织提供一种共同管理档案的方式,同时保持档案的安全性,以防止个人破坏档案。

alt

Blockchains fundamentally operate on the basis of how consensus is agreed upon for each transaction added to the ledger.

区块链从根本上根据添加到分类账中的每笔交易达成共识的方式运作。

What are the benefits of each type of consensus mechanism, and in which situation are they best utilized?

每种共识机制的好处是什么?在哪种情况下最好地利用它们?

Proof of Work  — Miners have a financial incentive to process as many transactions as quickly as possible. PoW is best utilized by high-throughput requirement systems.

工作量证明 —矿工有经济动机来尽快处理尽可能多的交易。 PoW最好用于高通量需求系统。

Proof of Stake — Transaction Validators receive rewards in proportion to the amount of their "stake" in the network. This arguably improves network security by discouraging duplicitous attacks. PoS is best used by computing power constrained organizations.

股权证明 —交易验证者按其在网络中的“股权”数量获得奖励。 可以通过阻止重复攻击来提高网络安全性。 PoS最好由受计算能力限制的组织使用。

Delegated Proof of Stake [5] — Network parameters are decided upon by elected delegates or representatives. If you value a "democratized" blockchain with reduced regulatory interference, this version is for you.

委托权益证明 [ 5 ]-网络参数由当选代表决定。 如果您看重具有减少监管干扰的“民主化”区块链,那么此版本适合您。

PAXOS  — An academic and complicated protocol centered around multiple distributed machines reaching agreement on a single value. This protocol has been difficult to implement in real-world conditions.

PAXOS —一个学术性和复杂的协议,围绕着多个分布式机器达成一致,从而达成单一价值。 在现实条件下很难实现该协议。

RAFT  — Similar to PAXOS in performance and fault tolerance except that it is "decomposed into relatively independent subproblems", making it easier to understand and utilize.

RAFT —在性能和容错性方面类似于PAXOS,只是它“分解为相对独立的子问题”,从而更易于理解和利用。

Round Robin  — Utilizing a randomized approach, the round robin protocol requires each block to be digitally signed by the block-adder, which may be a defined set of participants. This is more suited to a private blockchain network where participants are known to each other.

循环(Round Robin) —使用随机方法,循环协议要求每个块都由块加法器进行数字签名,加法器可以是一组定义的参与者。 这更适合参与者彼此认识的私有区块链网络。

Federated Consensus  — Federated consensus is where each participant knows all of the other participants, and where small sets of parties who trust each other agree on each transaction and over time the transaction is deemed valid. Suitable for systems where decentralized control is not an imperative.

联合共识 -联合共识是每个参与者都知道所有其他参与者的地方,并且彼此信任的一小部分各方就每笔交易达成协议,随着时间的推移,该交易被视为有效。 适用于不需要分散控制的系统。

Proprietary Distributed Ledger  — A PDL is one where the ledger is controlled, or proprietary, to one central entity or consortium. The benefits of this protocol is that there is already a high degree of pre-existing trust between the network participants and agreed-upon security measures. Suitable for a consortium or group of trading partners, such as supply chains.

专有分布式分类帐 — PDL是其中一个分类帐被控制或专有给一个中央实体或财团的分类帐。 该协议的好处在于,网络参与者和商定的安全措施之间已经存在高度的预先存在的信任。 适用于财团或贸易伙伴组,例如供应链。

PBFT  — In a PBFT system, each node publishes a public key and messages are signed by each node, and after enough identical responses the transaction is deemed valid. PBFT is better suited for digital assets which require low latency due to high transaction volume but do not need large throughput.

PBFT —在PBFT系统中,每个节点发布一个公共密钥,并且消息由每个节点签名,并且在足够相同的响应之后,该事务被视为有效。 PBFT更适合于数字资产,这些数字资产由于交易量大而需要较低的延迟,但不需要大的吞吐量。

N2N  — Node to node (N2N) systems are characterized by encrypted transactions where only the parties involved in a transaction have access to the data. Third parties such as regulators may have opt-in privileges. Suitable for use cases where a high degree of transaction confidentiality is required.

N2N —节点到节点(N2N)系统的特征在于加密的事务,其中仅事务中涉及的各方可以访问数据。 监管者等第三方可能具​​有选择加入的特权。 适用于需要高度交易保密性的用例。

The above list represents the current major consensus mechanisms in operation or from research.

上面的列表代表了当前主要的运作或研究共识机制。

Due to the initial visibility of Bitcoin, the financial services industry has been early in researching the possible uses of consensus mechanisms to streamline operations, reduce costs and eliminate fraudulent activity.

由于比特币的最初可见性,金融服务行业一直在研究共识机制可能用于简化运营,降低成本和消除欺诈活动的早期阶段。

The multi-trillion dollar global financial services industry is really composed of many different sectors, from lending to smart contracts, trading execution, letters of credit, insurance, payments, asset registration, regulatory reporting and more.

这个价值数万亿美元的全球金融服务行业实际上由许多不同的部门组成,从贷款到智能合约,交易执行,信用证,保险,支付,资产注册,监管报告等等。

For example, the process of securing a letter of credit, which is an important import/export trading service, would likely utilize a 'consortium' approach to achieving transaction consensus.

例如,作为重要的进出口贸易服务的信用证的获取过程可能会利用“财团”方法来达成交易共识。

In August, 2016 a banking consortium, R3CEV, successfully designed and executed trading smart contracts. These types of contracts could then be applicable to accounts receivable invoice factoring and letter of credit transactions.

2016年8月,一家银行联盟R3CEV成功设计并执行了智能合约交易。 这些类型的合同然后可以应用于应收帐款发票保理和信用证交易。

For the use case example of cross border remittances, which would involve many individuals on both sides of the transaction, a 'public' consensus mechanism would likely be a relevant choice.

对于跨境汇款的用例示例(涉及交易双方的许多个人),“公共”共识机制可能是一个相关选择。

Since remittances would need to have a relatively short time latency for transaction completion, a solution involving a Proof of Stake approach with its low resource requirement to validate transactions along with potentially higher security, would be compelling.

由于汇款需要相对较短的时间才能完成交易,因此,一种涉及权益证明方法的解决方案具有低资源要求,可以验证交易并具有更高的安全性,这将是一个引人注目的解决方案。

In sum, the state of blockchain development is rapidly gaining speed worldwide, yet there is much work to be done.

总而言之,全球范围内区块链的发展状况正在Swift提高,但仍有许多工作要做。

Numerous Global 2000 companies led by their technology executives and consultants are beginning to participate in development and testing of this revolutionary technology sector.

由其技术主管和顾问领导的众多全球2000强公司开始参与这一革命性技术领域的开发和测试。

Organizations that begin first-hand learning about the power of blockchain technologies will have increased opportunity to lead their industry.

开始直接了解区块链技术力量的组织将有更多的机会领导其行业。

If you stumbled upon this post and would like to find a quick link to the original article, see How Does the Blockchain Work?.

如果您偶然发现了这篇文章,并想找到原始文章的快速链接,请参阅区块链如何工作?

The rest of the series is here:

该系列的其余部分在这里:

I’m always interested in meeting blockchain founders, academic researchers, and technologists who are working on challenging projects, so please feel free to contact me on LinkedIn, or by email at collin@intrepid.ventures.

我一直很想与正在从事具有挑战性的项目的区块链创始人,学术研究人员和技术专家会面,因此请随时通过LinkedIn或通过电子邮件collin@intrepid.ventures与我联系。

  • Looking for a new cryptocurrency? Check out the introduction to Metabase.

    寻找新的加密货币? 查看Metabase的介绍。

  • Want to launch your own ICO? Apply now at Token Deck.

    想启动自己的ICO吗? 现在在Token Deck申请。

翻译自: https://www.sitepoint.com/how-does-the-blockchain-work-pt-3/

区块链运作机制

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值