[Understanding Blockchain] Part 2 : Basic Blockchain Concepts
![[Understanding Blockchain] Part 2 : Basic Blockchain Concepts](/_next/image?url=https%3A%2F%2Fcdn.hashnode.com%2Fres%2Fhashnode%2Fimage%2Funsplash%2FJNxTZzpHmsI%2Fupload%2Fv1638832184055%2FsiV6Lr2Zf.jpeg&w=3840&q=75)
Search for a command to run...
![[Understanding Blockchain] Part 2 : Basic Blockchain Concepts](/_next/image?url=https%3A%2F%2Fcdn.hashnode.com%2Fres%2Fhashnode%2Fimage%2Funsplash%2FJNxTZzpHmsI%2Fupload%2Fv1638832184055%2FsiV6Lr2Zf.jpeg&w=3840&q=75)
No comments yet. Be the first to comment.
In this series I will talk about Blockchain from a technology point of view, I will try to explain a lot of topics ranging from basic concepts till how to build your own block chain.
Introduction The basic idea of blockchain is very simple: a distributed immutable ledger that maintains a continuously growing list of records. the ledger is distributed among multiple peers Distributed Consensus Now, some of these peers might be evi...
Public cloud providers such as AWS (Amazon Web Services), and GCP (Google Cloud Platform) offer many network services to customers that can be configured through graphical interfaces, command line, and API endpoints. In this article, which is aimed a...
Have you ever tried to refactor/clean up some program code only to discover you are just dealing with a different type of mess? reordering spaghetti in a pan doesn't make it a different type of pasta. It is only by having a deep understanding of OOD ...
Having worked in a couple of multinational software companies as well as startups, I feel I have seen or at least heard about almost every type of software comment there is, I will try to list them, and I am happy for you to reach out to me if there ...

It is important to define the various levels of access to an information technology system individuals require. The levels of access given to individuals are determined on two primary factors: The individual's role within the organization. The sensi...
![Information Security Series: [Part2] Principles of Privileges](/_next/image?url=https%3A%2F%2Fcdn.hashnode.com%2Fres%2Fhashnode%2Fimage%2Fupload%2Fv1647290198557%2FdaFz7fDND.png&w=3840&q=75)
In this series, we are going to talk about the basic principles of information security & the fundamental frameworks that are used to protect data and systems. The CIA Triad In 1998 a security model called the CIA triad started being used for creatin...
![Information Security Series: [Part1] Principles of Security](/_next/image?url=https%3A%2F%2Fcdn.hashnode.com%2Fres%2Fhashnode%2Fimage%2Fupload%2Fv1647209120646%2FxVK4QYmwq.png&w=3840&q=75)
In this article I will be talking about the basic concepts that are used within a Blockchain.
A hash function is any function that can be used to map data of arbitrary size to fixed-size values. The values returned by a hash function are called hash values, hash codes, digests, or simply hashes.
A good hash function that acts of data: X should have the following properties :
This basically mean that I can take any chunk of data and compute its unique digest using a hash function. If I send that piece of data and its computed hash along with it to a receiver, Bob, Bob can then recompute the hash of the data received to ensure that the content of was not corrupted in the transmission. When we download a file from the internet, it uses the same hash functions to verify its integrity. most of the files you will download from the internet nowadays will be accompanied with hashes to allow you to check for their integrity.
In the digital world there is primarily two types of encryption: symmetric & asymmetric. In Symmetric encryption there is a single secret key that is used for both encrypting & decrypting of data. it is like your home keys for example. any one with a copy can lock / unlock your door.
Asymmetric encryption on the other hand works in a quite different way. you have a set of two keys, a locking key and an unlocking key. or can be called public & private key. you can lock your door with the either of the keys, but you can only unlock it with the other key. this means if you have the one of the keys only you can lock stuff up but only a person with the other key in the set can unlock it.
these in the computer world are called public and private keys.

Now in order to communicate securely you can use this concept of Asymmetric encryption as follows:
In this scheme the locking keys (public) can be shared on the internet without any problem as only secret keys can be used for message decryption 😂.
Let’s continue with the previous communication example. Where you receives a message, which when you decrypts says “Meet me at 11:00 tomorrow”. How can you know for sure that the message was sent by the other party and not a malicious entity?
This can be achieved if the message is “signed” by its sender. you as a receiver receiver of the message can then verify the signatures.

If we don't need to encrypt the whole message, one way to “digitally sign” the message is as follows:
For the entire secure communication to work, both parties need to establish trust in each other’s public key while using the same open unsafe internet. The question now is how to share the key and prove its ownership to ensure future secure communication? if there is no way to link the public key to an entity any entity can simply announce a public key and claim to be anybody and thus breaking security.
To help solve this issue we have a concept of a trusted authority in the middle that all network participants trust. This trusted authority is called a CA or certificate authority.
Certificate Authorities : en.wikipedia.org/wiki/Certificate_authority
C.A.s work by keeping track of the entities and authenticate the public information that they provide, when a party vends his public key along with the its information. this entity's information needs to be validated before the communications can actually happens.
you can learn more about CAs and how they work by reading my previous blogpost What is HTTPS and how secure is it ?
In the next blog post we will begin applying these concepts to build a simple blockchain (it will be by no means production ready, but it will help explain how a blockchain works).