Search icon CANCEL
Subscription
0
Cart icon
Cart
Close icon
You have no products in your basket yet
Save more on your purchases!
Savings automatically calculated. No voucher code required
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Foundations of Blockchain

You're reading from  Foundations of Blockchain

Product type Book
Published in Jan 2019
Publisher Packt
ISBN-13 9781789139396
Pages 372 pages
Edition 1st Edition
Languages
Concepts
Author (1):
Koshik Raj Koshik Raj
Profile icon Koshik Raj
Toc

Table of Contents (14) Chapters close

Preface 1. Introduction 2. A Bit of Cryptography 3. Cryptography in Blockchain 4. Networking in Blockchain 5. Cryptocurrency 6. Diving into Blockchain - Proof of Existence 7. Diving into Blockchain - Proof of Ownership 8. Blockchain Projects 9. Blockchain Optimizations and Enhancements 10. Blockchain Security 11. When Shouldn't We Use Blockchain? 12. Blockchain Use Cases 13. Other Books You May Enjoy

Building a simple blockchain in a P2P network

In Chapter 3, Cryptography in Blockchain, we explored how a consensus can be achieved in a decentralized network with the help of algorithms such as proof-of-work. Since consensus algorithms ensure that the Byzantine failure problem can be solved, a global truth can be maintained in a decentralized network in which there is no trust between the peers. Although consensus algorithms provide a convenient way to maintain a public ledger, each node has to perform a set of operations to maintain the ledger in a distributed network.

We have already created a simple blockchain application that can continuously enlarge its records whenever we have new data to be inserted. Because our blockchain application was deployed and the blocks were created in a single system, we have not yet added any mechanisms to validate the blocks. But when we deploy...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at €14.99/month. Cancel anytime}