Smart contract service platform and block chain system
Through the smart contract service platform and blockchain system, the upload, detection, classification and download process of smart contracts is simplified, solving the problem of high threshold for smart contract application, improving user convenience and operational efficiency, and promoting the use of smart contracts. promotion.
Patent Information
- Application Number
- PCT/CN2023/137370
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-03-10
- Filing Date
- 2023-12-08
- Publication Date
- 2024-09-19
AI Technical Summary
The application of smart contracts has a high threshold for use, which hinders its promotion and widespread application.
A smart contract service platform is designed, including smart contract upload module, detection module, classification module and download module. Through feasibility and security detection, contract tags are configured, and developers and users are connected through the blockchain system to simplify Smart contract upload, download and deployment process.
It lowers the threshold for using smart contracts, improves user convenience and operational efficiency, and promotes the promotion and application of smart contracts.
Smart Images

Figure CN2023137370_19092024_PF_FP_ABST
Abstract
Description
Smart contract service platform and blockchain system Technical Field
[0001] The present application belongs to the field of Internet technology, and in particular relates to a smart contract service platform and a blockchain system. Background Art
[0002] A smart contract is a programmable contract, which is a piece of automatically executed program in a computer. The potential application scenarios of smart contracts are very broad. For example, it has excellent application effects in the fields of prepaid funds management such as commercial single-purpose prepaid cards, and in fund settlement fields such as fund collection and intelligent account splitting.
[0003] At present, the scenarios in which smart contracts can be applied are becoming more and more extensive, but the application of smart contracts still has certain thresholds, which has caused certain obstacles to the promotion and pilot projects, and has hindered the promotion and application of smart contracts to a certain extent.
[0004] Summary of the Invention
[0005] This application aims to solve at least one of the technical problems existing in the prior art. To this end, this application proposes a smart contract service platform and blockchain system that can lower the threshold for using smart contracts.
[0006] In the first aspect, this application proposes a smart contract service platform, including:
[0007] A smart contract uploading module, configured to receive a smart contract uploaded by a first user;
[0008] A smart contract detection module, connected to the smart contract upload module, configured to execute a detection process for the smart contract;
[0009] A smart contract classification module, connected to the smart contract detection module, configured to assign corresponding contract tags to the smart contracts that have passed the detection;
[0010] A smart contract download module, the smart contract download module is connected to the smart contract classification module, and the smart contract download module is used to allow a second user to download the smart contract.
[0011] According to the smart contract service platform of this application, a smart contract market can be built through the smart contract service platform to connect developers and users, thereby lowering the threshold for using smart contracts.
[0012] According to one embodiment of the present application, the smart contract detection module includes a feasibility detection module and a security detection module. The feasibility detection module is used to execute the feasibility detection process of the smart contract, and the security detection module is used to execute the security detection process of the smart contract.
[0013] According to one embodiment of the present application, the feasibility detection module includes a deployment test unit and a black box test unit, and the security detection module includes a code vulnerability detection unit and a logic defect detection unit.
[0014] According to one embodiment of the present application, the smart contract includes contract code information, document description information and function description information, and the smart contract classification module is used to configure the contract tag of the smart contract based on the contract code information, the document description information and the function description information of the smart contract that has passed the detection.
[0015] According to one embodiment of the present application, the smart contract classification module is used to obtain a non-Euclidean graph of the contract code information, and determine the contract code feature vector based on the non-Euclidean graph, where the nodes of the non-Euclidean graph represent the calling functions of the contract code information, and the edges of the non-Euclidean graph represent the data flow and control flow of the contract code information.
[0016] According to one embodiment of the present application, the smart contract classification module is further used to classify the smart contracts into upgradeable smart contracts and non-upgradeable smart contracts.
[0017] According to one embodiment of the present application, it also includes a data and model storage module, which is connected to the smart contract upload module, the smart contract detection module, the smart contract classification module and the smart contract download module, and the data and model storage module is used to store the smart contract and the contract tag.
[0018] According to one embodiment of the present application, the smart contract upload module is further used to receive the reward collection address uploaded by the first user.
[0019] According to one embodiment of the present application, it includes the smart contract service platform described in any one of the above items.
[0020] In a second aspect, the present application provides a blockchain system, including any of the above-mentioned smart contract service platforms.
[0021] According to the blockchain system of the present application, by connecting the platform to a blockchain platform that supports smart contracts, developers and users can perform five processes of smart contract uploading, smart contract detection, smart contract classification, smart contract downloading, deployment and smart contract upgrade through their respective nodes, without the need for platform access in the middle, thereby improving the convenience of operation and the efficiency of functional services.
[0022] Additional aspects and advantages of the present application will be given in part in the description below, and in part will become obvious from the description below, or will be learned through practice of the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0023] The above and / or additional aspects and advantages of the present application will become apparent and easily understood from the description of the embodiments in conjunction with the following drawings, in which:
[0024] FIG1 is a schematic diagram of the structure of a smart contract service platform device provided in an embodiment of the present application;
[0025] FIG2 is a flow chart of a method for processing a smart contract service platform process according to an embodiment of the present application;
[0026] FIG3 is a second flow chart of the smart contract service platform process processing method provided in an embodiment of the present application;
[0027] FIG4 is a third flow chart of the process processing method of the smart contract service platform provided in an embodiment of the present application;
[0028] FIG5 is a schematic diagram of a process for performing smart contract detection on a smart contract service platform provided in an embodiment of the present application;
[0029] Figure 6 is a schematic diagram of the process of classifying smart contracts on the smart contract service platform provided in an embodiment of the present application.
[0030] Reference numerals: 110: smart contract upload module, 120: smart contract detection module, 130: smart contract classification module, 140: smart contract download module, 150: data and model storage module. DETAILED DESCRIPTION
[0031] The following will be combined with the accompanying drawings in the embodiments of the present application to clearly describe the technical solutions in the embodiments of the present application. Obviously, the embodiments described are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field are within the scope of protection of this application.
[0032] The terms "first," "second," and the like in the specification and claims of this application are used to distinguish similar objects, and are not used to describe a specific order or precedence. It should be understood that the terms used in this manner are interchangeable where appropriate, so that the embodiments of this application can be implemented in an order other than that illustrated or described herein, and that the objects distinguished by "first," "second," and the like are generally of the same type, and do not limit the number of objects; for example, the first object can be one or more. In addition, the term "and / or" in the specification and claims refers to at least one of the connected objects, and the character " / " generally indicates that the objects connected are in an "or" relationship.
[0033] The following describes the smart contract service platform and blockchain system according to an embodiment of the present application with reference to Figures 1 to 6.
[0034] As shown in Figure 1, the smart contract service platform provided in this embodiment of the application includes:
[0035] A smart contract uploading module 110 is configured to receive a smart contract uploaded by a first user;
[0036] Smart contract detection module 120, which is connected to the smart contract upload module 110 and is used to execute the smart contract detection process;
[0037] Smart contract classification module 130, which is connected to smart contract detection module 120 and is used to configure corresponding contract tags for smart contracts that pass the detection;
[0038] The smart contract download module 140 is connected to the smart contract classification module 130, and the smart contract download module 140 is used for the second user to download the smart contract.
[0039] The first user may be a developer, and the second user may be a user.
[0040] The smart contract uploading module 110 is used to receive a smart contract uploaded by a first user. The smart contract may be an executable code.
[0041] The smart contract service platform may be provided with a user interface, and the first user operates in the user interface to upload the smart contract, and the smart contract platform receives the smart contract uploaded by the first user.
[0042] For example, the smart contract service platform can be deployed on a web page. After the first user enters the URL to enter the smart contract service platform, he can upload the smart contract using the user interface.
[0043] As shown in FIG1 , the smart contract detection module 120 is connected to the smart contract upload module 110 , and the smart contract detection module 120 is used to execute the detection process of the smart contract.
[0044] Among them, the smart contract classification module 130 is used to configure corresponding contract tags for smart contracts that have passed the detection, which plays a classification role, so that the second user can find the required smart contracts through relevant search engines.
[0045] For example, after the first user uploads a smart contract related to a transaction process, the smart contract classification module 130 receives the smart contract and can configure a contract tag for it such as prepaid payment or cross-border trade.
[0046] As shown in FIG1 , the smart contract download module 140 is connected to the smart contract classification module 130 , and the smart contract download module 140 is used to provide a smart contract download service for the second user.
[0047] For example, the smart contract service platform can be deployed on a web page. After the second user enters the URL to enter the smart contract service platform, logs in to the user account, searches for the required smart contract through the search engine on the smart contract service platform, and then sends a download request to the smart contract service platform. After receiving the request, the smart contract service platform sends the smart contract to the second user, and the second user downloads the smart contract.
[0048] Among the related technologies, the relevant solutions for smart contracts are all innovations in methods of deployment, calling and execution of the smart contract life cycle, which have failed to lower the threshold for using smart contracts and demonstrate the convenience of smart contracts.
[0049] In the embodiments of the present application, by deploying a smart contract service platform on a web page or electronic device, a smart contract market can be built to connect developers and users of smart contracts, lower the threshold for using smart contracts, and allow individuals, businesses, and government agencies to use smart contracts more simply and quickly.
[0050] According to the smart contract service platform provided in the embodiments of the present application, the threshold for using smart contracts can be lowered, developers and users can be effectively connected, the convenience of users using smart contracts can be improved, and it is conducive to the promotion and use of blockchain-based smart contracts.
[0051] In some embodiments, the smart contract detection module 120 in the smart contract service platform includes a feasibility detection module and a security detection module. The feasibility detection module is used to execute the feasibility detection process of the smart contract, and the security detection module is used to execute the security detection process of the smart contract.
[0052] Among them, the feasibility detection module includes a deployment test unit and a black box test unit, and the security detection module includes a code vulnerability detection unit and a logic defect detection unit.
[0053] As shown in Figure 5, in the smart contract detection module 120, when a smart contract is tested, the feasibility of the smart contract is first tested, the smart contract is deployed in the test unit, the corresponding test case is constructed, and the feasibility test of the smart contract is performed. If it does not meet expectations, it is returned to the developer for modification. If it meets expectations, a security test is performed again, and the vulnerability detection code in the code vulnerability detection unit is used to perform security testing on the smart contract code.
[0054] Security testing can detect potential security risks including integer type errors, unverified return values, permission control issues, denial of service issues, asset freezing issues, reentrancy vulnerabilities, short address attacks, and code injection. If the test results show the existence of security vulnerabilities, the code will be returned to the developer for modification. If it meets expectations, logic defect detection will be carried out again.
[0055] Logical defect detection is a logical check of the smart contract code to ensure that the smart contract will not have an adverse impact on any party. If the detection result shows that there is a logical defect, it will be returned to the developer for modification. If it shows that there is no logical defect, the uploaded file will be saved and the next step will be taken.
[0056] The smart contract returned to the developer for re-modification needs to be re-processed through the smart contract upload module 110 and the smart contract detection module 120 after the developer completes the modification.
[0057] In actual implementation, the feasibility test of smart contracts should also include white-box and black-box analysis methods based on symbolic execution. The security testing of smart contracts should also include fuzz testing methods based on dynamic security testing and vulnerability detection methods based on dynamic taint analysis.
[0058] The black box analysis method based on symbolic execution is to test the input and output of the smart contract to determine whether it meets its functional specifications and whether the performance can meet user requirements, thereby judging the feasibility of the smart contract.
[0059] The white-box analysis method based on symbolic execution is to test whether the logical structure inside the smart contract is feasible through testing. All logical paths in the execution code are tested using test cases. The feasibility of the smart contract is judged by checking the program status at different checkpoints to determine whether the actual status is consistent with the expected status.
[0060] Fuzz testing is an automated testing method that automatically or semi-automatically generates random data according to certain rules, inputs the random data into the dynamically running smart contract program entry, and detects whether there are any abnormal situations in the tested smart contract, such as system crashes, assertion failures, etc., to discover security vulnerabilities in the smart contract.
[0061] Dynamic taint analysis is a testing method that uses the state of dynamic taint markings to determine whether a smart contract has security vulnerabilities. If the tainted data introduced by the taint source can propagate to the taint convergence point without undergoing harmless processing, then the information flow of the smart contract has a security vulnerability. If it cannot propagate to the taint convergence point, it means that the information flow of the smart contract is secure.
[0062] In some embodiments, the smart contract uploaded by the first user includes contract code information, document description information and function description information. The smart contract classification module 130 is used to configure the contract label of the smart contract based on the contract code information, document description information and function description information of the smart contract that has passed the detection. The smart contract classification module 130 classifies the smart contract based on the code information, document description information and function description information to determine whether the smart contract belongs to a certain label, thereby configuring the label information of the smart contract.
[0063] Among them, the smart contract classification module 130 is used to obtain the contract code feature vector of the contract code information, the document description feature vector of the document description information, and the structured information of the function description information, and determine the label of the smart contract based on the contract code feature vector, the document description feature vector and the structured information.
[0064] The smart contract classification module 130 obtains a non-Euclidean graph of the contract code information and determines a contract code feature vector based on the non-Euclidean graph. The nodes of the non-Euclidean graph represent the calling functions of the contract code information, and the edges of the non-Euclidean graph represent the data flow and control flow of the contract code information.
[0065] In some embodiments, the smart contract classification module 130 can also obtain the document description feature vector of the document description through the Doc2Vec method. The smart contract classification module 130 uses the Doc2Vec method to obtain the document description feature vector, and concatenates the vector of the smart contract code, the vector of the document description, and the structured information of the function description as the feature representation of the file, and uses a machine learning classifier to classify the smart contract.
[0066] The Doc2vec method is an unsupervised algorithm that can learn fixed-length feature representations from variable-length text (e.g., sentences, paragraphs, or documents).
[0067] It should be noted that the vectorization method in the smart contract classification module 130 includes converting the contract code information into a non-Euclidean graph and using the Doc2Vec method to obtain the feature vector of the document description. The smart contract classification module 130 can also use other vectorization methods to obtain the corresponding feature vector, and the embodiment of the present application is not limited to this.
[0068] It is understandable that the smart contract classification module 130 can obtain corresponding feature vectors based on text vectorization methods based on natural language processing, graph vectorization methods based on graph classification, and various supervised and semi-supervised machine learning classification algorithms.
[0069] Among them, the text vectorization method based on natural language processing can be the Doc2Vec method, and the graph vectorization method based on graph classification can be the non-Euclidean graph transformation method.
[0070] In actual implementation, the developer uploads the smart contract to the smart contract service platform through the smart contract upload module 110, and then the smart contract detection module 120 performs feasibility detection and security detection on the smart contract.
[0071] After the smart contract passes the test, the smart contract classification module 130 converts the smart contract code information uploaded by the developer into a non-Euclidean graph. The nodes of the non-Euclidean graph represent the calling functions of the smart contract code, and the edges of the non-Euclidean graph represent the data flow and control flow of the smart contract code information. It is mapped to the vector space to obtain the first feature vector. The smart contract classification module 130 also uses the Doc2Vec method to obtain the second feature vector of the text of the document description of the smart contract uploaded by the developer.
[0072] The first eigenvector is the eigenvector obtained by the non-Euclidean graph, and the second eigenvector is the eigenvector obtained by the Doc2Vec method.
[0073] After the smart contract classification module obtains the first eigenvector, the second eigenvector and the structured information, it sends this information to the machine learning classifier. The machine learning classifier uses the classification algorithm to classify the smart contract based on this information.
[0074] Among them, machine learning classifiers include supervised learning classification algorithms and semi-supervised learning classification algorithms. Supervised learning classification algorithms use machines to learn models from a large amount of labeled training data, and then use the model to predict the label of a given new data based on the learned model. Semi-supervised learning classification algorithms of machine learning use machines to learn a small amount of labeled data sets. When faced with new labeled data, they compare and analyze its label information with their own learning model to classify the new labeled data.
[0075] As shown in Figure 6, the smart contract classification module 130 splices the first feature vector, the second feature vector and the structured information of the function description file of the smart contract as the label feature representation of the file, and then uses the machine learning classifier to label the smart contract, for example, the classification labels are "prepaid", "targeted subsidy", "consumption red envelope" and "cross-border trade".
[0076] In some embodiments, the smart contract classification module 130 is further used to classify smart contracts into upgradeable smart contracts and non-upgradeable smart contracts.
[0077] Among them, if a non-upgradeable smart contract needs to be modified or optimized after the user downloads the smart contract, the smart contract service platform will not be able to provide this service to the user.
[0078] After the user downloads the upgradeable smart contract, the user can request an upgrade service from the smart contract service platform based on changes in actual conditions and the complexity of the business type.
[0079] For example, a user requests an upgrade service from the smart contract service platform. The smart contract platform sends the upgrade request to the developer and the user's requirement document to the developer at the same time. After receiving the request and document, the developer upgrades the smart contract according to the requirement document, and then re-passes the smart contract upload module 110, the smart contract detection module 120, the smart contract classification module 130 and the smart contract download module 140 before sending it to the user end.
[0080] In some embodiments, as shown in FIG4 , the smart contract upload module 110 in the smart contract service platform is also used to receive the reward collection address for downloading the developer's smart contract and upgrading the smart contract required by the user. When the user downloads the smart contract uploaded by the developer, the user needs to pay the corresponding smart contract download fee. When the smart contract used by the user needs to be upgraded and can be upgraded, the user sends the upgrade request and pays the upgrade fee at the same time, and the developer receives the fee through the reserved reward collection address.
[0081] It should be noted that the reward collection address reserved by the developer can be at least one of a bank account and a digital wallet.
[0082] For example, the reward collection address reserved by the developer can be a bank account, a digital wallet, or both a bank account and a digital wallet.
[0083] It should be noted that there can only be one actual reward collection address. If both a bank account and a digital wallet are provided, one default reward collection address must be determined and the other as a backup address.
[0084] A specific embodiment is described below.
[0085] Take the interaction between users, developers and platforms as an example.
[0086] The smart contract service platform includes a user registration function. As shown in FIG2 , the user submits relevant information in step 211 to complete the platform registration. The developer submits relevant information in step 212 to complete the platform registration and developer authentication, and provides a bank account or digital wallet address as a reward collection container.
[0087] The smart contract service platform includes a developer upload function. As shown in FIG2 , the developer logs in to the registered account and uses the developer interface provided by the smart contract service platform to provide a smart contract. The developed smart contract is uploaded to the platform through step 221 . The uploaded content includes the smart contract code, document description, and function description file.
[0088] As shown in Figures 2 and 3, the smart contract service platform performs a test on the smart contract through step 320. Step 330 includes the smart contract service platform testing the smart contract uploaded by the developer, including smart contract feasibility testing and smart contract security testing. When the test fails, the smart contract service platform sends the failed smart contract to the developer for re-modification. When the test passes, the process proceeds to step 340, where the smart contract service platform classifies the smart contract and then proceeds to step 350.
[0089] The smart contract service platform includes a user download function. The user requests a smart contract from the smart contract service platform through step 222 and pays the download fee to the smart contract developer. The smart contract service platform sends the smart contract to the user through step 223. After the user receives and downloads the required smart contract, the user can deploy it by himself through the smart contract download module or entrust the platform to automatically deploy it.
[0090] It should be noted that when performing step 350, after the user registers an account in the smart contract service platform, the smart contract service platform will recommend smart contracts for individuals, businesses and government agencies based on the user. The user can also search for the smart contracts he needs by himself. After downloading the smart contract, the user can deploy the smart contract by himself or automatically deploy the smart contract through the entrustment platform.
[0091] If a user needs to upgrade a smart contract while using it, the user requests the platform for the smart contract upgrade service through step 231. When the platform determines through step 370 that the smart contract cannot be upgraded, the platform sends a smart contract non-upgrade reminder to the user. When the platform determines that the smart contract can be upgraded, the user provides the developer with a requirement document and related upgrade fees, and the platform sends the developer upgrade requirement information through step 232.
[0092] After receiving the requirement file provided by the user and the upgrade information sent by the platform, the developer upgrades the smart contract and re-uploads the upgraded smart contract file through step 233. The smart contract goes through steps 310, 320 and 340 again, and is then sent to the user through step 234. The user can also download it and deploy it by himself or entrust the platform to automatically deploy it.
[0093] In some embodiments, as shown in Figure 1, the smart contract service platform also includes a data and model storage module 150, which is connected to the smart contract upload module 110, the smart contract detection module 120, the smart contract classification module 130 and the smart contract download module 140. The data and model storage module 150 is used to store smart contract data, contract label data, transaction data, clustering effects and address recognition models.
[0094] In actual implementation, after the developer uploads the smart contract to the smart contract service platform, the platform temporarily stores the smart contract in the data and model storage module 150 through the smart contract upload module 110, and then sends the smart contract to the smart contract detection module 120, the smart contract classification module 130 and the smart contract download module 140 in sequence. During this process, the four modules are all connected to the data and model storage module 150 to apply for and save data from it.
[0095] In the above embodiment of the interaction between the user, developer and platform, the execution entity can be a marking device for the Ethereum transaction address.
[0096] For example, a platform process processing method can be executed using a marking device of an Ethereum transaction address.
[0097] The marking device for the Ethereum transaction address includes: a smart contract uploading module 110, a smart contract detection module 120, a smart contract classification module 130, a smart contract downloading module 140, and a data and model storage module.
[0098] Among them, the smart contract upload module 110 is used by developers to upload smart contracts, function descriptions and documentation files; the smart contract detection module 120 is used to detect whether the smart contract uploaded by the developer is feasible, and to detect whether the contract code has security vulnerabilities and logical defects; the smart contract classification module 130 is used to classify smart contract tags; the smart contract download module 140 is used for users to purchase smart contracts and automatically deploy contract services; the data and model storage module is used to store transaction data, contract tag data, clustering results and address recognition models.
[0099] According to the Ethereum transaction address marking device provided in the embodiment of the present application, a smart contract service platform is carried out through a device, which includes five modules on the smart contract service platform, so that users can use the device to search, download, upgrade and other needs of smart contracts, thereby lowering the threshold for using smart contracts and increasing the convenience of users in using smart contracts.
[0100] An embodiment of the present application also provides a blockchain system, which includes the above-mentioned smart contract service platform.
[0101] In this embodiment, the infrastructure of the smart contract service platform may include: the platform is connected to the blockchain platform that supports smart contracts through cross-chain services, and developers and users own nodes on the chain, so that the above-mentioned smart contract upload process, smart contract detection process, smart contract classification process, smart contract download, deployment process and smart contract upgrade process can be completed without the platform as an intermediary, but at the same time all include corresponding functional services.
[0102] By connecting the platform to a blockchain platform that supports smart contracts, developers and users can perform five processes through their respective nodes: smart contract upload, smart contract detection, smart contract classification, smart contract download, deployment, and smart contract upgrade. There is no need for platform access in between, which improves the convenience of operation and the efficiency of functional services.
[0103] It should be noted that, in this article, the terms "comprise", "include" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device comprising a series of elements includes not only those elements, but also includes other elements that are not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the presence of other identical elements in the process, method, article or device comprising the element. In addition, it should be noted that the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in the opposite order according to the functions involved. For example, the described method may be performed in an order different from that described, and various steps may also be added, omitted, or combined. In addition, the features described with reference to certain examples may be combined in other examples.
[0104] Through the description of the above embodiments, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus the necessary general hardware platform, or of course by hardware, but in many cases the former is a better embodiment. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a computer software product, which is stored in a storage medium and includes a number of instructions for enabling a terminal to execute the methods described in each embodiment of the present application.
[0105] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of this application, ordinary technicians in this field can also make many forms without departing from the purpose of this application and the scope of protection of the claims, all of which are within the protection of this application.
[0106] Throughout this specification, reference to terms such as "one embodiment," "some embodiments," "illustrative embodiments," "examples," "specific examples," or "some examples" means that the specific features, structures, materials, or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present application. In this specification, the illustrative expressions of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.
[0107] Although the embodiments of the present application have been shown and described, those skilled in the art will appreciate that various changes, modifications, substitutions, and variations may be made to the embodiments without departing from the principles and intent of the present application, and that the scope of the present application is defined by the claims and their equivalents.
Claims
1. A smart contract service platform, It is characterized in that include: A smart contract uploading module, wherein the smart contract uploading module is used to receive a smart contract uploaded by a first user; A smart contract detection module, the smart contract detection module is connected to the smart contract upload module, and the smart contract detection module is used to execute the detection process of the smart contract; A smart contract classification module, the smart contract classification module is connected to the smart contract detection module, and the smart contract classification module is used to configure a corresponding contract tag for the smart contract that has passed the detection; A smart contract download module, wherein the smart contract download module is connected to the smart contract classification module, and the smart contract download module is used for allowing a second user to download the smart contract.
2. The smart contract service platform according to claim 1, It is characterized in that The smart contract detection module includes a feasibility detection module and a security detection module. The feasibility detection module is used to execute the feasibility detection process of the smart contract, and the security detection module is used to execute the security detection process of the smart contract.
3. The smart contract service platform according to claim 2, It is characterized in that The feasibility detection module includes a deployment test unit and a black box test unit, and the security detection module includes a code vulnerability detection unit and a logic defect detection unit.
4. The smart contract service platform according to claim 1, It is characterized in that The smart contract includes contract code information, document description information and function description information. The smart contract classification module is used to configure the contract tag of the smart contract based on the contract code information, document description information and function description information of the smart contract that has passed the detection.
5. The smart contract service platform according to claim 4, It is characterized in that The smart contract classification module is used to obtain the contract code feature vector of the contract code information, the document description feature vector of the document description information and the structured information of the function description information, and determine the contract label based on the contract code feature vector, the document description feature vector and the structured information.
6. The smart contract service platform according to claim 5, It is characterized in that The smart contract classification module is used to obtain a non-Euclidean graph of the contract code information, and determine the contract code feature vector based on the non-Euclidean graph, wherein the nodes of the non-Euclidean graph represent the calling functions of the contract code information, and the edges of the non-Euclidean graph represent the data flow and control flow of the contract code information.
7. The smart contract service platform according to any one of claims 1 to 6, It is characterized in that The smart contract classification module is also used to classify the smart contracts into upgradeable smart contracts and non-upgradeable smart contracts.
8. The smart contract service platform according to any one of claims 1 to 6, It is characterized in that Also includes: A data and model storage module, wherein the data and model storage module is connected to the smart contract upload module, the smart contract detection module, the smart contract classification module and the smart contract download module, and the data and model storage module is used to store the smart contract and the contract tag.
9. The smart contract service platform according to any one of claims 1 to 6, It is characterized in that The smart contract uploading module is also used to receive the reward collection address uploaded by the first user.
10. A blockchain system, It is characterized in that Comprising a smart contract service platform as described in any one of claims 1 to 9.
Citation Information
Patent Citations
Block-chain network service platform and intelligent contract detection method thereof, and storage medium
CN109240900A
Smart contract processing method and device, equipment and storage medium
CN111459504A
Intelligent contract service platform and block chain system
CN116308788A
A method and system for detecting and preventing issues in smart contracts based on historical behavior analysis
US20210365555A1
Method for installing and deploying smart contract used in blockchain system
WO2022057679A1
Cited By
Systems and methods to train and / or utilize machine learning to classify smart contracts in transactions recorded in immutable distributed electronic storage
US12260309B1
Systems and methods to classify transactions recorded on immutable distributed electronic storage media to generate graphical representations of the transactions
US12614169B1
