HomeCoinsOntology (ONT)MainNet 3rd Anniversary Special: Ontology’s Ethereum Virtual Machine (EVM) Debut | by...

MainNet 3rd Anniversary Special: Ontology’s Ethereum Virtual Machine (EVM) Debut | by The Ontology Team | OntologyNetwork | Jul, 2021

- Advertisement -

Ontology first to support four smart contract platforms including the Ethereum Virtual Machine, providing faster block production speeds and lower handling fees.

The Ontology Team
MainNet 3rd Anniversary Special Ontologys Ethereum Virtual Machine EVM Debut

At the start of 2021, Ontology’s technical team began developing the Ontology Ethereum Virtual Machine (EVM). In addition to NeoVM, Native (Ontology) VM and WasmVM, we are adding support for the EVM. The goal is to establish seamless interoperability between Ontology and the Ethereum platform, and offer an inclusive experience to developers and users.

On the third anniversary of Ontology’s MainNet launch, we announced that the development of Ontology EVM had been completed. The existing version adds the Ethereum account system, Ethereum transaction types, and Web 3 APIs. At the same time, the virtual machine layer and transaction pool are optimized and enhanced, and the blockchain browser is synchronized.

Below, we describe the design and development details.

EVM: General Introduction

Ethereum describes the Ethereum Virtual Machine (EVM) as a ‘single entity maintained by thousands of connected computers running an Ethereum client.’

It goes on to state:

The Ethereum protocol itself exists solely for the purpose of keeping the continuous, uninterrupted, and immutable operation of this special state machine; It’s the environment in which all Ethereum accounts and smart contracts live. At any given block in the chain, Ethereum has one and only one ‘canonical’ state, and the EVM is what defines the rules for computing a new valid state from block to block.

Ontology’s EVM: Introduction

The EVM developed by Ontology is a virtual machine compatible with the Ethereum ecosystem. It uses ONG as the gas fee for on-chain services and requires relatively low gas fee consumption. Our goal is to ensure that Ontology’s EVM is fully compatible with the Ethereum ecosystem.

Goals

Ontology’s smart contract system adopts the multi virtual machine scheme and supports three kinds of contracts; Native contracts, NeoVM contracts, and Wasm contracts. Thanks to Ethereum’s strong community and ecosystem, adding EVM support for Ontology can facilitate more existing Ethereum ecosystem developers to use Ontology.

Our aim is to ensure frictionless interoperability between Ontology and Ethereum to reduce migration costs of developers, and at the same time, avoid significant changes to the existing platforms to ensure the continuity of the ecosystem development.

Development Process and Results

Our development process lasted over one month, with one iteration. Upon completion, Ontology and Ethereum can interoperate seamlessly with a high level of compatibility. Specific features: updated browser, supported Ethereum account system, infrastructure, RPC (remote procedure call), and additional Web 3 interfaces.

Enhancements:

The underlying ledger status of Ontology only stores contract data; account data is stored in various contract storage areas, including native ONT and ONG contracts. However, Ethereum ledger status consists of two layers of MPT. The first layer is the account status, including the Nonce (Number only used once), the Ethereum balance and the status root of the account data. The second layer is the key value pair data of the contract account. Due to the huge gap, adopting an Ethereum solution would lead to a large number of destructive updates to Ontology. Therefore, we opened up a storage space to store the Nonce and contract codes of accounts related to Ethereum transactions. The key value pair data of the contract account is consistent with Ontology, which not only takes into account the function of Ethereum, but also ensures the compatibility of Ontology itself.

Based on its existing multi-VM system, Ontology can easily add EVM support. Most of the instructions are exactly the same as those on the Ethereum platform, with a few EVM instructions suitable only for Ethereum, such as COINBASE and DIFFICULTY, which use default values on Ontology. Because they are rarely used in dApps, most contracts can be seamlessly migrated in practical applications. We provide support for Ontology EVM calls from existing NeoVM and Wasm virtual machines to facilitate the interaction between existing contract applications and EVM applications. At the same time, in order to avoid the expansion and bifurcation of EVM, we do not currently provide support for EVM cross virtual machine calls.

Ontology’s transaction structure is scalable and supports several transaction types on demand. We support Ethereum EIP-155 transactions on the basis of existing transaction types, so that the transactions issued by existing Ethereum ecosystem wallets are compatible with Ontology EVM.

The order of Ethereum’s transaction record must be increased according to the Nonce value of the account. To ensure this feature, we maintain a list of EIP-155 transactions in the transaction pool. Only transactions meeting the conditions can be packaged into blocks.

At present, Ontology EVM provides rich interfaces such as RESTful, JSON-RPC, and WebSocket. Since contract development tools, wallets and dApps in the Ethereum ecosystem all use Web 3 API, we developed an additional interface adaptation layer to support Web 3 API, ensuring contract development tools and wallets such as Truffle, Remix, and MetaMask, can be directly used for dApp development on Ontology.

With the launch of the Ontology EVM, users can access Ethereum applications and wallets in one place.

Developers can use contract development tools such as Truffle and Remix to realize seamless connections between two chains and experience a more compatible blockchain ecosystem .

Ontology contracts development has the following advantages:

  1. Contracts supported: industry-leading VM support; multi-VM includes four kinds of contracts (NeoVM, Native, Wasm, EVM).
  2. Fees and Velocity: Users can experience the Ethereum ecosystem on Ontology blockchain, with lower gas fees and faster block production.
  3. Wasm support: Wasm has performed excellently since its launch two years ago.

When Multi-VM launched in 2020, the Ontology Technical team said:

In the field of blockchain, the goal of virtual machine (VM) technology is to create a smart contract execution environment suitable for all transactions. However, from a technical point of view, the efficiency of contract execution, the complexity of supported transactions and the ability of cross-system cooperation are all key factors. In this process, different VMs have different application scopes. Ontology Multi-VM is committed to meeting a wider range of transaction requirements, bringing higher execution efficiency and lower gas fees. The design and launch of Ontology EVM is an important aspect of this goal, which will bring more transaction scenarios.

On the basis of the underlying completed functions, more compatibility tests and enhancements of the Ethereum tool chain will be carried out in the future to further satisfy the requirements of trusted data interactions and bring more convenient and efficient experiences for developers and users.

Source link

- Advertisement -
profile logo 500x500
Mr Bitcointehttps://www.bitcointe.com/
“Fact You Need To Know About Cryptocurrency - The first Bitcoin purchase was for pizza.” ― Mohsin Jameel
462FansLike
76FollowersFollow
4,567FollowersFollow
5,261FollowersFollow
1,496FollowersFollow
2,230SubscribersSubscribe

Most Popular

bitcoin
Bitcoin (BTC) $ 41,373.00
ethereum
Ethereum (ETH) $ 2,824.12
tether
Tether (USDT) $ 0.999435
bitcoin-cash
Bitcoin Cash (BCH) $ 496.80
litecoin
Litecoin (LTC) $ 145.31
eos
EOS (EOS) $ 3.92
okb
OKB (OKB) $ 14.24
tezos
Tezos (XTZ) $ 6.05
leo-token
LEO Token (LEO) $ 2.97
cardano
Cardano (ADA) $ 2.19
monero
Monero (XMR) $ 227.28
stellar
Stellar (XLM) $ 0.274834
chainlink
Chainlink (LINK) $ 22.01
huobi-token
Huobi Token (HT) $ 9.78
tron
TRON (TRX) $ 0.090612
usd-coin
USD Coin (USDC) $ 0.999664
dash
Dash (DASH) $ 161.19
neo
NEO (NEO) $ 38.36
iota
IOTA (MIOTA) $ 1.23
nem
NEM (XEM) $ 0.145927
zcash
Zcash (ZEC) $ 107.87
maker
Maker (MKR) $ 2,240.15
paxos-standard
Pax Dollar (USDP) $ 0.998914
ethereum-classic
Ethereum Classic (ETC) $ 45.37
vechain
VeChain (VET) $ 0.090817
true-usd
TrueUSD (TUSD) $ 0.998786
ftx-token
FTX Token (FTT) $ 51.23
kucoin-shares
KuCoin Token (KCS) $ 10.05
waves
Waves (WAVES) $ 25.58