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...
Saved in:
Main Authors | , , , , |
---|---|
Format | Patent |
Language | Chinese English |
Published |
08.11.2022
|
Subjects | |
Online Access | Get full text |
Cover
Loading…
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 |