ABSTRACT

Cryptocurrency is a new kind of money used for purchasing goods and services via payment system that uses peer-to-peer (P2P) technology. The transactions of these currencies are cryptographically verified as well as validated without any centralized authority to monitor or regulate the money value and production of additional units of money. The primary objective of cryptocurrency is to revolutionize the way in which the global markets are connected to each other thereby clearing the barriers surrounding normative national currencies and exchange rates. In general, any cryptocurrency is composed of three sections, namely blockchain, wallets, and mining. Blockchain is a distributed ledger that bundles the transactions as blocks after the successful verification and validation using the consensus algorithm implemented in the nodes of P2P networks which are later chained together using the hash codes of each block. This chapter explains various steps involved in developing your own blockchain using Javascript which is validated using the test-driven development (TDD) approach, thereby end up with a developer friendly API.