Difference between Public and Private blockchain

11 May, 2022
1. What is Public Blockchain ? Public blockchains are open networks that allow anyone to participate in the network i.e. public blockchain is permissionless. In this type of blockchain anyone can join the network and read, write, or participate within the blockchain. A public blockchain is decentralized and does not have a single entity which controls the network. Data on a public blockchain are secure as it is not possible to modify or alter data once they have been validated on the blockchain. 
Some features of public blockchain are :  
High Security – It is secure Due to Mining (51% rule).  
Open Environment – The public blockchain is open for all.  
Anonymous Nature – In public blockchain every one is anonymous. There is no need to use your real name, or real identity, therefore everything would stay hidden, and no one can track you based on that.  
No Regulations – Public blockchain doesn’t have any regulations that the nodes have to follow. So, there is no limit to how one can use this platform for their betterment  
Full Transparency – Public blockchain allow you to see the ledger anytime you want. There is no scope for any corruption or any discrepancies and everyone has to maintain the ledger and participate in consensus.  
True Decentralization – In this type of blockchain, there isn’t a centralized entity. Thus, the responsibility of maintaining the network is solely on the nodes. They are updating the ledger, and it promotes fairness with help from a consensus algorithm .  
Full User Empowerment – Typically, in any network user has to follow a lot of rules and regulations. In many cases, the rules might not even be a fair one. But not in public blockchain networks. Here, all of the users are empowered as there is no central authority to look over their every move.  
Immutable – When something is written to the blockchain, it can not be changed.  
Distributed – The database is not centralized like in a client-server approach, and all nodes in the blockchain participate in the transaction validation.  
2. What is Private Blockchain ? A private blockchain is managed by a network administrator and participants need consent to join the network i.e., a private blockchain is a permissioned blockchain. There are one or more entities which control the network and this leads to reliance on third-parties to transact. In this type of blockchain only entity participating in the transaction have knowledge about the transaction performed whereas others will not able to access it i.e. transactions are private. 
Some of the features of private blockchain are : 
 
Full Privacy – It focus on privacy concerns.  
Private Blockchain are more centralized.  
High Efficiency and Faster Transactions – When you distribute the nodes locally, but also have much less nodes to participate in the ledger, the performance is faster.  
Better Scalability – Being able to add nodes and services on demand can provide a great advantage to the enterprise.  Difference between Public and Private blockchain : 
varshagumber28
rkbhola5
Blockchain
Writing code in comment?
Please use ide.geeksforgeeks.org,
generate link and share the link here.