区块链项目:ZILLIQA与以太坊的分片那点事

图片发自简书App



当今传统区块链面临的核心问题:扩展性问题


所有区块链交易所面临的最基本的需求就是交易处理能力:传统区块链处理每秒7个,visa是8000个,自从分片概念提出以后,传统区块链以太坊和后起之秀小鲜肉BILLIQA便同时开始在分片技术的实现上走上一条不归路。


目前公有链主要面临两大扩展性问题:

1)吞吐量低:比特币和以太坊每秒处理小于10比交易,不能满足目前的需求

2)存储空间占用: 记账节点需要保存所有的历史交易记录,比特币已经从09年到现在已经用150G的

分片技术主要用于解决以上两个问题:

1)交易分片:各个分片分别处理部分交易,提高交易效率

2)存储分片:各个分片分别存储部分交易记录,减低单节点的存储压力

功能上的区别:

1)以太坊实现2种分片

2)Zilliqa只能实现交易分片


以太坊之分片

以太坊V神路演之后提出你可以把分片看成是一个区块链,上面有上百个不同的宇宙,每个宇宙都是独立的账户空间一个账户,一个合约的生成和发起都可以在不同的宇宙上,也可以在多个宇宙间发起一笔交易,而这个交易仅仅会对涉及到的宇宙产生影响。

            分片机制:

      主链--分层--分片

各个分片是独立账户,生成区块的头部,主链收集各个区块的头部,每个分片把区块头部发送到主链,然后生成主链区块。

这里的意思是主链只保存各个分片的区块头,并不保存具体交易。多个分片可以并行处理交易,分散主链压力,提升整个系统的吞吐量。分片节点保存与交易相关的历史记录,主链节点也不用包含分片的具体交易信息,从而大大降低节点的存储压力。

分片共识:pos

进度:3-5年

吞吐量:整体提升,主链没有

各个分片是独立账户,生成区块的头部,主链收集各个区块的头部,每个分片把区块头部发送到主链,然后生成主链区块。

ZILLIQA 分片

ZILLIQA的核心优势:

对于传统区块链莱说,所有挖掘者都争先恐后的解决一个数学问题,获胜者才能得到奖金,这是一个赢家通吃的游戏,这种竞争结构使得剩下的99%的失败者浪费了计算机算力和消消耗大量能源。

例如传统区块链有8000个节点,他们同时解决一个问题,而分片是分出10个分片,每个分片是800个节点,分别解决不同问题,竞争变成合作,计算机的耗能更加有效。随着挖掘者的不断增多,可以处理更多的问题,区块链可以实现更多的交易,随着运行效率的增加,整个网络的交易成本也会大大降低,挖掘者获利不变。

分片的机制:运行在同一个空间

全部矿工随机分配 筛选出一个boss分片+n个工作分片,每个工作分片分出y个矿工,全网节点首先进行一次数学竞赛,最先胜出的m个节点组成boss分片。

剩余的节点进行第二次竞赛,最先胜出的n*m 节点分配到n个工作片中,每个分片都并行处理部分交易,形成子区块,发送到boss分片,Boss验证,打包,生成最终区块。无论是boss分片还是工作分片都工作在主链上,没有独立空间,每个节点都保存的所有的历史记录。

分片共识:PBFT

进度:测试网络已经发布

吞吐量:主链提升

优点:

节点之间是合作关系,而不像传统区块链是竞争关系。

ZILLIQA 代币(ZIL) 登陆 交易平台:

火币pro:huobi.pro

cate.io

idex.market


lola

区块链研习社精英群成员

2018.1.28


心痛小姐姐的辛苦汇总的币豪们,小姐姐接受eos,eth,btc以及各种币币打赏


谢谢比豪和未来的币豪们:

币币打赏地址:


ZILLIQA地址:


0x79d1280bc971dff6327d0a00360f23c507c25a33


BTC地址:


1PibSCEynK44Q9ef5b5WYurEb5y9dCd79y


ETH地址:


0xe9aab08d1e11b49648c768e1351879e53270c5f2


EOS地址:


0xe9aab08d1e11b49648c768e1351879e53270c5f2

QYB(区块链研习社代币):

地址: QUmjuR8rzmbjCqunZTdjRfqFq1if873YKW


区块链研习社LOGO


加入研习社扫二维码:


最新消息:

https://www.techinasia.com/talk/singapore-based-blockchain-compete-visa

As crypto hasseen massive growth in 2017, the biggest platforms are running into fundamentalproblems due to scale (neither bitcoin nor Ethereum can support more than threeto seven transactions per second). It doesn’t matter what you do to the blocksize or what other fixes you use, blockchain is no competition againstsomething like Visa that processes 8,000 transactions per second.

To make mattersworse, “traditional” blockchains (bitcoin or Ethereum) don’t scale as theygrow. As more and more people enter the world of crypto, they will have to bidagainst each other to get their transactions in a block, while more miningpower will compete for the consequently bigger block rewards.

But wouldn’t itbe better if blockchains could scale their transactions as the ecosystemscales? Of course it would. But due to the fundamental setup of theseblockchains, there’s no real solution. The only option is to move most of thetransactions off-chain or into side chains (think the Lightning Network, forinstance). But isn’t the whole idea of a blockchain to have alltransactionson the blockchain?

Looking for change

A team from theNational University of Singapore (NUS) is challenging these assumptionswithZilliqa. Led by its CEO, Dong Xinshu, theZilliqa proposal has been on the table since 2015 but is only now ready for themarket. The team is mostly Singapore-based and draws a lot of raw talent fromNUS.

The startup is ablockchain infrastructure quite like Ethereum but structured in a way wherehigh levels of scale and speed are possible without the excessivecosts. The fundamental premise is that transactions scale while thenetworks scale—more miners equals more transaction throughput, making a moreuseful blockchain.

All this isachieved through a concept called sharding. In a traditional blockchain, allminers work on a very hard mathematical problem. They each compete to solve itfirst, and once that’s done, the winner gets a reward. It’s a winner-takes-allgame. This system works well but has a big downside: everyone who’snotthewinner wastes his time (or computer power, in this case). Due to the way thecompetition is structured, essentially 99 percent of the computer power usedgoes to waste.

Sharding breaksthe winner-takes-all dynamic and the cryptographic task (validating thetransactions) down into small segments or “shards.” That means that instead of8,000 miners competing to solve a problem, for example, these miners are automaticallysplit into 10 shards of 800 each, working on separate problems.

This way, youget computational cooperation rather than competition. More computer power isused fruitfully.

This setup leadsto a couple of interesting consequences:

As the network grows, the cryptographic    difficulty doesn’t scale. Rather, more shards get created, where more    miners can work on more problems. As an effect, more transactions come    through the blockchain.

Because of this, GPUs can do the mining rather    than specialized mining hardware.

We get way more cryptographic work done for the    same electricity output. It’s much greener.

Because everything runs much more efficiently,    the transaction costs throughout the network can be much lower while still    being equally profitable for miners.

Future andchallenges

Zilliqa has beenin development since 2015. In recent testing on an internal testnet of AmazonWeb Services (AWS) instances, the network breached 2,488 transactions persecond. That’s more than 100x more than bitcoin and Ethereum combined.

But that waspre-scale. If all Ethereum miners (~22,000) work on Zilliqa, that would allowfor about 15,000 transactions per second. That’s more than twice as many asVisa (the world’s largest payment processor).

While Zilliqawould be the first project bringing sharding technology to a big publicblockchain, it must be noted that sharding has some challenges too. Thetechnology still needs to be tested and vetted at scale. Sharding could alsopotentially introduce security challenges, as attackers could try to hone in onone shard rather than the entire network.

But for now, thepromise of blockchain linear scalability seems to be driving a lot ofexcitement.

On January 3,2018, the team released the much-anticipated “Durian” alpha sourcecode. Now, everyone can inspect the underlying technology, and developers cantest and improve it. With a stable proof-of-concept already down, the companyis announcing an ICO this month. The team announced they were going tolower their hard capfromUS$30 million down to US$20 million, confident that their roadmap could beexecuted with these resources.

The premise issimple: Whoever can build a stable, reliable blockchain infrastructure that cancompete at the levels of Visa and MasterCard can be a very substantial playerin the global economy.

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
  • 序言:七十年代末,一起剥皮案震惊了整个滨河市,随后出现的几起案子,更是在滨河造成了极大的恐慌,老刑警刘岩,带你破解...
    沈念sama阅读 220,492评论 6 513
  • 序言:滨河连续发生了三起死亡事件,死亡现场离奇诡异,居然都是意外死亡,警方通过查阅死者的电脑和手机,发现死者居然都...
    沈念sama阅读 94,048评论 3 396
  • 文/潘晓璐 我一进店门,熙熙楼的掌柜王于贵愁眉苦脸地迎上来,“玉大人,你说我怎么就摊上这事。” “怎么了?”我有些...
    开封第一讲书人阅读 166,927评论 0 358
  • 文/不坏的土叔 我叫张陵,是天一观的道长。 经常有香客问我,道长,这世上最难降的妖魔是什么? 我笑而不...
    开封第一讲书人阅读 59,293评论 1 295
  • 正文 为了忘掉前任,我火速办了婚礼,结果婚礼上,老公的妹妹穿的比我还像新娘。我一直安慰自己,他们只是感情好,可当我...
    茶点故事阅读 68,309评论 6 397
  • 文/花漫 我一把揭开白布。 她就那样静静地躺着,像睡着了一般。 火红的嫁衣衬着肌肤如雪。 梳的纹丝不乱的头发上,一...
    开封第一讲书人阅读 52,024评论 1 308
  • 那天,我揣着相机与录音,去河边找鬼。 笑死,一个胖子当着我的面吹牛,可吹牛的内容都是我干的。 我是一名探鬼主播,决...
    沈念sama阅读 40,638评论 3 420
  • 文/苍兰香墨 我猛地睁开眼,长吁一口气:“原来是场噩梦啊……” “哼!你这毒妇竟也来了?” 一声冷哼从身侧响起,我...
    开封第一讲书人阅读 39,546评论 0 276
  • 序言:老挝万荣一对情侣失踪,失踪者是张志新(化名)和其女友刘颖,没想到半个月后,有当地人在树林里发现了一具尸体,经...
    沈念sama阅读 46,073评论 1 319
  • 正文 独居荒郊野岭守林人离奇死亡,尸身上长有42处带血的脓包…… 初始之章·张勋 以下内容为张勋视角 年9月15日...
    茶点故事阅读 38,188评论 3 340
  • 正文 我和宋清朗相恋三年,在试婚纱的时候发现自己被绿了。 大学时的朋友给我发了我未婚夫和他白月光在一起吃饭的照片。...
    茶点故事阅读 40,321评论 1 352
  • 序言:一个原本活蹦乱跳的男人离奇死亡,死状恐怖,灵堂内的尸体忽然破棺而出,到底是诈尸还是另有隐情,我是刑警宁泽,带...
    沈念sama阅读 35,998评论 5 347
  • 正文 年R本政府宣布,位于F岛的核电站,受9级特大地震影响,放射性物质发生泄漏。R本人自食恶果不足惜,却给世界环境...
    茶点故事阅读 41,678评论 3 331
  • 文/蒙蒙 一、第九天 我趴在偏房一处隐蔽的房顶上张望。 院中可真热闹,春花似锦、人声如沸。这庄子的主人今日做“春日...
    开封第一讲书人阅读 32,186评论 0 23
  • 文/苍兰香墨 我抬头看了看天上的太阳。三九已至,却和暖如春,着一层夹袄步出监牢的瞬间,已是汗流浃背。 一阵脚步声响...
    开封第一讲书人阅读 33,303评论 1 272
  • 我被黑心中介骗来泰国打工, 没想到刚下飞机就差点儿被人妖公主榨干…… 1. 我叫王不留,地道东北人。 一个月前我还...
    沈念sama阅读 48,663评论 3 375
  • 正文 我出身青楼,却偏偏与公主长得像,于是被迫代替她去往敌国和亲。 传闻我的和亲对象是个残疾皇子,可洞房花烛夜当晚...
    茶点故事阅读 45,330评论 2 358

推荐阅读更多精彩内容

  • Day 1 读书笔记 Select suitable reading materials and embark o...
    西坡师妹阅读 501评论 0 1
  • 今天傍晚的时候,锋哥要去市场买东西,叫我看店,我坐在电脑前研究公众平台,这时候走进来一个顾客,说实话,记得不是很清...
    忆红雨阅读 1,367评论 0 0
  • 我们的背后, 是数万万鲜活的面孔, 他们中也有我们自己的父母妻儿、兄弟姐妹。 我们的背后, 是遭受苦难多年后,逐渐...
    臭鱼大梦想阅读 344评论 1 2
  • 此去萧山乐行踪,归来物是人非也。 话别虽憾无潸然,柳绿桃红又一春。
    乙知己阅读 166评论 0 4
  • 夏雨后静悄悄的, 树木都矗立不动。 没有一缕风的痕迹, 也没有一丝要来的迹象。 空气中弥漫着小水滴, 湿哒哒的还有...
    return_to_zero阅读 256评论 0 0