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 精通区块链
100 4
gas
解决了在区块链中操作编程语言的危险之一。开发者可以在以太坊上运行
DApp
,而不会遇到所谓的停机问题(
halting problem
),或无法防止代码无
法终止或无限循环(
infinite loop
)。以太坊要求将
gas
用于计算智能合约中
执行的代码,以便使得
DApp
尽可能高效。对于每一笔以太坊交易,开发者
都会指定一个燃料限制(
gas limit
),所以如果出现无限循环,交易最终会耗
gas
,而矿工依然会赚取运行交易的费用。
4.2.2
案例:
ICO
有许多使用智能合约实计算机化的交易协议的应用程序。
Ian Grigg
1996
提出的李嘉图合约(
Ricardian Contracts
)的概念让我们深入了解了该技术的
应用领域。创新之处包括使用加密哈希函数进行识别,并将法律元素通过加
密哈希定义为计算机可读的内容。通过执行一系列指令(通过智能合约)并
将其与账户系统(通过区块链)关联起来,以太坊平台可用被用来运行许多
不同的应用程序。
在以太坊发布后的最初几年,开发者生态系统的成长需要时间。但开发者意
识到,以太坊最强大的功能是可以利用智能合约以自动化且安全的方式筹集
加密货币资金,即之前提及过的
ICO
。例如,一个需要筹集资金来启动一个
概念的项目可以建立一个智能合约来接受以太币。作为回报,可以给与捐赠
者建立在以太坊之上的可赎回的加密货币。
ICO
的合法性是值得商榷的,许多项目因其引起的法律问题而提前终止。这
个问题在第
9
章有更详细的讨论。
筹集加密货币资金来启动项目的想法并不是从以太坊才有的。 ...
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
Python和NLTK实现自然语言处理

Python和NLTK实现自然语言处理

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

Python机器学习案例精解

Posts & Telecom Press, Yuxi (Hayden) Liu
编写整洁的Python代码(第2版)

编写整洁的Python代码(第2版)

Posts & Telecom Press, Mariano Anaya

Publisher Resources

ISBN: 9787519863166