万本电子书0元读

万本电子书0元读

顶部广告

Blockchain Quick Start Guide电子书

售       价:¥

2人正在读 | 0人评论 9.8

作       者:Xun (Brian) Wu

出  版  社:Packt Publishing

出版时间:2018-12-27

字       数:25.2万

所属分类: 进口书 > 外文原版书 > 电脑/网络

温馨提示:数字商品不支持退换货,不提供源文件,不支持导出打印

为你推荐

  • 读书简介
  • 目录
  • 累计评论(0条)
  • 读书简介
  • 目录
  • 累计评论(0条)
Learn quick and effective techniques to get up and running with building blockchain including Ethereum and Hyperledger Fabric. Key Features *Understand the key concepts of decentralized applications and consensus algorithms *Learn key concepts of Ethereum and Solidity programming *Practical guide to get started with build efficient Blockchain applications with Ethereum and Hyperledger Book Description Blockchain is a technology that powers the development of decentralized applications.This technology allows the construction of a network with no single control that enables participants to make contributions to and receive benefits from the network directly. This book will give you a thorough overview of blockchain and explain how a blockchain works.You will begin by going through various blockchain consensus mechanisms and cryptographic hash functions. You will then learn the fundamentals of programming in Solidity – the defacto language for developing decentralize, applications in Ethereum. After that, you will set up an Ethereum development environment and develop, package, build, and test campaign-decentralized applications.The book also shows you how to set up Hyperledger composer tools, analyze business scenarios, design business models, and write a chain code. Finally, you will get a glimpse of how blockchain is actually used in different real-world domains. By the end of this guide, you will be comfortable working with basic blockchain frameworks, and develop secure, decentralized applications in a hassle-free manner. What you will learn *Understand how blockchain hashing works *Write and test a smart contract using Solidity *Develop and test a decentralized application *Build and test your application using Hyperledger Fabric *Implement business network using Hyperledger Composer *Test and interact with business network applications Who this book is for The book is for developers, analysts, or anyone looking to learn about Blockchain in a quick and easy manner.
目录展开

Title Page

Copyright and Credits

Blockchain Quick Start Guide

About Packt

Why subscribe?

Packt.com

Contributors

About the authors

About the reviewers

Packt is searching for authors like you

Preface

Who this book is for

What this book covers

To get the most out of this book

Download the example code files

Conventions used

Get in touch

Reviews

Introduction to Blockchain Technology

The genealogy analogy

Bitcoin

Why Bitcoin

A peer-to-peer network

Cryptography and hash functions

The distributed ledger, blocks, transactions, addresses, and UTXO

The consensus mechanism

Forking

Mining and difficulty level

Hacking – the 51% problem

Private keys and Bitcoin wallets

Bitcoin scripting

Altcoins

Ethereum

Enterprise blockchain – Hyperledger

The evolution of blockchain

Summary

Ethereum Fundamentals

An overview of Ethereum

Ethereum basic concepts

Ether

ERC20 tokens

Smart contracts

Ethereum virtual machines

Ethereum gas

Account

Oracle

Other concepts

Performance

Throughput

Proof-of-Stake (PoS)

Casper

Plasma

Sharding

Summary

Overview of Solidity Programming

What is solidity?

Tools for solidity development environment

Browser-based IDE

Remix

EthFiddle

Command-line development management tools

Truffle

Introduction to smart contracts

Layout of a solidity source file

Pragma

Comments

Import

Paths

Relative paths

Structure of a contract

State variables

Data type

Enum type

Struct type

Mapping

Functions

Input parameters

Access modifiers

Output parameters

Modifiers

Events

Constructor

Constant state variables, unit, and functions

Ether units

Time units

Inheritance, abstract, and interface

Common smart contract patterns

Access restriction

State machine

Smart contract security

Keep contract simple and modular

Use the checks-effects-interactions pattern

DoS with block gas limit

Handle errors in external calls

Case study – crowdfunding campaign

Summary

Building an Ethereum Blockchain Application

Decentralized application overview

web3.js quick overview

Provider

DApp development tools

Truffle

Ganache

Setting up an Ethereum development environment

Installing Truffle

Installing Ganache

Creating a Truffle project

Launching the Ganache environment

Deploying a smart contract

Writing a campaign decentralized application

Selecting a web3 provider

Loading account information

Loading project information

Handling the fund function

checkGoalReached

Summary

Exploring an Enterprise Blockchain Application Using Hyperledger Fabric

Key concepts in Hyperledger Fabric

Ledger

Chaincode

Channel

Core component model

Peers

Membership service provider (MSP)

Certificate authority (CA)

Ordering service

Hyperledger Fabric basic transaction flow

Issuance claim

Setting up a Hyperledger Fabric environment

Installation prerequisites

Installing Hyperledger Fabric

Writing chaincode

Development tools

LiteIDE

JetBrains Gogland

Visual Studio Code

Chaincode key concept and APIs

Defining an issuance claim

Initializing the chaincode

Invoking the chaincode

AddCompany

ReportLost

RequestedInfo

SubmitClaim, ConfirmClaimSubmission, ApproveClaim

Query

getHistory

Configuring Hyperledger Fabric

Generating the certificate

Generating an orderer genesis block

Generating a channel configuration transaction

Overview of Hyperledger Fabric Docker composer configuration files

Fabric project directory structure

Docker-compose-base.yaml

Peer-base.yaml

Starting the Hyperledger Fabric network

Creating a channel

Joining channels

Updating the anchor

Installing chaincode

Instantiating the chaincode

Invoking add broker

Invoking add insurer

Invoking ReportLost

Invoking RequestedInfo

Invoking SubmitClaim

Invoking ConfirmClaimSubmission

Invoking ApproveClaim

Querying claim history

End-to-end test execution

Summary

Implementing Business Networks Using Hyperledger Composer

Hyperledger Composer – a quick overview

Yeoman generator

Composer REST server

LoopBack connector

JavaScript SDK

Composer playground

Composer-cli

Setting up a Hyperledger Composer environment

Installation prerequisites

Installing the development environment

Analyzing business scenarios

Business network archive

Network model file (.cto)

Script file (.js)

Access control list (ACL) file (.acl)

Query file (.qry)

Designing business models

Implementing the business transaction function

Testing in the playground

Deploying a business network

Integrating with REST server

Generating the Hyperledger Composer REST API

Summary

Blockchain Use Cases

Blockchain use case examples

Payment and settlement services

Import and export finance

Immutable ledger

Regulatory compliance and auditing

Identity theft detection

Funds back-office operation

Collateral management

Healthcare systems

Real estate trading and rental markets

IP market

Elections

HR and recruiting

Public records

Reduce contract disputes

Sharing economy

Integration with IoT

Facilitate commercial and social relationships

How to choose a proper use case

DApp use case – healthcare data sharing

The business problem

A blockchain solution

Summary

Other Books You May Enjoy

Leave a review - let other readers know what you think

累计评论(0条) 0个书友正在讨论这本书 发表评论

发表评论

发表评论,分享你的想法吧!

买过这本书的人还买过

读了这本书的人还在读

回顶部