Ever wonder if there’s an easier way to complete transactions without having to deal with online wallets; banks and third-party applications. Well it’s possible thanks to Blockchain!
Imagine four friends; Jack, Ted, Sam and Phil meet up for dinner. After they’re done, Jack pays the bill, and all of them decide to split the expense amongst each other. Now on the next day when Phil sends his chair to Jack via online money transfer, the transaction goes through without a hitch. Then Ted and Sam send their respective shares to Jack. But their transactions don’t go through! The failed transaction sites some issues at the bank. That’s when Jack comes to know about the many ways a bank transaction could fail. It could be due to technical issues at the bank one of their accounts were hacked, daily transfer limits being exceeded, in sometimes additional charges like transfer charges associated with transferring money. To solve these problems, the concept of crypto currency came into existence.
What is crypto currency?
crypto currencies are a form of digital or virtual currency that run on a technology known as blockchain. Thanks to blockchain, cryptocurrencies are immune to counterfeiting, don’t require a central authority and are protected by strong and complex encryption algorithms. and in a market of more than thousands of cryptocurrencies like Litecoin, Etherum, Zcache and reigned supreme Bitcoin.
What is Blockchain and how it works?
Let’s go back to our previous example, Phil, Ted and Sam send Jack tow Bitcoins each as their contribution to the previous night’s dinner. Let’s assume Phil, Ted and Sam have three Bitcoins in reserve, while Jack has five. First, Phil sends two Bitcoins to Jack; a record is created in the form of a block. The transaction details between them is permanently inscribed in this block. This record also holds the number of Bitcoins each of the friends own. After Phil’s transaction, Jack has seven Bitcoins, while Phil has one. Following this, Sam and Ted send two Bitcoins to Jack. a new block is created for each of these transactions. These blocks hold the transaction details as well as how many Bitcoins Sam, Ted and Jack have in reserve. These blocks are linked to each other. As each of them takes reference from the previous one for the number of Bitcoins each friends owns. This chain of records or blocks is called a ledger. And this ledger is shared among all the friends, which acts as a public distributed ledger. This forms the basis of Blockchain.
What happens when Phil has only one Bitcoin left, and he tries to send two more Bitcoins to Jack? The transaction will not go through! This is because all his friends have copies of the ledger, and it’s clear that Phil has only one Bitcoin left. His friends will flag this transaction as invalid.
Is It Really Safe?
Hacker will not be able to alter the data in the Blockchain because each user has a copy of the ledger. The data within the blocks are encrypted by complex algorithms. All of this is made possible with the help of Blockchain technology.
Blockchain can be described as a collection of records, linked with each other, strongly resistant to alteration and protected using cryptography.
Transactions
Now let’s have a closer look at the Bitcoin transaction between Jack and Phil, and find out how it works? Every user in the Bitcoin network has two keys: a public key and a private key. The public key is an address that everyone in the network knows of; like an email address of a user. The private key is a unique address that only the user has knowledge of; something like a password.
First, Phil passes the number of Bitcoins he wants to send to Jack. along with his, and Jack’s unique wallet address through a hashing algorithm. all of this is part of the transaction details. These details are encrypted using encryption algorithms and using Phil’s unique private key. this is done to digitally sign the transaction. And to indicate that the transactions came from Phil, this output is now transmitted across the world using Jack’s public key. So the message or transaction can be decrypted only by Jack’s private key, which only Jack has knowledge of.
Who validate the blocks?
Different cryptocurrencies use different hashing algorithms,while Bitcoin use is the SHA256 algorithm. Etherum which is also a famous cryptocurrency uses one known as ETHASH. This transaction and several other similar ones are taking place all around the world. These transactions are validated, and then added block by block. The people who validate these blocks are called miners. For a block to be validated and added to a Blockchain, miners need to solve a complex mathematical problem. The miner who solves this first adds the block to the Blockchain and is rewarded with 12.5 Bitcoins. The process of solving the complex mathematical problem is called proof of work and the process of adding a block to the Blockchain is called mining. With this Phil and Jack wallets are updated just like every person in the network who has completed a transaction.
How Walmart uses blockchain to provide its customers with better service?
Walmart was facing problems in delivering quality products to its customers. They were facing a high return rate and large amounts of refunds due to their products bad quality. They were unable to determine the point of failure in the supply chain which started from farm to storage to transportation to processing all the way to the customer. Then Walmart adopted Blockchain technology. With Blockchain the quality of the goods at each step was permanently inscribed within a block. For example when a customer Flags a product has damaged it can be correctly identified where the product got damaged in the entire supply chain. Thus helping Walmart to identify the problem areas, and fixing them. This is just one of several ways Blockchain is used in real-life applications.