Explain the Architecture of Blockchain.

Blockchain Architecture 

• Blockchain is a growing list of records, called blocks, that are linked and secured using cryptography. 

• Each block has the following key components: data, hash, previous hash, and metadata (timestamp, block number). 

• Blockchain is a chain of blocks which contain specific information (database), but in a secure and genuine way that is grouped together in a network (peer-to-peer). 

Key component of BlockChain 

Data in a block could be a simple string such as “Blockchain Data Structure” or a list of transactions.

Hash is a unique identifier for a block and is analogous to a fingerprint for a human. 

Previous Hash is the hash value of the previous block in the blockchain. 

Metadata is information about the data; e.g. block number, timestamp, etc. 

• Hash is calculated by cryptographic algorithms employed in the blockchain. They take a block's data and its previous hash value as input and determine its hash. 

• Hash = function (data, previous hash, metadata)