更新时间:2021-06-24 13:31:37
coverpage
Title Page
Copyright and Credits
Mastering Blockchain Programming with Solidity
Dedication
About Packt
Why subscribe?
Foreword
Contributors
About the author
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
Download the color images
Code in action
Conventions used
Get in touch
Reviews
Section 1: Getting Started with Blockchain Ethereum and Solidity
Introduction to Blockchain
Understanding blockchain
Blockchain solves the double-spending problem
Properties of blockchain
Distributed ledger
Fault tolerance
Attack resistance
Remove intermediaries
Consensus protocol
Faster settlement
Lower transaction fees
Transparency
Immutability
Irreversible transactions
Trust in the network
Artificial trust
Trustless systems
Availability
Empower individuals
Chronological order of transactions
Timestamped
Sealed with cryptography
When to use blockchain
When not to use blockchain
Blockchain is slow
Blockchain depends on off-chain oracles
Existing implementations of blockchain
Cross-border payments
Decentralized cloud storage
Decentralized computing
Introduction to Ethereum
Ethereum is for writing decentralized applications
Ethereum architecture
P2P networks
Nodes
Full nodes
Lightweight nodes
Miners
Blocks
Ethereum Virtual Machine (EVM)
Ether currency
Smallest unit – wei
Gas
Gas limit
Gas price
Formulas
Example
Ethereum accounts
Externally owned accounts
Contract accounts
The difference between an EOA and a contract
Ethereum transaction
Transaction fields
From
To
Value
Nonce
Data
Transaction hash
Transaction status
Pending status
Success status
Fail status
Dropped status
Transaction operations
Replace/update
Cancel
Testnets
Smart contracts
Immutable code
Think twice before deploying
Limited storage
Every transaction consumes gas in ether
Playing with ether or tokens