CSCM29 – Blockchain, Cryptocurrencies and Smart Contracts
Arnold Beckmann, Anton Setzer Resit Coursework
Deadline: 7 August 2020 at 11am
Statement about Academic Integrity By submitting this coursework, electronically and/or hardcopy, you state that you fully understand and are complying with the university’s policy on Academic Integrity and Academic Misconduct. The policy can be found at https://myuni.swansea.ac.uk/academic-life/academic-misconduct
Coursework 2 consists of writing a lab book for Labs 5–8 of the module. For Lab 5 you will address the questions as detailed below. For Lab 6–8 you will provide a well documented version of your solution to each of the tasks on those lab sheets. If the task asked to produce code, you need to provide well documented code which explain its functionality, and describe how it solves the task. If the task asked to run tests, you need to document their outcome and explain the reason for that outcome.
Submission is via Canvas. In addition, the software (solidity code) needs to be submitted via a software submission link on Canvas, having one directory for each of Lab 6 to 8 containing the full solidity code. Furthermore, please send your solutions to
a.beckmann@swansea.ac.uk,a.g.setzer@swansea.ac.uk. Lab 5 Questions (a)–(e) are worth 2 marks each, for a total of 10 marks.
Questions (a),(b) and (c) below refer to Lab 5 – Task 4.3:
(a) Describe in words the components of the transaction as shown in the block explorer.
(b) What is the difference between the contents of the transaction as shown in the block explorer and the actual network serialized transaction itself?
(c) Imagine that you transmit a sequence T1,T2,…T10 of transactions with nonces 0,1,…,9 respectively. Now assume that T5 does not get officially included in any block, since it got corrupted during transmission. What will happen to the subsequent transactions?
Questions (d) and (e) refer to Lab 5 – Tasks 9.1 and 9.2 respectively:
(d) Describe in words what happened when you tried to withdraw 1 ether from the Faucet.
(e) Describe in words how you solved the issue that occurred in (d).
Distribution of Marks for Lab 6–8 Each lab will be assigned 30 marks. The distribution of marks for the tasks is
• Lab 6: Tasks 1 – 6 are worth 5 marks each, for a total of 30 marks.
• Lab 7: Tasks 1 – 5 are worth 6 marks each, for a total of 30 marks.
• Lab 8: Tasks 1,2 and 4 are worth 8 marks each, task 3 is worth 6 marks, for a total of 30 marks.
1