极简入门:什么是区块链?

资讯 2024-07-14 阅读:47 评论:0
前阵子在油管看到了一个介绍区块链的短视频,把区块链讲得很清楚,于是我把它翻译一下分享给大家。相信大家看了这篇文章,基本上能够理解什么是区块链了。I saw a short video about the block chain in th...
美化布局示例

欧易(OKX)最新版本

【遇到注册下载问题请加文章最下面的客服微信】永久享受返佣20%手续费!

APP下载   全球官网 大陆官网

币安(Binance)最新版本

币安交易所app【遇到注册下载问题请加文章最下面的客服微信】永久享受返佣20%手续费!

APP下载   官网地址

火币HTX最新版本

火币老牌交易所【遇到注册下载问题请加文章最下面的客服微信】永久享受返佣20%手续费!

APP下载   官网地址

前阵子在油管看到了一个介绍区块链的短视频,把区块链讲得很清楚,于是我把它翻译一下分享给大家。相信大家看了这篇文章,基本上能够理解什么是区块链了。

I saw a short video about the block chain in the pipeline a while ago, and I made it clear, so I translated it and shared it with you. I'm sure you've seen this article, and you can basically understand what the block chain is.

区块链,顾名思义,它是由一组包含信息的区块组成的信息链。

区块链由一个有趣的属性:一旦某些数据被记录到一条区块链中后,那么数据就很难再被改变。那区块链到底是如何工作的呢?

The chain of blocks is an interesting attribute: once some data is recorded in a chain of blocks, it is difficult to change the data again. How does the chain work?

区块链由区块和链组成。每一个区块包含三个元素:数据、哈希值、前一区块的哈希值。

The block chain consists of blocks and chains. Each block contains three elements: data, Hashi values, and the Hashi values of the previous block.

区块的第一个元素是数据。区块中所保存的数据与区块链的类型有关。例如,比特币区块链中的区块保存了相关的交易信息,包括卖家,买家,以及交易比特币的数量。

The first element of the block is data. The data stored in the block is related to the type of block chain. For example, blocks in the bitcoin block chain contain relevant transaction information, including sellers, buyers, and the number of bitcoins traded.

区块的第二个元素是哈希值。每个区块包含了一个哈希值,这个哈希值是唯一的,它用来标识一个区块和它所包含的所有内容。一旦某个区块被创建,它的哈希值就相对应的被计算出来了。改变区块中的某些内容会使得哈希值改变。所以换句话说:当你想要检测区块中内容的改变时,哈希值对你就很有帮助。如果一个区块的指纹改变了,那它就再也不是之前的区块了。

The second element of the block is the Hashi value. Each block contains a Hashi value, which is the only one that identifies a block and everything it contains. Once a block is created, its Hashi value is calculated. Changes in some of its contents change the Hashi value. So, in other words, if you want to detect changes in the content of a block, the Hashi value is very helpful to you. If the fingerprint of a block changes, it is no longer the previous block.

区块的第三个元素是前一个区块的哈希值。这个元素使得区块之间可以形成链接,并且能够使得区块链十分的安全。

The third element of the block is the Hashi value of the previous block. The element

举个例子假设我们有一条区块链包含3个区块。如图所示,每个区块包含了一个自己的哈希值以及前一个区块的哈希值。3 号区块指向 2 号区块,2 号区块又指向 1 号区块。但是 1 号区块有点特殊,它不能指向前一个区块,因为它是第一个区块。我们把1号区块叫做创世区块。

For example, let's assume that we have a chain of blocks containing three blocks. As the figure shows, each block contains its own Hashi value and the Hashi value of the previous block. Block No. 3 points to block No. 2 and block No. 2 points to block No. 1. But block No. 1 is a little special, and it does not point forward to a block because it is the first block. We call block No. 1 a creative block.

那么,现在我们假设你篡改了第二个区块。这将导致第二个区块的哈希值改变,那么 3 号区块存储的数据就是错误的、非法的。而 3 号区块存储的数据一旦是非法的,后面的区块也一定是非法的。

Now, let's assume that you tampered with the second block. This will lead to a change in the Hashi value of the second block, so that the data stored in block 3 is wrong and illegal. And once the data stored in block 3 are illegal, the rest must be illegal.

所以如果一个人想要篡改区块链中任何一个区块,它必须修改这个区块以及这个区块之后的所有区块。这将是一个很繁重的任务。

So if a person wants to tamper with any of the blocks in the block chain, it has to modify the block and all the blocks that follow it. This will be a huge task.

但是,仅仅使用哈希值的方法不足以防止用户篡改区块。因为现在的计算机运算速度已经足够强大,并且能够每秒计算成千上万的哈希值。你完全可以篡改一个区块并且重新计算其他的区块的哈希值,这样就使得你的区块再次变得合法。

However, the use of Hashi values alone is not enough to prevent users from tampering with blocks. Because the computer is already strong enough to calculate thousands of Hashi values per second. You can completely alter one block and recalculate the other, making your block legal again.

所以为了减少这种风险,区块链还采用了一种技术叫做工作量证明。这是一种减缓新区块创建过程的机制。

So in order to reduce this risk, the block chain also uses a technology called workload certification, which is a mechanism to slow down the process of creating new blocks.

在比特币区块链中,大概需要花费10分钟来完成所要求的工作量证明,并且添加一个新的区块到区块链中。这个机制使得区块链的篡改更加困难,因为一旦你篡改了一个区块,你需要重新计算所有后续的区块的工作量证明。

In the Bitcoin block chain, it takes about 10 minutes to complete the required workload certification and to add a new block to the block chain. This mechanism makes it more difficult to tamper with the block chain, because once you have tampered with a block, you need to recalculate all subsequent blocks.

所以区块链技术的安全性主要来自于哈希值以及工作量证明机制。

The security of block chain technology is mainly derived from Hashi values and the workload certification mechanism.

但是,区块链还有一种机制来保护自身的安全性,那就是分布式。相对于用一个中心化的实体来管理区块链网络,区块链采用的是一种peer-to-peer网络,并且所有人都可以加入。当有人加入这个网络时,他就会得到整个区块链的复制。这个人就可以以此来验证是否所有的区块还是合法未篡改的。

But there is also a mechanism in the block chain to protect its security, that is, distribution. Rather than managing the block chain network with a centralized entity, the block chain is a peer-to-peer network that is accessible to all. When someone joins the network, he gets a copy of the whole block chain. This is how the person can verify whether all the blocks are legal and unaltered.

那么接下来我们就来看看,当某人创建了一个新的区块时,会发生哪些改变这个新的区块会被发送给网络上的所有人。每个人再验证这个区块以确保这个区块没有被篡改过。如果所有的东西都被检验正确之后,那么每个人就都会把这块新的区块加到自己的区块链上。

So let's see, when someone creates a new block, what happens to this new block is sent to everyone on the network. Everyone checks the block to make sure it's not tampered with. If everything is tested correctly, everyone adds the new block to their own chain.

我们可以称之为,网络上的所有人达成了「共识」。他们认同网络中那些区块是合法的,哪些是不合法的。那些被篡改过的区块将会被网络上的其他用户拒绝。所以,要成功篡改一个区块链,你需要篡改区块链上的所有区块,重新完成每个区块的工作量证明,并且控制区块链网络中超过50%的用户。

We can call it the "consensus" of all the people on the network. They agree that the blocks in the network are legal and what are illegal. The altered blocks will be rejected by the other users on the network. So, in order to successfully tamper with a block chain, you need to tamper with all the blocks in the block chain, complete the workload proof of each block, and control more than 50% of the users in the block chain network.

只有这样,你篡改的区块才会被所有人承认。但实际上,这基本上是不可能做得到的!

Only then will the blocks that you have tampered with be recognized by everyone. But, in fact, this is essentially impossible!

看到这里,你可以尝试着回答下面几个问题:

Here, you can try to answer the following questions:

  • 什么是区块链?

区块链由区块和链组成,每个区块由数据、哈希值、前一个区块的哈希值三个部分组成。

The block chain consists of blocks and chains, each consisting of three parts of the data, the Hashi value and the Hashi value of the previous block.

  • 区块链为什么需要挖矿(工作量证明)?

通过挖矿(工作量证明)可以避免坏人的恶意破解,增加其破解的时间成本和经济成本。

Mining (proven workload) avoids malicious break-ups and increases the time and economic costs of break-ups.

  • 区块链为什么很安全?

区块链安全是因为其不可更改特性和分布式特性。即如果要修改区块链中的数据,你需要完成下面两件事情:第一,你需要计算出修改区块之后的所有区块的哈希值,这需要非常庞大的计算能力。第二,你需要让超过50%的区块链用户同意你的修改。同时完成上面两件事情基本上是不可能的,所以区块链很安全。

The block chain is secure because it is immutable and distributed. If is to modify the data in the block chain, you need to do the following two things: first, you need to calculate the Hashi value of all blocks after the block has been modified, which requires a very large computing capability. Secondly, you need to get more than 50% of the block chain users to agree to your modifications. The completion of the two above is essentially impossible, so the block chain is secure.

如果你能回答上面三个问题,那么你就算是理解区块链了。但是区块链技术本身也在不断地发展。最近的一个技术改进,叫做智能合约。

If you can answer the three questions above, you can understand the block chain. But the block chain technology itself is developing. A recent technological improvement is called smart contracts.

智能合约的诞生使得我们可以做很多事情,例如网购的信任问题。我们将在后面的文章中讲解智能合约的概念。

The creation of smart contracts allows us to do a lot of things, such as Internet purchase trust issues. We'll talk about smart contracts in later articles.

美化布局示例

欧易(OKX)最新版本

【遇到注册下载问题请加文章最下面的客服微信】永久享受返佣20%手续费!

APP下载   全球官网 大陆官网

币安(Binance)最新版本

币安交易所app【遇到注册下载问题请加文章最下面的客服微信】永久享受返佣20%手续费!

APP下载   官网地址

火币HTX最新版本

火币老牌交易所【遇到注册下载问题请加文章最下面的客服微信】永久享受返佣20%手续费!

APP下载   官网地址
文字格式和图片示例

注册有任何问题请添加 微信:MVIP619 拉你进入群

弹窗与图片大小一致 文章转载注明

分享:

扫一扫在手机阅读、分享本文

发表评论
平台列表
美化布局示例

欧易(OKX)

  全球官网 大陆官网

币安(Binance)

  官网

火币(HTX)

  官网

Gate.io

  官网

Bitget

  官网

deepcoin

  官网
热门文章
  • 区块链社区有哪些?区块链社区是什么?

    区块链社区有哪些?区块链社区是什么?
    展开全文...
  • 0.00006694个比特币等于多少人民币/美金

    0.00006694个比特币等于多少人民币/美金
    0.00006694比特币等于多少人民币?根据比特币对人民币的最新汇率,0.00006694比特币等于4.53424784美元/32.5436 16人民币。比特币(BTC)美元(USDT)人民币(CNY)0.000066944.53424784【比特币密码】32.82795436 16比特币对人民币的最新汇率为:490408.64 CNY(1比特币=490408.64人民币)(1美元=7.24人民币)(0.00006694USDT=0.0004846456 CNY)汇率更新时...
  • 0.00015693个比特币等于多少人民币/美金

    0.00015693个比特币等于多少人民币/美金
    0.000 15693比特币等于多少人民币?根据比特币对人民币的最新汇率,0.000 15693比特币等于10.6 1678529美元/76.86554996人民币。比特币(BTC)【比特币价格翻倍】美元(USDT)人民币(CNY)0.000/克洛克-0/5693【数字货币矿机】10.6 167852976.8655254996比特币对人民币的最新汇率为:489,807.72 CNY(1比特币= 489,807.72人民币)(1美元=7.24人民币)(0.00015693 U...
  • 0.00003374个比特币等于多少人民币/美金

    0.00003374个比特币等于多少人民币/美金
    0.00003374比特币等于多少人民币?根据比特币对人民币的最新汇率,0.00003374比特币等于2.2826 1222美元/16.5261124728人民币。比特币(BTC)美元(USDT)人民币(CNY)0.00003374克洛克-0/22216.5261124728比特币对人民币的最新汇率为:489807.72 CNY(1比特币=489807.72人民币)(1美元=7.24人民币)(0.00003374USDT=0.0002442776 CNY)。汇率更新于2024...
  • 2018-5-31币圈简报

    2018-5-31币圈简报
    一、要闻资讯类I. KEY INFORMATION CATEGORY1、央视:数字货币在京揭牌成立!中国或为此突变!1. View: Digital currency is established in Kyoto! China or mutated for it!中国数字货币来了˂a href="https://mp.weixin.qq.com/s/69fxKCf8GKSCscS4lT8WCA" Target="_blank"rel="noformlow"" Chinese...
标签列表