Earlier Optimism has announced that it will be upgraded to be fully compatible with EVM. Developers can use Solidity smart contracts to directly deploy tools running on Ethereum on Layer 2, which means that the scalability of the Ethereum network is further increased.
So, what does the Ethereum Virtual Machine (EVM) mentioned here mean and what is its use? Let us find out today.
01
What is the Ethereum Virtual Machine?
Students majoring in computer science should be familiar with "virtual machine". "Virtual machine" refers to a complete computer with complete hardware system functions simulated by software and running in a completely isolated environment. system.
To put it simply, a virtual machine is a virtual machine that we simulate through software that is exactly the same as our personal computer. It has the same software and hardware resources as an actual physical computer.
After entering the virtual system, all our daily operations can be performed in this new and independent virtual system. We can independently install and run software, save data, etc.
In this way, we can play around in the virtual machine without fear of various viruses and attacks. At worst, reinstalling the virtual machine will not have any impact on the real system.

Just like the six-eared macaque in "Journey to the West" has the same appearance as Sun Wukong, and both have the ability to slay demons. abilities, but they are independent individuals. Even if the six-eared macaque is killed, it will not have any impact on Sun Wukong himself.
We know that the Bitcoin network is like a huge and real-time updated distributed ledger. Computers anywhere in the world can be connected to the Bitcoin system through the Internet. It is decentralized, non-tamperable and open. Transparent features.
There is no virtual machine in this network. The more important function of Bitcoin is to record and store transaction data at any time on the chain.
The Ethereum Virtual Machine, as the name suggests, is an abstract machine built on the Ethereum blockchain, which can isolate programs running on it from each other and from the main chain.
02
What is the use of the Ethereum Virtual Machine?
Compared with Bitcoin, which is regarded as a distributed ledger, Ethereum is committed to becoming a "next-generation smart contract and decentralized application platform" and can be regarded as a program that can run distributed computing platform.
Vitalik also envisions it as a decentralized “world computer.” As a computer, it needs to have functions such as calculation, storage, and execution.
Therefore, in addition to having the basic data storage function in the Bitcoin network, Ethereum also needs to run various codes for calculation, software or applications compiled and interpreted by the Ethereum Virtual Machine (EVM) It's a "smart contract".
When a transfer transaction occurs on the Ethereum chain, the Ethereum Virtual Machine (EVM) will perform the following series of tasks:
· Retrieve the value of the transfer, Analyze the contract's instructions.
· Calculate Gas consumption (handling fee) and ensure that the address sending the transfer has enough Gas fee.
· Execute the contract and transfer the money to the corresponding address.
From the workflow of the Ethereum Virtual Machine (EVM) above, we can get a glimpse of several functions of EVM for Ethereum:
· Easy for testing : In order to ensure the smooth execution of various "smart contracts", we need to create a safe operating environment for them. The Ethereum Virtual Machine is a code operating environment.
As we said above, various operations in the virtual machine will not affect the host. Any developer who wants to create smart contracts on the Ethereum Virtual Machine can test various applications on the virtual machine. It does not occupy main chain resources and is not affected by other blockchains.
· Increase security: Ethereum carries various applications with powerful functions, and their logic becomes more complex, making it easier for developers to develop various vulnerabilities. The Ethereum Virtual Machine is a completely independent sandbox, and the contract code can be completely isolated from the outside and run inside the EVM.
Not only can it prevent criminals or programmers’ programming errors from affecting the entire main chain, it can also prevent the physical equipment running smart contracts from being attacked.
· Guarantee stability: Since the Ethereum virtual machine is deployed on every node of the Ethereum network, the data of the entire Ethereum network is jointly maintained and maintained by many nodes. Update, this maintains the consistency of the entire blockchain data, which also makes Ethereum extremely fault-tolerant, ensuring zero downtime.
03
Summary
It can be seen that the Ethereum Virtual Machine plays an important role in the Ethereum blockchain and provides intelligent The implementation of the contract provides a technical foundation, which not only provides developers with an application testing environment as a whole, but also improves the security and stability of the Ethereum main chain to a certain extent.
However, it also has many flaws and has been criticized. For example, the Solidity language commonly used by EVM lacks a standard library, the contract code does not support upgrades and only supports deployment, and storage space fragmentation and maintenance.
The above is the detailed content of What is the Ethereum Virtual Machine EVM and what is it used for?. For more information, please follow other related articles on the PHP Chinese website!

最近大热的BRC-20 Token是基于比特币,但比特币区块链无法对其进行规则约束。制造BRC-20 Token的成本在于将文件添加到区块链中,以及未来与Token关联的UTXO的移动。 既然UTXO这么重要,今天我们就来简单介绍一下U…

去中心化网络或 Web 3.0 加密货币是推动互联网下一次迭代的数字资产。它们基于区块链技术。与 Web 2.0 的集中式平台和服务相比,Web 3.0 旨在构建一个不太集中、更加透明且以用户为中心的互联网。Web 3.0 加密货币…

目前,一枚比特币价值近 22 万人民币。对于刚入圈的新人来说,肯定很关心比特币的安全问题。 那么,比特币安全吗?换句话说, 钱包里的比特币,容易被黑客盗走吗? 01. 私钥、公钥、地址就像银行取款、网银转账需…

在加密世界里,钱包地址就像 “银行卡账号”、“收件地址”一样重要,任何操作都离不开它,随着Ordinals 协议的诞生,推动了比特币基于隔离见证、Taproot升级的采用,这让很多人第一次使用“bc1p”等特殊抬头的地…

区块链显著特征就是其透明度和可追溯性超过了世界上的绝大多数系统,但是在这背后仍然存在着看不见的博弈!MEV (矿工可提取价值 / 最大可提取价值)就是隐藏的黑暗森林,在每一笔交易背后都可能有它的身影。 自 2…

通过钱包转账 ETH 或是ERC一20 Token时,我们知道这个转账需要付手续费。那么,转账的手续费是怎么算的呢? 如果转账的同时还去“刻字”,是不是需要收取更高的手续费呢?今天,大白就给大家聊聊 以太坊的 Gas 机…

持续的加密货币上涨主要是由比特币减半带来的兴奋推动的,比特币已经飙升至 65,000 美元以上并达到历史新高,加密货币市场的传统通配符——模因币——也几乎没有被排除在外。 事实上,过去 7 天内,多个著名的 mem…

以太坊上海升级逾后56.5万枚ETH流入流动质押(Liquid Staking)协议,截至2023年5月24日,Lido Finance、Coinbase等流动质押协议中锁定总价值超过183亿美元。 根据DefiLlama数据,Liquid Staking的TVL随着以太坊上…

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

EditPlus Chinese cracked version
Small size, syntax highlighting, does not support code prompt function

Dreamweaver Mac version
Visual web development tools

ZendStudio 13.5.1 Mac
Powerful PHP integrated development environment

SublimeText3 Mac version
God-level code editing software (SublimeText3)

mPDF
mPDF is a PHP library that can generate PDF files from UTF-8 encoded HTML. The original author, Ian Back, wrote mPDF to output PDF files "on the fly" from his website and handle different languages. It is slower than original scripts like HTML2FPDF and produces larger files when using Unicode fonts, but supports CSS styles etc. and has a lot of enhancements. Supports almost all languages, including RTL (Arabic and Hebrew) and CJK (Chinese, Japanese and Korean). Supports nested block-level elements (such as P, DIV),
