TU Wien:Smart Contracts VU (di Angelo)/Prüfung 2021-06-17
Zur Navigation springen
Zur Suche springen
Multiple blocks of MC-questions, each block having 3 points. Within a block, a wrong answer gives negative points, however, a block in total cannot lead to less than 0 points.
- A collision-resistant hash function
- has only a few collisions.
- doesn't have any collisions.
- has collisions, but they are infeasible (practically impossible) to find.
- When using a commitment scheme com = commit(data, nonce),
- the data has to be submitted at the same time as the commitment com.
- the nonce has to be submitted at the same time as the commitment com.
- the data and the nonce have to be provided for verification.
- For a commitment scheme, a hash function is required to have the property of
- hiding
- binding
- committing
- In a digital signature scheme with sig = sign(sk, message), the signature sig changes when
- the private/secret key sk is leaked.
- the message changes.
- the time stamp of the signature sig changes.
- A hash pointer allows us to
- check the integrity of the data to which it points.
- prevent changes to the data to which it points.
- access the data to which it points.
- A hash pointer is
- a pointer to the hash of the data.
- the hash value of the previous hash.
- a pointer to data together with a hash value of the data.
- To verify a signed message in a digital signature scheme, a receiver needs (among other things)
- the sent message.
- the private key of the sender.
- the signature for the message.
- The checks-effects-interactions pattern means:
- Immediately after all checks passed, changes to the state of the current contract should be made.kiw
- Only after changes to the state have been made, the effects can be checked and interactions can be made.
- Only when an external function call returns no error, it is safe to change the state of the current contract.
- In Ethereum, the ordering of transactions can be
- determined by the winning miner.
- influenced by setting a higher gasprice.
- relied upon by a smart contract.
- In Ethereum programming, you should be aware that
- private data in smart contracts is visible to anyone.
- public functions may be called maliciously and in any order.
- only the owner can initiate a selfdestruct.