Building Blockchain Projects
by Narayan Prusty
Print Length 页数: 266 pages
Publisher finelybook 出版社: Packt Publishing (28 April 2017)
Language 语言: English
ISBN-10: 178712214X
ISBN-13: 9781787122147
B01M0DMDDG
Key Features
Create powerful,end-to-end applications for Blockchain using Ethereum
Write your first program using the Solidity programming language
Change the way you think and design your applications by using the all new database-Blockchain
Book Description
Blockchain is a distributed database that maintains a continuously growing list of data records secured from tampering and revision. Every user is allowed to connect to the network,send new transactions to it,verify transactions,and create new blocks,making it permission-less.
This book will teach you what Blockchain is,how it maintains data integrity,and how to create real-world Blockchain projects using Ethereum. With interesting real-world projects,you will know about bitcoin,generating smart and secure contracts with Ethereum,building end-to-end applications for Blockchain.
You will learn concepts such as cryptography in cryptocurrencies,ether security,mining ,smart contracts,solidity,and more. You will also learn about web sockets,various API services for Ethereum,and much more.
The blockchain is the main technical innovation of bitcoin,where it serves as the public ledger for bitcoin transactions.
What you will learn
Walk through the basics of the Blockchain technology
Implement Blockchain’s technology and its features,and see what can be achieved using them
Build DApps using Solidity and Web3.js
Understand the geth command and cryptography
Create Ethereum wallets
Explore mining ecosystem
About the Author
Narayan Prusty is currently working at a Blockchain company (Attores). Attores’ platform is an Ethereum product.
Narayan writes Smart Contracts and also build the front end using Web3.js. He has been working on Ethereum for last 6 months.
You can connect with him on LinkedIn at https://in.linkedin.com/in/narayanprusty. You can tweet him on Twitter at https://twitter.com/narayanprusty. Or you can check out his company’s website,http://qnimate.com/.
Narayan authored the following books for PACKT in 2015: Modern JavaScript Applications ( https://lnkd.in/eFgDVJS) and Learning ECMAScript 6 ( https://lnkd.in/eFT2_2y).
Contents
1. Understanding Decentralized Applications
1. What is a DApp?
2. Decentralized autonomous organization
3. User identity in DApps
4. User accounts in DApps
5. Accessing the centralized apps
6. Internal currency in DApps
7. What are permissioned DApps?
8. Popular DApps
9. Summary
2. Understanding How Ethereum Works
1. Overview of Ethereum
2. Ethereum accounts
3. Transactions
4. Consensus
5. Timestamp
6. Nonce
7. Block time
8. Forking
9. Genesis block
10. Ether denominations
11. Ethereum virtual machine
12. Gas
13. Peer discovery
14. Whisper and Swarm
15. Geth
16. Ethereum Wallet
17. Mist
18. Weaknesses
19. Serenity
20. Summary
3. Writing Smart Contracts
1. Solidity source files
2. The structure of a smart contract
3. Data location
4. What are the different data types?
5. Control structures
6. Creating contracts using the new operator
7. Exceptions
8. External function calls
9. Features of contracts
10. Libraries
11. Returning multiple values
12. Importing other Solidity source files
13. Globally available variables
14. Ether units
15. Proof of existence,integrity,and ownership contract
16. Compiling and deploying contracts
17. Summary
4. Getting Started with web3.js
1. Introduction to web3.js
2. Building a client for an ownership contract
3. Summary
5. Building a Wallet Service
1. Difference between online and offline wallets
2. hooked-web3-provider and ethereumjs-tx libraries
3. What is a hierarchical deterministic wallet?
4. Introduction to key derivation functions
5. Introduction to LightWallet
6. Building a wallet service
7. Summary
6. Building a Smart Contract Deployment Platform
1. Calculating a transaction’s nonce
2. Introducing solcjs
3. Building a contract deployment platform
4. Summary
7. Building a Betting App
1. Introduction to Oraclize
2. Working with strings
3. Building the betting contract
4. Building a client for the betting contract
5. Summary
8. Building Enterprise Level Smart Contracts
1. Exploring ethereumjs-testrpc
2. What are event topics?
3. Getting started with truffle-contract
4. Introduction to truffle
5. Summary
9. Building a Consortium Blockchain
1. What is a consortium blockchain?
2. What is Proof-of-Authority consensus?
3. Introduction to parity
主要特征
使用Ethereum为Blockchain创建功能强大的端到端应用程序
使用Solidity编程语言编写您的第一个程序
通过使用全新的数据库Blockchain,改变您的想法和设计应用程序的方式
图书说明
Blockchain是一个分布式数据库,它保持不断增长的数据记录列表,从篡改和修订保护。允许每个用户连接到网络,向其发送新的事务,验证事务,并创建新的块,使其无权限。
这本书将会告诉你Blockchain是什么,它如何维护数据的完整性,以及如何用Ethereum创建真实世界的Blockchain项目。随着有趣的现实世界项目,您将了解比特币,与埃特雷西姆(Ethereum)建立智能和安全的合同,构建Blockchain的端到端应用程序。
您将学习诸如加密密码术,以太网安全性,采矿,智能合同,稳定性等方面的概念。您还将了解网络套接字,各种API服务,以及更多信息。
封锁是比特币的主要技术创新,作为比特币交易的公开分类账。
你会学到什么
了解Blockchain技术的基础知识
实现Blockchain的技术及其功能,并了解使用它们可以实现的功能
使用Solidity和Web3.js构建DApps
了解geth命令和加密
创造埃及礼品钱包
探索矿业生态系统
关于作者
Narayan Prusty目前在Blockchain公司(Attores)工作。 Attores的平台是一个Ethereum产品。
Narayan写了Smart Contracts,并使用Web3.js构建了前端。他在过去六个月里一直在艾泽礼山工作。
您可以通过https://in.linkedin.com/in/narayanprusty与LinkedIn联系。你可以在Twitter上发短信给他,网址是: https://twitter.com/narayanprusty。或者您可以查看他公司的网站http://qnimate.com/。
Narayan在2015年为PACKT撰写了以下书籍: 现代JavaScript应用程序(https://lnkd.in/eFgDVJS)和学习ECMAScript 6(https://lnkd.in/eFT2_2y)。
目录
了解权力下放应用程序
什么是DApp?
2.权力下放的自治组织
3. DApps中的用户身份
4. DApps中的用户帐号
5.访问集中式应用程序
6. DApps内部货币
什么是许可的DApps?
热门的DApps
9.总结
2.了解如何工作
艾笛勒概述
Etherey账户
3.交易
4.共识
时间戳
随机
阻止时间
分叉
创世记
以太教派
艾思云虚拟机
气体
同行发现
耳语和群众
Geth
埃及礼金钱包
薄雾
弱点
宁静
总结
3.撰写智能合同
固体源文件
2.智能合同的结构
3.数据位置
4.什么是不同的数据类型?
5.控制结构
6.使用新的运算符创建合同
例外
8.外部函数调用
9.合约的特点
图书馆
11.返回多个值
12.导入其他Solidity源文件
13.全球可用的变量
14.醚单位
15.存在证明,诚信和所有权合同
16.编制和部署合同
总结
4.开始使用web3.js
1.介绍web3.js
2.建立一个所有权合同的客户
总结
5.建立电子钱包服务
在线和离线钱包之间的差异
hooked-web3-provider和ethereumjs-tx库
什么是分级确定性钱包?
4.关键推导函数简介
5. LightWallet介绍
6.建立钱包服务
7.总结
6.构建智能合同部署平台
1.计算交易的随机数
2.介绍solcjs
3.建立合同部署平台
4.总结
7.建立投注应用程序
Oraclize简介
2.使用字符串
3.建立投注合同
4.建立投注合同的客户
总结
8.建立企业级智能合同
探索ethereumjs-testrpc
2.什么是活动主题?
3.开始使用松露签约
松露简介
总结
9.建立联盟块链
什么是财团块?
什么是权威证明协商一致?
平价介绍