Book description
NoneTable of contents
- Preface
- Quick Glossary
-
1. What Is Ethereum?
- Compared to Bitcoin
- Components of a Blockchain
- The Birth of Ethereum
- Ethereum’s Four Stages of Development
- Ethereum: A General-Purpose Blockchain
- Ethereum’s Components
- Ethereum and Turing Completeness
- From General-Purpose Blockchains to Decentralized Applications (DApps)
- The Third Age of the Internet
- Ethereum’s Development Culture
- Why Learn Ethereum?
- What This Book Will Teach You
-
2. Ethereum Basics
- Ether Currency Units
- Choosing an Ethereum Wallet
- Control and Responsibility
- Getting Started with MetaMask
- Introducing the World Computer
- Externally Owned Accounts (EOAs) and Contracts
- A Simple Contract: A Test Ether Faucet
- Compiling the Faucet Contract
- Creating the Contract on the Blockchain
- Interacting with the Contract
- Conclusions
- 3. Ethereum Clients
- 4. Cryptography
- 5. Wallets
-
6. Transactions
- The Structure of a Transaction
- The Transaction Nonce
- Transaction Gas
- Transaction Recipient
- Transaction Value and Data
- Special Transaction: Contract Creation
- Digital Signatures
- The Signature Prefix Value (v) and Public Key Recovery
- Separating Signing and Transmission (Offline Signing)
- Transaction Propagation
- Recording on the Blockchain
- Multiple-Signature (Multisig) Transactions
- Conclusions
-
7. Smart Contracts and Solidity
- What Is a Smart Contract?
- Life Cycle of a Smart Contract
- Introduction to Ethereum High-Level Languages
- Building a Smart Contract with Solidity
- The Ethereum Contract ABI
-
Programming with Solidity
- Data Types
- Predefined Global Variables and Functions
- Contract Definition
- Functions
- Contract Constructor and selfdestruct
- Adding a Constructor and selfdestruct to Our Faucet Example
- Function Modifiers
- Contract Inheritance
- Error Handling (assert, require, revert)
- Events
- Calling Other Contracts (send, call, callcode, delegatecall)
- Gas Considerations
- Conclusions
- 8. Smart Contracts and Vyper
-
9. Smart Contract Security
- Security Best Practices
- Security Risks and Antipatterns
- Reentrancy
- Arithmetic Over/Underflows
- Unexpected Ether
- DELEGATECALL
- Default Visibilities
- Entropy Illusion
- External Contract Referencing
- Short Address/Parameter Attack
- Unchecked CALL Return Values
- Race Conditions/Front Running
- Denial of Service (DoS)
- Block Timestamp Manipulation
- Constructors with Care
- Uninitialized Storage Pointers
- Floating Point and Precision
- Tx.Origin Authentication
- Contract Libraries
- Conclusions
- 10. Tokens
- 11. Oracles
- 12. Decentralized Applications (DApps)
- 13. The Ethereum Virtual Machine
- 14. Consensus
- A. Ethereum Fork History
- B. Ethereum Standards
- C. Ethereum EVM Opcodes and Gas Consumption
- D. Development Tools, Frameworks, and Libraries
- E. web3.js Tutorial
- F. Short Links Reference
- Index
Product information
- Title: Mastering Ethereum
- Author(s):
- Release date:
- Publisher(s): O'Reilly Media, Inc.
- ISBN: None
You might also like
book
Mastering Blockchain - Fourth Edition
Demystify one of the most disruptive modern technologies and gain a deeper understanding of distributed ledgers, …
book
Mastering Blockchain - Third Edition
Develop a deeper understanding of what’s under the hood of blockchain with this technical reference guide …
book
Mastering Blockchain
The future will be increasingly distributed. As the publicity surrounding Bitcoin and blockchain has shown, distributed …
book
Learn Ethereum
Explore the blockchain-based decentralized platform and understand how Ethereum works with Dapps examples Key Features Explore …