Book Image

Foundations of Blockchain

By : Koshik Raj
Book Image

Foundations of Blockchain

By: Koshik Raj

Overview of this book

Blockchain technology is a combination of three popular concepts: cryptography, peer-to-peer networking, and game theory. This book is for anyone who wants to dive into blockchain from first principles and learn how decentralized applications and cryptocurrencies really work. This book begins with an overview of blockchain technology, including key definitions, its purposes and characteristics, so you can assess the full potential of blockchain. All essential aspects of cryptography are then presented, as the backbone of blockchain. For readers who want to study the underlying algorithms of blockchain, you’ll see Python implementations throughout. You’ll then learn how blockchain architecture can create decentralized applications. You’ll see how blockchain achieves decentralization through peer-to-peer networking, and how a simple blockchain can be built in a P2P network. You’ll learn how these elements can implement a cryptocurrency such as Bitcoin, and the wider applications of blockchain work through smart contracts. Blockchain optimization techniques, and blockchain security strategies are then presented. To complete this foundation, we consider blockchain applications in the financial and non-financial sectors, and also analyze the future of blockchain. A study of blockchain use cases includes supply chains, payment systems, crowdfunding, and DAOs, which rounds out your foundation in blockchain technology.
Table of Contents (14 chapters)

A Bit of Cryptography

This chapter will cover all the basics of cryptography that are required for you to understand the vital role it plays in blockchain technology. We will delve deeply into all the aspects of cryptography that blockchain relies on. We will explain a few concepts in practical terms so that we can implement them with ease in later chapters. These include the following:

  • Cryptography in blockchain
  • Classical cryptography
  • Cryptographic primitives
  • Merkle trees
  • Encoding schemes

Modern cryptography is the study of private or secure communication. The fundamental objective of cryptography is to enable two people to communicate over an unsecure medium. This is achieved by encrypting a plaintext from the sender to form a ciphertext that can only be decrypted by the receiver, with whom the sender shares a secret. However, third parties can access the channel by which...