In this article, we are going to explain what a Blockchain is in very basic terms by the end of the article you’ll be able to explain this life-changing technology to those you love, saving them from the authoritative dictatorships that never cease to control your every move. Nevertheless, we don’t discuss politics on this channel, mostly just ideas, so let’s get into it. What is a block in terms of Cryptocurrency? A block is just a bunch of data, the data could be almost anything, but usually, it’s just a collection of records for the numero uno, Crypto Bitcoin. This data is just a list of transactions, for example, it might look like this ”x pays y fifty dollars”, “a pays b, eighty dollars” and “y pays h fifteen dollars” if we’re dealing with Ethereum, it’s usually just transactions, but it can be a few other things Like things called smart contracts, which are neat but we’ll have time to explain them in another article for other altcoins, they could be the usage of your wifi or files or documents. Nonetheless, a block is just a collection of records, for this example to explain what a Blockchain is, I’m going to stick with a record of transactions like in Bitcoin.
Specifically, we call this record a ledger because it is a record of value exchanging hands. Now one thing you need to know is that blocks do have limits and they can only have so many transactions in them, so we have to keep adding more blocks. For our example, Bitcoin has an average of around 1 500 transactions in one block right now. Now this number changes, but you don’t really need to know why just know that these blocks do fill up, and then we have to do something with them.
Well, what do we do when these blocks are full? We add them to the network. Now you might be asking: how do we do that? Well, we do something called ‘mine’ them and since Bitcoin is a proof of work model, we have to prove that we mine them. This brings us to something called a hash, so the next big question is: what is a hashing function? A hashing function is a system where you can put something into it and it’ll output a hash there’s a ton of math happening inside this magical black box, but essentially you give it something and it gives you something. In this case, Bitcoin uses the SHA 256 hashing Function, SHA stands for secure, hashing, algorithm, and 256 refers to the number of zeros and ones that it has in whatever it puts out, so whether you put in your name or the entire dictionary it’ll, always output, 256, zeros, and ones.
Now our computers are smart, so they convert these zeros to ones to letters and numbers, it is a complicated process and could be an article on its own, but essentially with hashing functions, You need to know three main things number one. You can’t find the input of a hash, you have to guess and check.
So if you give it “a” it will give you “d”, then if you give it “aa” it’ll, give you “j” and then, if you give it “aaa” it’ll give you “U”, imagine if you wanted to find out what gave you an “f” you’d have to just keep adding more a’s until you found it. The second thing you need to know about hashing functions is that changing the input, just a tiny bit changes the output a lot.
And lastly, the third thing you need to know is that calculating the hash takes some time. Now, it might only take a few milliseconds for one tiny string of text, but if you have an entire book that you’re doing or if you want to check a few million variations of it, it starts to rack up time and computing power and so what Bitcoin is doing it, whenever you mine, it is we’re trying to add random numbers to whatever the block is so that we get a special ending. For example, let’s say we’re trying to mine. This x pays y fifty dollars a pays b Fifty dollars and y pays h 15, you’ll get this as the output. Now, this is what Bitcoin is doing. We ask ourselves: what number do we have to add to the end of that list to get a zero at the end of the hash? Well, if we start at zero and then we check it with one and then we check it with two and we use my little python program, we figure out that it takes three different checks to get to the first one, which is when you put a two At the end of it now, let’s make it a little harder. Let’s try two zeros at the end of the hash. After running my little python minor, we figure out it takes 438 tries until you hit the first hash that ends with zero, zero, and, lastly, just to drive the topic home, it takes a lot more time to find these hashes.
Let’s look at how many times we have to guess for it to get five zeros. If we run the program, we get a huge number. So as we look for more zeros, it takes a lot more time to check it, and essentially Bitcoin is looking for a lot of zeros and computers all around the world and mining farms are mining away to find the right number.
When they do, we say that that block is solved and verified, but we’ll get into that in a little bit. The next thing to know about a Blockchain is that it is decentralized now this doesn’t have to be confusing so think about it like this, centralized means one person controls it. For example, your grades in high school, only your teacher had access to add in your grades or change them.
They could flunk you if they didn’t, like you, and nothing personal here, but maybe you just didn’t understand what they were teaching, because they sucked at teaching anyways decentralized means that more than one person can have access to look at and change your grades. Imagine if all of your classmates were allowed to look at the answers on the test and give you a grade based on your papers and your tests. Imagine if they could vote on what grade you got instead of just your teacher now.
This is essentially what decentralized means, instead of one person having a list of all the Bitcoin transactions anyone who wants to can have them and look at them, and not only that because this is the important part anyone can mine and vote on the Blockchain. This means they can say, Bill did pay John $50, or they could make fake transactions and say john paid Bill all of his money. So you might be asking: how do you make sure that someone doesn’t make a fake transaction and spend all of your money? Well, that’s a problem that is solved by using asymmetric encryption with Cryptocurrency wallets, it’s a little confusing and we just finished a few articles on it.
So you should go check those out after this article but bringing us back to what decentralized means. That begs the question: why would a group of teenagers want to look at your papers and tests even more so why would they want to spend a lot of time looking at them and then grade the tests? Well, in this analogy, they would be paid to almost every Blockchain. You get a reward for participating and putting in good votes, for example, for mining Bitcoin you get paid in Bitcoin.
I hope that analogy makes sense. So far we’ve been over. What a block is? It’s just a bunch of data.
What a hashing function is, it’s to make sure that people put in work to participate in the Blockchain and we’ve gone over What decentralized means that one person does not control it, so Let’s learn why it’s called a blockchain with Bitcoin.
There are two extra things you need to know about one, whoever solves the block and finds the magical hash that has, however, many numbers of zeros we’re looking for. They add why board Crypto’s account received two Bitcoins for mining at the top of the block, and this is their mining reward. This is how more Bitcoins are created, although that number two changes and it gets smaller and smaller as time goes on.
Secondly, you need to know that they add the hash of the last block to it, so the password of the last block gets added to this block and that hash is used to calculate this block’s hash. So this makes it a chain since each block refers to the last one. Now, this is where the magic of the Blockchain works.
If you try to go back and edit an old block, the newer ones, all change because you’ve messed up that hash that it pointed to remember when we talked about the hashing function and SHA 256. If you change it just a little bit, it changes the entire thing. Well, that’s how we can make sure someone doesn’t go back and add more money into their account in an old block.
In a sense, whatever gets added to the Blockchain is written down in history forever because it can’t be changed now. This is good for things like transactions, but it’s bad for things like copyrighted material or embarrassing things this is the nature of the internet, though so in conclusion, we have blocks that consist of data and in the case of Cryptocurrency, it’s usually a list of transactions. Next, after we have a block, we have to find the password to that block or basically, what is the hash that solves that block miners do this by guessing and checking until they hit the jackpot, and then after they find the solution of that block. They make sure that it’s linked to the last block, so each block has the history of every transaction on it, because it refers to a previous block now, since each block is connected to the last block, this makes it a chain. That’s what a Blockchain is.
I hope that we’ve made this confusing topic a little more helpful for you to understand thanks for reading this article.