DEV Community

Cover image for Blockchain For Dummies
CyprianTinasheAarons
CyprianTinasheAarons

Posted on

Blockchain For Dummies

"What the internet did for communications, blockchain will do for trusted transactions." - Ginni Rometty, CEO of IBM

Key Definitions ๐Ÿน

What's a Database? ๐Ÿง

A database is a collection of information that is stored electronically on a computer system. It is a systematic collection of data. An example of a database is MySQL.

What's Cryptography? ๐Ÿค“

Cryptography is the study of secure communications techniques that allow only the sender and intended recipient of a message to view its contents. The term is derived from the Greek word Kryptos, which means hidden. This is part of the reasons why blockchain technology is secure.

thought-catalog-bj8U389A9N8-unsplash.jpg

History of Blockchain ๐Ÿ”—

David Chaum first proposed a blockchain-like protocol in his 1982 dissertation " Computer Systems Established, Maintained, and Trusted by Mutually Suspicious Groups." Further work on a cryptographically secured chain of blocks was described in 1991 by Stuart Haber and W. Scott Stornetta.

The first blockchain was conceptualized by a person (or group of people) known as Satoshi Nakamoto in 2008. Nakamoto significantly improved the design using a Hashcash-like method to timestamp blocks without requiring them to be signed by a trusted party and introducing a difficulty parameter to stabilize the rate with which blocks are added to the chain. The design was implemented the following year by Nakamoto as a core component of the cryptocurrency bitcoin, where it serves as the public ledger for all transactions on the network.

Bitcoin was created to be a decentralized form of money, rather than money that was government-controlled and created (referred to as fiat money). Currently, one bitcoin is worth $36,774.00 on the crypto exchange and has a market cap of over $600 Billion.๐Ÿค‘๐Ÿค‘

What's Blockchain? ๐Ÿ”Ž

First Definition

A blockchain is a database that is shared across a network of computers. Once a record is on a chain it's difficult to alter. To ensure that the databases are the same the network does constant checks. Records are bundled together into blocks and added to the chain one after the other.

Second Definition

A blockchain is a decentralized database of all transactions across a peer-to-peer network.
It is a method of storing data and the data is stored in blocks that are linked together permanently( like a chain). A block is a record of new transactions. When a block is completed, itโ€™s added to the chain.

Third Definition

A blockchain is, in the simplest of terms, a time-stamped series of immutable records of data that is managed by a cluster of computers not owned by any single entity. Each of these blocks of data (i.e. block) is secured and bound to each other using cryptographic principles (i.e. chain).

pierre-borthiry-vBCVcWUyvyM-unsplash.jpg

โ€œPicture a spreadsheet that is duplicated thousands of times across a network of computers. Then imagine that this network is designed to regularly update this spreadsheet and you have a basic understanding of the blockchain.โ€ - BlockGeeks

What makes up a Blockchain ? ๐ŸŽฒ

Record - any form of information eg a contract,

Block - a bundle of the records or transactions

Chain - all the blocks linked together

BLOCKCHAIN.jpg

Here's an example of how a blockchain works

For example , let's say Mr. Cyprian sells a coin to Mr. James for $50.The following are the steps that the transaction will take

Step 1 : A trade is recorded

A record of the deal is created with all the required details.

Step 2 : Record is checked for validity the network

A network of computers called 'nodes' checks the details of the transaction to make sure it's valid. If it's valid the record is accepted by the network.

Step 3 : Accepted record is added to the block

The record accepted by the network is added to the block. Each block contains a unique hash and the hash of the previous block.

Step 4 : Block is added to the blockchain

The block is added to the blockchain and in a specific order that creates an immutable chain. With each block connected to the previous block.

Blockchain Consensuses ๐ŸŽฎ

Proof of Work

It is the first-ever consensus method used by a blockchain network. It was introduced with bitcoin. To add a block to the chain, nodes must demonstrate that they have done โ€˜workโ€™ by solving an increasingly difficult computational puzzle. This process, called mining, uses a lot of computing power. In return for their work, members can receive rewards - tokens for instance, or bitcoins.

Proof of Stake

Participants buy tokens that allow them to join the network. The more tokens they have, the more they can mine. It is the consensus used by Ethereum.

Delegated Proof-of-Stake

DPoS is a different type of PoS. It handles the node selection differently. The coin holders, in this case, select the nodes to take part in the consensus method. It is more suited for an established network with more trust.

Practical Byzantine Fault Tolerance

PBFT is a way to solve the Byzantine Generals Problem. It enables nodes to decide whether to accept or deny the submitted information. The party maintains an internal state which is used to run a computation on new messages. If the party computation runs well, it then decides to share the transaction with other parties within the same network.

Use Cases ๐Ÿ”ฅ

  1. Cryptocurrency

Blockchain technology is the basis of cryptocurrencies like the popular Bitcoin and others.

  1. Banking

Ripple blockchain technology can be used by banks to implement CBDCs (Central Bank Digital Currencies).

  1. Supply chain

Recording trades on a blockchain offers a way to check the history of a product. This allows companies to have an ownership history of a precious product like diamonds.

  1. Healthcare

Patients can control their medical history and allows hospitals to securely store patient medical information.

  1. Voting

Making use of blockchain records allows the creation of tamper-proof elections.

  1. Property records

Making use of Non-Fungible Tokens (NFTs) we can store title deeds securely and have an ownership record that is immutable and transparent.

Screenshot 2021-06-04 at 09.19.59.png

Benefits of Blockchain ๐Ÿฅณ

  1. Secure and Reliable , since the blockchain network records and validates every transaction made.
  2. Cuts the middlemen , since the transactions are peer-to-peer transactions.
  3. Users have control of all their data and information.
  4. Faster transaction speeds from days to minutes.
  5. Decentralized System, therefore it's not easy to hack.

Great Resources ๐Ÿคฏ

how-to-create-an-nft-on-ethereum-blockchain

https://blockgeeks.com/guides/what-is-blockchain-technology/

https://101blockchains.com/blockchain-for-beginners/

https://fortunly.com/statistics/blockchain-statistics/#gref

https://media.consensys.net/the-20-blockchain-projects-with-the-most-developer-activity-on-github-6e0d6e748b8d

https://github.com/yjjnls/awesome-blockchain

Conclusion โ˜„๏ธ

Thanks to you for giving me your time and I hope you learned something.

Thanks to all the resources that helped me put this together.

Thank you for reading this -Follow me on Twitter

Checkout my website.

Buy Me A Coffee

Top comments (1)

Collapse
 
horomancer profile image
horomancer

It will be interesting to see services grow that are owner less and do not seek profit. The most obvious implementation is Centralized vs Decentralized exchanges for crypto. All the centralized exchanges take some % for their own profit, while DEXs like Uniswap only have the inbuilt friction of processing the transaction. What will things look like when other services don't seek profit?