Cross-contract fuzzy test method and device based on function dependence, equipment and medium

The invention relates to the technical field of smart contracts, and provides a cross-contract fuzzy test method and device based on function dependency, equipment and a medium, and the method comprises the steps: compiling a to-be-tested smart contract into a byte code, and generating a contract ca...

Ausführliche Beschreibung

Gespeichert in:
Bibliographische Detailangaben
Hauptverfasser: LU MENGJUN, ZHANG LIQIANG, YAN FEI, LI ZHENXIANG
Format: Patent
Sprache:chi ; eng
Schlagworte:
Online-Zugang:Volltext bestellen
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
Beschreibung
Zusammenfassung:The invention relates to the technical field of smart contracts, and provides a cross-contract fuzzy test method and device based on function dependency, equipment and a medium, and the method comprises the steps: compiling a to-be-tested smart contract into a byte code, and generating a contract calling interface corresponding to the byte code; generating a cross-contract data call graph and a function call list of the to-be-tested smart contract; based on the cross-contract data call graph and the contract call interface of the to-be-tested smart contract, applying to a ControractRank algorithm to obtain a function importance set of the to-be-tested smart contract; based on the byte code of the to-be-tested smart contract, the contract calling interface, the function importance degree set and the function calling list, generating a test case of the to-be-tested smart contract; and calling the Ethereum virtual machine to perform fuzzy testing on the test case of the to-be-tested smart contract. According to