| With the birth of Ethereum,smart contracts were put into mass use and the blockchain industry officially entered the 2.0 era,which drove the decentralized industry to flourish.However,due to imperfect design and immature application,the vulnerability problems of smart contracts are numerous.In order to maintain the security of the decentralized industry,a large number of analysis and detection tools for smart contract vulnerabilities have emerged,but their accuracy is low due to the lack and irregularity of training data.In addition to the dedicated datasets built by the developers of detection tools,some open-source research on pan-contract datasets has also emerged,but these datasets generally have disadvantages such as poor timeliness,low accuracy and cannot be interoperable without a unified standard,so they are not widely recognized and have not become authoritative and common datasets.This creates a vicious cycle of poor-quality training data leading to low tool accuracy,low tool accuracy leading to slow research advancement and slow research not keeping pace with data iteration leading to poor-quality available data.Therefore,there is a pressing need to build a database that is constantly updated and iterated and has quality content to drive research.This paper conducts exploratory research on blockchain-related technologies,carries out the integration of related tools and datasets around smart contract vulnerabilities,proposes a contract data sharing community scheme,designs an innovative consensus incentive method,and combines a variety of automated detection tools to form an efficient pre-detection method,based on which a smart contract data sharing platform is implemented to accumulate the number of contracts,improve quality and guarantee timeliness through a large number of distributed user nodes under a unified standard..The main research content of the paper are as follows:(1)Construct a blockchain-based smart contract data sharing platform,using IPFS to store duplicate-free smart contract codes and other information data,using blockchain to store the corresponding content identifiers and a middle platform is constructed to match and distribute the contents of the two storage systems.(2)We analyze the advantages and disadvantages of various mainstream consensus mechanisms and propose a new incentive consensus method based on which users are divided into three categories of nodes,based on which nodes can participate in voting,electing functional nodes and continuously screening quality contract content,and designing unique contribution measurement mechanisms for different categories of nodes,which effectively incentivizes users to acquire and contribute smart contract data.(3)Screen,process and build a certain size of the initial dataset.Combine a variety of smart contract vulnerability detection tools to detect a portion of these contracts.In addition,multiple tools were combined to construct a smart contract pre-detection module under the platform to ensure the automatic labeling and classification of smart contracts and to improve the multiple mechanisms of the platform. |