<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Saroj</title>
    <description>The latest articles on DEV Community by Saroj (@sarojvrc).</description>
    <link>https://dev.to/sarojvrc</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F757663%2F2add688b-ec7f-41fd-aa31-25c5e4f0960a.jpg</url>
      <title>DEV Community: Saroj</title>
      <link>https://dev.to/sarojvrc</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/sarojvrc"/>
    <language>en</language>
    <item>
      <title>Ethereum's Four Stages of Development</title>
      <dc:creator>Saroj</dc:creator>
      <pubDate>Sun, 14 Aug 2022 12:48:34 +0000</pubDate>
      <link>https://dev.to/sarojvrc/ethereums-four-stages-of-development-1ahg</link>
      <guid>https://dev.to/sarojvrc/ethereums-four-stages-of-development-1ahg</guid>
      <description>&lt;p&gt;&lt;strong&gt;Ethereum&lt;/strong&gt;!&lt;/p&gt;

&lt;p&gt;What is an Ethereum?&lt;/p&gt;

&lt;p&gt;Many of you know, that Ethereum is the native blockchain of ETH cryptocurrency.&lt;/p&gt;

&lt;p&gt;Yup.&lt;/p&gt;

&lt;p&gt;Not only this, it has a lot of other features. Once go through my previous article about Ethereum to learn more about it.&lt;/p&gt;

&lt;p&gt;Well,&lt;/p&gt;

&lt;p&gt;So, what are the four stages of Ethereum's development?&lt;/p&gt;

&lt;p&gt;As might few of you know, Ethereum's development was planned over four distinct stages, with major changes occurring at each stage. A stage may include a sub-release, known as hard fork, that changes functionality in a way that is not backward compatible.&lt;/p&gt;

&lt;p&gt;The four main development stages are codenamed &lt;em&gt;Frontier, Homestead, Metropolis, and Serenity&lt;/em&gt;. The intermediate hard forks that have occurred (or are planned) to date are codenamed &lt;em&gt;Ice Age, DAO, Tangerine, Whistle, Spurious, Dragon, Byzantium, and Constantinople&lt;/em&gt;. Let's see below all of these development stages and the intermediate hard forks with the block numbers.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Frontier (Block #0)&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Frontier is the initial stage of Ethereum, lasting from July 30, 2015, to March 2016,&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Ice Age (Block #200000)&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;It is a hard fork to introduce an exponential difficulty increase, to motivate a transaction to PoS when ready.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Homestead (Block #1150000)&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Homestead is the second stage of Ethereum, launched in March 2016.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;DAO (Block #1192000)&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;DAO is a hard fork that reimbursed victims of the hacked DAO contract and caused Ethereum and Ethereum Classic to split into two competing systems.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Tangerine Whistle (Block #2463000)&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;It is a hard fork to change the gas calculation for certain I/O-heavy operations and to clear the accumulated state from a denial-of-service(DoS) attack that exploited the low gas cost of those operations.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Spurious Dragon (Block #2675000)&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Spurious Dragon is a hard fork to address more DoS attack vectors and another state clearing. Also, a replay attack protection mechanism.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Metropolis Byzantium (Block #4370000)&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Metropolis is the third stage of Ethereum, launched in October 2017. Byzantium is the first two hard forks planned for Metropolis.&lt;/p&gt;

&lt;p&gt;After Byzantium, there is one more hard fork planned for Metropolis: Constantinople. Metropolis will be followed by the final stage of Ethereum's development, codenamed Serenity.&lt;/p&gt;

&lt;p&gt;This is a small overview of Ethereum's development stages.&lt;/p&gt;

&lt;p&gt;I hope you found it informative.&lt;/p&gt;

&lt;p&gt;Thanks for reading :)&lt;/p&gt;

</description>
      <category>blockchain</category>
      <category>ethereum</category>
      <category>bitcoin</category>
      <category>webdev</category>
    </item>
    <item>
      <title>What is a Cryptographic Token?</title>
      <dc:creator>Saroj</dc:creator>
      <pubDate>Sun, 08 May 2022 16:00:56 +0000</pubDate>
      <link>https://dev.to/sarojvrc/what-is-a-cryptographic-token-2el6</link>
      <guid>https://dev.to/sarojvrc/what-is-a-cryptographic-token-2el6</guid>
      <description>&lt;p&gt;&lt;strong&gt;Any idea about what is the token?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Well,&lt;/p&gt;

&lt;p&gt;Before coming into Cryptographic Token, let's try to understand it in a very simpler way.&lt;/p&gt;

&lt;p&gt;Have you ever bought a lottery ticket? A lottery ticket is kind of a token, it's for the prizes that maybe you can own. A token is a kind of something that can be exchanged for some assets or value in the future. Like this, tokens are also valid inside the cryptographic world.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Let's explore how.&lt;/strong&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Introduction
&lt;/h2&gt;

&lt;p&gt;A cryptographic token represents a programmable asset that is created and managed by a smart contract. The smart contract decides the number of units to be created and handles the transactions involving the token and each token holder's balance.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Types of Tokens&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;In cryptography, there are mostly 3 types of tokens available. Those are&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Utility Tokens&lt;/li&gt;
&lt;li&gt;Security Tokens&lt;/li&gt;
&lt;li&gt;ERC Tokens&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Let's discuss them one by one.&lt;/p&gt;

&lt;h2&gt;
  
  
  1. Utility Tokens
&lt;/h2&gt;

&lt;p&gt;Utility tokens are user tokens that provide access to the products or services offered by the company. They can help in driving the internal economy within a blockchain project. They can be used to provide an advantage to the holders of the utility tokens. The holder can be privileged to do voting on the important decisions on the blockchain project.&lt;/p&gt;

&lt;p&gt;Let's say I am doing a project with the help of blockchain. And the final product will come after 2/4 years. But I need some funds to manage the project, right? For that, I can create a token on the behalf of the project with very minimal cost. people can buy the tokens and they will also get benefited from this project as well as can use the other services provided by the company.&lt;/p&gt;

&lt;p&gt;Ex:- Golem Network Token(GNT) provides the holder's access to the Golem ecosystem.&lt;/p&gt;

&lt;h2&gt;
  
  
  2. Security Tokens
&lt;/h2&gt;

&lt;p&gt;Security tokens are tokens that represent legal ownership of physical or digital assets. They are generally tied to the company's profit and loss valuation. These tokens are heavily regulated, and failing to comply with the regulations shall have serious consequences which can even lead to the shutdown of the complete blockchain project. Some examples of security tokens are the Siacoin token, Blockstack STX token, etc.&lt;/p&gt;

&lt;h2&gt;
  
  
  3. ERC Tokens
&lt;/h2&gt;

&lt;p&gt;ERC tokens are a kind of very useful token in the cryptographic ecosystem. Token management can be significantly standardized as it follows very similar functionality and attributes of domains where these are used.&lt;/p&gt;

&lt;p&gt;The Ethereum community has taken a lead on this and EIPs standardized definitions for developers to code and deploy. ERC tokens define rules that will enable the tokens to be handled and exchanged between various DApps(Decentralized Applications) and wallets.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;List of ERC tokens&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;ERC20 Tokens&lt;/li&gt;
&lt;li&gt;ERC721 Tokens&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;I hope all of you got some basic idea about the tokens, their types, and their uses. I will create a new article specially for ERC tokens to describe in-depth.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Stay tuned for a new article.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Thanks for reading out this. Lots of love. :)&lt;/p&gt;

</description>
      <category>blockchain</category>
      <category>crypto</category>
      <category>cryptocurrency</category>
      <category>programming</category>
    </item>
    <item>
      <title>Public and Private Keys in Cryptocurrency</title>
      <dc:creator>Saroj</dc:creator>
      <pubDate>Sun, 01 May 2022 11:09:05 +0000</pubDate>
      <link>https://dev.to/sarojvrc/public-and-private-keys-in-cryptocurrency-366c</link>
      <guid>https://dev.to/sarojvrc/public-and-private-keys-in-cryptocurrency-366c</guid>
      <description>&lt;p&gt;&lt;strong&gt;Well,&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Today, we are going to discuss public and private key, and how it is a very crucial part of cryptocurrency.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Cool!&lt;/p&gt;

&lt;p&gt;You all know what is a key right? In our daily life, we are using it for locking purposes, let's say, you have a key for your luggage, or you may have a key for your bag, etc. Like this, we will use this key in cryptocurrencies.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Let's see how :)&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;You may have heard that bitcoin is based on &lt;em&gt;cryptography&lt;/em&gt;, which is a branch of mathematics used extensively in computer security. Cryptography means &lt;em&gt;"secret writing"&lt;/em&gt; in Greek, but the science of cryptography is more than just secret writing.&lt;/p&gt;

&lt;p&gt;Ownership of bitcoin is established through digital keys, bitcoin addresses, and digital signatures. The digital keys are not actually stored in the network but are instead created and stored by users in a file, or simple database called a wallet. Keys enable many of the interesting properties of bitcoin, including decentralized trust and control, ownership, and a cryptographic-proof security model.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;So, here keys come into the picture. let's explore them.&lt;/em&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Private Key
&lt;/h2&gt;

&lt;p&gt;A private key is simply a number, picked at random. Ownership and control over the private key is the root of user control over all funds associated with the corresponding bitcoin address. The private key is used to create signatures that are required to spend bitcoin y providing ownership of funds used in a transaction. The private key must remain secret at all times because revealing it to third parties is the same as giving them control over the bitcoins secured by that key.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--jBPxUACt--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/a3fwgjfzuasnazrulkp6.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--jBPxUACt--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/a3fwgjfzuasnazrulkp6.jpg" alt="Image description" width="590" height="152"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;You can pick your private keys randomly using just a coin, pencil, and paper: toss a coin 256 times and you have the binary digits of a random private key you can use in a bitcoin wallet. The public key can then be generated from the private key.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Example:&lt;/strong&gt; 1E99423A4ED27608A15A261A2B0E9E52CED330AC530EDEC322C8FFC6A32S5EFYYCD0DD&lt;/p&gt;

&lt;h2&gt;
  
  
  Public Key
&lt;/h2&gt;

&lt;p&gt;The public key is calculated from the private key using elliptic curve multiplication, which is irreversible: K = k*G, where k is the private key, G is a constant point called the generator point, and K is the resulting public key. We can generate multiple public keys from a private key, but it is impossible to generate the private key, from a public key.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--Bl-Lak_E--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/5g8aqpyd6ajer6obsu41.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--Bl-Lak_E--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/5g8aqpyd6ajer6obsu41.png" alt="Image description" width="252" height="262"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Elliptic curve multiplication is a type of function that cryptographers call a "trap door" function: it is easy to do in one direction and impossible to do in the reverse direction. The owner of the private key can easily create the public key and then share it with the world knowing that no one can reverse the function and calculate the private key from the public key. This mathematics trick becomes the basis of an unforgettable and secure digital signature that proves ownership of bitcoin funds.&lt;/p&gt;

&lt;p&gt;This is the basic idea about public and private keys. I am sure you got some idea of how these work inside a cryptocurrency.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;That's all for today.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;See you soon with a new article!&lt;/strong&gt;&lt;/p&gt;

</description>
      <category>blockchain</category>
      <category>cryptography</category>
      <category>crypto</category>
      <category>bitcoin</category>
    </item>
    <item>
      <title>Types of Blockchains inside the Bitcoin Network</title>
      <dc:creator>Saroj</dc:creator>
      <pubDate>Sat, 23 Apr 2022 14:16:45 +0000</pubDate>
      <link>https://dev.to/sarojvrc/types-of-blockchains-inside-the-bitcoin-network-54g7</link>
      <guid>https://dev.to/sarojvrc/types-of-blockchains-inside-the-bitcoin-network-54g7</guid>
      <description>&lt;p&gt;&lt;strong&gt;Hey Guys, what's up?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Hope all are doing well.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Today we will discuss the types of blockchains inside the bitcoin network.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Interesting right?&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Great!&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Before starting this I am assuming you are aware of bitcoin and blockchain technology. If not, please read my previous articles here&lt;/p&gt;

&lt;p&gt;Cool :)&lt;/p&gt;

&lt;p&gt;You know bitcoin right? And also you know that bitcoin is powered by blockchain technology. You might be surprised to know that, there is more than one bitcoin blockchain. The "main" blockchain, the one created by Satoshi Nakamoto on Jan 3rd, 2009, is called the mainnet. There are other bitcoin blockchains that are used for the testing purpose are also available, those are testnet, segnet, and regtest.&lt;/p&gt;

&lt;p&gt;Let's look at each :)&lt;/p&gt;

&lt;h2&gt;
  
  
  Testnet
&lt;/h2&gt;

&lt;p&gt;Testnet (&lt;em&gt;or Bitcoin's Testing Playground&lt;/em&gt;) is the name of the test blockchain, network, and currency that is used for testing purposes. As you know bitcoin is a decentralized system, once data is added to bitcoin it can't be modified or deleted. For that reason, we need to do the test before adding to bitcoin.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Got some idea?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;let's look in more depth!&lt;/p&gt;

&lt;p&gt;The testnet is a fully featured live P2P network, with wallets, test bitcoin, mining, and all the other feature of the mainnet. There are only two differences: testnet coins are meant to be worthless and mining difficulty should be low enough that everyone can mine testnet coins relatively easily.&lt;/p&gt;

&lt;p&gt;Any software development that is intended for production use on bitcoin's mainnet should first be tested on the testnet with test coins, so that, it protects both the developers from monetary losses due to bugs and the network from unintended behavior due to bugs.&lt;/p&gt;

&lt;p&gt;Eg:- testnet3(&lt;em&gt;current version of testnet&lt;/em&gt;)&lt;/p&gt;

&lt;h2&gt;
  
  
  Segnet
&lt;/h2&gt;

&lt;p&gt;Segnet or The Segregated Witness Testnet in launched in 2016. It is a special purpose testnet to aid in the development and testing of Segregated Witness. This test blockchain is called segnet and can be joined by running a special version(&lt;em&gt;branch&lt;/em&gt;) of Bitcoin Core(&lt;em&gt;original bitcoin&lt;/em&gt;).&lt;/p&gt;

&lt;h2&gt;
  
  
  Regtest
&lt;/h2&gt;

&lt;p&gt;Regtest, which stands for Regression Testing, is a Bitcoin Core feature that allows you to create a local blockchain for testing purposes. Unlike testnet3, which is a public and shared test blockchain, the regtest blockchain is intended to run as a closed system for local testing.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;I hope you got some idea about testing bitcoin blockchains.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Conclusion&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Bitcoin's various blockchains (&lt;em&gt;regtest, segnet, testnet3, mainnet&lt;/em&gt;) offer a range of testing environments for bitcoin development. Use the test blockchains whether you are developing for Bitcoin Core or an application such as a wallet, exchange, e-commerce site, etc.&lt;/p&gt;

&lt;p&gt;This is a simple overview of testing blockchains inside the bitcoin network. I hope you got some idea like, what is a testnet, to regtest, and for what purpose we should use them.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Awesome&lt;/strong&gt;!&lt;/p&gt;

&lt;p&gt;Thanks for reading this article. See you soon with a new one!&lt;/p&gt;

</description>
      <category>blockchain</category>
      <category>crypto</category>
      <category>cryptocurrency</category>
    </item>
    <item>
      <title>What is Blockchain Mining? And how does it happen?</title>
      <dc:creator>Saroj</dc:creator>
      <pubDate>Sun, 17 Apr 2022 03:51:27 +0000</pubDate>
      <link>https://dev.to/sarojvrc/what-is-blockchain-mining-and-how-does-it-happen-3653</link>
      <guid>https://dev.to/sarojvrc/what-is-blockchain-mining-and-how-does-it-happen-3653</guid>
      <description>&lt;p&gt;&lt;strong&gt;Well,&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;I hope all are doing good. Today we will see about blockchain mining and its process.&lt;/p&gt;

&lt;p&gt;Cool!&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;So, what exactly is Blockchain mining?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Any idea?&lt;/p&gt;

&lt;p&gt;In simple words, Mining is the process of recording new transactions on the blockchain ledger. Or we can say, it is the process by which we can add a new block inside a blockchain network.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Saroj, what is this process, what is mining, it's confusing... huh! explain more.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;wait guys, we will see in-depth!&lt;/p&gt;

&lt;p&gt;:)&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Process of Mining&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;As you know, a blockchain is a decentralized network(&lt;em&gt;or group of nodes&lt;/em&gt;), and there is no central or head node. So when a new node wants to join that network, it's not possible to join directly. It must have some process to add to that network, it's called the Mining process.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Ohh is it? Saroj, we got some idea about Mining Process, but who actually add this node into the network?&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Yaa, Good question.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;So, who will do the mining?&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Miners need to do the Mining! A miner is nothing but a computer or group of computers. Humans can also be a miner, but the solution is more complex for us to solve. A Miner needs to do some solution to add a block. Mining rewards are given to the miner who first finds the solution to a complicated hashing problem(&lt;em&gt;solution&lt;/em&gt;).&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Still, getting confused? Let's try to understand using a diagram.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--gMlpe9Qj--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/i7awmocz5ray46jlesh0.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--gMlpe9Qj--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/i7awmocz5ray46jlesh0.png" alt="Image description" width="880" height="395"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Let's say I am a miner. I need to solve a mathematical solution to add a block to the network. If I found the solution, then the block will be added to the blockchain network. But, what happens if I am not able to find the solution? In that case, my transaction will be added to the transaction pool. It is nothing but, a group of unconfirmed transactions, that are waiting to be added.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;wait wait... it's not finished yet!&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Let's imagine, there is a blockchain network containing 30 blocks. And there is a hacker, he/she wants to hack this network by adding a new block or group of blocks. Then it's a problem, right?&lt;/p&gt;

&lt;p&gt;&lt;em&gt;yes Saroj, it's a big issue. How can we solve this issue?&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Here, the Longest Chain Rule comes into the picture. :)&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Longest Chain Rule&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;The longest chain rule is a rule that a miner must follow if he/she wants to do the mining.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--cR-upZEG--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/nn04bvlu65lvsgo21gzy.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--cR-upZEG--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/nn04bvlu65lvsgo21gzy.png" alt="Image description" width="880" height="312"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Let's say, there are two groups of blocks(&lt;em&gt;nodes&lt;/em&gt;), one is about 6 blocks, and the second one(&lt;em&gt;attackers&lt;/em&gt;) is about 3 blocks. In that case, the blockchain network will accept only the longest chain blocks(&lt;em&gt;group one&lt;/em&gt;) and the second group will be rejected. A blockchain with more blocks will consume more energy to build than a chain with fewer blocks. And, always node follows the longest chain rule.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Also, mining is two types&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Solo Mining&lt;/li&gt;
&lt;li&gt;Polo Mining&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;In solo mining, only 1 computer is involved in the mining process, whereas in the case of polo mining, a group of computers is involved in the mining process.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Got some idea about mining and miners?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;yes man, thanks for the great info about mining and miners.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Great!&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Thank you guys for reading this article. I hope you found it interesting :)&lt;/p&gt;

&lt;p&gt;See you soon with a new article.&lt;/p&gt;

</description>
      <category>blockchain</category>
      <category>web3</category>
      <category>crypto</category>
      <category>webdev</category>
    </item>
    <item>
      <title>Cryptocurrency Wallet and its types</title>
      <dc:creator>Saroj</dc:creator>
      <pubDate>Tue, 12 Apr 2022 14:02:42 +0000</pubDate>
      <link>https://dev.to/sarojvrc/cryptocurrency-wallet-and-its-types-8ic</link>
      <guid>https://dev.to/sarojvrc/cryptocurrency-wallet-and-its-types-8ic</guid>
      <description>&lt;p&gt;&lt;strong&gt;Hey Guys,&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Hope all are doing good.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Great!&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Today I come up with a new topic, i.e. Cryptocurrency Wallets. We will see how many types of wallets are there and how it is stored.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;So, let's start then :)&lt;/p&gt;

&lt;p&gt;Before starting this, I assume you all know some basics about cryptocurrencies and blockchain. If not, please have some basic knowledge from &lt;a href="https://sarojb.medium.com/"&gt;here&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Cool!&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;You all know what is a wallet right?&lt;/p&gt;

&lt;p&gt;&lt;em&gt;of course Saroj! Because we all have money, and for storing it we need a wallet.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;That's right!&lt;/p&gt;

&lt;p&gt;Yaa, we all know, we are storing physical money inside a wallet. Have you ever thought, about how digital currencies or cryptocurrencies are stored?&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Let's explore, how&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;You may hear that bitcoins are stored in wallets. If this were true, then if you copied your wallets you'd own double the number of bitcoins. Clearly, you couldn't have digital money that works this way. So no, bitcoins aren't stored in wallets.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Then, where are bitcoins stored?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Well, ownership of bitcoins is recorded on Bitcoin's blockchain, which is, as we know, the database replicated on over 10,000 computers around the world containing every Bitcoin transaction ever. Bitcoin wallets store private keys(not bitcoins!) and their software makes it easy for the wallet to see how many coins they control and to make payments.&lt;/p&gt;

&lt;p&gt;Got some idea?&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Great! I'm happy for you :)&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Now, let's see how many types of wallets are available for cryptocurrencies.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--rdq0rk5Y--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/lqb5jlpy8wdki8zcadoe.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--rdq0rk5Y--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/lqb5jlpy8wdki8zcadoe.png" alt="Image description" width="722" height="585"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;As you can see in the above image, bitcoin wallets are 3 types&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Software wallet&lt;/li&gt;
&lt;li&gt;Hardware wallet&lt;/li&gt;
&lt;li&gt;Paper wallet&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Let's explore them one by one.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;1. Software Wallet&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Software wallets are nothing but, they can be some wallet software or mobile applications or also a desktop applications. Bitcoin wallets are apps that can at least&lt;/p&gt;

&lt;p&gt;Create new Bitcoin addresses and store the corresponding private keys&lt;/p&gt;

&lt;p&gt;Display your addresses to someone who wants to send you a payment.&lt;/p&gt;

&lt;p&gt;Display how many bitcoins are in your addresses.&lt;/p&gt;

&lt;p&gt;Make Bitcoin payments.&lt;/p&gt;

&lt;p&gt;Software wallets are easy to use, you can access these using your mobile apps, software, or a website. But, these are less secure to store large amounts of bitcoins. Because, as you know, apps or software can be hacked by a hacker.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Some examples of software wallets are&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;blockchain.info&lt;br&gt;
electrum&lt;br&gt;
Jaxx&lt;br&gt;
breadwallet etc.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;2. Hardware wallet&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Sometimes Bitcoin wallets can have a hardware component also. Private keys are stored in chips called small handheld devices. Hardware wallets are nothing but, they are like Pendrive or SSD, where we can store the bitcoin's key. These are more secure compared to software wallets.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--fYN7zrFn--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/gzvbxq23d4e8enprgc7a.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--fYN7zrFn--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/gzvbxq23d4e8enprgc7a.jpg" alt="Image description" width="880" height="495"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;But, before storing a bitcoin address into a hardware wallet we need to make sure that, the address and key are encrypted. Otherwise, if we lost the device, then anyone can access our data. two popular hardware wallets are called Trezor and Ledger Nano.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;3. Paper wallet&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;These are nothing but, typically a paper, where we print the bitcoin addresses and keys. These are also more secure than software wallets. Paper wallets are used for storing large amounts of bitcoins. Again, we need to encrypt the bitcoin's addresses and keys before storing them in a paper wallet, as these can be stolen.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--brWTR0zL--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ekcr9eb0ipx9mib7zh26.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--brWTR0zL--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ekcr9eb0ipx9mib7zh26.jpg" alt="Image description" width="750" height="530"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Wait wait... not finished yet!&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;There are also 2 types of wallets in bitcoin or cryptocurrencies.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;These are Cold Storage and Hot Storage.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;The phrase "&lt;strong&gt;Cold Storage&lt;/strong&gt;" is keeping a note of those private keys on offline media, such as a piece of paper or a computer not connected to the internet.&lt;/p&gt;

&lt;p&gt;And a &lt;strong&gt;hot wallet&lt;/strong&gt; is a wallet that can sign and broadcast transactions without manual intervention. Exchanges, which control many bitcoins need to manage lots of Bitcoin payments, they often have a hot wallet that controls a small proportion of their total bitcoins.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Yeah, here we ended this topic!&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--yThkig8j--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/4yvymlwquyy1db78scqn.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--yThkig8j--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/4yvymlwquyy1db78scqn.png" alt="Image description" width="225" height="224"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;I am sure, you got some idea of how we are storing bitcoins, and their types.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Awesome!&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;See you soon with a brand new article.&lt;/p&gt;

</description>
      <category>bitcoin</category>
      <category>blockchain</category>
      <category>programming</category>
    </item>
    <item>
      <title>Types of Blockchain</title>
      <dc:creator>Saroj</dc:creator>
      <pubDate>Fri, 08 Apr 2022 05:25:17 +0000</pubDate>
      <link>https://dev.to/sarojvrc/types-of-blockchain-36h8</link>
      <guid>https://dev.to/sarojvrc/types-of-blockchain-36h8</guid>
      <description>&lt;p&gt;&lt;strong&gt;Hey all,&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;I know all are doing good only, that's great!&lt;/p&gt;

&lt;p&gt;Today I come up with a new article on &lt;strong&gt;types of blockchain.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Before that, I am assuming you have an idea about blockchain technology. If not please read my previous article about this.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Awesome!&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Why wait then? let's start :)&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;So, as you know, a blockchain is a chain of data blocks stored in hundreds or thousands of computers or 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 a digital asset. And, blockchain is based on decentralized technologies.&lt;/p&gt;

&lt;p&gt;Got some idea?&lt;/p&gt;

&lt;p&gt;Superb!&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Now, let's see how many types of blockchains are available.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--acAM5zBW--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/nrauhsq3a60taq8vxe4g.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--acAM5zBW--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/nrauhsq3a60taq8vxe4g.png" alt="Image description" width="880" height="339"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;As you can see in the above image, there are 4 types of blockchain is available.&lt;/p&gt;

&lt;p&gt;They are&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Permissioned Blockchain&lt;/li&gt;
&lt;li&gt;Private Blockchain&lt;/li&gt;
&lt;li&gt;Federated/Consortium Blockchain&lt;/li&gt;
&lt;li&gt;Public Blockchain&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Let's see them one by one.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;1. Private Blockchain&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;A &lt;em&gt;private blockchain&lt;/em&gt; is also called the permissioned blockchain. In this type, only the individuals involved in a contract will have the information of it, while the others will not be able to access it. It is also a faster and more cost-effective system. Only authorized nodes can read and write the transaction data into this blockchain. But, a private blockchain is less secure as compared to a public blockchain.&lt;/p&gt;

&lt;p&gt;Example:- Linux foundation's Hperledger Fabric.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;2. Public Blockchain&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;A &lt;em&gt;public blockchain&lt;/em&gt; is a permissionless blockchain. Anybody can access the network and read-write on participants without explicit authorization and permission.&lt;/p&gt;

&lt;p&gt;Example:- Bitcoin, Litecoin, Ethereum, etc.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;3. Federated/Consortium Blockchain&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;A &lt;em&gt;consortium or federated blockchain&lt;/em&gt; is a private, permissioned blockchain. It is opposed to the public blockchain, where entities can only become members of the network by prior approval or voting. In this type of blockchain, permissions are vested in a group of companies to individuals. Also, only consortium members can make, validate, and renew the transactions.&lt;/p&gt;

&lt;p&gt;Example:- R3 Corda Blockchain&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;A permissioned blockchain is the same as a private blockchain.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;I am now 100% sure, you have got some idea about the types of blockchain.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;That's Great!&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;This is all for today, see you soon with a new interesting article. I hope you enjoy this reading.&lt;/p&gt;

&lt;p&gt;Cheers!&lt;/p&gt;

</description>
      <category>blockchain</category>
      <category>crypto</category>
      <category>web3</category>
      <category>software</category>
    </item>
    <item>
      <title>What is a Peer-to-Peer(P2P) Network in Blockchain?</title>
      <dc:creator>Saroj</dc:creator>
      <pubDate>Tue, 05 Apr 2022 16:12:45 +0000</pubDate>
      <link>https://dev.to/sarojvrc/what-is-a-peer-to-peerp2p-network-in-blockchain-62c</link>
      <guid>https://dev.to/sarojvrc/what-is-a-peer-to-peerp2p-network-in-blockchain-62c</guid>
      <description>&lt;p&gt;&lt;strong&gt;Hello Guys,&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Hope all are doing great!&lt;/p&gt;

&lt;p&gt;Today I'm coming up with a new concept that we must know in a blockchain network i.e. &lt;em&gt;Peer-to-Peer(P2P)&lt;/em&gt; network.&lt;/p&gt;

&lt;p&gt;So, what is a Peer-to-Peer or P2P network?&lt;/p&gt;

&lt;p&gt;Any idea?&lt;/p&gt;

&lt;p&gt;Cool.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Let's start!&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;In this article, we will see, &lt;strong&gt;how the Bitcoin network works as a P2P network model.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Bitcoin is structured as a &lt;em&gt;peer-to-peer&lt;/em&gt; network architecture on top of the internet. The term peer-to-peer, or P2P, means that all the computers that participate in the network are peer to each other, that they are all equal, that there are no "&lt;em&gt;special&lt;/em&gt;" or "&lt;em&gt;central&lt;/em&gt;" nodes, and all nodes share the burden of providing network services.&lt;/p&gt;

&lt;p&gt;Confusing?&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Let's try to understand with an image.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--Kam8PHwr--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/hsoe8tnul1elr1u01whg.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--Kam8PHwr--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/hsoe8tnul1elr1u01whg.png" alt="Image description" width="836" height="410"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;As you can see in the above image, all nodes(peers) are connected with each other, and there are no central or special nodes. The network nodes are interconnected in a mesh network with a "flat" topology. There is no server, no centralized service, and no hierarchy within the network. Nodes in a P2P network both provide and consume services at the same time with reciprocity acting as the incentive for participation. P2P networks are inherently resilient, decentralized, and open.&lt;/p&gt;

&lt;p&gt;The best example of P2P network architecture was the early internet itself, where nodes on the IP network were equal. Today's internet architecture is more hierarchical, but the Internet Protocol still retains its flat-topology model.&lt;/p&gt;

&lt;p&gt;I hope now you got some idea about the &lt;em&gt;Peer-to-Peer(P2P)&lt;/em&gt; network.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Great!&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Now, let's see all &lt;strong&gt;types of P2P networks.&lt;/strong&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Unstructured P2P network&lt;/li&gt;
&lt;li&gt;Structured P2P network&lt;/li&gt;
&lt;li&gt;Hybrid P2P network&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;strong&gt;1. Unstructured P2P Network&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;In this type of network, there is no specific organization of the nodes. Participants communicate randomly with one another. Also, this type of network is robust in nature.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;2. Structured P2P Network&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;It allows nodes to precise search for files, even if the content is not available. This type of network is more efficient. And it requires higher maintenance.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;3. Hybrid P2P Network&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;This type combines the conventional client-server model with some facts of the P2P architecture. It also improves the overall performance.&lt;/p&gt;

&lt;p&gt;This is the basic idea of a &lt;em&gt;Peer-to-Peer&lt;/em&gt; or P2P network. I am sure, you got some idea about it.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;That's great actually!&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Hope you enjoy this reading. See you soon with a new article.&lt;/p&gt;

</description>
      <category>blockchain</category>
      <category>web3</category>
      <category>technology</category>
      <category>programming</category>
    </item>
    <item>
      <title>What does a Block look like in a Blockchain?</title>
      <dc:creator>Saroj</dc:creator>
      <pubDate>Fri, 01 Apr 2022 06:05:29 +0000</pubDate>
      <link>https://dev.to/sarojvrc/what-does-a-block-look-like-in-a-blockchain-h3g</link>
      <guid>https://dev.to/sarojvrc/what-does-a-block-look-like-in-a-blockchain-h3g</guid>
      <description>&lt;p&gt;&lt;strong&gt;Hey Guys,&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Hope all are doing well.&lt;/p&gt;

&lt;p&gt;Great!&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Today we will see about the block, and what does it look like in a blockchain network.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;I assume you are aware of &lt;em&gt;block structure&lt;/em&gt;. If not, please read my previous article &lt;a href="https://medium.com/coinmonks/structure-of-the-block-inside-a-blockchain-network-7ad66ea5bea"&gt;here&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Awesome.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Block&lt;/em&gt; is the head of a blockchain network. without blocks, you can't create a blockchain. and every &lt;em&gt;block&lt;/em&gt; interlinked with each other. Let's see how.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--BBZ-ESMH--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/iro1xgc5mxaveovdcmtn.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--BBZ-ESMH--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/iro1xgc5mxaveovdcmtn.png" alt="Image description" width="880" height="256"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;As you can see in the above diagram, a &lt;em&gt;block&lt;/em&gt; is consists of &lt;strong&gt;Nonce, SHA256, the previous block signature, and some transactions.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Genesis Block&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;The very first &lt;em&gt;block&lt;/em&gt; is called a &lt;em&gt;Genesis Block&lt;/em&gt; or &lt;em&gt;Block 0&lt;/em&gt;. Because this &lt;em&gt;block&lt;/em&gt; doesn't contain any previous &lt;em&gt;block&lt;/em&gt; signature.&lt;/p&gt;

&lt;p&gt;Able to understand somewhat?&lt;/p&gt;

&lt;p&gt;Great!&lt;/p&gt;

&lt;p&gt;Let's see other parts.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Nonce&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Every &lt;em&gt;block&lt;/em&gt; must have a &lt;em&gt;Nonce&lt;/em&gt;. A &lt;em&gt;nonce&lt;/em&gt; is created by a miner, who mines the &lt;em&gt;block&lt;/em&gt; into a blockchain network. These are generated in a particular way through the mining algorithm. It contains some value, and it is different from other nonce values.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;SHA256&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;SHA256&lt;/em&gt; is a simple hash algorithm that crunches any length of data into a unique string of a fixed length. Each &lt;em&gt;block&lt;/em&gt; has a different &lt;em&gt;HSA256&lt;/em&gt;.&lt;/p&gt;

&lt;p&gt;Eg. ba7816bf8f01cfea414140de5dae2223b00361a396177a9cb410ff61f20015ad&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Signature&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Genesis block&lt;/em&gt; doesn't contain a &lt;em&gt;signature&lt;/em&gt;. Because, it is the very first block, or block 0. Once the genesis &lt;em&gt;block&lt;/em&gt; is formed, the &lt;em&gt;signature&lt;/em&gt; will be added to the next &lt;em&gt;block&lt;/em&gt;. A &lt;em&gt;signature&lt;/em&gt; is the HSA256 value of the previous &lt;em&gt;block&lt;/em&gt;. Block 1's signature value is the same as Block 0's SHA256 value. Block 2's signature value is the same as Block 1's SHA256 value. And so on. With the help of this &lt;em&gt;signature&lt;/em&gt; value, every &lt;em&gt;block&lt;/em&gt; is linked with another &lt;em&gt;block&lt;/em&gt;.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Transactions&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Each &lt;em&gt;block&lt;/em&gt; contains some &lt;em&gt;transactions&lt;/em&gt;, but not the &lt;em&gt;genesis block&lt;/em&gt;. &lt;em&gt;Transactions&lt;/em&gt; can be anything like let's say, A has 10 coins, B has 20 coins and C has 40 coins. A transferred 5 coins to B and C transferred 10 coins to B. Like this, every &lt;em&gt;transaction&lt;/em&gt; is stored in a &lt;em&gt;block&lt;/em&gt;.&lt;/p&gt;

&lt;p&gt;I think you have got some idea about the block.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Great&lt;/strong&gt;!&lt;/p&gt;

&lt;p&gt;If you further need any help, try to connect with me. I’ll be happy to solve your doubts.&lt;/p&gt;

&lt;p&gt;Till then, keep learning and keep smiling :)&lt;/p&gt;

&lt;p&gt;Thanks for reading this. See you soon with a new article.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://www.linkedin.com/in/sarojvrc/"&gt;LinkedIn&lt;/a&gt;   &lt;a href="https://twitter.com/iamsarojb"&gt;Twitter&lt;/a&gt;&lt;/p&gt;

</description>
      <category>blockchain</category>
      <category>cryptocurrency</category>
      <category>blockchaintech</category>
    </item>
    <item>
      <title>History of Bitcoin!</title>
      <dc:creator>Saroj</dc:creator>
      <pubDate>Sat, 26 Mar 2022 10:07:31 +0000</pubDate>
      <link>https://dev.to/sarojvrc/history-of-bitcoin-13ig</link>
      <guid>https://dev.to/sarojvrc/history-of-bitcoin-13ig</guid>
      <description>&lt;p&gt;&lt;strong&gt;Hey Guys,&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Hope all are doing well,&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Awesome,&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;So, today we will see all about &lt;em&gt;Bitcoin's&lt;/em&gt; history, starting from its birth!&lt;/p&gt;

&lt;p&gt;Yaa, you read it right, starting from its Birth.&lt;/p&gt;

&lt;p&gt;Then why wait? Let's start :)&lt;/p&gt;

&lt;p&gt;&lt;em&gt;&lt;strong&gt;Bitcoin's early history&lt;/strong&gt;&lt;/em&gt;&lt;br&gt;
I think you might hear about '&lt;em&gt;Bitcoin&lt;/em&gt; (the protocol) has never been hacked, but they are wrong. Yes! &lt;em&gt;Bitcoin&lt;/em&gt; has been hacked. In 2007 it's mentioned on a website that "A pseudonymous Satoshi Nakamoto began working on &lt;em&gt;Bitcoin&lt;/em&gt;".&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Now, let's see further details.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;18 Aug 2008&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;The website bitcoin.org was registered using anomymousspeech.com, a broker that registers domains on behalf of customers who can choose to remain anonymous. This shows how important privacy was to the person or group involved in &lt;em&gt;Bitcoin&lt;/em&gt;.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;31 Oct 2008&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;This is the date when we can say &lt;em&gt;Bitcoin&lt;/em&gt; launched officially. The &lt;em&gt;Bitcoin&lt;/em&gt; whitepaper, written under the pseudonym Satoshi Nakamoto, was released on an obscure but fascinating mailing list metzdowd.com that is much loved by cypherpunks. Wikipedia has this to say about cypherpunks.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;3 Jan 2009&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;The genesis(first) block was mined. On this day, &lt;em&gt;Bitcoin's&lt;/em&gt; blockchain has formed. At that moment, the first bitcoins, fifty of them, were created out of thin air and recorded into its blockchain(block zero). The transaction that contains the mining reward, the so-called 'coinbase' transaction, contains the text:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;"The Times 03/Jan/2009 Chancellor on brink of second bailout for banks"&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;The text refers to a headline of the UK newspaper The Times.&lt;/p&gt;

&lt;p&gt;Some interesting aside: The 50 BTC mined in the first block are unspendable. They sit in address, but the account holder, presumable Satoshi, whoever he, she, or they may be, is unable to transfer them to anyone else due to some quirk in the code.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;9 Jan 2009&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;On this day, the version of 0.1 of the &lt;em&gt;Bitcoin&lt;/em&gt; software was released by Satoshi Nakamoto, along with its source code. With the help of this, people can review the code, and download and run the software, so they can be both bookkeepers and miners. &lt;em&gt;Bitcoin&lt;/em&gt; was thus accessible to anyone who wanted to download and use it.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;12 Jan 2009&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;The first &lt;em&gt;Bitcoin&lt;/em&gt; payment was made from Satoshi's address to Hal Finney's address in block 170, the first recorded movement of bitcoins. Hal Finney was a cryptographer, cypherpunk, and a coder, and some people believe he was partly behind the Satoshi pseudonym.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;6 Feb 2010&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;It was kind of a historical day for Bitcoin. Because, the first Bitcoin exchange, "The Bitcoin Market," was created by bitcointalk.org forum user 'dwdollar'.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--Os80l2Sq--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/d6acwjc4zqf50crodmi8.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--Os80l2Sq--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/d6acwjc4zqf50crodmi8.jpg" alt="Image description" width="880" height="230"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Previously, people traded bitcoins, but in a relatively unstructured way in chat rooms and messages boards.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;22 May 2010&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;It's Pizza day for &lt;em&gt;Bitcoin&lt;/em&gt; :) This was the first documented time bitcoins were used to pay for something in the real world. Laszlo Hanyecz, a programmer in Florida, USA, offered to pay 10,000 BTC for a pizza on the bitcointalk forum.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--9XC4avnv--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/rog6v7txj5pzq1wwx152.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--9XC4avnv--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/rog6v7txj5pzq1wwx152.png" alt="Image description" width="880" height="421"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;I love Pizza btw, just kidding :)&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;17 Jul 2010&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Jed McCaleb, (who has more recently founded Steller, a cryptocurrency platform based on Ripple), converted his card trading exchange into a &lt;em&gt;Bitcoin&lt;/em&gt; trading exchange.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;It's interesting, right?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Great!&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Let's see some history more.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;15 Aug 2010&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;It was kind of a black day for &lt;strong&gt;Bitcoin&lt;/strong&gt;. On this day, &lt;strong&gt;Bitcoin's&lt;/strong&gt; protocol got hacked. A potential vulnerability was discovered, and someone exploited this vulnerability in block 74,638 to create 184 billion bitcoins for themselves. This strange transaction was quickly discovered and, with the consent of the majority of the community, the whole blockchain was 'forked', reverting it to a previous state.&lt;/p&gt;

&lt;p&gt;If anyone says, &lt;em&gt;Bitcoin&lt;/em&gt; hasn't even been hacked, ask them "What about the integer overflow bug in August 2010 where someone sent themself 184 billion bitcoins?"&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;18 Sep 2010&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;The first mining pool, Slush's pool, lined its first block. A mining pool is an organization where multiple participants combine their hash power to give themself a better chance of winning a block. The participants split the reward between them in proportion to their hash power contributions.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;7 Jan 2011&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;12 BTC were exchanged for $300,000,000,000,000. This is probably the highest exchange rate between &lt;strong&gt;Bitcoin&lt;/strong&gt; even achieved. However, these dollars were Zimbabwean dollars.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;9 Feb 2011&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;On this day, Mt Gox &lt;em&gt;Bitcoin&lt;/em&gt; exchange, Bitcoin reached parity with the US dollar i.e. 1 BTC = 1 USD.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;7 Apr 2011&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;VirWox, a website that allowed customers to convert between fiat currencies and Linden Dollars(the virtual currency for use within the computer game), integrated Bitcoin. People could now exchange directly between bitcoins and Liden Dollars. This is possibly the first virtual currency to virtual currency exchange.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;1 Jun 2011&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;WIRED magazine published a famous article, "Underground website lets you buy any drug imaginable", written by Adrian Chen. It described a website called The Silk Road, launched in Feb 2011 and run by twenty-seven-year-old Ross William Ulbricht under the nickname "Dread Pirate Roberts". The Silk Road was described as a kind of eBay for drugs.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--cCCad3Te--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/xe1j0aky1lb9uh9j6fz0.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--cCCad3Te--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/xe1j0aky1lb9uh9j6fz0.jpg" alt="Image description" width="397" height="251"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;20 Jun 2011&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Possibly the first documented evidence of a physical brick-and-mortar merchant accepting Bitcoin as a means of payment. Room 77, a restaurant based in Berlin, Germany sold fast food for bitcoins.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;2 Sep 2011&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Mike Caldwell started creating physical bitcoins which he called Casacius coins. They are physical discs of metal, each with a unique private key embedded behind a hologram sticker. Each coin's private key is linked to an address that is funded with a specified amount of bitcoins., as depicted on the coins.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--aeb_bpHF--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/9ofgpv5y8z5u3fi2g87l.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--aeb_bpHF--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/9ofgpv5y8z5u3fi2g87l.jpg" alt="Image description" width="880" height="204"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;8 May 2012&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Satoshi Dice was a gambling website launched on 24 April 2012. Users could send bitcoins to specific addresses with a chance of winning up to 64,000 times their original stake. Each address had a different payout and a different chance f winning. On 8 May, it became responsible for over half of the transaction volume in the &lt;em&gt;Bitcoin&lt;/em&gt; blockchain.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;28 Nov 2012&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Bitcoin's&lt;/em&gt; first block reward halving day: On block 210,000 the block reward from 50 BTC to 25 BTC, slowing the rate of generation of bitcoins. Transaction fees then were insignificant, so this halving day reduced y half of each block's financial reward for miners.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;2 May 2013&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;The first two-way &lt;em&gt;Bitcoin&lt;/em&gt; ATM was launched in San Diego, California. This was a machine where you could buy bitcoins or sell your bitcoins for cash. This sparked a wave of one-way Bitcoin ending machines and two-way &lt;em&gt;Bitcoin&lt;/em&gt; ATMs being installed around the world.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Jul 2013&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;This month, the first &lt;em&gt;Bitcoin&lt;/em&gt; ETF(Exchange Traded Fund) proposal was filed with the United States of Securities and Exchange Commission. An ETF could make an investment into &lt;em&gt;Bitcoin&lt;/em&gt; more accessible to the public as many funds are allowed to buy ETFs but not bitcoins directly.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;6 Aug 2013&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Bitcoin&lt;/em&gt; was classified as a currency by a judge in Texas, USA. his was one of many arguments and determination of heat Bitcoin is: Currency? Property? A Security? Some other financial Assets? A New Thing? There is still no global definition, and there may never be a globally consistent one.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;9 Aug 2013&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Bitcoin's&lt;/em&gt; price became searchable through Bloomberg software, which is popular with traders in traditional financial markets. Bloomberg used the ticker 'XBT' to represent Bitcoin, consistent with I currency code standards.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;20 Aug 2013&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Bitcoin&lt;/strong&gt; was ruled private money in Germany, with tax exemption if held for more than a year. The tax treatment of bitcoins and cryptocurrency is a major point of contention, especially in the US where the buying ad selling of bitcoins attracts capital gains.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;22 Nov 2013&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Richard Branson, owner of Virgin Galactic, announced he would accept bitcoins as payment for a flight t space. &lt;em&gt;Bitcoins&lt;/em&gt; and space travel - what a great time to be alive.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;&lt;strong&gt;Here, we have reached the end of the history of Bitcoin&lt;/strong&gt;&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--BvT1_BrM--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/mndd79qllpzb2k2htua8.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--BvT1_BrM--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/mndd79qllpzb2k2htua8.jpg" alt="Image description" width="600" height="338"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;I know you found it interesting :)&lt;/p&gt;

&lt;p&gt;Great!&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;That's my job.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Again&lt;/strong&gt;, thanks for reading this out. See you with a new article.&lt;/p&gt;

&lt;p&gt;Still have any issues, feel free to connect with me on &lt;a href="https://www.linkedin.com/in/sarojvrc/"&gt;LinkedIn &lt;/a&gt;&lt;a href="https://twitter.com/iamsarojb"&gt;Twitter&lt;/a&gt;&lt;/p&gt;

</description>
      <category>bitcoin</category>
      <category>cryptocurrency</category>
      <category>blockchain</category>
    </item>
    <item>
      <title>Structure of the Block inside a Blockchain Network</title>
      <dc:creator>Saroj</dc:creator>
      <pubDate>Tue, 22 Mar 2022 04:02:50 +0000</pubDate>
      <link>https://dev.to/sarojvrc/structure-of-the-block-inside-a-blockchain-network-2k63</link>
      <guid>https://dev.to/sarojvrc/structure-of-the-block-inside-a-blockchain-network-2k63</guid>
      <description>&lt;p&gt;&lt;strong&gt;Hey Guys,&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;What's up?&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;So&lt;/strong&gt;, today we will see, the &lt;em&gt;structure of the block&lt;/em&gt; inside a &lt;em&gt;blockchain&lt;/em&gt; network.&lt;/p&gt;

&lt;p&gt;Let's start!&lt;/p&gt;

&lt;p&gt;wait, wait...&lt;/p&gt;

&lt;p&gt;Before starting, I guess you are familiar with &lt;em&gt;Blockchain&lt;/em&gt;, if not, then please read my previous article &lt;a href="https://saroj.hashnode.dev/how-does-the-blockchain-work"&gt;here&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Will it work for you?&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Awesome&lt;/strong&gt;!&lt;/p&gt;

&lt;p&gt;Then why wait? let's start :)&lt;/p&gt;

&lt;p&gt;As you know, &lt;em&gt;blockchain&lt;/em&gt; is consists of a chain of blocks, it is must necessary to have some data inside a &lt;em&gt;block&lt;/em&gt;. Without any data, it is impossible to insert a new &lt;em&gt;block&lt;/em&gt;. Data are like oxygen for humans; without oxygen, humans can't live. Like this way, without data, &lt;em&gt;blocks&lt;/em&gt; inside a &lt;em&gt;blockchain&lt;/em&gt; network can't exist(It must have some data).&lt;/p&gt;

&lt;p&gt;I can't relate to a better example for this. Just kidding. :)&lt;/p&gt;

&lt;p&gt;Cool!&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Now, let's see the structure of a block!&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--V7yqfSTH--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/anzk5vs304p28fsyj0af.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--V7yqfSTH--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/anzk5vs304p28fsyj0af.png" alt="Image description" width="880" height="422"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;As you can see in the above diagram, a &lt;em&gt;block&lt;/em&gt; is differentiated into 2 parts.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Block Head&lt;/li&gt;
&lt;li&gt;Block Body&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Let's talk about &lt;strong&gt;Block head&lt;/strong&gt; first.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--96SMekWY--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/8uwdokdjhbkf7dxzcq21.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--96SMekWY--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/8uwdokdjhbkf7dxzcq21.png" alt="Image description" width="625" height="186"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Block head&lt;/em&gt; is also divided into six components. Those are&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Version number&lt;/li&gt;
&lt;li&gt;Previous block hash&lt;/li&gt;
&lt;li&gt;Merkle tree root hash&lt;/li&gt;
&lt;li&gt;Nbits&lt;/li&gt;
&lt;li&gt;Nonce&lt;/li&gt;
&lt;li&gt;Timestamp&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--PWtjVKhh--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/rnaq8uvwzfcft203xzrc.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--PWtjVKhh--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/rnaq8uvwzfcft203xzrc.png" alt="Image description" width="175" height="76"&gt;&lt;/a&gt;&lt;br&gt;
The &lt;em&gt;block&lt;/em&gt; version number indicates which set of &lt;em&gt;block&lt;/em&gt; validation rules to follow. This is useful for a miner, who wants to mine(to insert a new block) inside the &lt;em&gt;blockchain&lt;/em&gt; network. That means, let's say I want to mine, I need the &lt;em&gt;block&lt;/em&gt; version to check the rules and regulations provided by that version. Every &lt;em&gt;block version&lt;/em&gt; has some rules to follow, which is provided by the &lt;em&gt;blockchain&lt;/em&gt; network.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--T6_5a1TK--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/firj7bemsm24cgj0bb9z.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--T6_5a1TK--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/firj7bemsm24cgj0bb9z.png" alt="Image description" width="174" height="76"&gt;&lt;/a&gt;&lt;br&gt;
A &lt;em&gt;Markle tree&lt;/em&gt; encodes the &lt;em&gt;blockchain&lt;/em&gt; data in an efficient and secure manner. It enables the quick verification of the &lt;em&gt;blockchain&lt;/em&gt; data.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--QH2F8WaO--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/eiw6plylg6njq051yicc.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--QH2F8WaO--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/eiw6plylg6njq051yicc.png" alt="Image description" width="880" height="275"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The data itself is first hashed. Then the hashes are hashed again and merged. Finally, the Merkle tree merged into a single hash, called &lt;em&gt;root hash&lt;/em&gt;. It is also called the root of the tree.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--P1xiO-gA--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/fuqi412o3lhr0owtk34p.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--P1xiO-gA--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/fuqi412o3lhr0owtk34p.png" alt="Image description" width="175" height="73"&gt;&lt;/a&gt;&lt;br&gt;
The hash of the previous &lt;em&gt;block&lt;/em&gt; is the chain of &lt;em&gt;blockchain&lt;/em&gt;. Because the hash of the previous &lt;em&gt;block&lt;/em&gt; is contained on a hash of the new &lt;em&gt;block&lt;/em&gt;. The blocks of the &lt;em&gt;blockchain&lt;/em&gt; are all built on each other.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--NZesyAnd--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/qlu5kp5mt2a576hypalv.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--NZesyAnd--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/qlu5kp5mt2a576hypalv.png" alt="Image description" width="172" height="75"&gt;&lt;/a&gt;&lt;br&gt;
With the help of &lt;em&gt;n Bits&lt;/em&gt;, the current difficulty is used to create this &lt;em&gt;block&lt;/em&gt;. This means it will decide how the &lt;em&gt;block&lt;/em&gt; is to be going to create.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--Krq5nSqZ--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/gd69lpbr2e3ghgn0qbhn.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--Krq5nSqZ--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/gd69lpbr2e3ghgn0qbhn.png" alt="Image description" width="175" height="73"&gt;&lt;/a&gt;&lt;br&gt;
A &lt;em&gt;nonce&lt;/em&gt; is a variable increment by the Proof-of-Work(&lt;a href="https://www.investopedia.com/terms/p/proof-work.asp"&gt;PoW&lt;/a&gt;). In this way, the miner guesses a valid hash, a hash that is smaller than the target.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--6D1Ai3eo--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/lumxviyxc4nm7krpmr61.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--6D1Ai3eo--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/lumxviyxc4nm7krpmr61.png" alt="Image description" width="168" height="74"&gt;&lt;/a&gt;&lt;br&gt;
And &lt;em&gt;timestamp&lt;/em&gt; is the &lt;em&gt;block&lt;/em&gt; itself. Each &lt;em&gt;block&lt;/em&gt; contains a unique &lt;em&gt;timestamp&lt;/em&gt;. A &lt;em&gt;timestamp&lt;/em&gt; is accepted as valid if it is greater than the median of the previous 11 blocks and less than the network adjusted time. Network adjusted time is the median of all blocks present inside the &lt;em&gt;blockchain&lt;/em&gt; network.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Now, let's talk about the Block body.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--lnGuXXIF--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/2awte1w789vc24chcpzz.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--lnGuXXIF--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/2awte1w789vc24chcpzz.png" alt="Image description" width="584" height="213"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The &lt;em&gt;transaction counter&lt;/em&gt; is the place where all transactions are done. Let's say, there are 10 transactions is done inside a &lt;em&gt;block&lt;/em&gt;, then transaction counter creates a copy of every single transaction for its future reference. And those transactions are stored separately.&lt;/p&gt;

&lt;p&gt;Here, we ended up with the &lt;em&gt;structure of a block&lt;/em&gt; inside a &lt;em&gt;blockchain network&lt;/em&gt;. I know, it's kind of confusing, if you are new to &lt;em&gt;blockchain&lt;/em&gt;. But I'm pretty sure, you must have got some idea about the &lt;em&gt;block&lt;/em&gt;.&lt;/p&gt;

&lt;p&gt;Right?&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Awesome!&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;If you further need any help, try to connect with me. I'll be happy to solve your doubts.&lt;/p&gt;

&lt;p&gt;Till then, keep learning and keep smiling :)&lt;/p&gt;

&lt;p&gt;Thanks for reading this. See you soon with a new article.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://www.linkedin.com/in/sarojvrc/"&gt;LinkedIn &lt;/a&gt; &lt;br&gt;
&lt;a href="https://twitter.com/iamsarojb"&gt;Twitter&lt;/a&gt;&lt;/p&gt;

</description>
      <category>blockchain</category>
      <category>web3</category>
      <category>crypto</category>
      <category>bitcoin</category>
    </item>
    <item>
      <title>How does the Blockchain work?</title>
      <dc:creator>Saroj</dc:creator>
      <pubDate>Sat, 19 Mar 2022 05:20:33 +0000</pubDate>
      <link>https://dev.to/sarojvrc/how-does-the-blockchain-work-1mla</link>
      <guid>https://dev.to/sarojvrc/how-does-the-blockchain-work-1mla</guid>
      <description>&lt;p&gt;&lt;strong&gt;Any idea about Blockchain?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Well&lt;/strong&gt;,&lt;/p&gt;

&lt;p&gt;Let's see first, what Blockchain is! and then we will discuss how it works.&lt;/p&gt;

&lt;p&gt;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 transactions of digital assets. It is based on decentralized technologies.&lt;/p&gt;

&lt;p&gt;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.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--5RI8P1fg--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/b95fs7eyro73fakpvyxx.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--5RI8P1fg--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/b95fs7eyro73fakpvyxx.png" alt="Image description" width="391" height="350"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;This diagram describes how a P2P network is established in a blockchain network.&lt;/p&gt;

&lt;p&gt;I'm pretty sure, now you have got an idea about blockchain and P2P networks.&lt;/p&gt;

&lt;p&gt;Great!&lt;/p&gt;

&lt;p&gt;Now, let's see how blockchain works.&lt;/p&gt;

&lt;p&gt;Excited?&lt;/p&gt;

&lt;p&gt;Me too!&lt;/p&gt;

&lt;p&gt;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.&lt;/p&gt;

&lt;p&gt;So, how a block(node) is created inside the blockchain network?&lt;/p&gt;

&lt;p&gt;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).&lt;/p&gt;

&lt;p&gt;After the transaction is verified, the second step is, a new block is created into the blockchain network(but not added).&lt;/p&gt;

&lt;p&gt;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.&lt;/p&gt;

&lt;p&gt;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.&lt;/p&gt;

&lt;p&gt;and here comes to the last stage, that is&lt;/p&gt;

&lt;p&gt;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.&lt;/p&gt;

&lt;p&gt;That is how the blockchain works.&lt;/p&gt;

&lt;p&gt;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.&lt;/p&gt;

&lt;p&gt;Like me :) haha&lt;/p&gt;

&lt;p&gt;Cool!&lt;/p&gt;

&lt;p&gt;Thanks for reading my article.&lt;/p&gt;

&lt;p&gt;See you soon with a new topic!&lt;/p&gt;

&lt;p&gt;Till then, drink coffee and write code&lt;/p&gt;

</description>
      <category>blockchain</category>
      <category>ethereum</category>
      <category>crypto</category>
      <category>bitcoin</category>
    </item>
  </channel>
</rss>
