Oliviajune
Hi,
In the block chain training course, I have two queries in the slide
about what a block chain looks like.   The narrator here explains an example of a transaction happening in Block 1 and respective balances reflecting in new Block 2.
He then says that a new block which is Block 1 is added into the block chain.  
 
Query : Block1 is already there and he initially said Block 2 must reflect the balances as per transaction in Block1. So, how can Block 1 be newly introduced in the block chain?
 
Query2: He talks about signatures of full blocks  .  I see neither a signature nor full block in slide.  Also the user keeps saying 'This Block'  however I am unsure which block is he referring to..
 
Can I have the transcript of the narrator as sometimes I get confused with this usage of words. 
 
 
Reply 0 0
smita.verma
Hi, 
 
It is clearly stated that the new balance after all the transactions are successfully confirmed must be reflected in Block 2. When the transaction taking place in Block 1 are confirmed, then only Block 1 is added to the blockchain. 
 
However, to get your confusion resolved, I'm pasting the narration you asked for. This will clear all your doubts. 
 
The first block is called the genesis block. The genesis block is called the day zero block or block zero. It is the block that will contain the starting balance, which can even be zero. The Genesis Block forms the foundation of the entire Bitcoin trading system and is the prototype of all other blocks in the blockchain.
 
If a blockchain is not minting new tokens or new balances every single block, then the genesis block must have an initial balance. Otherwise, there will be no way to introduce the new balance. As you can see in the genesis block, there is something called a nonce which is a small string-based number. Here, SHA256 previous_block or block zero represents the signature of the previous block. Since this is a genesis block, we are not keeping the signature of the previous block.
 
Imagine in Block one, that A’s balance is nine tokens, B’s balance is eight, C’s balance is 15, D’s is eleven, and E’s is seventeen. In this block, there are two transactions that are initiated where E transfers one coin to B, C transfers six coins to E. As you know these transactions have happened, the new block, that is block two, must accurately reflect the new balances, in line with these transactions. A new block, that is block one is then added to the blockchain, and you will notice that there is a 'sha256(this_block)' which is the signature of this whole current block. As you can see, this signature of block number 0 or ‘sign n’ is being generated by the digest of the full block. This is the signature of the full block, which is being calculated by SHA-256 of the current block.

SHA-256 is a simple hash algorithm that is a crunch any length of data into a unique string of a fixed length. This way, if any single digit or letter tampers within this block, the signature will completely change. It is not possible to reverse the digest or signature to the original input data or original data. This is always one-way crunching, so this way the SHA-256 has crunched the entire block into a unique, fixed-length string, and we call it the signature of the block.
 
Next, if the new block has been added, the signature of the previous block will go to the ‘sign n-1’ into the new block as a header. The nonce will thus be created, that will be guessed by a miner, who can be a person, computer, or server, or the process which is confirming the block. The miner will figure out this number and will update the balances of all the addresses.
 
So, let's say, in block two, A now has nine tokens, B has nine tokens, C has nine tokens, D has eleven and E has 22 tokes. A has transferred two tokens to B, so B has eleven tokens now. Similarly, the balance of C, D, and E will be updated, and there are only two transactions that are new. Also, for the second transaction, B sends one token to E, then E sends 3 tokens to D, and lastly, D sends 4 tokens to A.

So, now the transactions may be affecting the balance of the input and are creating the output which will go here, in Block three. Here, the 'sign n-1' is the signature of the previous block which goes here, and again the signature of the whole new block is created through this process which will again go back to the next block as a header. Here, the nonce is the number that is being generated by the miners. These numbers or the nonce should be generated in a particular way, through the mining algorithms. It depends on each particular blockchain, but in a general sense, the nonce should be generated in such a way that it’s truly random and directly proportional to the difficulty of the Blockchain.


Thank you
Reply 0 0
Kathriane90 Kathriane90

I Prepared my Blockchain BTA Certified Blockchain Developer - Ethereum CBDE Exam within a week with the help of Validexamdumps.com Updated BTA Certified Blockchain Developer - Ethereum CBDE Practice Test Material. On the Final Exam Day, I Easily Attempted All questions and I Got Success in Blockchain CBDE exam the First Attempt.

Download Full Practice Exam Material Here: https://www.validexamdumps.com/blockchain/cbde-dumps

Reply 0 0
Reply