logo资料库

Introduction to Blockchain and Ethereum.pdf

第1页 / 共114页
第2页 / 共114页
第3页 / 共114页
第4页 / 共114页
第5页 / 共114页
第6页 / 共114页
第7页 / 共114页
第8页 / 共114页
资料共114页,剩余部分请下载后查看
Preface
About the Book
About the Author
Objectives
Audience
Approach
Minimum Hardware Requirements
Software Requirements
Installing the Code Bundle
Additional Resources
Conventions
Ethereum Blockchain
Introduction
Introducing the Ethereum Blockchain
The Blockchain Data Structure
Public Key Cryptography
Distributed Ledgers
Consensus Mechanism
Introducing Cryptocurrencies
Introducing Networks and Smart Contracts
Cryptology and Keys
Traditional Codes and Cryptography
New Cryptography
Opening an Ethereum Account
Account Numbers and their Associated Private Keys
Wallets
Exercise 1: Creating a Wallet and Safeguarding its Information
Private Keys and Public Keys
Using your Wallet
Exercise 2: Getting the Toy Ether from the Rinkeby Test Network
The Ethereum Network, Nodes, and Mining
The Ethereum Network
Nodes
Mining
Transactions and Blocks
Transactions and Calls
Calls
Exercise 3: Calling the Ethereum Network
Transactions, Transaction Hashes, and Gas
Blocks and Block Hashes
Confirmations
Sending and Checking Transactions
Sending Transactions
Exercise 4: Sending and Receiving Transactions
Receiving Transactions
Checking Transactions
Summary
Learning Solidity
Introduction
The Solidity Language
Your First Smart Contract
Activity 1: Creating an Ethereum Token
Exercise 5: Using Remix to Compile Our Token
Basic Solidity
Solidity Data Types
Global and Local Variables
Collections
Mappings
Exercise 6: Creating Our Own Collection
Testing Solidity
Exercise 7: Deploying and Testing a Smart Contract
Summary
Solidity Contracts
Introduction
Your First dApp
Architecture of a dApp
Ganache
Exercise 8: Using MetaMask to connect to Ganache
Voting Contract
Compiling and Deploying Contracts
A Simple Web Page
Using an Oracle
Interface
Payment
Calculating Payments
Request Types
Functions and Getters
Summary
Introduction to Blockchain and Ethereum Copyright © 2018 Packt Publishing All rights reserved. No part of this course may be reproduced, stored in a retrieval system, or transmitted in any form or by any means, without the prior written permission of the publisher, except in the case of brief quotations embedded in critical articles or reviews. Every effort has been made in the preparation of this course to ensure the accuracy of the information presented. However, the information contained in this course is sold without warranty, either express or implied. Neither the author, nor Packt Publishing, and its dealers and distributors will be held liable for any damages caused or alleged to be caused directly or indirectly by this course. Packt Publishing has endeavored to provide trademark information about all of the companies and products mentioned in this course by the appropriate use of capitals. However, Packt Publishing cannot guarantee the accuracy of this information. Author: Fatima Castiglione Maldonado Technical Reviewer: Joaquim Pedro Antunes Managing Editor: Alex Mazonowicz Acquisitions Editor: Aditya Date Production Editors: Samita Warang, Ratan Pote Editorial Board: David Barnes, Ewan Buckingham, Simon Cox, Manasa Kumar, Alex Mazonowicz, Douglas Paterson, Dominic Pereira, Shiny Poojary, Saman Siddiqui, Erol Staveley, Ankita Thakur, and Mohita Vyas First Published: September 2018 Production Reference: 1280918 ISBN: 978-1-78961-271-4
Table of Contents Preface Ethereum Blockchain Introduction Introducing the Ethereum Blockchain The Blockchain Data Structure Public Key Cryptography Distributed Ledgers Consensus Mechanism Introducing Cryptocurrencies Introducing Networks and Smart Contracts
Cryptology and Keys Traditional Codes and Cryptography New Cryptography Opening an Ethereum Account Account Numbers and their Associated Private Keys Wallets Exercise 1: Creating a Wallet and Safeguarding its Information Private Keys and Public Keys Using your Wallet Exercise 2: Getting the Toy Ether from the Rinkeby Test Network
The Ethereum Network, Nodes, and Mining The Ethereum Network Nodes Mining Transactions and Blocks Transactions and Calls Calls Exercise 3: Calling the Ethereum Network Transactions, Transaction Hashes, and Gas Blocks and Block Hashes
Confirmations Sending and Checking Transactions Sending Transactions Exercise 4: Sending and Receiving Transactions Receiving Transactions Checking Transactions Summary Learning Solidity Introduction The Solidity Language Your First Smart Contract
Activity 1: Creating an Ethereum Token Exercise 5: Using Remix to Compile Our Token Basic Solidity Solidity Data Types Global and Local Variables Collections Mappings Exercise 6: Creating Our Own Collection Testing Solidity Exercise 7: Deploying and Testing a Smart Contract
Summary Solidity Contracts Introduction Your First dApp Architecture of a dApp Ganache Exercise 8: Using MetaMask to connect to Ganache Voting Contract Compiling and Deploying Contracts A Simple Web Page Using an Oracle
分享到:
收藏