A beginner's guide to Blockchain
Tags: blockchain, javascript, dapps, typescript
Published: 2021-04-06 09:33:12

## Concept of Blockchain

Imagine an open platform in which anyone can join similar to whatsapp groups, before any message is delievered on this platform it most go through validation (certain rules set by the group), this validation is done by some selected platform members known as validators. 
    Also anyone who joins in will have a copy of all previous messages sent to the platform, say the platform was created on the 3rd of January and you joined on the 10th of Febuary, you will get a copy of all messages sent to the group since it creation. 
    Lastly every new message successfully delievered will come along with previous messages and everyone has their own copy. 

That is it, in a simple level this is what blockchain is, the message delievered on the platform represents a **block** (which is a record of data), and the messages are delievered along with previous messages and that creates a chain of messages hence **blockchain** (records of data that are chain together by a cryptographic algorithm).    
The validators are responsible for verifying that a block is valid within the blockchain, so they check that the block is not malicious and that it conforms to the rules of the system.

## What is Blockchain
The blockchain is a timestamped series of immutable records of data managed by tons of computers and not controlled by a single entity ( eg: Google, Amazon, Reddit etc ). 

An example of what a block looks like
![Alt Text](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/7y1ntzm9dhk72roh2dem.png)

_source_: https://etherscan.io/

From the above this looks like a ledger where activities of this block is recorded. 

Okay Charles why is this really important? 
## Why Blockchain 
The nature of blockchain brings a lot of ground breaking benefits, in fact it is the game changer! some of these benefits includes. 
  1. Decentralization
  1. Immutability
  1. Transparency

#### Decentralization
Most applications makes use of a centralized system, an example of such are your bank apps. The problem with this system is, if for whatever reason the system is down, the users wont be able to use the app. Also if for whatever reason the system crashes the users looses all their money (terrible!).
Blockchain is a decentralized system in that records are stored in various nodes (computers) participating in the network.  

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/e9ksz28u3nudq04tc1pg.png)
_source_: https://101blockchains.com/decentralized-vs-centralized/

#### Immutability
Informations such as your account balance and transactions are stored in a central database. Lets say you have $5000 in you bank account, if an attacker have access to the central database, the attacker can easily update your $5000 to $500 and that becomes your new balance. 
Due to the nature of blockchain which nodes in the network has copy of all records on the blockchain if an attacker decides to update a users account balance in a specific node he/she will also need to update that users account balance in all other nodes which is not possible.

#### Transparency
This is one of the most misunderstood concept of blockchain, alot of folks think blockchain is like a __"black market"__ where users activities are hidden. Well that is not true. 
This misconception comes from the fact that on the blockchain network a user is not know by their fullname, username or email but by their address. 
An example of such address is ![Alt Text](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/41i6osca24cwh26x4foz.png)
The blockchain is transparent to everyone on the network and whatever transaction an address does is known by everyone (Remember every node has a copy!).      

## Summary
Blockchain is an open ledger which all transactions done on the network is open to everyone, It is not owned by one person so no one person can bring it down, It is immune to attackers. 


Blockchain is still relatively new and there are still much to learn. I hope this article helps you have at least a little understanding of what blockchain is.     For a more in-depth study I will recommend https://blockgeeks.com/guides/what-is-blockchain-technology/#Is_Blockchain_Technology_the_New_Internet

__NB:__ Yes blockchain is not **Bitcoin**, Bitcoin use the blockchain technology for its processes, and because Bitcoin was the first to successfully used this technology people use both words interchangeably.