A smart contract testing method based on path coverage sufficiency criterion
A path coverage test and smart contract technology, applied in the computer field, can solve the problems that tools cannot detect and can only detect a limited number of known vulnerabilities, so as to improve the effect of vulnerability detection and reduce labor costs
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment Construction
[0046] as Figure 1 As shown, a smart contract test method of the present invention based on the path coverage adequacy criterion, comprising the following steps:
[0047] The first step is to enter the bytecode that requires the smart contract and the ABI of the smart contract.
[0048] The second step is to generate a control flowchart based on bytecode.
[0049] The third step is to use the EPP algorithm to analyze the control flowchart, find out the blocks that need to be piled, and insert the pile.
[0050] The fourth step is to deploy the smart contract after the stake on the truffle.
[0051] In the fifth step, generate a collection of test cases that meet the requirements based on the path coverage test adequacy guidelines.
[0052] The specific description of each of the above steps is as follows:
[0053] The first step is to enter the bytecode of the smart contract, which can be obtained through sol-bin-runtimefilePath.
[0054] The second step is to generate a control fl...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com