舉報

會員
Learn Blockchain Programming with JavaScript
LearnBlockchainProgrammingwithJavaScriptbeginsbygivingyouaclearunderstandingofwhatblockchaintechnologyis.You’llthensetupanenvironmenttobuildyourveryownblockchainandyou’lladdvariousfunctionalitiestoit.Byaddingfunctionalitiestoyourblockchainsuchastheabilitytominenewblocks,createtransactions,andsecureyourblockchainthroughaproof-of-workyou’llgainanin-depthunderstandingofhowblockchaintechnologyfunctions.Asyoumakeyourwaythroughthechapters,you’lllearnhowtobuildanAPIservertointeractwithyourblockchainandhowtohostyourblockchainonadecentralizednetwork.You’llalsobuildaconsensusalgorithmanduseittoverifydataandkeeptheentireblockchainnetworksynchronized.Intheconcludingchapters,you’llfinishbuildingyourblockchainprototypeandgainathoroughunderstandingofwhyblockchaintechnologyissosecureandvaluable.Bytheendofthisbook,you'llunderstandhowdecentralizedblockchainnetworksfunctionandwhydecentralizationissuchanimportantfeatureforsecuringablockchain.
目錄(135章)
倒序
- coverpage
- Title Page
- About Packt
- Why subscribe?
- Packt.com
- Contributors
- About the author
- 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
- Conventions used
- Get in touch
- Reviews
- Setting up the Project
- What is a blockchain?
- What you will learn...
- Environment setup
- Project source code
- Summary
- Building a Blockchain
- Before we get building...
- An explanation of the JavaScript constructor function
- Explanation of the prototype object
- Blockchain constructor function
- Building the createNewBlock method
- Testing the createNewBlock method
- Testing the Blockchain constructor function
- Testing the createNewBlock method
- Building the getLastBlock method
- Creating the createNewTransaction method
- Testing the createNewTransaction method
- Adding a pending transaction to our blockchain
- Hashing the data
- Understanding the SHA256 hashing function
- The hashBlock method
- Testing the hashBlock method
- What is a Proof of Work?
- Creating the proofOfWork method
- Testing the proofOfWork method
- Creating a genesis block
- Testing the genesis block
- Summary
- Accessing the Blockchain through an API
- Setting up Express.js
- Installing Express.js
- Using Express.js
- Building the API foundation
- Installing Postman and body-parser
- Installing Postman
- Building the /blockchain endpoint
- Testing the /blockchain endpoint
- Building the /transaction endpoint
- Testing the /transaction endpoint
- Building the /mine endpoint
- Testing the endpoints
- /mine endpoint testing
- Testing the / blockchain endpoint
- Testing the /transaction endpoint
- Summary
- Creating a Decentralized Blockchain Network
- Creating multiple nodes
- Running multiple instances of networkNode.js
- Testing the multiple nodes
- Adding the currentNodeUrl
- New endpoints outline
- Defining the /register-and-broadcast-node endpoint
- Creating the /register-node endpoint
- The difference between register-and-broadcast-node and register-node endpoint
- Defining the /register-nodes-bulk endpoint
- Understanding how all of the endpoints work together
- Building the /register-and-broadcast-node endpoint
- Continuing to work on the /register-and-broadcast-node endpoint
- A quick recap of how the register-and-broadcast-node endpoint functions
- Building the /register-node endpoint
- Testing the /register-node endpoint
- Installing the request library
- Endpoint testing
- Building the /register-nodes-bulk endpoint
- Testing the /register-nodes-bulk endpoint
- Testing all of the network endpoints
- Summary
- Synchronizing the Network
- Understanding the need to synchronize the network
- Refactoring the createNewTransaction method and the /transaction endpoint
- Modifications to the createNewTransaction method
- Building the addTransactionToPendingTransactions method
- Building the /transaction/broadcast endpoint
- Refactoring the /transaction endpoint
- Testing the transaction endpoints
- Recapping how to create the network
- Testing the transaction endpoints
- Updating the mining information
- The updated mining process
- Refactoring the /mine endpoint
- Building the /receive-new-block endpoint
- Testing the new and updated /mine endpoints
- Summary
- Consensus Algorithms
- What is the consensus algorithm ?
- Building the chainIsValid method
- Testing the chainIsValid method
- Verifying the output of the test
- A tiny modification to verify the results properly
- Building the /consensus endpoint
- Quick review of the build process
- Testing the /consensus endpoint
- Summary
- Block Explorer
- What is a block explorer?
- Defining the block explorer endpoints
- Building the getBlock method
- Building the /block/:blockHash endpoint
- Testing the /block/:blockHash endpoint
- Defining the getTransaction method
- Building the /transaction/:transactionId endpoint
- Testing the /transaction/:transactionId endpoint
- Adding new transactions and blocks to the blockchain
- Testing the endpoint
- Building the getAddressData method
- Knowing the balance
- Developing the /address/:address endpoint
- Testing the /address/:address endpoint
- Adding the block explorer file
- Building the /block-explorer endpoint
- Block explorer file explanation
- Testing our block explorer
- Summary
- In conclusion...
- A quick review
- Areas of improvement
- Other Books You May Enjoy
- Leave a review - let other readers know what you think 更新時間:2021-06-10 18:41:08
推薦閱讀
- ServiceNow Application Development
- PHP基礎案例教程
- 技術領導力:程序員如何才能帶團隊
- Node.js全程實例
- Visual FoxPro程序設計習題集及實驗指導(第四版)
- IBM Cognos Business Intelligence 10.1 Dashboarding cookbook
- SSM開發實戰教程(Spring+Spring MVC+MyBatis)
- 大話Java:程序設計從入門到精通
- OpenStack Networking Essentials
- Zabbix Performance Tuning
- Arduino可穿戴設備開發
- Mastering Embedded Linux Programming
- R語言實戰(第2版)
- Extending Docker
- Learning RSLogix 5000 Programming
- Java無難事:詳解Java編程核心思想與技術
- 計算機教學研究與實踐:2017學術年會論文集
- Building Web Applications with Flask
- Activiti權威指南
- 數據庫技術及應用(Access)(第2版)
- Hands-On Exploratory Data Analysis with Python
- Responsive Web Design with HTML5 and CSS3 Essentials
- Mastering Python Data Analysis
- Python編程輕松進階
- Learning Sinatra
- 智能風控平臺:架構、設計與實現
- Delphi Cookbook
- Java Web輕量級開發全體驗
- H5安全開發實踐教程
- UiPath RPA開發:入門、實戰與進階