Ethereum virtual machine

Richa Kaushik
2 min readDec 19, 2022

--

To understand the Ethereum virtual machine, let's try to understand the idea of a virtual machine (virtual box).

What if you want to try out Linux but use Windows? But you’re unsure of the partitioning process for discs. Herein lies the role of the virtual machine. What if you had access to a different test computer where you could try this out?

This test computer is actually a virtual machine, often called a "virtual box."

VirtualBox is made to allow you to operate virtual machines on a physical machine without having to reinstall the OS. So this is to run a different operating system on the same system.

Now the question is, why do we need to use a virtual machine in Ethereum, i.e., an Ethereum virtual machine?

What if a hacker makes a malicious program (containing any kind of malware) and sends it in the form of a decentralized application all over the network? What happens then?

In order to avoid it, the Ethereum virtual machine runs the decentralized application and thus protects our system.

Functions of Ethereum virtual machine

  • After each new block is added to the chain, the Ethereum Virtual Machine, also known as the EVM, computes the state of the Ethereum network and executes smart contracts.
  • It executes and compiles different kinds of smart contract code into a readable language called “Bytecode.”

--

--

Richa Kaushik
Richa Kaushik

Written by Richa Kaushik

Technical enthusiast, learner and creator!

No responses yet