Intelligent contract vulnerability repairing method and device and medium

The invention discloses an intelligent contract vulnerability repairing method and device and a medium, and relates to the field of intelligent contracts. The method comprises the steps of obtaining operation data when an Ethereum virtual machine operates a smart contract, wherein the operation data...

Full description

Saved in:
Bibliographic Details
Main Authors FENG YUMING, QIU ZHIHAO, LIU PENGHUI, ZHANG WEIZHE, ZHANG YU
Format Patent
LanguageChinese
English
Published 08.11.2022
Subjects
Online AccessGet full text

Cover

Loading…
More Information
Summary:The invention discloses an intelligent contract vulnerability repairing method and device and a medium, and relates to the field of intelligent contracts. The method comprises the steps of obtaining operation data when an Ethereum virtual machine operates a smart contract, wherein the operation data comprises block information, transaction information and instruction information; detecting vulnerabilities of the smart contract according to the operation data, and determining an instruction execution sequence corresponding to the vulnerabilities; according to the operation data, determining a target basic block where the instruction execution sequence is located from a control flow diagram of the smart contract, and obtaining context logic association information of the vulnerability; generating a target patch according to the type of the vulnerability, the byte code level associated information and a preset patch template; and repairing the original program code of the smart contract according to the target p
Bibliography:Application Number: CN202211244063