Unlock instant, AI-driven research and patent intelligence for your innovation.

Intelligent contract transaction exception maintenance method, device and equipment and readable storage medium

A smart contract and transaction technology, applied in the blockchain field, can solve the problems of lack of transaction abnormal positioning and repair methods, hindering the development of smart contracts, etc.

Pending Publication Date: 2022-03-18
SUN YAT SEN UNIV
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Due to transaction failures, fees still need to be paid, these transactions bring certain losses to users and hinder the development of smart contracts
[0003] Most of the current research on smart contracts on Ethereum focuses on vulnerability detection, fuzz testing tools, static analysis, etc. These studies start from the smart contract itself to detect possible loopholes, and are more biased towards the preventive effect of smart contracts before transactions. Abnormal location and repair method after transaction abnormality occurs

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
  • Intelligent contract transaction exception maintenance method, device and equipment and readable storage medium
  • Intelligent contract transaction exception maintenance method, device and equipment and readable storage medium
  • Intelligent contract transaction exception maintenance method, device and equipment and readable storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0054] The following will clearly and completely describe the technical solutions in the embodiments of the application with reference to the drawings in the embodiments of the application. Apparently, the described embodiments are only some of the embodiments of the application, not all of them. Based on the embodiments in this application, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the scope of protection of this application.

[0055] Next, we will introduce the smart contract transaction exception maintenance method of this application in detail, please refer to figure 1 , figure 1 It is a schematic flowchart of a smart contract transaction exception maintenance method provided in the embodiment of this application, the method includes:

[0056] Step S100: Record the current stack state of the Ethereum virtual machine.

[0057] Specifically, it is possible to record the stack state of the Ethereum virtual...

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 discloses a smart contract transaction exception maintenance method, device and equipment and a readable storage medium. The method comprises the steps of recording a current stack state of an Ethereum virtual machine; tracking the transaction process of the smart contract on the Ethereum virtual machine to obtain transaction information of the transaction; after the transaction is finished, judging whether the transaction is executed abnormally; if yes, determining an abnormal source code corresponding to the value of the abnormal program counter contained in the transaction information according to a preset corresponding relation between the value of the program counter and the source code of the smart contract; modifying related parameters of the transaction according to the abnormal source code; and executing the modified transaction on the Ethereum virtual machine in the same state as the stack. Obviously, according to the application, the abnormal source code triggering the smart contract transaction can be determined according to the preset corresponding relation, and the transaction can be modified according to the abnormal source code, so that the modified transaction is executed on the Ethereum virtual machine which is the same as that before the transaction is modified, and whether the modified transaction can be successfully executed or not can be verified.

Description

technical field [0001] The present application relates to the technical field of blockchain, and more specifically, to a method, device, equipment, and readable storage medium for abnormal maintenance of smart contract transactions. Background technique [0002] In recent years, smart contracts based on decentralized applications on the blockchain have received more and more attention. Ethereum is currently one of the most popular smart contract platforms. Smart contracts on Ethereum run on the Ethereum Virtual Machine Users can call smart contracts in the form of transactions on Ethereum by paying a certain fee. When the transaction execution fails, the transaction fee paid by the user will not be refunded. Since transaction failures still require payment of fees, these transactions bring certain losses to users and hinder the development of smart contracts. [0003] Most of the current research on smart contracts on Ethereum focuses on vulnerability detection, fuzz testin...

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): G06Q10/06G06Q10/00G06Q40/04
CPCG06Q10/06311G06Q10/20G06Q40/04
Inventor 郑子彬杨杰宇郑沛霖
Owner SUN YAT SEN UNIV