Solidity Programming Essentials : A Beginner's Guide to Build Smart Contracts for Ethereum and Blockchain.
Material type:
- text
- computer
- online resource
- 9781788838375
- 332.178
- HG1710 .M635 2018
Cover -- Title Page -- Copyright and Credits -- Packt Upsell -- Contributors -- Table of Contents -- Preface -- Chapter 1: Introduction to Blockchain, Ethereum, and Smart Contracts -- What is a blockchain? -- Why blockchains? -- Cryptography -- Symmetric encryption and decryption -- Asymmetric encryption and decryption -- Hashing -- Digital signatures -- Ether -- Gas -- Blockchain and Ethereum architecture -- How are blocks related to each other? -- How are transactions and blocks related to each other? -- Ethereum nodes -- EVM -- Ethereum mining nodes -- How does mining work? -- Ethereum accounts -- Externally owned accounts -- Contract accounts -- Transactions -- Blocks -- An end-to-end transaction -- What is a contract? -- What is a smart contract? -- How to write smart contracts? -- How are contracts deployed? -- Summary -- Chapter 2: Installing Ethereum and Solidity -- Ethereum networks -- Main network -- Test network -- Ropsten -- Rinkeby -- Kovan -- Private network -- Consortium network -- Geth -- Installing Geth on Windows -- Creating a private network -- ganache-cli -- Solidity compiler -- The web3 JavaScript library -- Mist wallet -- MetaMask -- Summary -- Chapter 3: Introducing Solidity -- Ethereum Virtual Machine -- Solidity and Solidity files -- Pragma -- Comments -- The import statement -- Contracts -- Structure of a contract -- State variables -- Structure -- Modifiers -- Events -- Enumeration -- Functions -- Data types in Solidity -- Value types -- Passing by value -- Reference types -- Passing by reference -- Storage and memory data locations -- Rule 1 -- Rule 2 -- Rule 3 -- Rule 4 -- Rule 5 -- Rule 6 -- Rule 7 -- Rule 8 -- Literals -- Integers -- Boolean -- The byte data type -- Arrays -- Fixed arrays -- Dynamic arrays -- Special arrays -- The bytes array -- The String array -- Array properties -- Structure of an array.
Enumerations -- Address -- Mappings -- Summary -- Chapter 4: Global Variables and Functions -- The var type variables -- Variables hoisting -- Variable scoping -- Type conversion -- Implicit conversion -- Explicit conversion -- Block and transaction global variables -- Transaction and message global variables -- Difference between tx.origin and msg.sender -- Cryptography global variables -- Address global variables -- Contract global variables -- Summary -- Chapter 5: Expressions and Control Structures -- Solidity expressions -- The if decision control -- The while loop -- The for loop -- The do...while loop -- The break statement -- The continue statement -- The return statement -- Summary -- Chapter 6: Writing Smart Contracts -- Smart contracts -- Writing a simple contract -- Creating contracts -- Using the new keyword -- Using address of a contract -- Constructors -- Contract composition -- Inheritance -- Single inheritance -- Multi-level inheritance -- Hierarchical inheritance -- Multiple inheritance -- Encapsulation -- Polymorphism -- Function polymorphism -- Contract polymorphism -- Method overriding -- Abstract contracts -- Interfaces -- Summary -- Chapter 7: Functions, Modifiers, and Fallbacks -- Function input and output -- Modifiers -- The view, constant, and pure functions -- The address functions -- The send method -- The transfer method -- The call method -- The callcode method -- The delegatecall method -- The fallback function -- Summary -- Chapter 8: Exceptions, Events, and Logging -- Error handling -- The require statement -- The assert statement -- The revert statement -- Events and logging -- Summary -- Chapter 9: Truffle Basics and Unit Testing -- Application development life cycle management -- Truffle -- Development with Truffle -- Testing with Truffle -- Summary -- Chapter 10: Debugging Contracts -- Debugging.
The Remix editor -- Using events -- Using a Block Explorer -- Summary -- Other Books You May Enjoy -- Index.
Solidity is a new contract-oriented programming language popular for creating smart contracts and distributed applications. Writing smart contracts targeting Ethereum and other blockchain platforms is an emerging skill. This book will enable you to write robust, secure, object-oriented contracts that extend blockchain with business functionality.
Description based on publisher supplied metadata and other sources.
Electronic reproduction. Ann Arbor, Michigan : ProQuest Ebook Central, 2024. Available via World Wide Web. Access may be limited to ProQuest Ebook Central affiliated libraries.
There are no comments on this title.