As I was going over my notes and had begun rewriting some of the examples that I’ll be covering as I continue the blog series: Your First Truffle Dapp — An attempt at a beginners guide to the Truffle Framework, something caught my eye. Something that I missed when writing the first couple blog post. I jumped right into truffle and solidity and forget to not only list an import prerequisite, but I also forgot to give you the background knowledge that you needed to continue with the tutorials fully.
Why was it so easily missed. Well, its was missed because I assumed you were like me and had already amassed that knowledge you needed. But what if you didn’t? What if you just jumped into the blog posts and just powered your way through. You would have a general understanding of how to do things, but you might not really know why your doing it or even why it needs to be done. I always find that its helpful, especially when I’m trying to solve a problem, if I’m able to visualize whats happening in my head and walk through it.
So what is this this prerequisite that I’m speaking of? Its the basic understanding of the Blockchain. Being familiar with how it works, why it does certain things, and what steps it takes to get there. As much information as you need to be comfortable with the inner working of the Blockchain. So in this blog post I’m hoping to explain the best I can and maybe along the way I’ll find a bit of knowledge I didn’t know existed by explaining it to you.
Since I don’t really know who is reading this or where you currently stand when it comes to understanding the Blockchain. I’m just going to assume you know nothing, you’ve just heard people mention it before, but your not sure how it all comes together, and how do they chain these blocks together (see what they did there).
Now I want you to take a second, take notice that as we cover those pieces of the framework, we wont being going in the order illustrated above. There is actually a reason for that. That is because I do not think we need to cover them in that order, as that order is more of how the system works together with all the pieces to create the Blockchain pieces and not necessarily the fundamental order of the pieces. So what I want to do is start by quickly going over the fundamental pieces from top to bottom and finish with the harder more complex pieces.
Hashing not Hash-tagging
We can start with our first component, which is Hashing. No not hashtag, but hashing. This is something that your going to or have already heard of many times.
So what is hashing or a hash value? To put it simply, it’s a unique string of letters and numbers that represent a set of data or if someone asks you at a party
Its a digital fingerprint for information.
Great! but what if they ask you how you get a hash value or how is it created. Well its simple (make sure to say that also with a smirk on your face), you just start with some information or data and that gets passed through a hashing function, then the hashing function will make that group of data into to a unique hash value by taking that information you passing in and using it to create a completely unique hash value. There you have it, a unique identifier for your original data.
By going through this process it allows us to identify a given set of information much more easily by allowing us to reference its hash value. There are different types of hashing functions used by different types of cryptocurrencie projects. I’ll just list a very few below as the list goes on and on, but I wanted to give you a simple idea of who is using what.
The reason why we use a hash is that it allows us to create a unique identifier for every block that exits on the chain. We can now use it to reference a particular block by its hash value or even start to create the foundation in which we can join those blocks together into a chain.
Get it? Got it? Good! I wont cover everything in this blog. AS I said, I just wanted to give you an understanding in bit size pieces that allow you to go take the information, think about it, maybe even do some more research on your own and then come back and continue the journey with me. So the final piece that I will cover in this blog post will be blocks. Not to worry, its only for this blog post, there’s still more we can learn to help fully understand the Blockcain framework.
Just another day around the Block
What would a Blockchain be without blocks? Blocks are literally the building blocks of the entire Blockchain. A block is just a container that holds a list of transactions that are to be added to the Blockchain. I’ll cover Blockchain in more details in the next upcoming posts, but a Blockchain is just a shared digital ledger that records a list of transactions that happen throughout the network. Lets think about this for a minute. If we were to take transaction as just a plain list and let them be recorded forever, we would have a massive list of transactions, top to bottom and that would be a nightmare to work with or manage. So what the Blockchain does is that it splits up the transactions into smaller sections that we call blocks, and this gives us more control over our transactions. These transaction are bundled together as blocks and added to the Blockchain to help manage the entire system more efficiently.
Published at Mon, 01 Apr 2019 18:11:12 +0000