Understanding Blockchain basic structure
Bloackchain basic understanding
The concept of blockchain was introduced in 2008 when it was released Bitcoin by Satoshi Nakamoto who described this as a purely peer-to-peer version of electronic cash. As Blockchain tech at first was only used with Bitcoin for Bitcoin-based financial transactions, during the initials the people saw blockchain as the same as Bitcoin. But, then people saw that the blockchain mechanism did not only restrict to financial transactions in Bitcoin.
Blockchain is distributed and decentralized open ledges that are cryptographically managed and updated by consensus protocols and agreements among its peers. Knowing this way of work began to surge other types of applications like Ethereum, Hyperledger, and so on, along with the currencies Litecoin, Namecoin, and others.
Here is a list of industries that use blockchain as basic technology:
Cryptocurrency: Bitcoin is a prime example of this. Apart from this, there are various alternative cryptocurrencies, such as Ethereum, Litecoin, Peercoin, and so on.
Cybersecurity: There are various companies and projects harnessing the distributed nature of blockchain to create special authentication protocols for mass usage.
Healthcare: Scalability is one of the best catalysts of blockchain; a lot of projects are securely storing data and using analytics to come to the perfect solution. Providing decentralized patient records and authentication is already being used at various facilities.
Financial services: A lot of insurance and financial institutions are using blockchain to maintain vast bank data, such as financial records, ledgers, guarantees, bonds, and so on.
Manufacturing: Supply chain, prototyping, and proof-of-concept, along with the tracking and tracing of goods is utilizing blockchain at the best efficiency.
Governance: A lot of governments are racing toward becoming the world's first blockchain-powered state. Blockchain is being used across most government departments and not restricted only to public safety, transport, health, and shipping.
Retail: A lot of startups and projects are aiming to introduce open no-middlemen-based ecosystems; some are working on loyalty systems and blockchain-derived gift card systems.
Media: Record labels can use blockchain to keep their ownership network and intellectual property rights secure.
Travel: Projects are being worked on to introduce and revolutionize vehicle leasing, ride-sharing, and other travel-related queries.
Legal: Blockchain can bring transparency and solve the scaling issues in the ever-complex legal systems that are in place.
General Elements of the blockchain structure
Peer-to-peer network (P2P): Unlike to conventional networks where all the system are connected to a central server that acts as a central point of communication among systems. P2P network can communicate with one to another without the need for central servers or hosts.
Image of conventional network vs P2P:
Block: This is the smallest element of a blockchain; The first block is called the genesis block and each block contains batches of hashed and encoded transactions. Each one has stored in a [Merkle tree](https://hackernoon.com/merkle-trees-181cb4bc30b4) formation.
Block header: This contains metadata about the block. In the case of bitcoin is considered the following: *Bitcoin version, Previous block hash, Merkle root, Timestamp, Mining difficulty, and Nonce*. Check the picture:
Addresses: Addresses are unique identifiers that are used in a transaction on the blockchain, to send data to another address; In the case of Bitcoins, addresses are identifiers that are used to send or receive Bitcoins.
Wallet: Is used to store public or private keys along with addresses for a transaction. There are various types of wallets available.
Software: This wallet is installed on the actual computer; the private key access is with the owner of the machine on which the wallet's software is installed.
Web Wallets: These wallets are based on the cloud and can be accessed anywhere. The private keys are shared with the wallet service.
Paper Wallets: The private keys of this wallet are printed on paper.
Hardware: These are physical wallets and are small and portable in nature. The private keys are with the hardware users of each wallet.
Transaction: This is the process of transferring data from one address in blockchain to another address.
Node: is a copy of the ledger managed by a participant of the blockchain network.
Types of blockchain networks
We can classify blockchain into multiples types based on the type of access and nodes:
Public Blockchain: is a blockchain where anyone in the world can become a node in the transaction process. It is a completely open public ledger system. Public blockchains can also be called permissionless ledgers. Some popular examples of this type of blockchain are Bitcoin, Ethereum, Litecoin, and so on.
Semi Private Blockchain: is usually run by a single organization or a group of individuals who grant access to any user, who can either be a direct consumer or for internal organizational purposes. This type of blockchain has a public part exposed to the general audience, which is open for participation by anyone.
Private Blockchain: in this one, the write permissions are with one organization or with a certain group of individuals.
Consortium Blockchain: In this type of blockchain the consensus power is restricted to a set of people or nodes. It can also be known as a permission private blockchain.
The consensus is the process when all participants of the network agree on the validity of the transactions, ensuring that the ledgers are exact copies of each other. For this process are used the mechanisms of consensus, for handle the validations, some prime mechanisms for consensus by blockchain are the following:
Proof of Work (PoW) This is the most commonly used consensus mechanism, also used by the first-ever cryptocurrency, Bitcoin. This algorithm has proven most successful against Sybil attacks.
Proof of Stake (PoS) makes the mining of new blocks easier for those who have the highest amount of cryptocurrency.
Delegated Proof of Stake (DPOS) one small change it has over PoS is that each node that has a stake can delegate the validation of a transaction to other nodes by means of voting.
Proof of Importance (POI) this is designed to be energy efficient and can also run on relatively less powerful machines. It relies on stake as well as the usage and movement of tokens to establish trust and importance.
Proof of Elapsed Time (PoET) is a blockchain algorithm created by Intel, using Trusted Execution Environment (TEE) to have randomness and security in the voting process using a guaranteed wait time.
Proof of burn (PoB) is mostly used for bootstrapping one cryptocurrency to another. The basic concept is that miners should prove that they have burned coins, that is, they have sent them to a verifiably un-spendable address.
Proof of activity (PoA) A random peer is selected in this from the entire network to sign a new block that has to be tamper-proof.
There is a roadmap to understand blockchain structure and its uses, it is important also to read about crypto economics and some concepts of conventional financial transactions, like the payment process credit card-based. You can follow the references if you want to dig deeper:
[Blockchain Developer's Guide](https://www.packtpub.com/big-data-and-business-intelligence/blockchain-developers-guide)