Ethereum and Smart Contracts Flashcards

1
Q

Ethereum 1.0

A

Different network propagation layer than Bitcoin
Different mean to deal with uncle blocks
Smart Contracts

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Ethereum Network propagation

A

Upon recieving a new block the node verifies it before propagating it further
For n neighbours:
root of n neighbours get the block directly
n - root of n neighbours get the hash of the block

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Eth uncle rewards

A

Uncle blocks are not part of the main chain but receive fraction of the reward for fairness purpose

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Smart contract reentrancy

A

Can be used to reenter calling contract for it to receive funds for example. However if reentrancy is happening unexpectly it can be exploited
Is ethereum specific problem

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Cross function reentrancy

A

Function A calls contract which then fallsback to calling contract and calls function B

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Delegated reentrancy

A

Victim contract function is called and uses library contract which then allows to call the attacker contract again

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

create based reentrancy

A

malfunctioning function calls function a which creates a new contract that then calls the mal function again

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Update smart contract

A

Create proxy contract which uses delegatecall to call the buisness logic.
If the contract is supposed to be updated change the address of the buisness logic contract
EVMPatch

How well did you know this?
1
Not at all
2
3
4
5
Perfectly