Homework on EVM

1.) EVM is a piece of code that allows you to run smart contracts. allows security and consensus in the network.

2.) EVM can read instructions from solidity and Bytecode.

3.) solidity is compiled into a bytecode which then runs through the EVM on the CPU of a node.

4.) Bitcoin can not run on Ethereum because it uses the Script programming language which is not Turing complete.

5.) a Turing complete programming language is one that can solve all problems that may arise when creating an application. Which allows you to program anything you want.

  1. Ethereum Virtual Machine interpreters and executes smart contracts into Bute code which later will run as a machine readable code on cpu.

  2. EVM protects and isolate rather than directly on the cup this reduces the likelihood of malicious code built within a smart contract affecting the computer running the EVE

3)Solidity:is a programming language for writing smart contracts in various block chain platform
bytecode: low-level code designated for a software interpreted .it may be executed by a virtual machine which can be recognised by the professor

4)Bitcoin runs on script program which it is not tiring complete,whereas ethereal runs on dBm which execute turning complete

5)Turning complete programming language means that this system is able to recognised or decide other data-manipulation rule sets

2 Likes
  1. What does the EVM do?
    EVM stands for Etherium Virtual Machine, it is a layer between the smart contract and the Etherium nodes. It provides a security layer so that a smart contract cannot gain direct access to the CPU of any node on the network.

  2. What is the format of the instructions that the EVM can read?
    The EVM understands instructions in bytecode which is produced when a smart contract is compiled.

  3. What is the relationship between the programming language Solidity and Bytecode?
    Byte code is simply the result of a compiled solidity program, any programming language with a compatible compiler could be used to produce bytecode.

  4. Why can’t Bitcoin run the same type of complex programs like Ethereum can?
    Bitcoin does not have a Turing complete programming language and therefore is more limited than Etherium when running programs. Bitcoin was intentionally kept non turing complete as this has certain advantages for maintaining smaller block size and computational overhead.

  5. What is a Turing Complete programming language?
    In theory anything can be programmed on a Turing complete language. Meaning that it can perform any calculation. In practice this may be limited by the computational power or cost of the calculation.

1 Like
  1. What does the EVM do?
    The Ethereum Virtual Machine can read and execute smart contracts.

  2. What is the format of the instructions that the EVM can read?
    EVM uses bytecodes.

  3. What is the relationship between the programming language Solidity and Bytecode?
    Smart contracts are written in Solidity but compiled in Bytecode. Bytecode will then read the instruction of the smart contract and tell the CPU to execute it. All EVMs on the nodes needs to execute all the instructions and come to the same conclusion.

  4. Why can’t Bitcoin run the same type of complex programs like Ethereum can?
    Bitcoin uses a different language called Script. It is not touring complete. It basically can’t solve all problems that an application might have.

  5. What is a Turing Complete programming language?
    It is a language like solidity that you can use to programme pretty much all you want.

2 Likes

1. What does the EVM do?
It serves as the intermediary between a nodes cpu and a smart contract on the ETH blockchain.
2. What is the format of the instructions that the EVM can read?
Bytecode.
3. What is the relationship between the programming language Solidity and Bytecode?
Solidity is the compiler that translates the Bytecode.
4. Why can’t Bitcoin run the same type of complex programs like Ethereum can?
It use the programming language Script which is not Turing Complete.
5. What is a Turing Complete programming language?
Solidity.

2 Likes
  1. the EVM is a piece of code which runs on top of the hardware of each exisiting node and it can read and execute code,it serves as an intermediary between a nodes cpu and smart contract and is an extra layer of security.
  2. Bytecode
    3.Solidity is a compiler that takes your solidity code and compiles your instructions into byte code so that EVM reads the instructions.
  3. BTC uses a lanuage called Script which is primitive compared to ETH and requires several people to approve a transaction.
  4. Solidity as it solves the problems.
2 Likes
  1. What does the EVM do?
    The EVM checks the byte code for any malicious intent or anything dangerous for the computer/ cpu running the smart contract code.
  2. What is the format of the instructions that the EVM can read?
    Byte Code
  3. What is the relationship between the programming language Solidity and Bytecode?
    Solidity is an easier to use programming language that is very similar to c# and javascript, whilst bytecode is a very simple prgramming language but hard to code as its very minimalistic. Programmers tend to program in solidity, which is then converted to bytecode so the EVM can read the code.
  4. Why can’t Bitcoin run the same type of complex programs like Ethereum can?
    Because it would be subject to a lot of spam which would congest and slow down the bitcoin blockchain. Also adding smart contracts would increase blocksize also reducing the cost and speed of the network.
  5. What is a Turing Complete programming language?
    A TC prgramming language allows you to use loops in your code.
2 Likes
  1. EVM can execute turing-complete scripts and run decentralized apps. Also, acts as a security layer so that no malicious activity can affect the smart contract.

  2. Bytecode

  3. Solidity is compiled into byte-code that is executable on the EVM.

  4. BTC blockchain is not Turing- Complete and is script language.

  5. When you can implement any possible algorithm with it, has no limitations and can solve any problems.

2 Likes
  1. the Ethereum Virtual Machine is a piece of code that run on each CPU of the nodes within the network. makes possible to execute code on the network and achieve consensus.
  2. byte code
  3. solidity is the programming language to be compiled into byte code for the EVM to read.
    4 bitcoin’s programming language, script, is not turing complete. very limit capabilities.
  4. Anything that you can think of can be programmed on it. Comprehensive set of tools and capacities.
2 Likes
  1. EVM - Ethereum virtual machine can run and execute smart contracts so that we are all in consensus on what the result should be.

  2. EVM can read Bytecode.

  3. Smart contracts are written in Solidity and compiled into the Bytecode.

  4. Bitcoin developers wanted it to be just a digital currency. It has programming language Script, which is not turning complete.

  5. It is a language that you can program/build everything you want.

2 Likes
  1. What does the EVM do?
    Ethereum Virtual Machine runs on all machines in the network and EVM is what defines the rules for computing a new valid state from block to block.

  2. What is the format of the instructions that the EVM can read?
    The EVM executes as a stack machine with a depth of 1024 items. Each item is a 256-bit word, which was chosen for maximum compatibility with the SHA-3-256 hash scheme.

  3. What is the relationship between the programming language Solidity and Bytecode?
    Solidity is the program language for Ethereum which uses Bytecode, an abstract instruction set designed for efficient execution by a software interpreter or a virtual machine. Unlike solidity (human-readable source code), bytecode is expressed in numeric format.

  4. Why can’t Bitcoin run the same type of complex programs like Ethereum can?
    It uses a more simplistic program language with limited instructions.

  5. What is a Turing Complete programming language? The capability to program whatever you want.

2 Likes

1. What does the EVM do?
Ans 1: EVM – Ethereum Virtual Machine, is a whole process that executes code on this network that makes it possible of having a smart contract that is running in a decentralized way on all of the nodes of the entire Ethereum block chain by reaching consensus as to what the result should be.

2. What is the format of the instructions that the EVM can read?
Ans 2: The EVM is an application running on all of the nodes, It executes the the code in a particular smart contract by giving instructions to the CPU. The instructions are like, enabling unstoppable transparency with the handling of money, reaching consensus with regards to what is happening in that smart contract, with regards to what kind of operation that smart contract is executing, and to reach consensus.
The EVM will ensure that nothing malicious happens, the EVM will ensure that this smart contract cannot break loose & take over the computer if it is in ETH node.

3. What is the relationship between the programming language Solidity and Bytecode?
Ans 3 : Solidity is a programme like Java Script. A special compiler application uses the solidity code (which looks like english in many ways) to compile the logic and instructions given by the programme solidity down to byte code. This enables EVM to read all of the instructions.

4. Why can’t Bitcoin run the same type of complex programs like Ethereum can?
Ans 4 : One could have simple smart contracts say on BTC too. But it’s not really smart contracts because they are very primitive. We can add some simple logic to BTC as well but it is very limited. And basically, it’s said, that it is not turing complete. Meaning that it cannot solve all the problems that it might have to solve if you want to programme some kind of application. So basically, it is very limited Script.

4. What is a Turing Complete programming language?
And 5 : When we say ETH a turing complete language, it means that this language has programmability, it has scripting and it gives developers the opportunity to create any application they want on top of ETH. At least in theory.

:pray: :heart: :pray:

1 Like

What does the EVM do?

The EVM reads smart contracts instruction by instruction.

What is the format of the instructions that the EVM can read?

The EVM reads byte code from the instructions. This is why the programming language does not really matter although most sc are compiled from solidity.

What is the relationship between the programming language Solidity and Bytecode?

The Solidity code is compiled to bytecode to be readable be the evm.

Why can’t Bitcoin run the same type of complex programs like Ethereum can?

Bitcoin uses script as programming language which is non turing complete. Which means only primitive algorithms are possible.

What is a Turing Complete programming language?

A language that is not limited in functionality and allows anything to be programmed.

3 Likes
  1. What does the EVM do?
  • The EVM makes possible execute code on the network in such a way that we will all on consensus about what the result should be by having a smart contract.
  1. What is the format of the instructions that the EVM can read?
  • The format of the instructions that EVM can read is Byte code
  1. What is the relationship between the programming language Solidity and Bytecode?
  • The programming language Solidity uses a special application called compiler which takes the solidity instructions and compile it down to byte code in order to let EVM read all instructions.
  1. Why can’t Bitcoin run the same type of complex programs like Ethereum can?
  • Because Bitcoin uses a programming language which call script which is non Turing complete means cannot solve all problems might. But Ethereum uses Solidity programming language which is Turing Complete.
  1. What is a Turing Complete programming language?
  • Is a language that you can program any kind of application you want.
2 Likes

What does the EVM do?

Ethereum Virtual Machine. The EVM runs on top of the Hardwar in all Nodes. It reeds the Smart Contract and distributes Instruction to the CPU. EVM Protects the Computer and there for the Ethereum Network.

2. What is the format of the instructions that the EVM can read?

Bytecode

3. What is the relationship between the programming language Solidity and Bytecode?

The Relationship is that a compiler transforms the “Solidity” code in to instructions in bytecode which enables the EVM to read the Bytecode Transactions and cause the computer to execute them.

4. Why can’t Bitcoin run the same type of complex programs like Ethereum can?

Bitcoin runs on a Programing Language cold “Script” and it is not Turing Complete. Bitcoin developers did not want the option for SPAM and many Code Iterations. This would have cause increase on the Blockchain size.

5 . What is a Turing Complete programming language?

Can solve all programing problems.

1 Like
  1. Reading and execute smart contracts on different nodes and give instructions to CPU

  2. Byte code

  3. A code programmed by Solidity will be compiled to byte code, and do it possible for EVM to read

  4. Because bitcoin is not turing complete who means that it can’t solve all possible problems, Etherum is turing complete

  5. It is a programming language where you can program everything you want

1 Like
  1. What does the EVM do? Is a Ethereum Virtual Machine that runs on the node that encapsulate smart contracts, reads and executes the instructions on the smart contract.
    2.What is the format of the instructions that the EVM can read? Byte code
  2. What is the relationship between the programming language Solidity and Bytecode? a compiler application that converted converted the programming language from Solidity.
  3. Why can’t Bitcoin run the same type of complex programs like Ethereum can? Bitcoin uses script language which is less programmable / not Turing complete for security purposes. It’s more solid state.
  4. What is a Turing Complete programming language? A programming language that (being used in ETH network to be more programmable than Bitcoin) has Loops which can tell software to do one thing several times and loops can be reprogrammed.
2 Likes
  1. The EVM runs on a Node and is able to compile and execute code in Solidity. It executes the code to completion and checks the results against other nodes.
  2. Solidity is the language used to program.
  3. Solidity is what the developer programs, which the EVM complies the Solidity code into Bytecode for execution.
  4. Bitcoin lacks a Turing complete programming language.
  5. It is a language that in theory can execute whatever script is written in it.
1 Like
  1. A virtual machine in ethereum which acts as a security system
  2. Solidity
  3. The information put into Solidity gets turned into bytecode.
  4. Because the language used by bitcoin is not turing complete
  5. Turing complete is flexible and enables the user to build things from the ground up.
1 Like
  1. Evm reads and execute on the smart contract and it tells the cpu what to do
    2.The EVM reads byte code
  2. A application called the compiler takes the solidity code and complies the logic and instructions given, and compiles it down to byte code which inturn the evm will read to do the instructions
  3. It runs a program called script but it is simple and limited not able to work on a complex system like smart contracts
  4. it has something called loops which allows you to do one thing several times
1 Like