本文介绍了为什么 Git 不被视为“区块链"?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Git 的内部数据结构是一棵数据对象树,其中每个对象只指向它的前身.每个数据块都经过哈希处理.修改(误码或攻击)中间块,当保存的哈希值与实际哈希值有偏差时会被注意到.

Git's internal data structure is a tree of data objects, wherein each objects only points to its predecessor. Each data block is hashed. Modifying (bit error or attack) an intermediate block will be noticed when the saved hash and the actual hash deviate.

这个概念与区块链有何不同?
Git 没有被列为区块链的例子,但至少在总结中,两种数据结构描述看起来很相似:数据块、单向反向链接、哈希、......).

How is this concept different from block chain?
Git is not listed as an example of block chains, but at least in summaries, both data structure descriptions look alike: data block, single direction reverse linking, hashes, ...).

那么,Git 不被称为区块链的区别在哪里?

So where is the difference, that Git isn't called a block chain?

推荐答案

问题如下:为什么 Git 不被视为区块链"?认为 Git 不是区块链的观点(这一断言得到了本页上我之前的答案的说明和证实),并询问了这种观点盛行的原因.这是个好问题.

The question reads: Why is Git not considered a "block chain"? So this is asserting that there is a wide-spread opinion that Git is not a blockchain (an assertion that is illustrated and corroborated by the answers preceding mine on this page) and asking for the reason of the prevalence of this opinion. This is a good question.

从字面上看问题,答案可能是区块链术语和概念作为称为比特币"的数字货币操作的一部分而流行,因此与比特币的行事方式相关联:这是通过使用大量计算特定散列的计算能力,包括随机数以满足某些任意要求,据称没有中央权威,这是独立"的,甚至可能是民主的",以及其余的库尔援助;由于这些东西在 Git 中看不到,所以 Git 不可能是区块链,对吧?所以这个问题会从字面上得到回答.

Taking the question literally, the answer could be that the blockchain term and concept gained popularity as part of the digital currency operation called "Bitcoin", and hence came to be associated with how Bitcoin does things: which is by using a lot of computing power to calculate a specific hash including a nonce to meet certain arbitrary requirements, which is by allegedly having no central authority, which is by being "independent", maybe even "democratic", and the rest of the kool aid; and as these things are not seen in Git, well, Git cannot be a blockchain, right? And so the question would be answered literally.

隐藏在这个初步问题背后的是另一个问题:什么是区块链?现在你可以在某个地方查找定义并将其复制到这里,但我没有这样做,因为我决定多年前,在听播客时关于努力解释区块链新概念的比特币,区块链像 Git 一样工作,我不打算让我宝贵的理解被互联网上的随机声明误导.

Hidden behind this prima facie question is another question: What is a block chain? Now you could look up a definition somehwere and copy it over here, but I didn't do that as I have made up my mind years ago, when listening to a podcast about Bitcoin that strove to explain the new concept of a blockchain, that a blockchain works like Git and I don't intend to let my precious understanding be misled by random claims on the internet.

那么什么是区块链?这个词是什么?

So what is a blockchain? What's in the word?

术语区块链"中的任何内容都没有预先假定要求在内容中包含一个随机数,以便得出由许多前导零组成的散列.(这个要求只是为了能够通过计算能力来控制区块链,最终是通过金钱.)

Nothing in the term "blockchain" presupposes the requirement to include a nonce in the content so as to come up with a hash of so and so many leading zeros. (This requirement is only there to be able to control the blockchain by computing power and so, ultimately, by money.)

区块链"一词中没有任何内容以网络的存在为前提,更不用说去中心化的网络了.

Nothing in the term "blockchain" presupposes the existence of a network, let alone a decentralized one.

区块链"一词中没有任何内容以独立于"中央权威"为前提.

Nothing in the term "blockchain" presupposes any "independence" from "central authority".

术语区块链"仅以链接在一起的(数据)块为前提.现在什么是链?它只是一个链接吗?不,它是一个链接,旨在通过武力将事物联系在一起.

The term "block chain" only presupposes blocks (of data) chained together. Now what is a chain? Is it just a link? No, it is a strong link designed to hold things together by force.

一个简单的链表不符合区块链的要求,因为列表中数据块的内容可以改变,而列表将继续来回链接就好了.这不是链条的运作方式.

A simple linked list doesn't qualify as a blockchain because the contents of the chunks of data in the list could be altered while the list would continue to link back and forth just fine. This is not how a chain works.

要将数据块的链接变成数据块的,需要以某种方式对块的内容进行校验和(消化)并且此校验和(摘要)必须是链接的一部分,使其成为保护内容的强链接,防止其被更改.这是一个区块链.

To make a link of blocks of data into a chain of blocks of data, the contents of the blocks need to be checksummed (digested) in one way or another and this checksum (digest) must be part of the link, making it a strong link protecting the content, preventing it from being altered. This is a blockchain.

这就是 Git 所做的,因此 Git 是一个区块链,或者如果您愿意,可以作为一个区块链工作.

And this is what Git does, and hence Git is a blockchain, or works as one, if you prefer.

为了结束这个圈子,让我们再问一次:为什么 Git 不被认为是区块链"? 这可能是因为很多人,甚至可能是绝大多数人,没有关注其本质一个概念,但关于眨眼事故.

To close the circle, let's ask again: Why is Git not considered a "block chain"? It could be because many people, perhaps even a large majority, do not focus on the essence of a concept but on blinking accidents.

这篇关于为什么 Git 不被视为“区块链"?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-15 19:09