Over a million developers have joined DZone.
{{announcement.body}}
{{announcement.title}}

Blockchain: A Game Changer

DZone's Guide to

Blockchain: A Game Changer

A high-level overview of how blockchain technology operates, and the implications of a secure, distributed ledger system.

· Security Zone ·
Free Resource

Discover how to provide active runtime protection for your web applications from known and unknown vulnerabilities including Remote Code Execution Attacks.

It all started with Bitcoin in 2009. The underlying technology used by Bitcoin was the first version of blockchain. Since then, blockchain has come a long way. Blockchain not only powers the myriad cryptocurrencies but, now, is becoming the foundation for many applications. From the public implementation of blockchains, primarily for cryptocurrencies, the evolution is towards the private implementation of blockchain within enterprises, embedded into applications.

We are at a juncture where there are innumerable possibilities that can be foreseen for the use of blockchain. Blockchain is disruptive!

The use of blockchain technology will disrupt the way interactions happen in society, how records are kept, and how business and trade happens. In the longer term, there will be a potential shift from a trust-based economy based on central authorities to a proof-based economy based on collaboration and consensus. The technology is still at a very nascent stage but in all likelihood will have an impact on the economy as well as several societies and cultures around the world. This potentially will change how fraud happens, all based on immutable records and distributed database not controlled by a single authority and that are hard to tamper.

The combination of IoT (Internet of Things), big data, easily accessible and on-demand computing power in the cloud, coupled with blockchain and "smart apps" will lead to many technological advancements in the next few years. It will be a very, very interesting journey from a technology and societal perspective. There will be different approaches to creating business processes and how multiple parties will work together in a supply chain, enabled by smart contracts.

But what is this technology that can have such a significant impact on our business and interactions? Let us look at it at a high level.

What Is Blockchain?

Blockchain is a secure, shared, distributed ledger. The distributed ledger can be public, private, or part of a consortium.

The key aspects of the blockchain database are:

  • Secure - Each transaction is secured with cryptography. Cryptography is the fundamental building block based on which blockchain has been developed.
  • Shared - The database is shared between parties (peer-to-peer) without the need for any intermediary to verify the authenticity of the records of the database, thereby not needing a central authority to be trusted.
  • Distributed - The blockchain database is distributed with multiple replicas of the same database. This also means that the trust in the data is also distributed. How is this achieved? Through a mechanism of consensus.
  • Ledger - A ledger where you can only write and cannot alter records once written. The blockchain database can only be appended with immutable records of each transaction and time-stamped. The transactions are recorded in the shared ledger in a secure and verifiable way, reducing the chances of someone tampering with the records.

How Does Blockchain Work?

The technology is quite complicated but here is what happens in a simplified form. In the blockchain, a block consists of the data, a hash of the previous block and a hash of the current block. So when the data (or the hash of the previous block) in a block changes, the hash of that block would change, which would need the hash in the following block to change as well ... and so on. All following blocks need to be updated if one block in the chain is updated.

Image title

This becomes a deterrent for the data on a single block to be changed, however, it is not impossible to change the hash of all forward blocks. To overcome this challenge, blockchains use distributed databases. The complete blockchain database is available with each of the participating entities in a peer-to-peer communicating network.

Image title

When one block needs to be added, that block is sent to all the participating entities (peers). Each of the participating entities needs to approve that the block is valid. Once more than fifty percent of the entities confirm that the block is valid, the block can be added. At a high level, this prevents tampering of the records in the blocks.

Blockchain technology was introduced with Bitcoin. Bitcoin was the first generation of blockchain. Then came Ethereum, the second generation blockchain, which added Smart Contracts on top of blockchain. Smart contracts are digital contracts stored in a distributed ledger. They are computer programs, written with certain logic and stored in a blockchain. As this sits in a blockchain, the smart contract becomes immutable, making it very hard to tamper with it and manufacture a fraudulent entry. The applications are then built to use the smart contracts and often use automated data feeds from IoT sensors and other sources.

It is important to note that the implementation of blockchain in the enterprise needs consideration that would be different than the public implementations of blockchain. Two starting points to explore enterprise blockchain solutions are on AWS and Azure. AWS has launched the capability to build blockchain networks on AWS. Azure also provides capabilities to build apps on blockchain using Azure Blockchain Workbench.

Further reading:

  • Bitcoin: A Peer-to-Peer Electronic Cash System by Satoshi Nakamoto. The original paper was published in 2008. Nobody knows who Satoshi Nakamoto is, whether he is an individual or a group, but this paper has its own place in history and will be the trigger to many dramatic socio-economic changes in the future.
  • How the blockchain will radically transform the economy - a TED Talk by Bettina Warburg. Without getting into the technology part of blockchain, this talk beautifully sets the perspective of blockchain and its potential future influence.

Find out how Waratek’s award-winning application security platform can improve the security of your new and legacy applications and platforms with no false positives, code changes or slowing your application.

Topics:
blockchain ,security ,distributed ledger

Published at DZone with permission of

Opinions expressed by DZone contributors are their own.

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}