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 精通区块链
136 | 第 5 章
不过,去中心化的交易所也有一些弊端。其中值得注意的有:
非常慢
在一个中心化交易所,用户执行的交易将立即完成。在一个去中心化的交
易所,为了执行交易,用户必须等待他们的交易被纳入一个区块,这往往
需要至少
10
秒,甚至
1
分钟。等到用户的交易执行时,机会可能已经消失。
费用高
去中心化的交易所要求用户在每次要执行行动时都要生成一个新的交易,
包括添加订单和取消订单。交易所用户经常在短时间内进行多个订单和对
这些订单的更改。在一个中心化的交易所,这些订单变化是免费的,但在
一个去中心化交易所,你必须为每个行动向网络支付
gas
,这使得它的使
用成本更高。
对非技术用户不友好
由于用户每次完成一个动作都必须签署一个交易,非技术用户可能会感觉
使用一个去中心化的交易所太复杂,需要付出太多努力。
两者之间还有一个很大的区别是,不需要征得任何人的同意就可以将
ERC-20
代币添加到一个去中心化的交易所。
ERC-20
代币一经创建,便可以立即在去
中心化的交易所进行交易。根据你与谁交谈,这可以被认为是一个优点或一
个缺点。我们将在第
7
章中更多地讨论去中心化的交易所以及如何使用它们。
你可以在线查看所有的
ERC
标准,另外
OpenZeppelin
提供了一个很棒的符
合
ERC
标准的智能合约库。
5.5
小结
以太坊是目前为止最大的可用于代币化的区块链。在很短的时间内,任何开
发者都可以创建自己的基于区块链的资产。为了让程序员在以太坊内有一个
可以操作的框架,以太坊已经做了大量的工作,提供了不同的
ERC
标准可供
万物皆可代币化
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数据分析(第2版)

Python数据分析(第2版)

Posts & Telecom Press, Armando Fandango
编写整洁的Python代码(第2版)

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

Posts & Telecom Press, Mariano Anaya
机器学习流水线实战

机器学习流水线实战

Hannes Hapke, Catherine Nelson

Publisher Resources

ISBN: 9787519863166