How does the Blockchain work?

How does the Blockchain work?

Any idea about Blockchain?

Well,

Let's see first, what Blockchain is! and then we will discuss how it works.

Blockchain is a chain of data blocks stored in hundred or thousands or even millions of computers (servers) distributed over a wide geographical area. It is a complete ledger that maintains a copy of all the credit/debit(not in all cases) transactions of digital assets. It is based on decentralized technologies.

Eg. Bitcoin is a great example of a blockchain application or we can say it works on decentralized principle. That means when a new Node(server) is added to the bitcoin network, it is impossible to modify or delete that node. It works on a Peer-to-Peer(P2P) network, where each Peer acts as a server.

Peer-to-Peer(P2P) network model

This diagram describes how a P2P network is established in a blockchain network.

I'm pretty sure, now you have got an idea about blockchain and P2P networks.

Great!



Now, let's see how blockchain works.

Excited?

Me too!

We can define the blockchain as a system that allows the group of connected computers to maintain a single updated and secured ledger. As we know blockchain is consists of a chain of blocks, for every new transaction, a new block needs to create.

So, how a block(node) is created inside the blockchain network?

The very first step of creating a block is, a user must request for a transaction to be added to the blockchain network, also that transaction must include some required information(like transaction id, hash id, timestamp, etc).

After the transaction is verified, the second step is, a new block is created into the blockchain network(but not added).

Once a block is created, then it will broadcast to a P2P(Peer-to-Peer) network. P2P networks also consist of blocks(nodes). Then, the one P2P node verifies the transaction.

After successfully verifying, the transaction again moves to the next stage, that is, other nodes in that network also need to verify, since all nodes are interlinked with each other.

and here comes to the last stage, that is

Once the transaction is validated by other nodes in the network, then the block is ready to go. And now, the block(transaction) is added to the existing blockchain network.

That is how the blockchain works.

I know it is kind of a bit confusing if you are new to blockchain. But trust me, once you understand it, it will be fun for you.

Like me :) haha

Cool!

Also, check out my other articles on the blockchain(links below).

Thanks for reading my article.

See you soon with a new topic!

Till then, drink coffee and write code.


要查看或添加评论,请登录

Saroj B.的更多文章

  • How to create an NFT in Solidity? With Example!

    How to create an NFT in Solidity? With Example!

    Well, today we will see, how we can create a simple NFT using the Solidity programming language. And, we will also see,…

    3 条评论
  • What is NFT? And how it be useful in the coming Future?

    What is NFT? And how it be useful in the coming Future?

    So today we will discuss NFT, and how it can be useful in the coming future. NFT stands for Non-Fungible Token, and it…

    2 条评论
  • Blockchain use cases in the Banking Industry

    Blockchain use cases in the Banking Industry

    Blockchain technology has the potential to significantly disrupt the banking industry by increasing efficiency…

    3 条评论
  • Ethereum Fork History

    Ethereum Fork History

    Ethereum! As many of you know, Ethereum is a decentralized, open-source blockchain with smart contract functionality…

  • Deploying a Smart Contract with Truffle Ganache

    Deploying a Smart Contract with Truffle Ganache

    What is Ganache? Today we will see how we can deploy a smart contract with the help of truffle ganache. Ethereum…

  • Complete Solidity Code Deployment Process

    Complete Solidity Code Deployment Process

    Solidity! I guess many of you know, that Solidity is the programing language for Ethereum smart contract development…

    4 条评论
  • Smart Contract and its Compilation Process

    Smart Contract and its Compilation Process

    Smart Contract! Before starting the smart contract I hope all of you know about the simple contract. Right? What is a…

  • Ethereum's Four Stages of Development

    Ethereum's Four Stages of Development

    Ethereum! What is an Ethereum? Many of you know, that Ethereum is the native blockchain of ETH cryptocurrency. Yup.

  • Blockchain Developer Roadmap!

    Blockchain Developer Roadmap!

    I am sure, if you are reading this then you are interested in the blockchain. Right? So, as you know, this technology…

  • What is Ethereum?

    What is Ethereum?

    Ethereum! Any idea? Ethereum is often described as "the world computer". But what does that mean? Let's start with a…

    2 条评论

社区洞察

其他会员也浏览了