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

Solidity smart contract-oriented defect prediction method

A technology of smart contracts and prediction methods, applied in error detection/correction, software testing/debugging, instruments, etc.

Pending Publication Date: 2021-03-30
大卜科技(北京)有限公司
View PDF0 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

For the problem of defect propensity prediction, it is further analyzed whether using oversampling techniques to deal with class-imbalanced datasets will improve the prediction performance

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
  • Solidity smart contract-oriented defect prediction method

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

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

[0024] A defect prediction method for Solidity smart contracts, such as figure 1 As shown, the specific steps are as follows:

[0025] Extract measurement meta-information from the source code, perform defect detection on the source code, obtain defect detection information, and combine the two information according to the contract / library to form a defect prediction data set;

[0026] Use regression models and classification models to predict the prediction ...

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 Solidity smart contract-oriented defect prediction method which is applied to the technical field of software defect prediction. The method comprises the following steps: firstly, extracting metric elements of code modules from Solidity source codes, and marking the number of defects for each code module so as to construct a defect prediction data set; then, for the classimbalance problem in the Solidy defect prediction data set, adopting an oversampling method to carry out data preprocessing; and finally, respectively constructing a defect quantity prediction modeland a defect tendency prediction model, and evaluating the performance of the models. According to the method, the metric element set is combined with the Solidy smart contract defect detection result, the Solidity smart contract defect prediction data set is constructed, the characteristics of the Solidity smart contract can be better described, and based on the data set, the performance differences of different models in defect quantity prediction and defect tendency prediction problems are verified respectively.

Description

technical field [0001] The invention relates to the technical field of software defect prediction, and more specifically relates to a defect prediction method for Solidity smart contracts. Background technique [0002] Blockchain is the core supporting technology of the digital encryption currency system represented by Bitcoin. The core advantage of blockchain technology is decentralization, which provides a solution to the problems of high cost, low efficiency and insecure data storage in centralized institutions. The research and application of blockchain technology is showing explosive growth. Government departments, financial institutions, technology companies and capital markets are all exploring ways to use blockchain technology to solve practical problems. [0003] Smart contract is the core component of the blockchain. It is a digital agreement that uses algorithms and programs to compile contract terms, runs on the blockchain, and can be automatically executed acco...

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): G06F11/36
CPCG06F11/3608Y02P90/30
Inventor 杨慧文崔展齐贾明华刘秀磊刘建宾郑丽伟
Owner 大卜科技(北京)有限公司