What is Cryptography, Signed Transactions, and how do they get validated in Blockchain??
So, today we are going to discuss the following things:
But you should have a basic idea of what blockchain is? So, blockchain is a way of storing data in a distributed manner where each node is connected to the previous one and all the subsequent nodes have a cryptographic hash that is based on all the hashes of the previous nodes. Still, confused?
Let's Understand Cryptography and how it works in Blockchain?
Cryptography is a way of storing data in a manner that no one else can understand what this data is about and what it means. It is still decipherable but one has to do a lot of work to crack that data. So, how does blockchain is using cryptography?
Blockchain uses a hash to assign a unique address to each node. But, wait what does that hash function does ?? Let's discuss this first and try to understand it with an example.
So hash functions take input and based on that input they generate a fixed-length hex code. Code below for better understanding.
Recommended by LinkedIn
So How do that transactions get signed and Authenticated on ETHEREUM Network ??
So when you make a transaction on the Ethereum network, block explorer or any other tool will show your transaction somehow like below. The below snapshot is from https://ropsten.etherscan.io/tx/
There are too many properties of that transaction but to understand how transactions are being signed we are only interested in a few things like from and to addresses.
FROM: The Account Address of the user sending the ether
To: The account Address of the user receives the ether.
Each account on the crypto wallet has a private key that is used to sign that transaction. So let's say that I have an account address `0x968D9F4aD3213044f3BfbF9eD6aFfFB23aBF03B1` there will be a private key tied to this account may be like this `aslkdjasljdlkasjdlkajs1283098120938HGFGGAKSJHD`.When you do a transaction before being added to the blockchain it goes through the following steps.When someone makes a transaction for authentication following steps are being performed.
Helpful!