|
Post by account_disabled on Jan 25, 2024 0:27:15 GMT -5
这篇区块链介绍最初发表在Bruno 的 Bitfalls 网站上,经许可转载于此。 Pause Next Unmute Current Time 0:13 / Duration 2:00 Fullscreen 什么是“区块链”?它是如何运作的,为什么会流行,为什么这么多人声称它将彻底改变世界? 在本文中,我们将通过一个平庸的示例来解释区块链技术,但该示例对于当前流通的大多数加密货币都有效。不熟悉加密货币的概念?看这里! 马里奥和路易吉 马里奥需要给他的兄弟路易吉寄 100 美元,因为路易吉就是路易吉,他在世界的另一端欠下了一些债务。 路易吉负债累累 Learn to Code with JavaScript 马里奥走进银行并说“我想给路易吉汇 100 美元”。柜员依次说“请提供账户卡”、“请提供身份证件”、“完成”。 马里奥通过银行向路易吉汇款 在这种集中化的情况下,银行是马里奥和路易吉资金的中央权威。马里奥和路易吉都相信银行会转账这笔钱,并相信他们的银行账户对账单上显示的数字。他们信任银行——尽管事实上银行所要做的就是更改数据库中的数字。毕竟,这都是数字化的。 然而,当我 WhatsApp 号码数据 们依赖这样一个中央权威时,这个权威就会构成一定的威胁。它可以随着我们的钱而消失,它可以是邪恶的,不会增加路易吉的价值,同时减少马里奥的价值,从而保留差异,或者它可能只是笨拙而犯错误。我们的财务状况直接取决于他们的能力。 小偷在柜员后面带着银行的钱走开 防止这种情况的一种方法是完全跳过银行,并拥有我们自己的系统来跟踪价值以及价值从一个地点到另一个地点的流动。 想象一下我们在一张纸上记下我们的银行账户的状态。如果只有马里奥和路易吉使用该系统,就很难保持公平。 如果其中一个变得贪婪,那么系统就已经受到损害。因此,这样的分布式(非集中式)系统需要有足够的参与者才能使其可行——至少三个。 文件 假设我们有五个参与者:耀西、马里奥、路易吉、瓦里奥和库巴,他们每个人都有自己的一张纸。 每个参与者都有自己的一张纸 Learn to Code with JavaScript 马里奥想给路易吉寄 100 美元。为此,他让每个人都知道(大声宣布):“我要给路易吉寄 100 美元!请大家注意!” 马里奥给路易吉寄钱并大喊 此时,每个参与者都会检查马里奥的帐户,以易会被写在参与者的纸上,直到空间用完为止。换句话说,任何两个人之间的每笔交易都会记录在每个参与者的纸上。 在我们将填好的纸张放入文件夹或文件柜并取出一张新的空白纸张之前,我们需要用特殊的代码密封填好的纸张。
|
|