Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Method and equipment for efficiently executing EVM smart contract and storage medium

A smart contract and contract technology, applied in the computer field, can solve the problems of repeated deployment, slow execution speed, lack of basic components, etc., and achieve the effect of improving execution efficiency

Active Publication Date: 2021-12-10
HANGZHOU FUZAMEI TECH CO LTD
View PDF5 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, in order to obtain the characteristics of "ignoring the specific physical machine architecture", "portability", and "simple implementation", EVM makes it a stack-based virtual machine. Its disadvantage is that the execution speed is slow and the execution efficiency of smart contracts is relatively low. Low. At the same time, the evm contract lacks basic components, such as commonly used containers, complex algorithms (zero-knowledge proof algorithm), and some other encryption algorithms. These components require a lot of calculations to obtain applications. If written in a smart contract programming language, the contract size is too large. Large, the contract execution efficiency is extremely low and there is a problem of repeated deployment, and it needs to be settled to the bottom. Commonly used containers, complex algorithms (zero-knowledge proof algorithms), and other basic components such as encryption algorithms can be efficiently implemented through native code, but If it is realized by built-in static native code, it will cause the node software to be recompiled and installed before it can run. Every time you add the required basic components, you need to recompile and install the node software, which will cause great inconvenience. Therefore, a method is urgently needed Efficient execution of EVM smart contracts, especially EVM smart contracts containing basic components that require a lot of calculations

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method and equipment for efficiently executing EVM smart contract and storage medium
  • Method and equipment for efficiently executing EVM smart contract and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0031] This embodiment provides a method for efficiently executing an EVM smart contract, which is applied to a blockchain system. The blockchain system modifies the compiler in advance and adds a dynamic library calling function instruction. The network of the blockchain system has a dynamic library released , the dynamic library coexists in the database of the blockchain system, the dynamic library includes a plurality of compiled basic component functions, and the basic component functions use native code to implement functions, and the native code includes C language, C++, JAVA, GO language or RUST; the methods include:

[0032] Smart contract development

[0033] Using the smart contract programming language to develop the first contract, extract the first part of the first contract, the first part is the part whose calculation amount exceeds the preset calculation amount, identify the function of the first part of the first contract, and compare The function of the firs...

Embodiment 2

[0055] A computer device comprising: one or more processors; memory for storing one or more programs which, when executed by the one or more processors, cause the The one or more processors execute the method as described in Embodiment 1.

[0056] A storage medium storing a computer program, when the program is executed by a processor, implements the method described in Embodiment 1 above.

[0057] figure 2 A schematic structural diagram of a device provided in this embodiment.

[0058] Such as figure 2 As shown, as another aspect, the present application also provides a computer device 500, including one or more central processing units (CPU) 501, which can be The program loaded into the random access memory (RAM) 503 by the part 508 executes various appropriate actions and processes. In the RAM 503, various programs and data necessary for the operation of the device 500 are also stored. The CPU 501 , ROM 502 , and RAM 503 are connected to each other via a bus 504 . A...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention belongs to the technical field of computers, and particularly relates to a method and equipment for efficiently executing an EVM smart contract and a storage medium. According to the method provided by the invention, for a part needing to be calculated in a large amount in the EVM smart contract, the part needing to be calculated in a large amount is realized in a form of issuing basic component functions which are written by native codes and have the same function, and in the process of executing the smart contract by the EVM, the part needing to be calculated in a large amount directly obtains a result by calling the basic component functions and configuration parameters in a dynamic library; the dynamic library is written and compiled by adopting a native code and then directly depends on an operating system to run, then a result is fed back to the EVM, the EVM continues to execute the intelligent contract, and the EVM does not execute a part needing a large amount of calculation, so that the problems that the calculation speed of the EVM is low, and the contract of the part which is written and calculated by adopting an intelligent contract programming language is too large in size and has repeated deployment are solved; and the execution efficiency of the contract can be greatly improved for the EVM smart contract needing a large amount of calculation.

Description

technical field [0001] The invention belongs to the field of computer technology, and in particular relates to a method, equipment and storage medium for efficiently executing an EVM smart contract. Background technique [0002] Blockchain technology is a distributed ledger technology that can store transaction data in immutable blocks, and connect the blocks in chronological order to form a blockchain. In a narrow sense, a blockchain is a chained data structure that combines data blocks in a sequential manner in chronological order, and is cryptographically guaranteed to be tamper-proof and unforgeable distributed ledgers; in a broad sense In terms of blockchain technology, it uses block chain data structures to verify and store data, uses distributed node consensus algorithms to generate and update data, uses cryptography to ensure the security of data transmission and access, and uses automated script codes to A new distributed infrastructure and computing method that co...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): G06F9/448
CPCG06F9/4482G06F9/4488G06F9/44521G06F8/31G06F8/315G06F9/45504G06F9/44505G06F8/41G06F16/27H04L67/34H04L67/60Y02D10/00
Inventor 何正军王志文吴思进
Owner HANGZHOU FUZAMEI TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products