How Blockchain Works in Simple Terms - HCode Technologies
How Blockchain Works in Simple Terms - HCode Technologies
Simple Terms
Blockchain is a fascinating technology that has piqued the interest of many people,
but its inner workings can be quite hard to understand. When searching online for
information, the explanations available are often repetitive and generic, failing to
satisfy the curiosity of those seeking to truly understand what blockchain is and how
it functions.
Blockchain doesn't look like blocks connected with chains; it is just a collection of
data, in encrypted form, stored in a ledger format. Actual encrypted data looks like
the image below.
Data:
Alt Text - Example of data that can be converted into hash.
Hash:
When the data is distributed among so many parties and systems; it becomes next
to impossible to tamper with the records. Because even if someone does, records
from the majority systems will say otherwise and the fraudulent record will be
discarded.
In simple terms -
But that’s just one way to tamper with data. Blockchain is one of the safest publicly
available technology, i.e. it has many other protection layers to protect it against
double-spending, hackers, etc. Let us discuss this along with answering how
blockchain works in simple terms.
Blockchain Mining Process
Alt Text- An image demonstrating the blockchain mining process. Robots are creating blocks and
data encryption is under process.
To understand blockchain we need to define some terms that we are not familiar
with:
Hash: A hash is a unique string of characters generated from data using a specific
algorithm, like SHA-256. It's not random; the same input always produces the same
output. (Showed above)
Miners: Miners are participants in the network who use powerful computers to
compete to create new blocks. They don't verify transactions directly but instead
validate blocks by solving complex mathematical puzzles.
Private and Public Key: A private key is a secret code known only to its owner and
is used to sign transactions. A public key, derived from the private key, is shared
publicly and used to verify the signature and ensure the transaction's authenticity.
Consensus Mechanism: This is a method used to ensure that all participants in the
network agree on the validity of transactions and the state of the blockchain.
Examples include Proof of Work (PoW) and Proof of Stake (PoS).
Let us assume that Sohan wants to buy a car from Mohan via Ethereum. So what he
does is, add Mohan’s account details and send him the ETHs.
Alt Text - A flow chart demonstrating the working of blockchain, step by step. From data request,
verification, encryption, and block formation to Proof of Work and the addition of a block into a
blockchain.
The nonce is a number used in the Proof of Work (PoW) mining process, which we
have discussed in more detail further in the article.
They ensure all participants agree on the validity and order of transactions, creating
a secure and trustworthy system. In the case of Ethereum, it is Proof of Work (PoW).
PoW is a system designed to authenticate the data entry process without being
monopolized. PoW ensures everyone agrees on the order of transactions and
prevents unauthorized modifications to the blockchain.
But how does blockchain ensure that no benefiting party is involved in the mining
process?
But, if someone picks the block that he wants to modify and uses high computing
power to solve the problem faster, how will the rest of the miners compete?
But thankfully, this problem is also accounted for with the introduction of nounce. It is
a random number added to the block data before hashing which is different for each
miner. It helps prevent miners from simply copying other miners' attempts and makes
the puzzle unique for each miner.
So even with more computing power, a miner may still struggle to find the right hash
because they have a different puzzle altogether. And someone, with less computing
power, might even solve it on its first try.
Step - 4 Integration
Once a miner solves the puzzle, they can add the block to the blockchain. The miner
then notifies the network about the successful addition of the block, which is later
confirmed by another miner. After confirmation, the block is successfully added
reaching its finality.
The block is now there, which can be checked by everyone; but no one can edit or
change it ever again.
Intriguing right!!
Well, we know it still doesn't cover nodes and how the PoW works, but that’s a topic
for another day. Till then- read our other articles to get more exciting blockchain
information.
Conclusion
Blockchain technology has become widely known through cryptocurrencies, but its
potential lies beyond that. It can be applied in healthcare, finance, cloud computing,
and many other fields.
Blockchain technology offers a lot more than just smart contracts. It provides a
secure and tamper-proof solution for applications where trust is essential during the
development, scaling, and implementation stages. This is where Hcode comes in.
We work with you to determine the challenges you are facing and develop
blockchain-powered solutions that enable you to take advantage of this technology's
potential without being overwhelmed by technical complexities.