Book Image

Blockchain Quick Reference

By : Mariko Amekodommo, Brenn Hill, Samanyu Chopra, Paul Valencourt
Book Image

Blockchain Quick Reference

By: Mariko Amekodommo, Brenn Hill, Samanyu Chopra, Paul Valencourt

Overview of this book

Blockchain Quick Reference takes you through the electrifying world of blockchain technology and is designed for those who want to polish their existing knowledge regarding the various pillars of the blockchain ecosystem. This book is your go-to guide, teaching you how to apply principles and ideas for making your life and business better. You will cover the architecture, Initial Coin Offerings (ICOs), tokens, smart contracts, and terminologies of the blockchain technology, before studying how they work. All you need is a curious mind to get started with blockchain technology. Once you have grasped the basics, you will explore components of Ethereum, such as ether tokens, transactions, and smart contracts, in order to build simple Dapps. You will then move on to learning why Solidity is used specifically for Ethereum-based projects, followed by exploring different types of blockchain with easy-to-follow examples. All this will help you tackle challenges and problems. By the end of this book, you will not only have solved current and future problems relating to blockchain technology but will also be able to build efficient decentralized applications.
Table of Contents (24 chapters)

Blocks

The transaction data is recorded in files, and these files are known as blocks. The blocks are stacked on top of one another, the most recent block being at the top. The following table depicts the structure of the block and the size of the elements in a block:

Every block in the Bitcoin network has almost the same structure, and each of the blocks is chained to the most recent block. These are the fields of the block:

  • Magic number: This number is an identifier for the blockchain network. Its value is always constant at 0xD9B4BEF9. It confirms the start of the block and verifies that the data is from the production network.
  • Block size: This signifies the size of the block.
  • Block header: A header contains the metadata of the block. It comprises multiple items of data, such as the Bitcoin version, the previous block hash, Merkle root, timestamp, mining difficulty, and nonce...