DEV Community

Cover image for Building Blocks: A Comprehensive Overview of Blockchain Fundamentals

Building Blocks: A Comprehensive Overview of Blockchain Fundamentals

This article is co-authored by @gracieabot_

Is it a revolution or merely hype? In a world where trust is a scarce commodity, a chain of blocks was developed to revolutionize the backbone of the digital economy. A pseudonymous figure, 'Satoshi Nakamoto,' unveiled the first ever blockchain technology named Bitcoin in 2009 [17]. Some may have heard this term used for trading and illicit purchases on the dark web, but what lies behind this currency is blockchain technology that may potentially transcend our transaction systems and identity on the Internet. While digital currencies face regulatory scrutiny, this groundbreaking technology resolves vulnerabilities in the Internet of Things (IoT) and centralized economy and prompts us to question the extent of its impact [6].

Distributed Ledger

Blockchain is the best-known Digital Ledger Technology due to the surrounding hype of cryptocurrency. The Digital Ledger Technology (DLT) is a digital system that may be permissioned or permissionless. Permissioned DLT is used for higher levels of security that only allow a few people to access information, such as identity verification [18]. An example is Ripple, a cryptocurrency that features permission-based roles within the network. On the other hand, permissionless DLT is fully decentralized and allows anyone to participate in the network, like Bitcoin [2].

With the famous saying, 'What goes on the Internet, stays on the Internet,' blockchain's immutable cryptography ensures data security through hashing, creating a unique fingerprint for each piece of information. Once data is altered, the subsequent blocks are modified, and consensus mechanisms play a crucial role in preventing block tampering during block validation [1].

Cryptography

Confidentiality is one of the things that a user considers when utilizing an application that needs their personal information. This is where the importance of cryptography becomes apparent and enters the scene. Aside from hashing, one of the main concepts of blockchain is cryptography. The term cryptography, which comes from the Greek terms "kryptós" (which means "hidden") and "gráphein" (which means "to write"), describes the act of concealing data so that an unauthorized person cannot access it [29].

Blockchain technology uses cryptographic algorithms to encrypt and securely transfer data between two nodes, creating a chain of blocks. In other words, its primary objective is to guarantee the security of the user’s transactions and to prevent instances of double-spending. It also ensures that the user only reads, accesses, and acquires their data to employ their right to privacy [5].

There are two methods for applying cryptographic algorithms to these jobs.

Symmetric-key cryptography

Image description
This is also referred to as Secret-Key cryptography. The message's sender and receiver share a single key in this method. The individual possessing the secret key can decrypt the data once it has been encrypted using the key in a cipher [12].

Asymmetric-key cryptography

Image description
This is also known as Public-Key cryptography. This method employs separate keys for encryption and decryption. They are referred to as the private or secret key and are used to decode data, respectively, while the public key is used to encrypt data [12].

By the use of these, it ensures that the security of information is tightened. Cryptography is essential to blockchain transactions' security, credibility, and immutability.

Consensus Mechanisms

A centralized network with administrators overseeing user data's security, integrity, and legitimacy developed the initial database setup for multiple users. Yet, issues about data tampering and unauthorized access still need to be resolved. This is why consensus mechanisms are created [27].

A consensus mechanism brings all nodes together on a single data set to achieve widespread agreement over the ledger’s state. This is crucial to automated group verification because it serves as the verification criteria that each blockchain transaction must pass [28].

Two primary consensus mechanisms

Proof of Work (PoW)

This work is based on game theory [14]. Miners are compensated for their processing power and difficult contributions to the network, similar to a lottery system. It is also increasingly frequently utilized in cryptocurrency networks like Bitcoin and others centered on payment and financial use cases [19].

Proof of Stake (PoS)

This technique verifies data stored on a network. A smart contract on the blockchain receives amounts of bitcoin or crypto tokens from validators in exchange for rewards and new transactions. But, in the event that there is data fraud, they can forfeit all or part of their stake [15].

Smart contracts

When engaging in transactions anonymously through a peer-to-peer network (P2P), it is necessary to establish terms and conditions with the involved parties. Unlike traditional contracts, a smart contract outlines agreements but operates on computerized transaction protocols. External entities such as banks, insurance companies, and postal services may also participate. For example, if an individual holds disaster risk insurance, the company verifies the situation in the region and reports to the network. The network approves the insurance benefit if the terms and conditions are satisfied [8].

The life cycle of a smart contract typically involves four phases. First, the terms and conditions of the users are deployed to the network and converted into code. Then, digital assets are locked or held in escrow until network nodes confirm that the specified conditions are met. Once the conditions are satisfied, the transaction data is executed, and finally, the consensus mechanism verifies the transaction history of the receiving party [11]. One of the most well-known blockchain platforms for running independent, smart contracts is Ethereum [9].

Transparency and Trust

Blockchain is set to change data systems across various industries, impacting businesses and consumers [13]. It is a trustless system since there is no need to trust an intermediary [6]. This technology is safeguarded by complex encryption algorithms, making it highly resource-intensive and expensive to alter a user's database, as any changes must be propagated across every copy of the network [23].

Unlike traditional supply chains, blockchain provides a shared ledger accessible to everyone instead of allowing central authorities such as the government or corporations to verify transactions [3]. In that way, data is visible from the supplier up to the consumer's end without the risk of manipulating data during the process.

Scalability and Energy Efficiency

Our industry increasingly values blockchain technology because of its transparency, security, and decentralized systems like cryptocurrencies. However, significant issues of blockchain technology evolve in its energy efficiency and how it affects its scalability [16].

How much electricity does the blockchain consume?

One of the more energy-intensive blockchain networks, proof-of-work (PoW) systems, requires a lot of energy, particularly when solving intricate mathematical puzzles and performing other cryptographic computations [16]. Blockchain consumes a significant amount of energy; for instance, mining produces as much carbon as the city of Las Vegas, among other examples that contribute to an overall increase in electricity use. This raises concerns regarding how it may affect our environmental growth [4].

How does scalability affect transactions?

The scalability of blockchain technology is the second drawback. An example is the restricted amount of Bitcoin transactions per second (TPS). This leads to slower transactions and greater expenses [7]. Many claim that traditional payment methods outperform cryptocurrency transactions in terms of speed [22].

Still, other approaches to these problems, such as using proof-of-stake (PoS) and delegated proof-of-stake (dPoS), use a lot less energy. We can also employ sidechains, off-chain solutions, and other methods to expedite each blockchain transaction as a scalability alternative [22].

In conclusion, blockchain technology represents a revolutionary development in transparency, security, and decentralization. Its fundamentals lie in the distributed ledger system, cryptographic principles, and consensus mechanisms that make transactions tamper-proof, secure, and unchangeable [26].

As we embark on the journey to a modern world powered by blockchain, it is crucial to acknowledge its potential benefits and exercise caution and moderation in its implementation. Although blockchain technology provides unmatched security and efficiency, using it carelessly might only sometimes be the best action. To fully realize the potential of blockchain technology, it is imperative to strike a balance between encouraging innovation and ensuring responsible application.

References

[1] Blockchain and Decentralization: How Distributed Ledgers are Changing the Way We Govern and Organize (2023, October 17). Elevondata. https://www.linkedin.com/pulse/blockchain-decentralization-how-distributed-ledgers-changing/
[2] Blockchain and Distributed Ledger Technology (DLT) (2023, April 20). GeeksForGeeks. https://www.geeksforgeeks.org/blockchain-and-distributed-ledger-technology-dlt/
[3] Blockchain for Supply Chain: Track and Trace (n.d.). Amazon Web Services. https://aws.amazon.com/blockchain/blockchain-for-supply-chain-track-and-trace/#:~:text=Blockchain%20can%20be%20used%20as,for%20waste%20and%20energy%20reduction.
[4] Blockchain’s energy Crisis | SAP Insights. (n.d.). SAP.
https://www.sap.com/sea/insights/viewpoints/blockchains-energy-crisis.html
[5] Cryptography in Blockchain - GeeksforGeeks. (2022, May 7). GeeksforGeeks.
https://www.geeksforgeeks.org/cryptography-in-blockchain/
[6] De Marco, N. (2023, July 28). How Blockchain Is Providing A New Era Of Transparency And Trust. Forbes. https://www.forbes.com/sites/forbestechcouncil/2023/07/28/how-blockchain-is-providing-a-new-era-of-transparency-and-trust/?sh=5826153f32c8
[7] Decoding the Paradox: The Challenges and Limitations of Blockchain Technology. (n.d.).
LinkedIn.
https://www.linkedin.com/pulse/decoding-paradox-challenges-limitations-blockchain-tech
nology
[8] Frankenfield, J. (2023, October 31). What Are Smart Contracts on the Blockchain and How They Work. Investopedia. https://www.investopedia.com/terms/s/smart-contracts.asp#:~:text=Smart%20contracts%20are%20code%20written,parties%20to%20trust%20each%20other.
[9] Introduction to Smart Contracts (2024, February 16). Ethereum. https://ethereum.org/developers/docs/smart-contracts
[10] Judell, F. & Lenga, N. (2023, February 1). The Fundamentals of Blockchain. Zerocap. https://zerocap.com/insights/research-lab/fundamentals-of-blockchain/
[11] Life Cycle of Smart Contract (n.d.).GeeksforGeeks. https://www.geeksforgeeks.org/life-cycle-of-smart-contract/
[12] Lin, P. Y. (2023, March 20). What is Cryptography in Blockchain? How Does it Work? - CFTE. CFTE. https://blog.cfte.education/what-is-cryptography-in-blockchain/
[13] Lisk (2018, February 21). Is Blockchain Safe? Blockchain Security Explained. Youtube. https://youtu.be/5XtvHJbq5kw?si=dKrRTjv5ZQvvjSGb
[14] Malanii,Luciano Ciattaglia, J. F. (2023, April 6). Types Of Consensus Mechanisms In Blockchain - Hacken. Hacken. https://hacken.io/discover/consensus-mechanisms/
[15] Napoletano, E. (2024, January 3). Proof Of Stake Explained. Forbes Advisor.
https://www.forbes.com/advisor/investing/cryptocurrency/proof-of-stake/
[16] Nigeria, S. (2023, October 23). How Energy-Efficient Blockchain Technologies are Paving the Way for Sustainable Decentralization. Medium.
https://medium.com/@superexnigeria/how-energy-efficient-blockchain-technologies-are-
paving-the-way-for-sustainable-decentralization-55e487cb6fa4
[17] Patel, D. (n.d.). Overview of Blockchain. Trade Finance Global. https://www.tradefinanceglobal.com/blockchain/history-of-blockchain/
[18] Permissioned blockchain vs. permissionless blockchain: Key differences (n.d.). Cointelegraph. https://cointelegraph.com/learn/permissioned-blockchain-vs-permissionless-blockchain-key-differences
[19] Quigley, J. L. (n.d.). What Is Proof-of-work (PoW)? All You Need to Know. Blockworks.
https://blockworks.co/news/what-is-proof-of-work
[20] Simplilearn (2019, February 27). Blockchain In 7 Minutes. Youtube. https://www.youtube.com/watch?v=yubzJw0uiE4&t=101s
[21] Symmetric vs. Asymmetric Encryption - What are differences? (n.d.). SSL2BUY.
https://www.ssl2buy.com/wiki/symmetric-vs-asymmetric-encryption-what-are-differences
[22] Team, S. C. (2022, November 14). Blockchain Scalability - A Guide on Scalability Solutions & Trilemma | Shardeum. Shardeum Blogs | EVM-based Sharded L1 Blockchain. https://shardeum.org/blog/what-is-blockchain-scalability/
[23] TEDx Talks (2017, April 11). How blockchain technology can help build a transparent future. Youtube. https://www.youtube.com/watch?v=v6TtI9qEiTU
[24] Trade Station (2021, August 18). How Secure Is Blockchain? | Blockchain Security Explained. Youtube. https://youtu.be/aZA8rQ4o4sA?si=NzsJt11gZDjj_YHc
[25] What is blockchain technology? (n.d.). IBM. https://www.ibm.com/topics/blockchain
[26] Wadhwani, K. (2023, November 24). The Importance of Blockchain in Modern Technology. Solulab. https://www.solulab.com/blockchain-in-modern-technology/
[27] What Are Consensus Mechanisms in Blockchain and Cryptocurrency? (2023, February 17).Investopedia.https://www.investopedia.com/terms/c/consensus-mechanism-cryptocurrency.asp
[28] What Is a Consensus Mechanism? (2023, March 23). Built In.
https://builtin.com/blockchain/consensus-mechanism
[29] Team, L. (2023, September 15). Data Security in Blockchain With Cryptography. LCX.
https://www.lcx.com/data-security-in-blockchain-with-cryptography/
[30] Leveraging the Power of Blockchain (2023, March 26). Why Blockchain’s Mainstream Adoption Is Still A Far-Fetched Dream: Overcoming the Hurdles. Fibree. https://fibree.org/why-blockchains-mainstream-adoption-is-still-a-far-fetched-dream-overcoming-the-hurdles/

Top comments (0)