Assignment - 3 Solution
Assignment - 3 Solution
Assignment 3
Correct choices are highlighted in Yellow. Give partial marks for partially correct
answers.
Hint: DLT can even be used to store various types of information, codes, etc., apart
from financial data. Please refer to the slide.
Hint: All of the above are true for general PoW consensus. Please refer to the slide.
Hint: Bitcoin Scripts are simple, compact, stack-based, support cryptography, and not
Turing complete.
Hint: Please refer to the slide. Permissioned blockchain is closed network among
known pre authorized participants and more secure from unknown nodes.
6. What is nonce?
a. The transaction id number
b. A miners ASIC chip array
c. The generator point used in elliptic curve cryptography
Hint: Miners propose new blocks by solving the puzzle i.e., finding the nonce
corresponding to a target block hash, and add that solution as proof.
of solving the challenge to be the leader
7. Which one of the following opcodes is needed to remove the top stack item.
a. OP_POP
b. OP_DEQUE
c. OP_DROP
d. OP_DELETE
Hint: Refer https://en.bitcoin.it/wiki/Script to get to know more opcodes.
9. If the four-byte difficulty bits in hex form are 0x1b0404cb, and the target value is
calculated using X * 2^(Y), what is the values for X and Y respectively,
a. X = 0x0404cb, Y = 0x1b
b. X = 0x0404cb, Y = 0x18
c. X = 0x0404cb, Y = 0xc0
d. X = 0x1b0404, Y = 0xcb
Hint: In difficulty = 0x1b0404cb, the exponent is 1b and coefficient is 0404cb
Target = 0x0404cb * 2^(0x08 * (0x1b - 0x03))
On solving the above equation
⇒ target = 0x0404cb * 2^(0x08 * 0x18)
⇒ target = 0x0404cb * 2^(0xc0)
Hint: Block identifier is calculated by using Double SHA256 algorithm on the current
block header