Skip to Content
精通区块链
book

精通区块链

by Lorne Lantz, Daniel Cawrey
March 2022
Intermediate to advanced
293 pages
5h 31m
Chinese
China Electric Power Press Ltd.
Content preview from 精通区块链
106 | 第 4 章
与中心化应用流畅的部署体验不同,部署新的智能合约就比较容易卡壳。此外,
DApp
的速度依赖于区块链的速度和确认时间。这个问题在
2017
年底的以太
坊上因
DApp
迷恋猫(
CryptoKitties
,也称加密猫)而凸显出来,它的流行导
致大量交易拥塞了以太坊网络。这使得该
DApp
几乎无法使用,直到热情消退。
现在你已经有了一些背景知识,让我们更深入地研究如何编写、部署和使用
太坊智能合约。
4.4
在以太坊中部署和执行智能合约
自从
1990
年代被首次提出以来,智能合约已经取得了长足的进步。
Omni
Layer
证明了在区块链之上运行
DApp
是可能的,但有许多限制,其中最大的
限制是谁应该有权创建和部署
DApp
。如果有人想部署一个
DApp
,必须要说
服平台的开发人员将其添加到
Omni Core
的代码之中。这样的结果是
Omni
Core
成了部署所有
DApp
代码的
DApp
。代码的开发是中心化的,只有
Omni
Core
的开发人员可以更新代码。想要自行运行
DApp
的开发者不得不探索其
他的方法,例如分叉
Omni Core
并制作自己的客户端运行在比特币之上,这
可不是一件容易的事。
Omni Core
还有以下限制:
区块链的扩容和速度依赖比特币及其核心开发者
Omni Core
对其作为运行基础的区块链未来的影响力有限。
比特币区块链不是为程序执行而设计的
它为价值存储进行了优化,其有限的脚本语言意味着永远不适合直接在
区块链之上构建复杂的智能合约。例如,
OP_RETURN
字段的存储限制为
80
字节,这限制了在 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

人工智能技术与大数据

人工智能技术与大数据

Posts & Telecom Press, Anand Deshpande, Manish Kumar
机器学习流水线实战

机器学习流水线实战

Hannes Hapke, Catherine Nelson
Python和NLTK实现自然语言处理

Python和NLTK实现自然语言处理

Posts & Telecom Press, Nitin Hardeniya
Python机器学习案例精解

Python机器学习案例精解

Posts & Telecom Press, Yuxi (Hayden) Liu

Publisher Resources

ISBN: 9787519863166