Cargando…

Hands-On Blockchain for Python Developers : Gain Blockchain Programming Skills to Build Decentralized Applications Using Python.

This book is for Python developers to implement various components of end-to-end decentralized applications such as cryptocurrencies, smart contracts, wallet and more. You will use the example-based approach using various libraries from Python ecosystem to build efficient and powerful blockchain app...

Descripción completa

Detalles Bibliográficos
Clasificación:Libro Electrónico
Autor principal: Kok, Arjuna Sky
Formato: Electrónico eBook
Idioma:Inglés
Publicado: Birmingham : Packt Publishing Ltd, 2019.
Temas:
Acceso en línea:Texto completo
Tabla de Contenidos:
  • Cover; Title Page; Copyright and Credits; About Packt; Foreword; Contributors; Table of Contents; Preface; Section 1: Blockchain and Smart Contracts; Chapter 1: Introduction to Blockchain Programming; The rise of cryptocurrency and blockchain; Blockchain technology; Signing data in blockchain; From linked list to blockchain; Cryptography; Symmetric and asymmetric cryptography; The hashing function; Proof of work; Consensus; Coding on the blockchain; Other types of blockchain programmers; Summary; References; Chapter 2: Smart Contract Fundamentals
  • Installing an Ethereum development environmentInstalling Node.js; Installing Truffle and Solidity; Installing Ganache; Writing a smart contract; Deploying a smart contract to Ethereum blockchain; Interacting with smart contracts; Sending ether to smart contracts; Why smart contracts?; Summary; Further reading; Chapter 3: Implementing Smart Contracts Using Vyper; Motivations behind Vyper; Installing Vyper; Creating a smart contract with Vyper; Deploying a smart contract to Ganache; Interacting with smart contracts; Going deeper into Vyper; Data types; Withdrawing ethers; Other data types
  • Useful built-in functionsEvents; Interacting with other smart contracts; Compiling code programmatically; Other tricks; Summary; Section 2: Web3 and Populus; Chapter 4: Interacting with Smart Contracts Using Web3; Introduction to decentralized applications; Installing web3; Geth; Geth console; Understanding the web3.py library; Gas and gas price; Nonce; Creating a transaction on Rinkeby; Interacting with smart contracts using web3.py; Launching a smart contract with Geth; Launching a smart contract with web3; Playing with a smart contract; Summary; Chapter 5: Populus Development Framework
  • Setting up PopulusAdding support for Vyper; Smart contract unit test; Using arguments in the constructor; Deploying a smart contract with Populus; Summary; Chapter 6: Building a Practical Decentralized Application; Developing a simple voting application; Deploying a smart contract that has arguments in its constructor; Developing a commercial voting application; Developing a token-based voting application; Summary; Further reading; Section 3: Frontend Decentralized Applications; Chapter 7: Frontend Decentralized Application; Setting up the Qt GUI library; Choosing a GUI library
  • Installing Qt for PythonCrash course on Qt for Python; Layout; Other widgets; Callback; Threading; Writing the smart contract for the Twitter-like application; Test; Fixtures; Building the GUI frontend for the Twitter-like application; Summary; Section 4: Cryptocurrency and Wallets; Chapter 8: Creating Token in Ethereum; Token smart contract; Mist; ERC20; Selling a token; Stable coin; Summary; Further reading; Chapter 9: Cryptocurrency Wallet; Advanced features of the PySide2 library; Testing application; Advanced features of Qt for Python or PySide2; Building a cryptocurrency wallet