Data security asset circulation method and system based on blockchain

By performing data encryption and smart contract quality verification in blockchain technology and evaluating transaction risks, the security vulnerabilities and reliability problems of smart contracts in data asset transactions are solved, and the security and reliability of transactions are improved.

CN118691278BActive Publication Date: 2024-11-19FUJIAN ZHONGXIN NET SAFETY INFORMATION TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411080427.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-08-08
Publication Date
2024-11-19
Estimated Expiration
2044-08-08

AI Technical Summary

Technical Problem

The existing blockchain technology is difficult to modify the code of smart contracts in data asset transactions and has security vulnerabilities, resulting in low reliability and security of data asset transactions and a lack of effective risk management mechanisms.

Method used

Through data encryption and submission, smart contract quality verification, transaction risk assessment and blockchain network recording, we ensure that the anti-attack performance and transaction risk coefficient of smart contracts meet the requirements before the transaction and circulation operations of data assets are performed, and simulated malicious attacks and Machine learning models evaluate the anti-attack performance and transaction risks of smart contracts, and promptly discover and optimize smart contracts.

Benefits of technology

It improves the reliability and security of data asset transactions, reduces uncertainty and risks in the transaction process, ensures the stability and security of smart contracts, and provides quantitative reference basis for the optimization and improvement of smart contracts.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118691278B_ABST
    Figure CN118691278B_ABST
Patent Text Reader

Abstract

The present invention discloses a data security asset circulation method and system based on blockchain, and specifically relates to the field of data asset transaction technology, including: a data asset uploader uses data encryption technology to encrypt data assets that need to be circulated, and the encrypted data assets are submitted to the smart contract on the blockchain network; the quality of the smart contract is verified to obtain a normally running smart contract; through the smart contract verification step, the problems of transaction risk control and smart contract reliability are solved, not only the quality of the smart contract is verified to ensure its normal operation, but also the encrypted data is verified and decrypted through preset rules and conditions, and the transaction risk coefficient is evaluated at the same time. The transaction is only executed when the risk coefficient meets the requirements, thereby greatly reducing the uncertainty and risk in the transaction process and improving the reliability and security of the transaction; through the consensus mechanism, it is ensured that all participants have a common recognition and trust in the transaction results.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of data asset transaction technology, and more specifically, to a blockchain-based data security asset circulation method and system. Background Art

[0002] Blockchain technology achieves rapid circulation of value in intelligent transaction models through features such as decentralization, smart contracts, and efficient data processing capabilities; at the same time, it ensures data security and privacy through mechanisms such as immutability, distributed storage, and privacy protection.

[0003] However, in actual use, it still has many shortcomings. For example, adding smart contracts to the transaction process can help the circulation of data assets. Although the automated execution of smart contracts improves transaction efficiency, its code is difficult to modify once deployed, and there may be security vulnerabilities or logical errors, resulting in users being unable to promptly discover the risk resistance of smart contracts. There is a lack of security management for data asset transactions, and the reliability and security of data asset transactions are low. Summary of the invention

[0004] In order to overcome the above-mentioned defects of the prior art, the present invention provides a data security asset circulation method and system based on blockchain, which can timely discover the risk resistance of smart contracts and improve the reliability and security of data asset transactions.

[0005] To achieve the above purpose, the present invention provides the following technical solution: a data security asset circulation method based on blockchain, comprising:

[0006] Data encryption and submission: Data asset uploaders use data encryption technology to encrypt data assets that need to be circulated, and the encrypted data assets are submitted to the smart contract on the blockchain network;

[0007] Smart contract and transaction verification: Verify the quality of smart contracts and obtain normal operation of smart contracts; normal operation of smart contracts verifies and decrypts encrypted data according to preset rules and conditions; verify the transaction risk coefficient, and if the transaction risk coefficient meets the requirements, execute the transaction and circulation operations of data assets;

[0008] Blockchain network records and consensus: Transaction results and status changes are recorded on the blockchain network; the consensus mechanism ensures that all participants have common recognition and trust in the transaction results.

[0009] Preferably, the identity of the data asset uploader is verified before the encrypted data asset is submitted to the smart contract on the blockchain network; users obtain data assets by accessing the blockchain network, and authority verification is performed during the access process to ensure that only legitimate users can access and use data assets.

[0010] Preferably, the method of verifying the quality of the smart contract is:

[0011] Step S11: simulate malicious attacks on smart contracts. Suppose the smart contract has A simulated malicious attack scenario, using Represents a simulated malicious attack scenario. The number of successful attacks in the simulated malicious attack scenario is ; The probability of occurrence of a simulated malicious attack scenario is recorded as ; After several simulated malicious attacks, the average value is taken to obtain the maximum attack frequency, cumulative attack duration and smart contract failure recovery time of the smart contract;

[0012] Step S12: Input the maximum attack frequency, cumulative attack duration, smart contract failure recovery time, and number of successful attacks of the smart contract into the anti-attack performance analysis model to obtain the anti-attack performance index ;

[0013] Step S13: The calculated anti-attack performance index Compare with the preset anti-attack performance index preset value; if the anti-attack performance index If the anti-attack performance index is higher than the preset value, the smart contract is considered to have good anti-attack performance and is marked as a normal operating smart contract. If it is lower than the preset value, instructions are generated to strengthen the security or redesign the smart contract.

[0014] Preferably, the maximum attack frequency is recorded as , the cumulative attack duration is recorded as , the cumulative attack duration is the total time from the start to the end of the attack (in seconds, minutes, etc.); the smart contract failure recovery time is recorded as , the smart contract crash recovery time refers to the time from when the smart contract stops working due to an attack at a certain point in time to when the smart contract operates normally; the anti-attack performance analysis model satisfies the following formula:

[0015] ;

[0016] in, Indicates the corrected number of successful attacks. The inverse of the total number of successful attacks reflects the difficulty of breaking into the smart contract. It is a preset threshold, which indicates the upper limit of the attack frequency that the smart contract can safely handle in a unit of time. Determined based on the specific design and expected load of the smart contract; It reflects the stability of smart contracts under extreme attacks; This reflects the durability of smart contracts under sustained attacks.

[0017] Preferably, the transaction risk coefficient is obtained in the following manner:

[0018] Step S21: Based on the user's identity information and historical behavior, assess the user's identity risk and generate an identity risk index ;

[0019] Step S22: Calculate the historical risk index based on the probability, impact and identifiability of the risk event ;

[0020] Step S23: Jointly analyze the smart contract anti-attack index , Identity Risk Index , Historical Risk Index , the transaction risk coefficient is calculated through the transaction risk analysis model , and take corresponding preventive measures based on the coefficient; the transaction risk analysis model satisfies the formula: .

[0021] Preferably, the process of obtaining the identity risk index includes:

[0022] Step S31, identity information collection: collect user historical behavior information and user basic information, the user basic information includes: user name, age, gender, password encryption level; the user historical behavior information includes: login record, transaction record; the login record includes login time, location, device, IP address; the transaction record includes transaction type, amount, time, counterparty account;

[0023] Step S32, data preprocessing: remove duplicate, erroneous and irrelevant information, convert data in different formats and units into a unified format for easy analysis; encrypt and desensitize sensitive information to protect user privacy;

[0024] Step S33, feature extraction and encoding: extract first-order features related to identity risk from identity information and historical behaviors, including at least login frequency, login location stability, transaction object stability, average transaction amount, transaction frequency, transaction time characteristics, login device diversity, password modification frequency, and digital asset change characteristics; calculate the standard deviation and coefficient of variation of the first-order features to obtain second-order features, and perform feature encoding on the first-order features and second-order features to obtain a feature set; suppose there are Features, using Indicates the feature number;

[0025] Step S34, model selection: Use machine learning to build an identity risk assessment model, use user historical behavior information to train the model, and learn the weight coefficients of features and identity risks; evaluate the accuracy and stability of the model through cross-validation method; output the trained identity risk assessment model;

[0026] Step S35, identity risk index calculation: input the user's basic information and user historical information into the trained identity risk assessment model, and the identity risk assessment model outputs the user's identity risk index. The identity risk index is a value between 0 and 1, indicating the relative size of the user's identity risk; the higher the identity risk index value, the greater the risk.

[0027] Preferably, by formula Calculate the identity risk index , represents the number of features, represents the feature number, where Indicates The weight of the feature, Indicates The value of the feature, The function is a nonlinear function used to map the sum of weighted features to the range of 0 to 1.

[0028] Preferably, the historical risk index The way to obtain is:

[0029] By analyzing the smart contract operation log, we can obtain the attack time series data of data asset transactions, and record the longest attack frequency per unit time of data asset transactions as , the average attack frequency per unit time is recorded as , the frequency of abnormal operation is recorded as , the benchmark maximum attack frequency of data asset transactions is recorded as , the benchmark average attack frequency is recorded as , the total operation frequency is recorded as ;

[0030] By formula Calculate the historical risk index ,in, , , Represents the weight coefficient, which is used to adjust the contribution of different risk factors to the overall risk index. These coefficients are adjusted according to actual conditions to reflect the importance of different risk factors.

[0031] Preferably, determine the transaction risk coefficient and preset value If the transaction risk coefficient , indicating that the transaction risk coefficient meets the requirements, and the transaction and circulation operations of data assets are executed; if the transaction risk coefficient , indicating that the transaction risk coefficient does not meet the requirements, the transaction and circulation operations of data assets will not be executed, and an early warning will be issued to the user.

[0032] Based on the same inventive concept, the present invention also provides a data security asset circulation system based on blockchain, comprising:

[0033] Data encryption and submission module: data asset uploaders use data encryption technology to encrypt data assets that need to be circulated, and the encrypted data assets are submitted to the smart contract on the blockchain network;

[0034] Smart contract quality management module is used to verify the quality of smart contracts and obtain normal operation of smart contracts; simulate malicious attacks on smart contracts and analyze attack data to obtain anti-attack performance index ;

[0035] The method of verifying the quality of smart contracts is:

[0036] Step S11: simulate malicious attacks on smart contracts. Suppose the smart contract has A simulated malicious attack scenario, using Represents a simulated malicious attack scenario. The number of successful attacks in the simulated malicious attack scenario is ; The probability of occurrence of a simulated malicious attack scenario is recorded as ; After several simulated malicious attacks, the average value is taken to obtain the maximum attack frequency, cumulative attack duration and smart contract failure recovery time of the smart contract;

[0037] Step S12: Input the maximum attack frequency, cumulative attack duration, smart contract failure recovery time, and number of successful attacks of the smart contract into the anti-attack performance analysis model to obtain the anti-attack performance index ;

[0038] Step S13: The calculated anti-attack performance index Compare with the preset anti-attack performance index preset value; if the anti-attack performance index If the anti-attack performance index is higher than the preset value, the smart contract is considered to have good anti-attack performance and is marked as a normal operating smart contract. If it is lower than the preset value, an instruction to strengthen or redesign the smart contract is generated;

[0039] Transaction risk management module, joint analysis of smart contract anti-attack index , Identity Risk Index , Historical Risk Index , the transaction risk coefficient is calculated through the transaction risk analysis model , used to verify the transaction risk coefficient. If the transaction risk coefficient meets the requirements, the transaction and circulation operations of data assets can be executed;

[0040] The blockchain network recording module is used to record transaction results and status changes on the blockchain network;

[0041] The identity authentication module authenticates the data asset uploader before submitting the encrypted data assets to the smart contract on the blockchain network. Users obtain data assets by accessing the blockchain network, and permission verification is performed during the access process to ensure that only legitimate users can access and use data assets.

[0042] Technical effects and advantages of the present invention:

[0043] The blockchain-based data security asset circulation method provided by the present invention solves the problems of transaction risk control and smart contract reliability through the smart contract verification step. It not only verifies the quality of the smart contract and ensures its normal operation, but also verifies and decrypts the encrypted data through preset rules and conditions, and evaluates the transaction risk coefficient at the same time. The transaction is only executed when the risk coefficient meets the requirements, thereby greatly reducing the uncertainty and risk in the transaction process and improving the reliability and security of the transaction.

[0044] The blockchain-based data security asset circulation method provided by the present invention can comprehensively evaluate the defense and recovery capabilities of smart contracts by simulating multiple possible attack scenarios and recording and analyzing the number of successful attacks, the probability of occurrence, and the response capabilities of smart contracts in each scenario. Subsequently, the collected data is converted into a comprehensive anti-attack performance index using an anti-attack performance analysis model. This index not only reflects the smart contract's ability to resist malicious attacks, but also provides a quantitative reference for its subsequent optimization and improvement. Comparison with the preset anti-attack performance index preset value can quickly determine whether the smart contract meets the established security standards, so that corresponding measures can be taken in time to ensure the reliability and stability of the smart contract. BRIEF DESCRIPTION OF THE DRAWINGS

[0045] Figure 1 This is a flow chart of the data security asset circulation method of the present invention.

[0046] Figure 2 This is a structural block diagram of the data security asset circulation system of the present invention. DETAILED DESCRIPTION

[0047] The exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although exemplary embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be limited by the embodiments set forth herein. On the contrary, these embodiments are provided to enable a more thorough understanding of the present disclosure and to fully convey the scope of the present disclosure to those skilled in the art.

[0048] At the same time, it should be understood that for the convenience of description, the sizes of the various parts shown in the drawings are not drawn according to the actual proportional relationship.

[0049] The following description of at least one exemplary embodiment is merely illustrative in nature and is in no way intended to limit the present application, its application, or uses.

[0050] Technologies, methods, and equipment known to ordinary technicians in the relevant art may not be discussed in detail, but where appropriate, the technologies, methods, and equipment should be considered as part of the specification.

[0051] Embodiment 1

[0052] See also Figure 1 The present invention provides a data security asset circulation method flow chart. Figure 1 The blockchain-based data security asset circulation method shown includes:

[0053] Step 1: Data encryption and submission: The data asset uploader uses data encryption technology to encrypt the data assets that need to be circulated, and the encrypted data assets are submitted to the smart contract on the blockchain network;

[0054] Step 2: Smart contract and transaction verification: Verify the quality of smart contracts and obtain normal operation of smart contracts; normal operation of smart contracts verifies and decrypts encrypted data according to preset rules and conditions; verifies transaction risk coefficients, and executes data asset transactions and circulation operations if the transaction risk coefficients meet the requirements;

[0055] Step 3: Blockchain network record and consensus: Transaction results and status changes are recorded on the blockchain network; the consensus mechanism ensures that all participants have common recognition and trust in the transaction results.

[0056] What needs to be further explained in the embodiments of the present invention is that the identity of the data asset uploader is verified before the encrypted data asset is submitted to the smart contract on the blockchain network; users obtain data assets by accessing the blockchain network, and authority verification is performed during the access process to ensure that only legitimate users can access and use data assets.

[0057] Specifically, before encrypting data assets, ensure that digital assets comply with copyright and privacy regulations when they are collected, use Base64 encoding to format text data, and use binary encoding or block processing for large files; the data encryption technology: consider using a strong hash algorithm (such as SHA-3) in combination with a quantum-safe hash function to encrypt the formatted digital assets; the hash algorithm combined with a quantum key as a salt value can improve the collision resistance and security of the hash value.

[0058] It needs to be further explained in the embodiment of the present invention that the method of verifying the quality of the smart contract is:

[0059] Step S11: simulate malicious attacks on smart contracts. Suppose the smart contract has A simulated malicious attack scenario, using Represents a simulated malicious attack scenario. The number of successful attacks in the simulated malicious attack scenario is ; The probability of occurrence of a simulated malicious attack scenario is recorded as ; After several simulated malicious attacks, the average value is taken to obtain the maximum attack frequency, cumulative attack duration and smart contract failure recovery time of the smart contract;

[0060] Step S12: Input the maximum attack frequency, cumulative attack duration, smart contract failure recovery time, and number of successful attacks of the smart contract into the anti-attack performance analysis model to obtain the anti-attack performance index ;

[0061] Step S13: The calculated anti-attack performance index Compare with the preset anti-attack performance index preset value; if the anti-attack performance index If the anti-attack performance index is higher than the preset value, the smart contract is considered to have good anti-attack performance and is marked as a normal operating smart contract. If it is lower than the preset value, instructions are generated to strengthen the security or redesign the smart contract.

[0062] It is necessary to further explain in the embodiment of the present invention that the maximum attack frequency is recorded as , the cumulative attack duration is recorded as , the cumulative attack duration is the total time from the start to the end of the attack (in seconds, minutes, etc.); the smart contract failure recovery time is recorded as , the smart contract crash recovery time refers to the time from when the smart contract stops working due to an attack at a certain point in time to when the smart contract operates normally; the anti-attack performance analysis model satisfies the following formula:

[0063] ;

[0064] in, Indicates the corrected number of successful attacks. The inverse of the total number of successful attacks reflects the difficulty of breaking into the smart contract. It is a preset threshold, which indicates the upper limit of the attack frequency that the smart contract can safely handle in a unit of time. Determined based on the specific design and expected load of the smart contract; It reflects the stability of smart contracts under extreme attacks; This reflects the durability of smart contracts under sustained attacks.

[0065] Specifically explain and analyze the anti-attack performance index value to understand the performance of smart contracts in different attack scenarios; based on the analysis results, make necessary optimizations to the smart contracts, such as enhancing code security and optimizing resource allocation; repeat virtual attack tests to verify the optimization effect, and continue the iterative optimization process.

[0066] It needs to be further explained in the embodiment of the present invention that the transaction risk coefficient is obtained in the following manner:

[0067] Step S21: Based on the user's identity information and historical behavior, assess the user's identity risk and generate an identity risk index ;

[0068] Step S22: Calculate the historical risk index based on the probability, impact and identifiability of the risk event ;

[0069] Step S23: Jointly analyze the smart contract anti-attack index , Identity Risk Index , Historical Risk Index , the transaction risk coefficient is calculated through the transaction risk analysis model , and take corresponding preventive measures based on the coefficient; the transaction risk analysis model satisfies the formula: .

[0070] It needs to be further explained in the embodiment of the present invention that the process of obtaining the identity risk index includes:

[0071] Step S31, identity information collection: collect user historical behavior information and user basic information, the user basic information includes: user name, age, gender, password encryption level;

[0072] Specifically, the user's historical behavior information includes: login records and transaction records; the login records include login time, location, device, and IP address; the transaction records include transaction type, amount, time, and counterparty account;

[0073] Step S32, data preprocessing: remove duplicate, erroneous and irrelevant information, convert data in different formats and units into a unified format for easy analysis; encrypt and desensitize sensitive information to protect user privacy;

[0074] Step S33, feature extraction and encoding: extract the first-order features related to identity risk from the identity information and historical behavior, calculate the standard deviation and coefficient of variation of the first-order features to obtain the second-order features, and perform feature encoding on the first-order features and the second-order features to obtain a feature set; suppose there are Features, using Indicates the feature number;

[0075] Specifically, the first-order characteristics include at least login frequency, login location stability, transaction object stability, average transaction amount, transaction frequency, transaction time characteristics, login device diversity, password modification frequency, and digital asset change characteristics.

[0076] Step S34, model selection: Use machine learning to build an identity risk assessment model, use user historical behavior information to train the model, and learn the weight coefficients of features and identity risks; evaluate the accuracy and stability of the model through cross-validation method; output the trained identity risk assessment model;

[0077] Step S35, identity risk index calculation: input the user's basic information and user historical information into the trained identity risk assessment model, and the identity risk assessment model outputs the user's identity risk index. The identity risk index is a value between 0 and 1, indicating the relative size of the user's identity risk; the higher the identity risk index value, the greater the risk.

[0078] It needs to be further explained in the embodiment of the present invention that, by the formula Calculate the identity risk index , represents the number of features, represents the feature number, where Indicates The weight of the feature, Indicates The value of the feature, The function is a nonlinear function used to map the sum of weighted features to the range of 0 to 1.

[0079] It needs to be further explained in the embodiments of the present invention that A function is any nonlinear function that maps an input to a range between 0 and 1. For example, Function Representation ;Right now: .

[0080] It is necessary to further explain in the embodiment of the present invention that the historical risk index The way to obtain is:

[0081] By analyzing the smart contract operation log, we can obtain the attack time series data of data asset transactions, and record the longest attack frequency per unit time of data asset transactions as , the average attack frequency per unit time is recorded as , the frequency of abnormal operation is recorded as , the benchmark maximum attack frequency of data asset transactions is recorded as , the benchmark average attack frequency is recorded as , the total operation frequency is recorded as ;

[0082] By formula Calculate the historical risk index ,in, , , Represents the weight coefficient, which is used to adjust the contribution of different risk factors to the overall risk index. These coefficients can be adjusted according to actual conditions to reflect the importance of different risk factors.

[0083] In the embodiment of the present invention, it is necessary to further explain that the transaction risk coefficient and the preset value are determined. If the transaction risk coefficient , indicating that the transaction risk coefficient meets the requirements, and the transaction and circulation operations of data assets are executed; if the transaction risk coefficient , indicating that the transaction risk coefficient does not meet the requirements, the transaction and circulation operations of data assets will not be executed, and an early warning will be issued to the user.

[0084] Embodiment 2

[0085] See also Figure 2 The data security asset circulation system structure diagram of the present invention provides a data security asset circulation system based on blockchain, including:

[0086] Data encryption and submission module: data asset uploaders use data encryption technology to encrypt data assets that need to be circulated, and the encrypted data assets are submitted to the smart contract on the blockchain network;

[0087] Smart contract quality management module is used to verify the quality of smart contracts and obtain normal operation of smart contracts; simulate malicious attacks on smart contracts and analyze attack data to obtain anti-attack performance index ;

[0088] Transaction risk management module, joint analysis of smart contract anti-attack index , Identity Risk Index , Historical Risk Index , the transaction risk coefficient is calculated through the transaction risk analysis model , used to verify the transaction risk coefficient. If the transaction risk coefficient meets the requirements, the transaction and circulation operations of data assets can be executed;

[0089] The blockchain network recording module is used to record transaction results and status changes on the blockchain network;

[0090] The identity authentication module is used to authenticate data asset uploaders and data asset accessors. Before the encrypted data assets are submitted to the smart contract on the blockchain network, the identity of the data asset uploader is authenticated. Users obtain data assets by accessing the blockchain network, and permission verification is performed during the access process to ensure that only legitimate users can access and use data assets.

[0091] It needs to be further explained in the embodiment of the present invention that the method of verifying the quality of the smart contract is:

[0092] Step S11: simulate malicious attacks on smart contracts. Suppose the smart contract has A simulated malicious attack scenario, using Represents a simulated malicious attack scenario. The number of successful attacks in the simulated malicious attack scenario is ; The probability of occurrence of a simulated malicious attack scenario is recorded as ; After several simulated malicious attacks, the average value is taken to obtain the maximum attack frequency, cumulative attack duration and smart contract failure recovery time of the smart contract;

[0093] Step S12: Input the maximum attack frequency, cumulative attack duration, smart contract failure recovery time, and number of successful attacks of the smart contract into the anti-attack performance analysis model to obtain the anti-attack performance index ;

[0094] Step S13: The calculated anti-attack performance index Compare with the preset anti-attack performance index preset value; if the anti-attack performance index If the anti-attack performance index is higher than the preset value, the smart contract is considered to have good anti-attack performance and is marked as a normal operating smart contract. If it is lower than the preset value, instructions are generated to strengthen the security or redesign the smart contract.

[0095] Finally: The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the protection scope of the present invention.

Claims

1. A data security asset circulation method based on blockchain, characterized in that: include: Data encryption and submission: Data asset uploaders use data encryption technology to encrypt data assets that need to be circulated, and the encrypted data assets are submitted to the smart contract on the blockchain network; Smart contract and transaction verification: Verify the quality of smart contracts and obtain normal operation of smart contracts; Normal operation of smart contracts to verify and decrypt encrypted data according to preset rules and conditions; verify the transaction risk coefficient, and if the transaction risk coefficient meets the requirements, execute the transaction and circulation operations of data assets; Blockchain network records and consensus: record transaction results and status changes on the blockchain network; ensure that all participants recognize and trust the transaction results through a consensus mechanism; The method of verifying the quality of smart contracts is: Step S11: simulate malicious attacks on the smart contract. Suppose the smart contract has m simulated malicious attack scenarios, j represents the simulated malicious attack scenario, and the number of successful attacks of the jth simulated malicious attack scenario is s. j ; The probability of occurrence of the jth simulated malicious attack scenario is recorded as p(s j ); after several simulated malicious attacks, the average value is taken to obtain the maximum attack frequency, cumulative attack duration and smart contract failure recovery time of the smart contract; Step S12: Input the maximum attack frequency, cumulative attack duration, smart contract failure recovery time, and number of successful attacks of the smart contract into the anti-attack performance analysis model to obtain the anti-attack performance index Rnd; Step S13, comparing the calculated anti-attack performance index Rnd with a preset anti-attack performance index preset value; If the anti-attack performance index Rnd is higher than the preset value, the smart contract is considered to have good anti-attack performance and is marked as a normal operating smart contract; if the anti-attack performance index Rnd is lower than the preset value, an instruction to reinforce or redesign the smart contract is generated; The maximum attack frequency is recorded as Fmax, and the cumulative attack duration is recorded as Tto, where the cumulative attack duration is the total time from the start to the end of the attack; the smart contract failure recovery time is recorded as Tfa, and the smart contract failure recovery time represents the time from when the smart contract stops working due to an attack at a certain point in time to when the smart contract operates normally; the anti-attack performance analysis model satisfies the following formula: in, It indicates the corrected number of successful attacks. The inverse of the total number of successful attacks reflects the difficulty of hacking the smart contract. Fth is a preset threshold, which indicates the upper limit of the attack frequency that the smart contract can safely handle per unit time. Fth is determined according to the specific design and expected load of the smart contract. It reflects the stability of smart contracts under extreme attacks; It reflects the durability of smart contracts under sustained attacks; The transaction risk coefficient is obtained as follows: Step S21: Based on the user's identity information and historical behavior, the user's identity risk is evaluated and an identity risk index Fde is generated; Step S22: Calculate the historical risk index LF according to the probability, impact and identifiability of the risk event; Step S23: jointly analyze the smart contract anti-attack index Rnd, the identity risk index Fde and the historical risk index LF, calculate the transaction risk coefficient FJ through the transaction risk analysis model, and take corresponding preventive measures based on the coefficient; the transaction risk analysis model satisfies the formula:

2. The data security asset circulation method based on blockchain according to claim 1 is characterized in that: The process of obtaining the identity risk index includes: Step S31, identity information collection: collect user historical behavior information and user basic information; Step S32, data preprocessing: remove duplicate, erroneous and irrelevant information, convert data in different formats and units into a unified format for easy analysis; encrypt and desensitize sensitive information to protect user privacy; Step S33, feature extraction and encoding: extract first-order features related to identity risk from identity information and historical behaviors, calculate standard deviation and coefficient of variation of the first-order features to obtain second-order features, and perform feature encoding on the first-order features and second-order features to obtain a feature set; suppose there are s features in the feature set, and k represents the feature number; Step S34, model selection: Use machine learning to build an identity risk assessment model, use user historical behavior information to train the model, and learn the weight coefficients of features and identity risks; evaluate the accuracy and stability of the model through cross-validation method; output the trained identity risk assessment model; Step S35, identity risk index calculation: input the user's basic information and user historical information into the trained identity risk assessment model, and the identity risk assessment model outputs the user's identity risk index. The identity risk index is a value between 0 and 1, indicating the relative size of the user's identity risk; the higher the identity risk index value, the greater the risk.

3. The data security asset circulation method based on blockchain according to claim 2 is characterized in that: By formula The identity risk index Fde is calculated, s represents the number of features, k represents the feature number, w_k represents the weight of the kth feature, fea_k represents the value of the kth feature, and the fnorm() function is a nonlinear function used to map the sum of weighted features to the range of 0 to 1.

4. The data security asset circulation method based on blockchain according to claim 3 is characterized in that: The historical risk index LF is obtained as follows: By analyzing the smart contract operation log, we obtain the attack time series data of data asset transactions, record the longest attack frequency per unit time of data asset transactions as Sa, the average attack frequency per unit time as Sb, the frequency of abnormal operations as Sc, the benchmark maximum attack frequency of data asset transactions as Ga, the benchmark average attack frequency as Gb, and the total operation frequency as Gc; By formula The historical risk index LF is calculated, where α, β, and γ represent weight coefficients, which are used to adjust the contribution of different risk factors to the overall risk index.

5. The data security asset circulation method based on blockchain according to claim 1 is characterized in that: Determine the transaction risk factor and preset value J 预 If the transaction risk coefficient FJ≤J 预 , indicating that the transaction risk coefficient meets the requirements, and the transaction and circulation operations of data assets are executed; if the transaction risk coefficient FJ>J 预 , indicating that the transaction risk coefficient does not meet the requirements, the transaction and circulation operations of data assets will not be executed, and an early warning will be issued to the user.

6. The data security asset circulation system based on blockchain is characterized by: include: Data encryption and submission module: data asset uploaders use data encryption technology to encrypt data assets that need to be circulated, and the encrypted data assets are submitted to the smart contract on the blockchain network; Smart contract quality management module, used to verify the quality of smart contracts and obtain normal operation of smart contracts; simulate malicious attacks on smart contracts and analyze attack data to obtain the anti-attack performance index Rnd; The method of verifying the quality of smart contracts is: Step S11: simulate malicious attacks on the smart contract. Suppose the smart contract has m simulated malicious attack scenarios, j represents the simulated malicious attack scenario, and the number of successful attacks of the jth simulated malicious attack scenario is S. j ; The probability of occurrence of the jth simulated malicious attack scenario is recorded as p(S j ); after several simulated malicious attacks, the average value is taken to obtain the maximum attack frequency, cumulative attack duration and smart contract failure recovery time of the smart contract; Step S12: Input the maximum attack frequency, cumulative attack duration, smart contract failure recovery time, and number of successful attacks of the smart contract into the anti-attack performance analysis model to obtain the anti-attack performance index Rnd; Step S13, comparing the calculated anti-attack performance index Rnd with a preset anti-attack performance index preset value; If the anti-attack performance index Rnd is higher than the preset value, the smart contract is considered to have good anti-attack performance and is marked as a normal operating smart contract; if the anti-attack performance index Rnd is lower than the preset value, an instruction to reinforce or redesign the smart contract is generated; The maximum attack frequency is recorded as Fmax, and the cumulative attack duration is recorded as Tto, where the cumulative attack duration is the total time from the start to the end of the attack; the smart contract failure recovery time is recorded as Tfa, and the smart contract failure recovery time represents the time from when the smart contract stops working due to an attack at a certain point in time to when the smart contract operates normally; the anti-attack performance analysis model satisfies the following formula: in, It indicates the corrected number of successful attacks. The inverse of the total number of successful attacks reflects the difficulty of hacking the smart contract. Fth is a preset threshold, which indicates the upper limit of the attack frequency that the smart contract can safely handle per unit time. Fth is determined according to the specific design and expected load of the smart contract. It reflects the stability of smart contracts under extreme attacks; It reflects the durability of smart contracts under sustained attacks; The transaction risk management module jointly analyzes the smart contract anti-attack index Rnd, identity risk index Fde and historical risk index LF, and calculates the transaction risk coefficient FJ through the transaction risk analysis model, which is used to verify the transaction risk coefficient. If the transaction risk coefficient meets the requirements, the transaction and circulation operations of data assets are executed; The blockchain network recording module is used to record transaction results and status changes on the blockchain network; The identity authentication module authenticates the data asset uploader before submitting the encrypted data assets to the smart contract on the blockchain network. Users obtain data assets by accessing the blockchain network, and permission verification is performed during the access process to ensure that only legitimate users can access and use data assets.