找回密码
 立即注册

扫一扫,登录网站

首页 自媒体 查看内容
  • 2838
  • 0
  • 分享到

重磅干货:公有链的七大挑战及其解决方案

2018-5-27 06:53

来源: BlockchangeCommons


The Seven Major Challenges of Public Chains and Their Solutions


公有链的七大挑战及其解决方案





Hello everyone! I am Larry, founder of the Genaro Network. Thanks for the invitation from Huobi – it’s my honour to share my experience in the blockchain industry with you here. Today I’m going to talk about the 7 major challenges around public chains and their potential solutions.


大家好! 我是Larry,Genaro Network的创始人。感谢火币的邀请, 很荣幸能在这里与大家分享我在区块链行业的经验。今天我要谈谈关于公链的7大挑战及其潜在解决方案。




The future as we know it will be purely sharing economy community in smart cities, where there is no middle man in business and people could trust each other. Machines like auto cars could communicate with each other efficiently and operate securely.Now we have amazing technology such as blockchain to make it happen. though they are challenges ahead, which I will go over in this talk,  I’m very excited to be in this terrain as the future looks more interconnected, amazing as ever. 


我们所预见的未来将会是在智慧城市中形成各种各样的分享经济社区,那里没有中间人,人与人之间彼此信任。像汽车这样的机器可以互相通讯,并且能够安全运行。如今我们有区块链技术来实现这一愿景。虽然前面的道路布满荆棘,这些“荆棘”就是我接下来的演讲中会涉及的一些挑战,但能走在这条路上我仍满心欢喜,因为未来世界一定会更加互联互通,一定会一如既往地充满惊喜和奇迹。




I am happy to see that so many hardworking projects are along the way to add to this ecosystem, and ultimately we hope technology could penetrate the market in a scaling manner.  


我很高兴地看到,许多脚踏实地的项目正在为建设这个生态系统做出贡献,最终我们希望技术能以一种逐步扩展的方式进入市场


I want us to keep in mind that the best tech innovations must meet market demands and have vehicles of use. For instance, Bitcoin now run into some bottle neck issues such as the tps is too slow. But when it came out created the peer to peer financial system for us, this was extremely valuable, met the market needs in 2009 and worked pretty well in following years. Now we have more market demands, and Developers also need to continuously hacked away at the tech to try to speedup or solve these issues. 


我希望大家记住的是,最好的技术创新一定要满足市场需求并且要有使用的工具。比如,比特币现在遇到了瓶颈问题,如TPS太慢。但它为我们创建了点对点金融系统,仅仅这一点就功不可没,在2009年它满足了市场需求,并且随后的几年中运行良好。现在更多的市场需求出现了,而开发人员也需要不断地突破技术以加速现有问题的解决。


So, what are some of the main challenges around the publicchain technologies we see today…as we are working on Genaro Network, we face these current issues and potential solutions also we have proposed our own solutions.


那么,我们今天看到的公链技术所面临的一些主要挑战是什么呢?这些也正是我们开发Genaro Network时面临着的实际问题。我们为这些问题提出了一些自己的解决方案。




Let’s start with the first challenge: “how to design a sustainable consensus mechanism”. The most popular consensus is proof of work. Because in a Nakamoto consensus blockchain system, the longest chain is the only correct chain, to avoid attackers forking and extending the forked chain too easily, miners have to contribute enough computing power by solving math puzzles to put the blocks they have discovered onto the chain. But this causes serious energy waste: in 2017, the electricity used in bitcoin mining cost is over that of 159 countries. Additionally, the cost is not going toward useful computation – it's not computation of genetic engineering nor artificial intelligence, which would be useful in the real world, it's just using computation for solving random math puzzles. 

 

公链的第一个挑战是“如何设计可持续的共识机制”。最普遍的共识是工作证明(PoW)。因为在中本聪共识协议的区块链系统中,最长的链是唯一正确的链,为了避免攻击者太过容易地分叉并且拓展分叉链,矿工必须通过解决数学难题来将他们发现的块放入链中以贡献足够的计算能力。但这会造成严重的能源浪费:2017年,比特币采矿成本所用的电力超过了159个国家的用电量。此外,该成本并没有转向有用的计算 – 不是计算基因工程或人工智能这些在现实世界中很有用的问题,而是计算随机的没有意义的数学难题。




To avoid this issue, people start to support PoS: proof of stake. It allows miners to extend the blockchain by staking their token without any computation power. However, pure PoS will introduce security issues, such as the “long range attack” and “nothing at stake”; this is because anyone can extend the blockchain only if he has enough tokens, so the chain is easier to be forked.


为了避免这个问题,人们开始支持PoS:权益证明。它允许矿工通过押注来扩展区块链而无需任何算力。然而,单纯的PoS会引来安全问题,例如“远程攻击”和“无利害关系”; 这是因为任何人只要有足够的通证都可以扩展区块链,因此链条更容易分叉。


So we need to design a sustainable consensus mechanism, to find some useful computation to secure the PoS


所以我们需要设计一个可持续的共识机制,找到一些有用的计算来保证PoS的安全性。




The second challenge is how to establish a peer to peer sharing network.


第二个挑战是如何建立点对点的共享网络


Bitcoin was invented to create a pure peer to peer system, and so were most public chains. In such a system, all nodes have to have the right or ability to share something to earn rewards.  Otherwise they would only become consumers. It’s like in any community, anyone has to earn resources in order to survive here.


比特币是为了创建一个单纯的点对点系统而发明的,大多数公链都是如此。 在这样的系统中,所有节点必须有权利或能够分享某些东西来获得奖励。 否则,他们只能成为消费者。 这就像在任何一个社区里,任何人都必须获取资源才能生存一样。



Personally I haven’t mined bitcoin, because back in 2015 when I first started working on blockchain, my laptop could hardly mine any bitcoin. I have mined Ethereum, but only for about half a year. Then it became impossible as well. This is because computation power has a monopoly effect  – if you are a big mining factory and I am a laptop, I am not going to earn any reward because the task takes you 1 minute to finish and takes me 1 hour, you take away the reward while I am just getting started.  This also happens more thanks to the revving up of the “arms race”in mining industry, whereby people are always busy with creating more advanced mining machines.


就我个人而言,我没有挖过比特币,因为在2015年我第一次开始研究区块链时,我的笔记本电脑已经几乎挖不出任何比特币了。我以前挖过以太坊,但也只持续了大概半年时间。后来,这也都变得不可能了。这是因为算力的垄断效应 - 如果你是一家大型矿厂,而我只是一台笔记本电脑,我将不会获得任何奖励,因为你花1分钟完成的任务,我需要1个小时,你拿走奖励的时候,我才刚刚开始。这种情况越来越多地发生还因为挖矿的“军备竞赛”,人们总是忙于创造更先进的采矿机器。


To solve this problem, people start to think of sharing more things instead of computation power, such as storage. There are certain products that work well, such as Storj, ipfs, sia, and Genaro sharer, launched by the Genaro team. However, purely sharing storage and getting the reward from whoever uses the storage without any system-based reward, this cannot satisfy the sharers – they expect much more. For example, bitcoin mining also comes from system rewards, instead of purely from transaction fees. This cannot last forever. We need to find out a fair business model – this means we need to think about what else users could share to earn reward.


为了解决这个问题,人们开始考虑共享更多的东西,而不是算力,比如存储。有些产品运行良好,例如Storj,ipfs,sia和由Genaro团队开发的Genaro Sharer。但纯粹共享存储空间并从使用存储的人那里获得奖励,但没有任何系统奖励的话,无法满足分享者们的期望——他们想要的远远不止这些。 例如,比特币采矿也来自系统奖励,而不是仅仅来自交易费。这不是长远之计。我们需要找出一个公平的商业模式 - 这意味着我们需要考虑还有哪些用户可以分享的东西以获得奖励。




The third challenge is: how to increase blockchain transactions per second, as is known as TPS. This was one of the hottest topics over the past year and still is. Many projects are working on it in different ways. Basically:

TPS = concurrency divided by average response time.


第三个挑战是:如何增加每秒的区块链交易,即所谓的TPS。这是过去一年中最热门的话题之一,现在依然如此。许多项目正在以不同的方式开展工作。TPS =并发数除以平均响应时间。


So naturally,projects such as Zilliqa, Ethereum apply sharding techniques to blockchain to increase the concurrency.


因此很自然的想法,例如Zilliqa,Ethereum等项目将分片(sharding)技术应用于区块链以提高并发数。



In a blockchain system,TPS also equals to the amount of transactions in one block divided by the time of generating one block. So bitcoin could increase TPS by increasing block size, so there could be more transactions in one block. On the other hand, EOS uses DPoS techniques to decrease the time of generating one block. Only 21 master nodes reaching consensus takes a much shorter time than reaching consensus by all nodes. Some projects try to jump out the box – they put certain transactions outside blockchain. This is called an“off-chain” solution, examples being the Raiden network or lightning network. It's like, if you run a coffee shop, all transactions happen inside your coffee shop, buy a cup of cappuccino, or something, only comes to you, then you clearing with the global financial system at last.


在一个区块链系统中,TPS也等于一个块中的事务数量除以生成一个块的时间。所以比特币可以通过增加块的大小来增加TPS,因此在一个块中可能会有更多的交易。 另一方面,EOS使用DPoS技术来减少产生一个块的时间。21个达成共识的主节点花费的时间要比所有节点达成共识的时间短得多。有些项目试图另辟蹊径 - 他们把某些交易放在区块链之外进行。这被称为链下解决方案,例如Raiden网络或闪电网络。简单来讲就是,如果你经营一家咖啡店,所有的交易都发生在你的咖啡店里,买一杯卡布奇诺或者其他什么,只跟你结算,最后你会跟全球的金融系统来结算。


All these projects are great innovations, but most of them try to increase efficiency by sacrificing security and decentralization too much. There is no way to break the trilemma. But we also need to think about the how to maintain security and decentralization level to meet market need, or how to establish secure and trusted system in other ways.


所有这些项目都是伟大的创新,但是他们大多数都是通过牺牲安全性与去中心化程度来实现增加效率的。三角限制自然不能打破,但我们依然需要去思考如何维持一个符合市场需求的安全与去中心化程度的水平,或者说用其他方法建造安全与可信的系统。



The fourth challenge is "how to store DAPPs’ data securely in a decentralized way". Most DAPPs today are still using cloud servers such as amazon cloud. Blockchain is not designed to store data because no node could store all data comes from all Dapps. That's why Ethereum swarm is so limited. There are some projects working on decentralized storage, such as ipfs, Storj and of course Genaro Eden. Unfortunately, most the decentralized storage is isolated from the public chain. It’s like your CPU and hard drive are separated.


第四个挑战是“如何以去中心化的方式安全地存储DAPP数据”。今天大多数DAPP仍在使用云服务器,如亚马逊云。区块链不用于存储数据,因为没有节点可以存储来自所有DAPP的所有数据。这就是为什么Ethereum Swarm如此有限。有一些项目正在研究去中心化存储,如ipfs,storj,当然还有Genaro Eden。不幸的是,大多数点对点存储是与公链相隔离的。这就好比你的CPU和硬盘是分开的。



The fifth is “how to establish data channels between blockchains and the real world”. Currently the blockchain and the real world are isolated because of the trickiness of pulling data from outside. When miners run smart contracts on virtual machine, it is not possible to grab the exact same data at the same time. Let’s say there is a Dapp arranging my travel to Vietnam here, when help me book the flight, the ticket price varies on different website, some miner may go to expedia while some may go to skyscanner.


第五个是“如何建立区块链和现实世界之间的数据通道”。目前区块链和现实世界是孤立的,因为有从外部拉取数据的难度。当矿工在虚拟机上运行智能合约时,不可能同时获取完全相同的数据。假设有一个DAPP将我的旅行安排在越南,帮助我预订航班,不同网站上的票价会有所不同,有些矿工可能会去expedia,有些可能会去skyscanner。




Current solution is to make a prediction market work as an oracle machine, and push data to the blockchain, this includes projects like Augur, Gnosis etc. however, the way this market works is whichever data has the highest stake, is regarded as correct. The logic is that those who bet more will try harder to get the right data. Obviously, they are all good Dapps, but is not enough to work as oracle machine.


目前的解决方案是使预测市场成为一个预言机,并将数据推送到区块链,这包括诸如Augur,Gnosis等项目。然而,这个市场运作的方式是,无论哪个数据有最高的stake,就被认为是正确的。运行的逻辑是那些下注越多的人会更努力获得正确的数据。很明显,它们都是很好的DAPP,但不足以好到像预言机那样工作。



The sixth hard problem is how to design a sustainable token model. For instance, the transaction fees are too high. If you buy a coffee with bitcoin, the transaction fee might be higher than the coffee itself. This leads to the bitcoin’s value becoming negative if we apply purchasing power parity to estimate bitcoin. Also most public chains are relying on the mining or forging model too much. But think about where the system reward comes from? It actually from who join the system later. Finally, a utility token could be used for a product or service. This may be the most promising innovation in the fintech area, however this also cause the service price fluctuates too much.


第六个难题是如何设计一个可持续的通证模型。例如,交易费用太高。 如果你用比特币买咖啡,交易费可能会高于咖啡本身。如果我们用购买力平价来估计比特币,这可能导致比特币的价值变为负值。另外,大多数公链都过度依赖挖矿或创造模型。但想想系统奖励是从哪里来的? 它实际上是系统后来的加入者带来的。最后,实用通证可以用于产品或服务。这可能是金融科技领域最有前景的创新,但这也导致服务价格波动过大。


People are thinking other kind of solutions such as DAG, which has no transaction fee. Also there are stable token like Dai and Tether. Just note that token model is still at very early stage that most problems are open problems that there is not a single solution could solve all those problems.

 

人们开始想其他形式的解决方案,例如DAG, 没有手续费。同时也有稳定通证,例如Dai和Tether。需要注意的是通证模型的设计还在非常早期的阶段,大多数问题都是开放问题,没有一个解决方案可以解决全部问题。




Lastly, how to specify blockchain governance?


最后,如何具体描述区块链治理?


Reaching consensus for a single block is easy, but for the whole project’s direction it is extremely hard. In traditional structures such as a company, we organize individuals by department and reward by salary. management groups discuss important things, and the board of directors has the most power to decide things. However, blockchain is governed in a decentralized way, we need to organize each kind of community member well by fair incentive.


达成一个区块的共识很容易,但对于整个项目的方向来说,这是非常困难的。 在像公司这样的传统结构中,我们按部门组织人员,然后管理团队讨论重要的事情,董事会决定事情的权力最大。然而,区块链是以去中心化的方式进行管理的。


For instance, bitcoin uses BIP signal system; when someone wants something, he or she just writes the information in block and there is no guarantee this suggestion is listened and adapted or not – the bitcoin core team still needs lot of off line discussion and can hardly reach other miners and token holders.


例如,比特币使用BIP信号系统; 当有人想要某些东西时,他或她只是将信息写入区块,并不能保证这个建议是被听取和采用的 - 比特币核心团队仍然需要大量的离线讨论,并且很难接触到其他矿工和通证持有者。



EOS tries to solve this problem by voting. Setting aside the whole problem of bribery during elections, its logic is "whoever has the power to attract most votes has the ability to guard the chain ." We think there might be a better logic to solve this problem.


EOS试图通过投票解决这个问题。抛开选举期间的所有贿赂问题,其逻辑是“谁有能力吸引大多数选票就有能力保护链”。我们认为可能有更好的解决该问题的逻辑。


Blockchain technology has been developing for decades and all the mentioned projects are great innovations. However, this industry develops so fast that technology iterates fast as well. When everyone tries to add padding to current blockchains such as Ethereum, we think, why not make a new thing and try to solve the issues at the first time designing the system? like it is said “the best way to improve a carriage is to make a car.”


区块链技术已经发展了数十年,所有上面提到的项目都是伟大的创新。但是,这个行业发展得如此之快,以至于技术的迭代速度也很快。当每个人都试图向当前的区块链系统,例如在以太坊上打补丁时,我们觉得,为什么不做一个新的东西,在设计之初就试图解决这些问题?正如一句古话 “改进马车的最好方法是发明汽车”。



So, what is Genaro?


所以Genaro是什么?



In one sentence, The Genaro Network is the first Turing-complete public blockchain combining peer-to-peer storage with a sustainable consensus mechanism. Genaro's mixed consensus uses SPoR (Sentinel Proof of Retrievability) and PoS (Proof of Stake), ensuring stronger performance and security.


Genaro Network是第一个结合点对点存储和可持续共识机制的图灵完备公有链。 Genaro的混合共识机制使用SPoR(Sentinel Proof of Retrievability)和PoS(权证证明),确保更强大的性能和安全性。


Genaro provides developers with a one-stop platform to deploy smart contracts and store the data needed by Dapps at the same time. This will provide everyone with a trusted Internet that connects the real world to the blockchain securely.


Genaro为开发人员提供一站式平台来部署智能合约并同时存储dApp所需的数据。这将为每个人提供一个值得信赖的互联网,可以安全地将现实世界与区块链连接起来。


Then… why it is a car? Why combine storage and a public chain can solve these problems? How to combine them?


那么,为什么说它是能“替代马车的汽车”呢?为什么结合存储和公链可以解决这些问题?以及如何结合两者呢?


Ok…let's go deeper and figure out all the whys.


好,那我们就更深入地分析下这些“为什么”。





First, a sustainable consensus mechanism: SPoR +PoS


首先,一个可持续的共识机制:SPoR+PoS


SPoR is short for sentinel proof of retrievability – it is a calculation to tell you your file could be retrieved from servers if you want. Sentinel is the hash of a random piece of your data, and stored on the blockchain. It is low energy consumption, and will not increase over time like bitcoin. More importantly, it is a useful type of computation, used in cloud storage for years. Lastly, the Genaro network uses SPoR to secure PoS to prevent attack – nobody can easily fork and extend the forked chain because you did not run SPoR algorithm and do not have previous sentinels.

 

SPoR是“Sentinel Proof of Retrievability”(数据的可检索性证明)的缩写 - 这是一个计算,告诉你如果你愿意,你的文件可以从服务器上检索。 Sentinel(哨兵)是你的数据随机一部分的哈希,并且存储在区块链中。这是低能耗的,更不会像比特币一样随着时间的增加使能耗增加。更重要的是,它是一种有用的计算,已经多年被用于云存储。最后,Genaro网络使用SPoR来确保PoS以防止攻击 - 没有人可以轻松地分叉和扩展分叉链,因为你没有运行过SPoR算法并且没有之前的哨兵。




Second, Genaro sharer, is a peer to peer sharing network with more incentives. As for the basic level, increase in computing power or large node storage space cannot have a ‘monopoly-effect‘. As for deep level, we think the most precious resource nowadays is data. Genaro sharer’s ultimate goal was to allow both individuals and company to share data based on the storage network. For instance, a Company could run machine learning on the encrypted data on Genaro Eden, and data sharer could get rewards through smart contract on Genaro Network.

 

其次,Genaro Sharer是一个具有更多激励的点对点共享网络。对于基础级别,算力或大型节点存储空间的增加不会产生“垄断效应”。至于深层次的级别,我们认为当今最宝贵的资源就是数据。 Genaro Sharer的最终目标是让个人和公司共享基于存储网络的数据。例如,公司可以对Genaro Eden上的加密过数据运行机器学习程序,数据共享者可以通过Genaro网络上的智能合约获得奖励。




Third, why does Genaro have higher TPS? Also how does SPoR + PoS work?


第三,为什么Genaro的TPS更高? 另外SPoR + PoS如何工作?


To reach a consensus, step one, all nodes need to stake token and get the right to share storage. Then the SPoR filters out the governance nodes from the storage nodes. That is to say, less than 200 trusted nodes reach a consensus, which is faster than all nodes consensus, and the blocks are continuously produced to reduce verification time.


想要达成共识,第一步,所有节点都需要进行stake并获得共享存储的权利。然后,SPoR从存储节点中筛选出治理节点。也就是说,少于200个可信节点达成共识,这比达成所有节点的共识要快,并且这些区块连续产生以减少验证时间。




Fourth, Genaro Eden is a peer-to-peer storage network deeply coupled with public chain. All data is stored in a decentralized way on Genaro Eden, and the sentinels’ related info will be stored on chain and synced. Then the Genaro virtual machine operates from the instruction level on this network, therefore to provide a one-stop solution for deploying smart contract and store data at the same time.


第四,Genaro Eden是一个与公有链深度耦合的点对点存储网络。 所有数据都以去中心化的方式存储在Genaro Eden上,"哨兵”的相关信息将存储在链上并进行同步。 然后,Genaro虚拟机将从该网络的指令级开始运行,从而为同时部署智能合约和存储数据提供一站式解决方案。




Fifth, we have designed a protocol called “GSIOP“ to establish data channels between blockchains and the real world. Gsiop is short for Genaro streaming IO protocol. Data is initiated in GSIOP and stored in Genaro Eden. The keys for encrypted KV pairs are stored on chain as "pointer" to the decentralized data. Also the Dapp's owner has to define the rules of data operation. when someone wants to update the data, he or she has to follow the rules in an encrypted way through Gsiop as well. The updated data is stored in the Genaro storage network and this updated transaction is recorded on blockchain, it's like a handle to help developer to find the data on storage network.in this way, the blockchain will always know where to grab the correct data for applications.


第五,我们设计了一个名为“GSIOP”的协议来建立区块链和真实世界之间的数据通道。 GSIOP是Genaro Streaming IO Protocol的缩写。数据在GSIOP中启动并存储在Genaro Eden中。加密KV对的密钥存储在链上作为分散数据的“指针”。此外,DAPP的所有者必须定义数据操作的规则。当有人想更新数据时,他们必须以加密方式遵循规则并通过GSIOP。更新后的数据存储在Genaro存储网络中,并且这一更新的交易也被记录在区块链中,这就像一个帮助开发人员查找存储网络上的数据的把手一样。通过这种方式,区块链将始终知道在哪里获取其应用所需的正确数据。




As for the Sixth challenge, Genaro uses two layers of gas to make the token model more sustainable. Storage gas is more expensive than normal transaction gas because it uses more resources in the system. We are also designing a new payment gateway uses fiat money to use all produce features in the Genaro ecosystem, to provide users an additional option.


至于第六项挑战,Genaro使用双重gas模型使通证模型更具可持续性。储存gas比正常的交易gas更昂贵,因为它在系统中使用更多的资源。我们还在设计一个新的支付网关,通过法币来使用Genaro生态系统中的所有产品功能,为用户提供额外的选择。





The last challenge is blockchain governance. First we think on-chain governance is absolutely needed to create the decentralized community. We kindly support the idea of a“master node”– however, the master nodes should not come from voting, otherwise it’s like “whoever has the ability to attract more votes, is most trusted and helpful to the entire system”,  this logic is not perfect. So we use ranking instead of voting to select the “master nodes”. As for the ranking function, we use two factors: the GNX the node is staking and the amount of sentinels the node contains. Staking is easy to understand, it is there to make sure the master node has common interest with the system. As for sentinel, it’s like when others store data on your node, that’s your sentinel amount plus one, so the more sentinel you have, more contribution you have made to the entire storage network. So Genaro’s logic is “whoever has the most significant contribution to the system, is most trusted and helpful to the entire system”. We believe data is the most valuable thing in the Genaro network, and sentinel refers to data value as well, so we call it “data governance”.


最后一个挑战是区块链治理。首先,我们认为建立分权化社区绝对需要链上治理。我们支持“主 节点”的想法 - 但是,主节点不应该来自投票,否则就像“谁能够吸引更多的选票,谁就是最值得信赖的并且对整个系统有帮助的人”,显然这个逻辑是不尽完善的。所以我们使用排名而不是投票来选择“主节点”。至于排名函数,我们使用两个因素:节点的GNX权益证明和节点包含的"哨兵”数量。权益证明很容易理解,它确保主节点对系统有共同的利益。至于"哨兵”,就像其他人在你的节点上存储数据时一样,这就是你的"哨兵”数量加1,因此拥有的"哨兵”越多,对整个存储网络的贡献就越多。因此,Genaro的逻辑是“对系统有最重要贡献的人,就是整个系统最值得信赖和对系统有帮助的人”。我们认为数据是Genaro网络中最有价值的东西,而"哨兵”也对应的是数据价值,所以我们称之为“数据治理”





That’s all! To sum up, Genaro is the first Turing- complete public chain with a Peer-to-peer storage network. Hope you guys enjoyed that! Do let me know if you have any questions!


这就是全部啦! 总而言之,Genaro是第一个拥有点对点存储网络的图灵完备共有链。希望你们喜欢! 如果有任何感兴趣的问题,请告诉我!

版权申明:本内容来自于互联网,属第三方汇集推荐平台。本文的版权归原作者所有,文章言论不代表链门户的观点,链门户不承担任何法律责任。如有侵权请联系QQ:3341927519进行反馈。
相关新闻
发表评论

请先 注册/登录 后参与评论

    回顶部