Blockchain, you have heard of it right? It’s the one that is more notably recognised as being synonymously linked to cryptocurrencies such as Bitcoin. Its popularity boomed towards the end of 2017 when the first Bitcoin peaked at its all-time high price of around $20k. Some people became very rich indeed and this spurred on the outburst of blockchain development companies, apps, games, online communities, whale investors and of course media coverage.
Sadly though I often find that people associate Blockchain purely with cryptocurrencies and this is just not the case. Bitcoin is not the same as Blockchain. Blockchain as a technology is a complex and interesting paradigm that brings new and exciting possibilities to the future. I decided to write this article to clarify and share my knowledge.
This article covers the following:
- A brief history of blockchain
- What is a blockchain?
- How is a blockchain secure?
- What problems does Blockchain solve?
- The Future of Blockchain
A brief history of blockchainThe idea of blockchains was first conceived in 1991 by Stuart Haber and W. Scott Stornetta in their paper titled: "How to time-stamp a digital document" . They wanted to implement a system by which digital documents could be timestamped securely. This would make it impossible to backdate them or tamper with them. In 2012, joined by Dave Bayer, Haber and Stornetta incorporated a cryptographic hash tree known as a Merkle Tree into the design to improve efficiency (Allowing several documents to be collected together in a single 'block') and security (Storing relational hashes in blocks) :
A Merkle tree is recursively defined as a binary tree of hash lists where the parent node is the hash of its children, and the leaf nodes are hashes of the original data blocks. , thus creating
What is a hash?
Succinctly, a "hash" is the result of a cryptographic formula that has taken some form of data, encrypted it and returned the result as a single string of characters (numbers and/or letters).
The Banksy of BlockchainSatoshi Nakamoto is the author of the official Bitcoin Whitepaper (Bitcoin: A Peer-to-Peer Electronic Cash System)  and is the one who created and deployed bitcoin's original reference implementation. To this day Nakamoto remains an unknown identity like the elusive street artist Banksy. .
What is a blockchain?A blockchain is a Distributed Ledger often referred to as DLT (Distributed Ledger Technology) which is accessible to everyone meaning it is Decentralized. Once data is stored within a block it becomes extremely difficult to change it. To explain this further, let's take a closer look at a single block. In the representation above of a single block within a blockchain you can see that a block is comprised of three things; Data, a Hash, and the Hash of the previous block.
The Block DataThe data in a blockchain all depends on what type of blockchain there is (yes there are different types of blockchain, and not to send you down a rabbit hole but there is also something called the Tangle which is a form of DAG Technology (Directed acyclic graph) )
On a side note about the Tangle. IOTA - the cryptocurrency that utilises the Tangle is one that I am very 'Bullish' on as I think it is a revolutionary and forward thinking approach to M2M (Machine to Machine) transactions and the entire future of the M2M economy. I wrote a quick and easy to follow How to buy IOTA guide if you are interested.
Before we get too sidetracked let's get back to Blockchain data. So, let's assume we have the Bitcoin Blockchain. The data that is stored in there will be The Sender, The Receiver and The Amount
The Block HashThe block will also contain a Hash. The Bitcoin blockchain uses the SHA-256 Hash Algorithm . When the block is created, the data is taken and the hash is calculated from that Data. This process is called cryptography. Because the hash will be unique to the block and the data inside, it can be treated as and is often referred to as a "digital fingerprint".
Previous Block HashThe block also contains the hash of the previous block and it is this which creates the chain. It is also this which is integral to the security of the blockchain.
Genesis BlockSome of you might have just figured out that the previous hash cannot infinitely go backwards as there must be a starting point and you're right. Block 0 or sometimes called block 1 is known as the Genesis Block.
A genesis block is the first block of a block chain. Modern versions of Bitcoin number it as block 0, though very early versions counted it as block 1. The genesis block is almost always hardcoded into the software of the applications that utilize its block chain. It is a special case in that it does not reference a previous block, and for Bitcoin and almost all of its derivatives, it produces an un-spendable subsidy. 
How is a blockchain secure?The blockchain utilises 3 techniques for its security: Merkle Tree Hash Methodology, Proof of Work, P2P (Peer to Peer) Network.
Merkle Tree Methodology
As I mentioned above in A brief history of blockchain, back in 2012 the Merkle Tree Cryptographic Hash Methodology was implemented into the design for blockchain which improves not just the efficiency but the security too. The implementation of Merkle trees allow for a deterministic and waterfall style method of block creation. Each block will be assigned a hash of its data and each new block from that block will be a copy of the parent blocks hash.
To explain this a little more clearly in the context of Bitcoin lets delve into an example. The illustration below shows an example transaction between Susan Bloggs and Chris Bloggs. Susan has sent 3.456BTC (Bitcoin) to Chris. This transaction creates a new block on the chain with the data of the transaction, the hash of that data and the hash from the initial block.So the data we are encrypting is: The Sender: Susan Bloggs, The Receiver: Chris Bloggs and The Amount: 3.456BTC. Using our hashing function we get the hash: b4de b27c 02e8 bdbe 6beb 48c5 a943 d189. We then add this hash to our block.
In order to add a new block to our blockchain we check that the new blocks previous hash matches the previous block. In our example it is: b4de b27c 02e8 bdbe 6beb 48c5 a943 d189. It is exactly the same and thus we know that nothing has been tampered with. This confirmation process verifies that all hashes are consistent back to the Genesis Block.
Proof of WorkComputers today are fast and are only getting faster which opens the possibility that someone could create a new block and re-calculate all previous block hashes and get around this security feature. To Mitigate this, blockchain also utilises something called (PoW) Proof-of-Work. PoW effectively slows down the creation of new blocks. In a Bitcoin example each block would take around 10-15 mins to calculate the required PoW and add a new block to the existing chain. So if you were to tamper with the chain you would need to recalculate potentially hundreds of thousands of blocks.
A proof of work is a piece of data which is difficult (costly, time-consuming) to produce but easy for others to verify and which satisfies certain requirements. Producing a proof of work can be a random process with low probability so that a lot of trial and error is required on average before a valid proof of work is generated.  Bitcoin uses the hashcash PoW  function as the mining core.
P2P (Peer to Peer) Network Consensus
The blockchain is made public and available to everyone, making it decentralised. When someone joins the blockchain they get a full copy of it in its current state. This is then referred to as a node. When a new block is created, any node connected to this chain will take the new block and then use PoW to verify that it is indeed secure. Each node will check the other nodes response to the new block. This means that if the block was tampered with and even if some nodes had tampered with blockchains, the new block would still be rejected as other nodes will notice the inconsistencies. This means that to anyone wanting to tamper with a block they would need to re-create the block, perform the Proof-of-Work for the entire block and take control of more than 50% of the network. This could be hundreds or thousands of people making it almost impossible to do.
What problems does Blockchain solve?
It might not be clear what use this technology provides other than being able to digital time stamp documents securely but there are several real world use cases where blockchain technology really shines through. Here are a few examples:
Currency and Transactions
When you transfer money at the moment, whether that be for your personal use or business use and whether that is to a friend in the same country or any entity overseas, you need to use a third party service such as a Bank or Paypal or another money transfer system like MoneyGram. They do it well, its secure and traceable. So what is bad about them? Like anything where you need to use an intermediary, you incur charges and unfortunately due to our current systems those fees are usually pretty hefty and can take several days or even weeks to transfer. Usually these services also require both parties to be a heavily verified individual which restricts payments to those who are unable to get access to a bank account.
There is also the huge issue of personal data which we are constantly seeing in the media that entities have been hacked and documents/information/data have been leaked or sold. Blockchain is decentralised by design and removes the need to trust a third party. Transactions also can be almost instant depending on the type of blockchain. Bitcoin takes a few hours, IOTA is within seconds (and zero fees).
This does not just appeal to the individual, In 2018 ConsenSys revealed there new project called: Project i2i - a payment network built on Ethereum to connect rural community banks in the Philippines. 
At this stage, Project i2i represents a simpler implementation of a complex system, which many in the industry refer to as crypto-cash: crypto-tokens backed by fiat currency. The concept of backing fiat currency with tokens has been explored and developed by multiple financial institutions and regulators around the world, such as the Utility Settlement Coin consortium led by UBS and Project Ubin of the Monetary Authority of Singapore. 
CrowdfundingEthereum, with its development of Crowdsale and Smart Contracts has allowed start ups to raise substantial amounts in a matter of a few hours. By substantial I am talking into the millions. Filecoin, an open source decentralised market for storage raised $257,000,000 .
Which brings us to our next benefit of blockchain.
In addition to Filecoin mentioned just above there is also a Storj.io (based on the blockchain technology and a peer-to-peer architecture, it intends to provide cloud storage to people). Both these solutions remove the worst thing (in my opinion) about cloud computing and that is that the current solutions such as Amazon, Google, Dropbox etc.. is that they are owned by single entities and with that comes the rules and requirements by those entities. Blockchain storage solutions allow you to have full control of your data and make sure that you are the only one who can access it.
Using blockchain for votings will eliminate the possibility of fraud and help boost turnout. Mobile voting using a secure method will allow people to vote whilst abroad. It will be a beneficial tool for the election commission to maintain transparency in the electoral process, minimize the cost of conducting elections, streamline the process of counting votes and ensure that all votes are counted.
The Future of Blockchain
Blockchain technology is still in its infancy and is not currently adopted en masse. We are also still in the era of the Bitcoin equals Blockchain association and not until blockchain branches itself away and matures and becomes known for being its own technology and not just cryptocurrencies will we see the true value of this technology. The impact and disruption of distributed ledger technologies may be greater than we realise today - it has the potential to change economics, business and society.
I am extremely excited to be apart of the decentralised revolution and I feel we’re just beginning to scratch the surface of what’s possible.
- How to Time Stamp Digital Documents (https://link.springer.com/article/10.1007%2FBF00196791)
- Improving the Efficiency and Reliability of Digital Time-Stamping (https://link.springer.com/chapter/10.1007/978-1-4613-9323-8_24)
- Merkle Trees (https://en.wikipedia.org/wiki/Merkle_tree)
- Bitcoin Whitepaper (https://bitcoin.org/bitcoin.pdf)
- Banksy (https://en.wikipedia.org/wiki/Banksy)
- DAG Technology (https://en.wikipedia.org/wiki/Directed_acyclic_graph)
- How does blockchain work in 7 steps (https://medium.com/coinmonks/blockchain-for-beginners-what-is-blockchain-519db8c6677a)
- Genesis Block (https://en.bitcoin.it/wiki/Genesis_block)
- An example of a binary hash tree (https://en.wikipedia.org/wiki/Merkle_tree#/media/File:Hash_Tree.svg)
- Bitcoin Proof of Work (https://en.bitcoin.it/wiki/Proof_of_work)
- Hashcash (https://en.bitcoin.it/wiki/Hashcash)
- Project i2i: An Ethereum Payment Network Driving Financial Inclusion in the Philippines (https://media.consensys.net/project-i2i-an-ethereum-payment-network-driving-financial-inclusion-in-the-philippines-233e5eda135e)
- Project Ubin: Central Bank Digital Money using Distributed Ledger Technology (http://www.mas.gov.sg/Singapore-Financial-Centre/Smart-Financial-Centre/Project-Ubin.aspx)
- CROWDSALE - Raising funds from friends without a third party (https://www.ethereum.org/crowdsale)
- $257 Million: Filecoin Breaks All-Time Record for ICO Funding (https://www.coindesk.com/257-million-filecoin-breaks-time-record-ico-funding)
- AWS Blockchain as a service (https://aws.amazon.com/blockchain/)