Material and Excercises for the Blockchain Technical Training
Online IDE for Ethereum:
http://remix.ethereum.org
Ip-Address of the AWS Instance (Node):
Ethereum Address of the Smart Contract:
Solidity Documentation
https://solidity.readthedocs.io/en/v0.5.2/
Currently only the name and the current number of votes are displayed in the Proposal object. In order to create more transparency, the Ethereum address of the creator should also be added. Implement this requirement in the existing contract.
An attacker is trying to manipulate the election and has stolen a private key to gain access to another Ethereum address. The voter knows the compromised address and wants to exclude it from the vote. Empower the creator of the contract to deny certain addresses the right to participate in the vote.
Not everyone wants to take part in the vote themselves, but they do not want to waste their vote. Add the possibility to give other Ethereum addresses the right to vote for one's own person.
Modify the details of the Token (e.g. name of token) and deploy your own ERC20 Token to the private blockchain. Send an arbitrary amount/number of token to another account and check the balance afterwards.
Similar to Task 3 of the previous exercise the ERC20 Token interface includes functions to transfer funds on account of somebody else. You can see that there are three functions in the code without content.
Complete the three empty passages to:
- delegate own coins to somebody else
- spend coins of somebody else
- return the actual value one address delegated to another one