Ethereum Flashcards

1
Q

Ethereum protocols are sometimes referred to as

A

peer-to-contract systems

These are similar to a peer-to-peer systems, but with immutable, persistent programs known as smart contracts taking the place of a peer.

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

**what determines how much gas a transaction takes? What are typical gas usages for transactions?

A

.

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

a simple ETH transaction (to send ETH) takes how many bytes?

A

~110

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

an ETH transfer on a rollup takes how many bytes?

A

~12

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

What is associated with every operation on the Ethereum blockchain, or to be precise on the Ethereum Virtual Machine (EVM)?

A

an associated gas cost

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

adding two numbers costs how much gas?

A

3 gas

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

getting the balance of an account costs how much gas?

A

400

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

sending a transaction costs how much gas?

A

21000

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

at high level what should be known about the gas cost of smart contracts?

A

Smart contracts usually consist of multiple operations that together can cost even hundreds of thousands of gas.

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

transaction fee formula

A

gas cost (for each operation fixed defined amount) * gas price (variable, defined by the auction process)

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

gwei to ETH

A

1 bil gwei per ETH

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

what is the downside of the EVM being a Turing complete machine?

A

while this is one of the reasons the EVM is so powerful, this makes it vulnerable to the halting problem

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

the halting problem is what?

A

is the problem of determining, from a description of an arbitrary computer program and an input, whether the program will finish running, or continue to run forever.

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

how does ethereum derisk the halting problem? e.g. ensure a user can’t execute a program that never stops?

A

by introducing a gas cost associated with every operation

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

what does the EVM do before executing each operation in a transaction?

A

checks if there is enough gas left for that operation. In case there is not enough gas left, the whole transaction is reverted with “out of gas” exception and all state changes are rolled back. The user would still pay the transaction fee for the amount of work that has been done by the miner even if the transaction fails. This is again to avoid attacks on the network.

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

what happens if If the transaction consumes less gas than initially anticipated?

A

the remaining amount of gas is converted to ETH and refunded to the sender.

17
Q

what does Metamask (and other ETH popular wallets) do in helping you choose gas price?

A

estimates the necessary gas prices to allow your transaction to be processed at fast, medium, or slow confirmation speed

18
Q

list the gas costs of three common operations

A
  • 21000: Paid for every transaction
  • 68: Paid for every non-zero byte of data or code for a transaction
  • 20000: Paid for an SSTORE operation when the storage value is set to non-zero from zero
19
Q

What is Ethereum’s Proof of Stake algorithm implementation called?

A

Casper

20
Q

** explain coinage in PoS

A

Where the tendency to be elected as the leader with time reduces or the coin which is the validator which has staked tokens the longest time becomes the leader.

21
Q

Görli

A

a public ethereum testnet

22
Q

Erigon

A

Erigon is an implementation of Ethereum (aka “Ethereum client”), on the efficiency frontier, written in Go.

I think efficient frontier just means somewhat optimized for performance and or lack of heavy RAM/CPU .idk something

23
Q

In two words ethereum is a:

A

decentralized computer

24
Q

High level how to implement ethereum

A

1) Define a smart contract language. 2) Build a blockchain. 3) Create the network 4) Support accounts and transactions 5) Craft the state manager

25
Q

Geth

A

Go Ethereum (or geth) is one of the three original implementations (along with C++ and Python) of the ethereum protocol. It is written in Go, fully open source and licensed under the GNU LGPL v3. Go Ethereum is available either as a standalone client called geth that you can install on pretty much any operating system, or as a library that you can embed in your Go, Android or iOS projects.

26
Q

When was the ethereum genesis block minted?

A

July 20, 2015

27
Q

Two types of ethereum accounts

A

Externally Owned Accounts (EOAs)

28
Q

What are EOAs controlled by?

A

Users with private keys

29
Q

Contract accounts are owned by?

A

Smart contracts

30
Q

What is the result of contract accounts being controlled by private keys?

A

They cannot initiate transactions