Blockchain is a
A blockchain network consists of nodes, a distributed ledger, an asset, and a consensus algorithm. Sometimes, it also includes a virtual machine and a state database.
The components of a blockchain network are explained in detail below.
Nodes form the structure of the blockchain network. Nodes on the network are tasked with different responsibilities, such as a
The distributed ledger is also known as the database of the blockchain. Every node on the network has a copy of the ledger to provide
An asset can be virtually anything, either physical or non-physical, having a value recognized by the nodes in the network. Some examples of assets are as follows:
Financial transactions: Blockchains like Bitcoin and Dogecoin use a ledger to store the data of transactions of their cryptocurrencies.
Code blocks: Blockchains like Ethereum use it to store code in the form of smart contracts, which serves as the basis of the concept of Dapps.
Medical records: Private blockchains usually store patients’ medical records to maintain integrity in an untrustworthy environment.
Business transactions: Businesses can use private blockchains while performing transactions involving other businesses to ensure the integrity of the product and that certain conditions are met, leading to more security and accountability.
A consensus algorithm is what makes blockchain a successful alternative for centralized applications. In the case of centralized applications, the central authority is trusted by all users to execute the transactions reliably. However, in the absence of a central authority, this responsibility falls upon the nodes in the network. Blockchains use consensus algorithms like Proof of Work (POW) and Proof of Stake (POS) to reach consensus in an untrustworthy environment. The consensus algorithm sends the transaction performed by the miner to the validator nodes to reach a consensus. If consensus is reached, the transaction is added to the ledger, or else it is discarded.
Blockchains like Ethereum run virtual machines on their nodes. They are used to execute code written in
It is a
Free Resources