Homework on Ethereum Intro - Questions. (Questions were updated on Dec 3 2019 )
- What was Web 1.0?
- What is a smart contract?
- How is transparency achieved with ethereum code?
Homework on Ethereum Intro - Questions. (Questions were updated on Dec 3 2019 )
I may do a start for this course, future students may append or improve on this post.
Both Bitcoin and Ethereum use proof of work consensus mechanism, however the underlying mining algorithmus is different. Eth uses Ethhash, whereas in BTC consensus is found via SHA256. Average block size and block time can be found on etherscan.io and are about 20 kB and 15 sec at the time of writing this post. Whereas in BTC blocksize is about 1 MB and block time is 10 min.
Smart contracts are executed within the ethereum network. This means each full node - i.e. a computer saving a copy of the blockchain needs to fully synchronize with the latest state of each contract in the whole network. So once a full node receives the command to execute a contract from state a to state b, the information has to spread in the whole network (globally).
Executing code on a distributed and decentralized network provides the benefits of having no central point of failure and censorship resistance. I.e. once code is deployed and executed there are no measures in place to stop execution.
Ethereum uses GPU friendly mining algo and is switching to POS.
Smart contracts run on EVM
The security and integrity of the code is higher due to all parties being able to verify it ran correctly.
Does it seem like these questions are on material covered later in the course? I’m pulling from the original fundamentals course and plagiarizing other student’s answers at this point, not from materials presented so far. It seems like the REAL intro video is missing.
@marsrvr Yes. I guess some technical error while they posted. @ivan @filip kindly have a look. Intro video is missing
We are looking in to it!
1. From a consensus perspective, how is Ethereum different from bitcoin?
Ethereum’s proof of work is different as transfers do not look at UTXOs, but rather update the accounts’ balances directly. There is no traceability of ETH other than the sending/receiving addresses. Also, block sizes and average block times differ. Lastly, GAS is used to create proportions for different actions in a smart contract (adding, dividing, etc.), which differs from Bitcoin which does not care about anything other than transaction fees. ETH intends on moving towards a PoS model in the future.
2. How are smart contracts executed in Ethereum compared to in a normal computer?
Smart contracts are executed using the EVM (ethereum virtual machine), which ensures that the smart contract isn’t trying to perform any malicious activity on the node’s computer. The node keeps track of the smart contract and the current state of said contract.
3. What are the benefits of executing the code on many nodes instead of just single computer/server?
No central point of attack, making the network more secure. It also provides the gateway to immutability as any changes to records already agreed upon by the nodes (balances & smart contract states) would be identified by the other nodes supporting the network.
Ethereum makes smart contracts possible, Every node has EVM, to read smart contracts, to have the results.
In Ethereum smart contracts are read by EVM, then EVM tell the CPU to execute the smart contracts.
A normal Computer is CPU directly to read and execute the program.
More security. The whole network can keep the same states. Consensus also build on this.
Bitcoin uses UTXO’s and ETH uses balances. ETH was the first to implement Smart contracts. Bitcoin and Ethereum both have POW, Bitcoin is SHA-256, Ethereum uses ethash. ETH wil move to POS (maybe also progpow inbetween).
Smart contracts are run in EVM’s (Ethereum virtual machine’s) in a sandbox like environment. These Evm’s are decentralised to the miners who execute the smart contracts.
It has an uptime of 24/7/365 & more secure
Where’s the Ethereum intro video? The only one I seen was a 2 minute video with none of the questions discussed.
Sorry about that, the order was wrong. Here is the video https://ivanontech.teachable.com/courses/ethereum-101/lectures/10444416
No problem. Thank you and I’m really enjoying the courses so far
Watch the second video in the Ethereum Introduction “EVM, Solidity, and Smart Contracts” in order to answer these questions fully.
Bitcoin primarily acts as a decentralized value transfer system (money) or decentralized store of value (gold, 401K), whereas Ethereum is a decentralized protocol that supports Turing complete programs on its own decentralized blockchain. Despite this difference, they both reach consensus through Proof of Work. Ethereum intends to switch to Proof of Stake in the future, however, as of today, they both use the same consensus mechanism.
Smart contracts are executed by the Ethereum Virtual Machine (EVM) hosted on each node within the Ethereum network. When a computer executes a program, the CPU is often instructed by the program’s code to initiate requested actions. However, when a smart contract is executed on Ethereum, the EVM first reads the code within the smart contract, tests that all variables are true within the smart contract, and translates the Solidity code to byte code for the CPU to process. This is done by all nodes on the network, and once they all return the same result on the network, the smart contract fulfills its instructions.
Benefits of executing code on many nodes includes additional security, trustlessness, censorship resistance, and a permissionless environment to write and share code. The primary focus in our lesson was the trustlessness in the Ethereum blockchain, which is a result of a smart contract’s ability to replace the third party, or intermediary, (lawyers, middlemen, bureaus, organizations, etc) participant in any given exchange. Instead, a smart contract will be able to initiate and fulfill the terms of an agreement between two parties by confirming all aspects of the agreement have been upheld or completed and carrying out a specified action upon said completion. By having this smart contract on many nodes, both parties know that the agreement cannot be tampered or altered because it is distributed among all these nodes. As a result, there is no need to trust the other party because the smart contract will carry out its instructions regardless of malicious or benevolent intent from either party.
From a consensus perspective, how is Ethereum different from bitcoin?
They both use consensus by POW.
How are smart contracts executed in Ethereum compared to in a normal computer?
the smart contract need EVM
What are the benefits of executing the code on many nodes instead of just single computer/server?
in single computer/server there is always a risk of information silos.
Homework on Ethereum Intro - Questions.
Ethereum enables to deploy apps into the network.
Ethereum uses EVM to execute code written in Solidity or Vyper to prevent CPU from malicious apps deployed to the network. Normal computer uses CPU directly.
More secured, transaprent, trustless apps.
1- It has introduced the concept of smart contracts
2- Its programmed to perform certain action after a certain confidion and cannot be modified
3- Remove the dependency on single node
The answers to the above questions are based on previous answers as there is no direct reference to the topics . in the videos relating to these questions.