Assets, Ethereum

What Does the Ethereum Virtual Machine Do?

Ethereum is a decentralized platform that runs smart contracts: applications that run exactly as programmed without any possibility of fraud or third party interference.

In the Ethereum protocol and blockchain there is a price for each operation. The miners are free to choose which transactions to process and they are incentivized to include the ones that pay them the most fees.

In order to prevent Sybil attacks, where one person can create multiple identities to control the network, Ethereum requires accounts to have a balance of at least 1 wei.

The EVM is the runtime environment for smart contracts in Ethereum. It is not only sandboxed but also completely isolated from the network, file system or other processes of the underlying operating system.

This means that code running inside the EVM has no access to network resources, files or processes.

NOTE: This warning note is to inform that the Ethereum Virtual Machine (EVM) does not come with a user-friendly interface and requires a deep understanding of Ethereum software, blockchain technology, and programming languages. It is important to remember that running code on the EVM can be expensive and can cause irreversible damage if not used properly. Therefore, it is essential to research and understand the risks associated with using the EVM before making any decisions involving it.

The EVM executes bytecode compiled from Solidity or other languages like Vyper. This bytecode is stored in the blockchain in the form of a transaction.

When that transaction is executed, the code is run by the EVM and can perform operations on itself or interact with other contracts.

The EVM has its own internal memory called storage and has a set of instructions called opcodes that it can execute. These opcodes allow for basic operations like storing and retrieving data from storage, performing arithmetic operations, and calling other contracts.

The EVM is designed so that it is impossible for a programmer to write a contract that will not terminate. This means that all programs running on the EVM will always eventually stop running, even if they are loops.

In addition, every contract running on the EVM uses a fixed amount of gas for every operation it performs. This ensures that there are always limits on how much work can be done by a single contract and prevents denial-of-service attacks.

The Ethereum Virtual Machine is a key component of Ethereum which allows for decentralized applications to be ran on a blockchain with all of their associated benefits including trustlessness and immutability.

Previous ArticleNext Article