Question
Bitcoin and Cryptocurrency 1)Is H(x) = x mod 256 collision resistant? Find a collision if it is not. 2)Which of the following is true of
Bitcoin and Cryptocurrency
1)Is H(x) = x mod 256 collision resistant? Find a collision if it is not.
2)Which of the following is true of SHA-256 (circle all that apply):
-It has been proven not to have a collision
-We hope that there are no collisions
-No collision has ever been publicly found
-It has been proven that there is no fast way to find collisions
3)Which of the following types of modifications of a block chain data structure can be detected by someone who holds a hash pointer to the latest block? (circle all that apply)
-Insertion of a block
-Deletion of a block
-Tampering of data in a block
-Re-ordering of blocks
4)We are playing the coin-flipping game described in class. As the coinflipper, we choose a random 256 bit nonce value (shown as r in the slides) and our coin flip comes up as heads. We calculate H( nonce || heads) = 47B87A6D9805C5BDDA4319ECB168F6CE7C1C4D0710CAAEA3856D9A8CC63EB8F5 and then broadcast this value.
Due to the hiding property of the hash function, the attacker can only guess the outcome of the coin flip. We then broadcast the nonce value and reveal the flip was indeed heads.
We decide to play the game a second time, however we forget to choose a new nonce (r value) and instead use the same nonce from the first game. The attacker is aware of this nonce reuse. The coin flip comes up as tails, so we calculate H( nonce || tails) = 0E8D17B36A14C4FFA80FA43841E1C25F9D1C3A3E3681D67374B984ED8A847840 and then broadcast this value.
The attacker immediately correctly asserts that tails was flipped. How does the attacker know this?
What would happen if we had remembered to choose a new nonce for the second game?
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started