Blockchainbasics

The Blockchain Triumvirate

The 2009 financial crisis shook the world in more ways than one. Even with a $787 billion stimulus package from the taxpayer’s money, that the US government put in, it has taken a while. It did something else as well. We got to see the extent to which greed had engulfed us. This also propelled a new triumvirate to emerge. The blockchain triumvirate!

The financial crisis shone a light onto the complicity of policymakers, bankers and large corporates. A complicity that went well past ‘hand-in-glove’! It was extreme. To say the least. Extremities cause frustration and frustration can cause action as well. Satoshi Nakamoto the creators of Blockchain brought Bitcoin to the world as a response to the financial crisis. As an alternative for the people of the world.  It may well seem like it aims to deliver the world from dependence on greed propelled corporate malevolence. It does have a Robin Hood feel to it or perhaps a “we-the-people” feel to it. Thus was born new relevance to “peer to peer” network strength. Considering the timing, this hypothesis rings well.

The Blockchain Triumvirate

Enter the Blockchain triumvirate. The three deep anchors bode well for it to be called triumvirate, won’t you agree?  “Transparency – Security – Immutability” upon which Blockchain was built. The lack of these is precisely what contributed to the 2009 financial crisis.

Transparency ensures that every transaction and updation of records is visible real time to all users across the globe. It divests the privileged few of the undue advantage of access to data. Security ensures that data is stored across the world and there is no ‘one’ honeypot to hack into.

Immutability is perhaps the most important one of all. The fact that it is very hard, well next to impossible, to make any changes to the data, makes authority figures redundant. Banks and middlemen
who corner a large part of the value generated simply for vouching for each of us, have to find new relevance in the blockchain world.

What stands in the way of people completely getting Blockchain is that it demands a new way of thinking. The edges remain jarred when the assimilation of the new happens through the openings of the familiar. To go beyond the familiar, suspend judgement and evaluate what is, from a position of ‘what can be’, is necessary.

The attempts on this blog through this series, in conversation and with contribution from others, is precisely that. To help stoke conversations by sharing learning and understanding. Which also fuels curiosity and gives the energy to do more of this.

Energy, especially to sustain conversations with curious people who think blockchains are bitcoins and nothing else. Well!

Proof of stake and Blockchain

One of the biggest issues facing mass adoption of Blockchain across the world? It is slow. It is really really slow. Let’s put this statement in perspective. Visa processes 150 million transactions per day, roughly 1,700 transactions per second. And their capability far surpasses that. They can process 24,000

How many transactions can the bitcoin network process per second? Seven. Yup, All of Seven transactions! Each transaction takes about 10 minutes to process and form a block. As the network of bitcoin and Blockchain users grows, waiting times will get longer. There are going to be more transactions to process without a change in the underlying technology that processes them.

Why is the Blockchain framework so slow?

The answer is in the example we explored. The teacher and her 50 students ‘simultaneously’ trying to solve a puzzle. Blockchain thus uses a Proof of Work concept, to confirm transactions. Apart from slowing down the network, Proof of work consumes enormous amounts of electricity.

The saga does not end with electricity. Proof of work offers Bitcoins as rewards for validating the transactions. This reward reduced by half every 4 years or after 2.1 lac blocks. Thus by 2024, it will also become unprofitable for miners to continue solving these puzzles and generate blocks. Less the users, more vulnerable becomes the Blockchain. Compromising on its biggest pillar of Security and Immutability.

Proponents are aware of these limitations. They are exploring many other ways of making Blockchain scalable and secure.

Proof of Stake method to create Blocks is one such. Ethereum among many other firms is leading the way in this effort. In PoS, ‘one’ individual(s) are chosen to generate a block. They are known as validators.

How does this help? Think of the electricity saved by not having hundreds of miners trying to be the first ones to solve the puzzle.

The flip side, how do you make sure these chosen validators do the right thing? Do you recollect renting a self-drive car or a video CD? The shopkeeper asks you to put down a security deposit. One that will be used if you damage the car or not return the VCD! Similarly, in the Proof of Stake method, the validators have to deposit their coins to a central store. These coins or stake is only released back if the transaction is validated accurately.

How are these validators chosen?

Each network can define their own criteria for choosing validators. Some may opt for the validators who have the maximum coins ( thus they have more at stake to get it right!). However the rich get richer in this scenario. Yet others may use a random algorithm to choose the validators. What if as luck would have it, the validator was offline for a few minutes, when the block was assigned to him/her. Each delay will slow down the network. Yet others prefer to go by the aging of the coins the validator owns. The older the coins, the better their chances of being chosen.

Similar to the rating given by passengers to the uber drivers, these validators are given a rating basis their performance in validating blocks of transactions. These ratings can be another criterion to allocate future blocks. Ensuring the validators have stake/sufficient coins to lose will be imperative. Else the possibility of them behaving irresponsibly. Nothing at Stake problem!

The Pros and Cons

While many cons exist. We should not forget the pros.

(1) Massive savings in electricity. (2) Much much faster than the PoW method. (3) decentralized – It isn’t dominated by a few cartels & mining rigs. (4) Validators can work on home computers and don’t need all that fancy equipment!! This one is my favorite. Tempted to be a validator myself and experiment! (5) Rogue or 51% attacks are tougher, not impossible though.

As I write this, two news briefings catch my attention. Ethereum has delayed its switch over to PoS till 2019. Red Belly a Blockchain research project, funded by Australia’s National research body CSIRO and Sydney university has achieved the 30,000 transactions per second in Blockchain. Tested on Amazon Cloud (AWS) from July 2017 to May 2018, they have been able to do it across time-zones with over 300 computers. They have solved the scalability issues and the enormous need for electricity. This is exciting stuff. Read more here and stay tuned. Is the future here already? I wonder, I hope. I look forward.

 

Block & Chain

Headlines about Blockchain ushering in a revolution and becoming the internet of value is quite common. So much so, that none of us realize that it’s creators Satoshi Nakamoto in their 2008 whitepaper introducing this concept to the world had not named it Blockchain! They had used the words ‘Block’ and ‘Chain’ separately. To the creators, Block and Chain were concepts rather than a name. They believed that the process of verifying and recording transactions into a block and linking them together as a chain, would make this whole approach of peer to peer interactions secure, visible to all parties and be hard to hack into or be modified without detection. Thereby eliminating the need for middlemen or authorities.

Blocks by themselves are an interesting concept. Does it remind you of a family!

A ‘block’ very simply, verifies and records any new transactions. Thereby creating a permanent record. Roughly every ten minutes a new Block is created and added to the blockchain. Once created a ‘Block’ steps away from the spotlight and ushers in the next block. Yet, even as it steps away from the spotlight. It holds hands with the next block and lends it credibility. Much like a family giving its surname to the next generation. Its Hash is imprinted and carried by the next block. Thus forming a chain of blocks

Here is a live sample of a chain being formed of Blocks and a pictorial representation follows.

Why would ‘Block & Chain’ offer unparalleled security?

Think of a notebook with page numbers to indicate the linkage or chain. It is possible that someone could replace the contents of the page without having to alter the page number. Well, we may never notice something amiss since the page numbers continue to tally.

In the ‘block and chain’ concept, each block in the chain carries the digital signature of the previous block. Even if a single alphabet in the transactions is changed, the digital signature is significantly altered. It will not tally with the next block as seen in the image below.

Let’s dive deeper into this image. This digital signature or Proof of Work you notice in the header of a block is a cryptographically generated key. Any change in the transactions listed in the block will substantially alter the Hash/Proof of work/signature of the block. You also see that the next block carries the signature of the previous block. This is the chain linking them. So the minute any transaction in the previous block is altered. Its hash will change. It won’t tally with the one already imprinted on the next block! This makes it very evident that the details have been tampered with in a Blockchain.

Thereby giving this framework of peer to peer interactions the security & immutability features. The block and chain are the foundational elements, the very molecules, upon which the premise of Blockchain is built.

Leaving you with an idea of how a real Block looks like. The blocks are not without their own quirks and sense of humour. There are Orphan blocks, uncle blocks, Stale blocks, Genesis blocks and many more funny blocks out there. Go on read about them here and pass on the chuckle:).

Blockchain and Electricity

Visa, the worlds leading payment processing firm, processes 1700 transactions in a second. They do it in a matter-of-fact manner, within a blink of an eye. Blockchain, through the Bitcoin network, process SEVEN transactions in a second, yes seven. Which is why, the protests and US Congressional hearing even, sounded like an overreaction from an already paranoid world. A world, according to Gartner, is in the trough of disillusionment with Blockchain. Blockchain and electricity, need closer examination and greater understanding.

How much electricity does Blockchains consume?

Was it disillusionment or does Blockchain consume unwarranted amounts of electricity?

A cursory search on Google. 6.5 million U.S. households could be powered by the energy consumed operating Blockchain (2017). A more recent study puts it closer to the electric power consumed by Ireland or New Zealand. It got worse, pundits predict this figure could rise to 7.7GW before the end of 2018. That is 0.5% of the electricity consumed by the entire world!!

In a world strained of natural resources, this is a fair lot.

Why would Blockchain need this enormous supply of electricity? This question sent us on the road of conversations and exploration. The creators of Blockchain, Satoshi Nakamoto, introduced a framework which uses proof of work or solving puzzles to confirm transactions. This type of validation prevented malicious attacks and double counting. Critical to establishing trust in the network without the need for a middleman or authority.

Blockchain’s need for electricity

Why would solving puzzles on the computer, or in Blockchain terms ‘Proof of work’ need enormous amounts of electricity? Here is an analogy for the processing transactions on a Blockchain.

Imagine a teacher who gives a puzzle to a class of 5th graders (50 kids in her class). She promises them a coin as a reward for solving the puzzle. Each of them is hard at work, pen and paper in hand, trying to crack the puzzle and win the coin. The child who solves the puzzle first, jumps up and down, raising his/her hand. The teacher examines it for accuracy, certifies it as CORRECT. She rewards the child with the promised coin! Think of all the other kids in the class who also worked on the same puzzle but were not the first to solve it. The amount of energy spent on solving one puzzle thus is: 50*effort to solve the puzzle. 50 times the effort!

This is how Blockchain works as well. A transaction occurs. All the miners across the world are trying to solve the puzzle and generate the hash. While the kids worked with pen and paper, the miners work with powerful machines. The reward for solving the puzzle currently is 25 Bitcoins + costs involved. The first miner who gets the puzzle right and forms the block wins the coins. The electricity consumed by the other miners is unfortunately superfluous. This manner of creating blocks is the Proof of Work, method.

Proof of Work gives Blockchain the enhanced security feature. Proof of Work also gives Blockchain the ability to remove middleman. Yet it results in Blockchain being accused of consuming enormous electricity. Processing one transaction can instead power an American household for an entire week!

Blockchain and electricity. When it started..

Did the creators of Blockchain foresee the enormous waste of natural resources? Satoshi Nakamoto has a robin hood feel to them in Blockchain folklore. One(s) who were tired of being at the mercy of big corporations being hand in glove with governments. Anecdotes say that blockchain resulted from the disillusionment of the Lehman Brothers crash in 2009. An alternative for us. Did they disregard nature?

Apparently not. Satoshi insisted and urged the initial users of Blockchain to stay away from powerful computing machines. The potential damage was known. Therefore a wider adoption of Blockchain to enhance security was sought. The initial bitcoins were mined on good old Pentium 4 processors or home computers. This Gentleman’s agreement, to not use powerful equipment to mine, held firm till 2013. The soaring price of a bitcoin and greed got the better of us. GPU’s entered the game. Now we have moved to fancy mining rigs.

Some loyalists say the energy estimation of Blockchain is overstated. Maybe. This technology has the power to usher in change and a new way of working for the world. Technology and change carry the responsibility of ensuring sustainability. As Blockchain moves into the spotlight, it must deliver at the intersection of people, change and technology to be relevant, sustainable and to make change meaningful. If that means adopting the Proof of Stake method, which is being experimented with, so be it. If it means waiting to see what the silicon valley firm Splend seems to have solved in stealth mode, so be it. Stay tuned.

The Blockchain journey has just begun.

Earlier attempts on understanding Blockchain are below.

a. Blockchain Law and Education

b. Transparency and privacy

c. Blockchain possibilities

Blockchain News – Education and Law

Heres a roundup of interesting stories on Blockchain that got discussed, debated or worked on. Blockchain news and views that caught the eye.

#1. The Law joins Blockchain!

China’s Supreme Court Rules that Blockchain Can Legally authenticate evidence which is legally binding, as part of newly clarified litigation procedures in the country’s internet courts. The state of Vermont in the USA passed a law that made Blockchain records admissible in court as well.

#2. The education sector is collaborating to bridge the huge gap in supply for Blockchain skills. With a whopping 151% increase in the number of jobs asking for Blockchain/Cryptocurrency skills in the last one year alone, no one is surprised.

Wharton offered its first full-time course on Blockchain for both undergrad and postgraduate students and guess what, it is already booked in full. Wharton also joins 17 other universities around the world in a $50 million, multi-year research and development initiative backed by Ripple (a cryptocurrency payment network).

The Ripple Project” a University Blockchain Research initiative will be an avenue for academic research, technical development, and innovation in Blockchain, cryptocurrency and distributed ledger technology.

Coursera And ConsenSys Partner To Offer A Free Blockchain Course starting September 2018!

Not to be left behind start-ups in Blockchain are climbing the ranks in the Best places to work Survey by LinkedIn this year.

And for all you Blockchain enthusiasts here is a useful link which has collected information on all the Blockchain conferences, meetups and Summit’s across the globe in September 2018. If there are other events that you are looking forward to, leave a comment here or give us a shout @flyntrok on twitter and we will help and spread the word.

Did you read about the Blockchain District? That sighting evoked quite some chatter. Happy to keep the conversation going. So, whats the latest Blockchain News you have heard?

Leveraging the power of blockchain – Transparency & Privacy

The essential dilemma about the internet the way it is this: We have had to give up privacy in order to get productivity. The volume of conversations that stem from privacy concerns and the lack of credible alternatives to remain private yet to be able to connect seems increasing. So much so, that the whole surge towards Blockchain based technology is often touted to hinge on its ability to solve that challenge. That for another day.

In this post, at the center of it all is this question. Is it possible for a technology to promise both transparency and privacy? What is the optimal amount of transparency that’s required that is ‘just required’ for a transaction, without compromising privacy?

Transparency and Privacy in tandem, increase likely solutions to many of the challenges we face today. Especially in the food industry.

Have you looked at the label ‘organic’ on food items and ever wondered if it indeed was organic? Worse even, is it safe? The WHO estimates that 1 in 10 people become ill every year from eating contaminated food. With 4.2 lacs dying each year, as a result.

Case in point: A nationwide outbreak of E coli in the USA (2006) was caused by bagged spinach. It took regulators two weeks to conduct the traceback and determine the exact source of the outbreak, as spinach. During those two weeks, many people got sick and one person died. Another Result: Tons of good spinach was wasted because we couldn’t tell the good from the bad.  Fast forward to 2018 and nothing much has changed, except it’s gotten worse.

Contamination from food has caused more people to get sick and heaps of good food to be wasted, in the effort to ensure more don’t get affected by the contamination.  Product recalls are not very effective- they take time. And a ton of the good food along with the bad gets wasted because we are unable to tell the difference between the good and the bad.

Leveraging the power of blockchain:

Walmart, Unilever, Nestle, etc are collaborating through the IBM Blockchain Food Trust Network. A TRANSPARENT system with supply chain visibility across these members and their ecosystems.  The intent is zeroing down and localising a food contamination.

The network is already showing results. Reducing the impact of food recalls. Limiting the number of people who get sick or die from foodborne illnesses.

Walmart wanted to isolate a batch of mangoes. Trace them from their retail outlet to the farm. Leveraging blockchain it took them 2.2 seconds to do so. Without blockchain, this would take them 6 days, 18 hours and 26 minutes to identify the farm.

Competitors coming together on a common platform to collaborate has always had hesitancy written all over it.  ? After all competing with each other in the marketplace. Dilemmas range from sharing information and practices to exposing their key people to ‘outsiders’.

Blockchain has a snug fit of providing the best of both worlds. Of exposing just enough and not anymore. That means, no compromising of trade secrets of companies while making information transparent.  Blockchain ensures the ‘privacy’ of knowledge / know how/ process.  Competitive advantages of organisations remain well within organisations and are not revealed on the network. This makes collaboration a lot less risky and more inviting.

How can such a transparent system, open and accessible to all, ever be private? The clue lies in an interesting concept called Cryptography. Cryptography gives Blockchain the ability to share relevant inputs without revealing all.

This works across industries and assets. Think of high-value assets, art or diamonds. Owners will go to any lengths to conceal their identity. Yet insurance companies struggle with Insurance fraud of such high-value items. These high-value assets are at times, fraudulently registered as stolen. The insurance companies pay out. The asset resurfaces at a different place. Registered with a new insurer and the same process of fraud repeated.

Tired and at a loss, the Insurance companies have turned to Blockchain! They are leveraging the Privacy feature to conceal the identity of the asset owner. Sharing details of the payout with members of the Blockchain network makes it easy to detect fraud. Each asset is laser-inscribed with a digital ID making it easy to detect. Firms like Everledger have been working on this.

 

The benefits of Blockchain for end users and companies specifically through the twin lenses of Transparency and Privacy are as follows. 

For end users: It gives control of all our information and transactions to us. Who can access our details/what did they access/etc. There is one version of the truth. Which is visible and consistent with all the users.

For companies: Apart from the benefits listed above, it allows them to include the end user in their entire sourcing and manufacturing process. This inclusion builds trust and an unparalleled brand value. Firms which already have a culture of transparency and trust and see the customer as an extension of their internal teams, Blockchain will be a lot natural. If not, there may be a distance to go.

Blockchain Possibilities

A permanent secure digital distributed ledger was the simplest definition of Blockchain that emerged in the previous post from this series. A long conversation on the possibilities with blockchain resulted. As the ideas were wrestled with, the contours for further conversation needed to be sealed. And this post is just that. The contours for further conversation.

Truth be told, none of these above terms are missing in the world of technology today. We have secure databases, digital databases, distributed ledgers even. Why then, is Blockchain considered as the messiah of the internet? Why is it said that the ‘world wide web’ is about the exchange of information and Blockchain will be about an exchange of value?

The industry is expecting Blockchain to be able to resolve world hunger, serious! Proponents claim Blockchain will make it easier to trace ‘blood diamonds’, something that has plagued us for decades. Be able to reduce and even eliminate accounting fraud. Think Enron! Voting in the elections. Moscow and NASDAQ are in the process of deploying Blockchain for electoral and shareholder voting to prevent fraud.

Now take a giant leap across and Blockchain supporters believe that it will make it possible for you and me to borrow from peers and not just depend on a bank. A completely new fundraising mechanism. The currency exchange guys believe that Blockchain will reduce their transfer transaction times from days to seconds. Tough to imagine that level of improvement in productivity and efficiency. Days to seconds! Wow. Artists are singing praises because they believe Blockchain will deliver them from the clutches of record labels who corner more profits than the artists for their work.

Look around you, intermediaries in every industry sector and transaction garner far more value than the buyers and sellers. Think of the farmer getting a pittance for his produce while you pay escalating prices for greens.  With intermediaries a.k.a traders/middlemen earning a significant chunk.

A world without intermediaries. Really?

Summarising the possibilities gets this list below to emerge. A broad cull from all the herd of hype about Blockchain.

• Transparency and Privacy (yup together!)
• Improved Traceability
• Immutability
• Enhanced Security
• Decentralized
• Faster Transactions with reduced costs
• Trust or rather Trustless

The above possibilities emerge in the way many of these existing technologies of Digital databases, distributed ledgers have been intertwined with newer concepts such as Consensus Protocol, Smart contracts, Proof of Work, cryptography to create the Blockchain framework. Thereby unleashing immense possibilities and benefits.

Each of these sits well for deeper conversation and exploration. And will soon come here too.

There are much jargon and ‘big’ words in the post. Thereby straying a distance from a key objective of keeping it simple. That is part of the challenge that is being wrestled with.  With time, practice and deeper conversation and real work, this space will read better.

Jump in. Let’s keep the conversation going. In our own small pockets and larger forums. We’ll get somewhere.

 

Blockchain Basics

Well if you are like me, you have heard this word ‘Blockchain’ bandied about. You have read and heard so much about it in the news yet you wonder if you really do understand it. It can seem that everyone is talking about blockchain and ledger technologies, but the truth is most of us are not yet up to speed, just like me! What Blockchain is and ‘could be’ is fuelling industries the world over. Everyone seems to be seeking possibilities. So, what are some ‘Blockchain Basics’? 

In this space, I along with a colleague, will try and explore an understanding of the technology and possibility called Blockchain. We invite you to join us. We will attempt to understand Blockchain and it’s many terms in as simple a manner as possible, through this series. 

‘What is Blockchain’, is a good place to start.

In a nutshell, Blockchain is; A permanent secure digital distributed ledger.

Am sure that meant nothing! It didn’t when we read it the first time and was trying to understand what Blockchain was about.

Let’s see if an example makes it any better. Something we can relate to, an excel sheet?

Think of Blockchain as an excel sheet which is open on all computers in the network. Any changes being made to the excel will be visible to all in the network as it is being made. It hence always is transparent and in a state of consensus. To be clear, it is not one excel in a central location shared by hundreds of computers. It is hundreds of copies of the same excel stored on hundreds of different computers across the world.

It also makes the data secure. Think of a hacker who has to erase the data from hundreds of systems to alter anything; earlier all he had to do was change it on ‘one’ master system.

Let’s try another example exploring why the world is falling over itself imagining the immense possibilities Blockchain holds.

Blockchain Basics with an example

Let’s assume that ‘you’ have a file of financial transactions on your computer. Three accountants have the same file stored on their computers. As you make another transaction buying something, your computer sends an email to each of them informing them of the transaction.

All three accountants rush to be the first one who will verify if the transaction is correct and you can afford the ‘buy’. The first one who verifies the transaction shares the logic with all the other accountants and gets paid a salary. If the other accountants agree that the transaction is correct and you can afford it, then everyone updates their excel sheet automatically.

This whole concept is nothing but Blockchain Technology.

If you wanted to indulge in tech-geek speak, here is your way to do it. 

And voila you got geeky! Next time let’s explore some of these terms Proof of Work, Distributed ledger, Consensus Protocol, Smart contracts and see what we see…

 

Until then here are some links for you to explore what Blockchain is, one is a video featured on OWL (Our Work is Learning) Newsletter which explains Blockchain to a toddler and professional.

Another one I found useful which explained Blockchain in simple English is here

What do you think? Your comments would be great to help evolve an understanding. Thanks much.