舉報

會員
Hands-On Blockchain for Python Developers
Blockchainisseenasthemaintechnologicalsolutionthatworksasapublicledgerforallcryptocurrencytransactions.Thisbookservesasapracticalguidetodevelopingafull-fledgeddecentralizedapplicationwithPythontointeractwiththevariousbuildingblocksofblockchainapplications.Hands-OnBlockchainforPythonDevelopersstartsbydemonstratinghowblockchaintechnologyandcryptocurrencyhashingworks.Youwillunderstandthefundamentalsandbenefitsofsmartcontractssuchascensorshipresistanceandtransactionaccuracy.Asyousteadilyprogress,you'llgoontobuildsmartcontractsusingVyper,whichhasasimilarsyntaxtoPython.Thisexperiencewillfurtherhelpyouunraveltheotherbenefitsofsmartcontracts,includingreliablestorageandbackup,andefficiency.You'llalsouseweb3.pytointeractwithsmartcontractsandleveragethepowerofboththeweb3.pyandPopulusframeworktobuilddecentralizedapplicationsthatoffersecurityandseamlessintegrationwithcryptocurrencies.Asyouexplorelaterchapters,you'lllearnhowtocreateyourowntokenontopofEthereumandbuildacryptocurrencywalletgraphicaluserinterface(GUI)thatcanhandleEthereumandEthereumRequestforComments(ERC-20)tokensusingthePySide2library.Thiswillenableuserstoseamlesslystore,send,andreceivedigitalmoney.Towardtheend,you'llimplementInterPlanetaryFileSystem(IPFS)technologyinyourdecentralizedapplicationtoprovideapeer-to-peerfilesystemthatcanstoreandexposemedia.Bytheendofthisbook,you'llbewell-versedinblockchainprogrammingandbeabletobuildend-to-enddecentralizedapplicationsonarangeofdomainsusingPython.
目錄(180章)
倒序
- coverpage
- Title Page
- Copyright and Credits
- Hands-On Blockchain for Python Developers
- About Packt
- Why subscribe?
- Packt.com
- Foreword
- Contributors
- About the author
- About the reviewer
- 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
- Conventions used
- Get in touch
- Reviews
- Section 1: Blockchain and Smart Contracts
- 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
- Smart Contract Fundamentals
- Installing an Ethereum development environment
- Installing 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
- 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 functions
- Events
- Interacting with other smart contracts
- Compiling code programmatically
- Other tricks
- Summary
- Section 2: Web3 and Populus
- 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
- Populus Development Framework
- Setting up Populus
- Adding support for Vyper
- Smart contract unit test
- Using arguments in the constructor
- Deploying a smart contract with Populus
- Summary
- 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
- Frontend Decentralized Application
- Setting up the Qt GUI library
- Choosing a GUI library
- Installing Qt for Python
- Crash 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
- Creating Token in Ethereum
- Token smart contract
- Mist
- ERC20
- Selling a token
- Stable coin
- Summary
- Further reading
- Cryptocurrency Wallet
- Advanced features of the PySide2 library
- Testing application
- Advanced features of Qt for Python or PySide2
- Building a cryptocurrency wallet
- Blockchain class
- Thread classes
- Identicon and Icons
- Building widgets
- Account widget
- Sending a transaction widget
- Token widget
- Test
- Considerations when building a cryptocurrency wallet
- Security
- User experience
- Summary
- Section 5: Decentralized Filesystem
- InterPlanetary - A Brave New File System
- The motivation behind IPFS
- Merkle DAG
- Merkle tree
- Directive Acrylic Graphs (DAGs)
- Content addressing
- The Merkle DAG data structure
- Peer-to-peer networking
- The notion of closeness of data and nodes
- XOR distance
- Buckets
- Summary
- Using ipfsapi to Interact with IPFS
- Installing the IPFS software and its library
- Content hashing
- Protobuf
- Multihash
- Base58
- Combining protobuf multihash and base58
- The ipfsapi API
- IPNS
- Pinning
- Pubsub
- Mutable File System
- Other APIs
- Summary
- Further reading
- Implementing a Decentralized Application Using IPFS
- Architecture of the decentralized video-sharing application
- Architecture of a video-sharing smart contract
- Architecture of a video-sharing web application
- Writing the video-sharing smart contract
- Launching a private Ethereum blockchain
- Creating a bootstrap script
- Building the video-sharing web application
- Views
- Models
- Templates
- Urls
- Demo
- Note
- Summary
- Further reading
- Other Books You May Enjoy
- Leave a review - let other readers know what you think 更新時間:2021-07-02 13:13:35
推薦閱讀
- 感官的盛宴:數(shù)學(xué)之眼看藝術(shù)(萬物皆數(shù)學(xué))
- Advanced Blockchain Development
- Data Visualization:a successful design process
- 這才是好看的數(shù)學(xué)
- 一個定理的誕生:我與菲爾茨獎的一千個日夜
- 數(shù)學(xué)也可以這樣學(xué):自然、空間和時間里的數(shù)學(xué)
- 數(shù)學(xué)實(shí)驗(yàn)教程
- 數(shù)學(xué)與決策:數(shù)學(xué)教你做決定
- ANSYS 12.0有限元分析完全手冊
- 10堂極簡概率課
- 基于變分法的細(xì)胞演化建模
- Security with Go
- 這才是好讀的數(shù)學(xué)史
- 數(shù)學(xué)要素(全彩圖解 + 微課 + Python編程)
- 基于ANSYS的信號和電源完整性設(shè)計與分析(第2版)
- 迷人的數(shù)學(xué)+美麗的數(shù)學(xué)(共2冊)
- 高等數(shù)學(xué)(上冊)
- 12堂魔力數(shù)學(xué)課
- ANSYS Workbench機(jī)械工程應(yīng)用精華30例
- 機(jī)器學(xué)習(xí)數(shù)學(xué)基礎(chǔ)
- 2019年管理類專業(yè)學(xué)位聯(lián)考綜合能力考試數(shù)學(xué)精選500題(20套全真試卷及詳解)
- 錢敏數(shù)學(xué)文選
- 應(yīng)用工程數(shù)學(xué)
- 數(shù)學(xué)糖果1
- 數(shù)學(xué)教學(xué)探索與研究
- 機(jī)會的數(shù)學(xué):統(tǒng)計學(xué)入門
- 趣味數(shù)學(xué)
- 每天學(xué)點(diǎn)速算技巧(最強(qiáng)大腦思維訓(xùn)練系列)
- 數(shù)學(xué)思維
- 線性代數(shù)與概率統(tǒng)計學(xué)習(xí)指南:富媒體