A trusted ecological architecture and operation and maintenance management system for government blockchain integrating smart contracts
By building a multi-layer government blockchain system, using smart contracts for system monitoring and credit evaluation, supporting multi-chain collaboration and cross-chain data interaction, and using two-factor encryption to protect privacy, it solves the problems of data management, credit assessment, consensus mechanism and privacy protection in government blockchain, and achieves efficient and secure government data sharing and business collaboration.
Patent Information
- Application Number
- CN202510760424.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-06-09
- Publication Date
- 2025-08-22
- Estimated Expiration
- 2045-06-09
AI Technical Summary
The existing technology has problems in the field of government blockchain, such as data life cycle management difficulties, static credit evaluation, high energy consumption of consensus mechanisms, single privacy protection, poor cross-chain collaborative security, and insufficient operation and maintenance management automation.
Build a multi-layer government blockchain system, use smart contracts to conduct system monitoring and credit evaluation, support multi-chain collaboration and cross-chain data interaction, use two-factor encryption to protect privacy, improve efficiency through dynamic weight consensus algorithms, and introduce an audit supervision module to achieve operation traceability and compliance audit.
It realizes the full life cycle management of government data, improves the efficiency and security of the blockchain system, supports multi-chain collaboration and trusted node access, ensures the privacy and compliance of government data, and provides efficient and secure technical support for government data sharing and business collaboration.
Smart Images

Figure CN120281478B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of blockchain management technology, and in particular to a government blockchain trusted ecological architecture and operation and maintenance management system integrating smart contracts. Background Art
[0002] The government blockchain trusted ecological architecture and operation and maintenance management system that integrates smart contracts is built based on blockchain technology and integrates the automatic execution mechanism of smart contracts. It covers an ecological architecture that allows trusted sharing of government data and automated collaboration of business processes. It is also equipped with an operation and maintenance management system that integrates system monitoring, security protection, upgrades and maintenance, etc., to achieve trusted, efficient and secure business operations in the government field.
[0003] Existing technologies have many defects in the field of government blockchain: in terms of ecological architecture, a single chain structure makes it difficult to achieve full life cycle management of data, credit assessment is static, the consensus mechanism weight calculation dimension is single, and there is an imbalance between efficiency and decentralization; in operation and maintenance management, monitoring, credit assessment, fault response, etc. rely on manual or static rules, and automation is insufficient; in terms of cross-chain collaboration, data interaction security is poor, the third-party node access process is cumbersome, and the collaborative consensus mechanism is imperfect; in the consensus mechanism, the mainstream algorithm has problems of high energy consumption and equity concentration, and the dynamic weight algorithm does not integrate key indicators; the privacy protection means are single, and encryption and access control are extensive; audit traceability relies on manual labor and has a low degree of intelligence. Summary of the Invention
[0004] In response to the problems existing in the prior art, the purpose of the present invention is to provide a government blockchain trusted ecological architecture and operation and maintenance management system that integrates smart contracts to solve the problems raised by the above background technology.
[0005] To achieve the above objectives, the present invention provides a trusted ecosystem architecture and operation and maintenance management system for government blockchains that integrates smart contracts, including:
[0006] Trusted ecological architecture module, used to build a multi-layer government blockchain system, enabling full life cycle management of government data;
[0007] The operation and maintenance management system module performs system operation monitoring, credit assessment, fault response, and dynamic strategy adjustment based on smart contracts;
[0008] A feasible ecological expansion module that supports multi-chain collaboration, cross-chain data interaction, and third-party trusted node access;
[0009] The underlying blockchain engine module is based on an improved dynamic weight consensus algorithm to ensure efficient blockchain verification and distributed storage;
[0010] The privacy setting module uses two-factor encryption and attribute access control to ensure the privacy of government data;
[0011] The audit supervision module records operation logs through smart contracts, making blockchain operations traceable and compliance auditable.
[0012] Preferably, the trusted ecological architecture module constructs a multi-layer government blockchain system including the following steps:
[0013] S11. Store government data shards in distributed nodes of the blockchain. Each data shard generates a unique hash value. The formula is: , where For data The generated hash value, is the hash algorithm name, timestamp, and create data index and store Mapping relationship with node address;
[0014] S12. Users register through public and private keys and generate user credit files, including user , public and private keys, initial credit score, the initial credit score is used to estimate the user's initial credit, the formula is , where Initial credit score for the user, As the basic credit score, For the The weight of the class behavior, For behavioral data, is the occurrence time, is the violation penalty value, The number of behavioral data types calculated for credit assessment, The number of penalty items calculated for violations in the credit assessment;
[0015] S13. Deploy the credit assessment contract, access control contract, and operation and maintenance contract, and define the contract event mechanism;
[0016] S14. By coordinating distributed nodes to reach consensus rules, the blockchain system can achieve data consistency, transaction validity and decentralization, and adopt dynamic weighted authority proof. Consensus, the formula is , where is the dynamic weight, is the node credit score, and are weight coefficients, is the number of confirmed transactions, is the total number of transactions, It is the XOR complex product operation;
[0017] S15. Develop a government service interface to support data query and business approval operations, and integrate a visual interface to display on-chain data status and user credit information.
[0018] Preferably, the operation and maintenance management system module performs operation and maintenance management including the following steps:
[0019] S21, real-time collection of key indicators such as node load, calculate the load situation, the formula is , where is the node load, for Utilization rate, is the memory utilization;
[0020] S22. Collect user behavior data and process it, including data access compliance, business response timeliness, and number of violations, and update the credit score. The formula is: , where is the behavior weight, is the updated user credit score, is the number of behavioral factors involved in the weighted summation operation, is the number of violation penalty items involved in the summation operation, For multidimensional behavioral data, is the violation penalty value;
[0021] S23. When a node failure is detected, the smart contract triggers the replacement process and selects a candidate from the candidate node pool. The selected candidate node must meet the requirement that the modulo calculation result is greater than the set threshold. The formula is , where is the result of modulo calculation, Set the threshold, is the number of node status indicators involved in the calculation, For the The weight of the node status indicator, For the The value of the node status indicator, For Together they form the divisor part of the modulo operation, is the modulo operator;
[0022] S24. Adjust access rights based on credit score and reset behavioral data weights regularly. The formula is: , where and are the behavioral data weights before and after the update, is the attenuation factor, and , is the number of update cycles;
[0023] S25. Count the transaction processing volume of each node, according to Allocate storage resources, execute the sleep mechanism for idle nodes, and release computing resources. Node transaction processing volume, is a dynamic weight.
[0024] Preferably, the feasible ecological extension module performs ecological extension and interconnection of the government blockchain including the following steps:
[0025] S31. Define the cross-chain transaction format through the cross-contract connection between the main chain and the sub-chain. Among them, cross-chain verification requires consensus confirmation by at least 3 main chain nodes and 2 sub-chain nodes. Cross-chain data transmission uses proxy re-encryption technology to determine the data interaction rules. The formula is ,in, To use the target public key The encrypted data ciphertext, For proxy re-encryption operations, To use the source chain public key Encrypted data ciphertext, is the proxy private key;
[0026] S32: The third-party node submits an access application, including qualification certification and credit commitment. The smart contract verifies the validity of the qualification certification and extracts the initial credit score. After the 7-day trial period, the node is officially connected.
[0027] S33. Credit points are awarded to nodes that actively participate in the consensus, and rewards are given for each correct block verification. Credit penalties are imposed on malicious nodes.
[0028] Preferably, the blockchain underlying engine module performs smart contract execution including the following steps:
[0029] S41. Use the dynamic weight consensus algorithm to process the formula node;
[0030] S42. Calculate the block generation time by adding random factors and time weights based on the target difficulty in the blockchain. The formula is: , where is the block generation time, is a random factor, is the time weight;
[0031] S43, based on the optimization of the Ethereum virtual machine, supports and executes multiple contract transactions, and hashes the contract execution results and stores them on the chain;
[0032] S44, when a new node joins, Verify the consistency of the ledger, and the full node regularly pushes status updates to the node ,reduce synchronization overhead;
[0033] S45. Perform formal verification before smart contract deployment to check for code vulnerabilities, enable real-time monitoring of deployed contracts, and capture abnormal calls.
[0034] Preferably, the privacy setting module includes the following steps for privacy setting:
[0035] S51, use The algorithm generates a symmetric key to encrypt data and uses the recipient's public key to encrypt the symmetric key. The formula is , where To use symmetric keys For the original data conduct Encrypted ciphertext data, for The operation function of the encryption algorithm, To use the recipient's public key Symmetric key conduct The symmetric key of the encrypted ciphertext pair, for The operation function of the encryption algorithm will eventually and Stored on different nodes;
[0036] S52. Set access policies based on user attributes and data attributes to determine whether the user has access rights to specific data or resources. The formula is: , The access permission judgment result is For the character set, For the permission set, is the complement, is the data confidentiality threshold;
[0037] S53. When users query data, the authority is verified through zero-knowledge proof to ensure that the query does not reveal the user's formal attributes, and the sensitive fields are fuzzy processed. The formula is , where It is the mask string generated after processing the sensitive string. To extract the original sensitive string The function on the left side, is a placeholder character. To get the length of a string, To extract the original sensitive string The function on the right side;
[0038] S54. Introduce secure multi-dimensional computing protocols to support cross-institutional joint data analysis and ensure that data is available but not visible.
[0039] Preferably, in step S22, processing the collected data includes the following steps:
[0040] S221. Collect user login records, data operation records, and violation records, perform data cleaning, filter invalid entries, extract data features, and normalize feature values;
[0041] S222. Use the random forest algorithm to build a credit assessment model, input the feature vector, and output the credit score. Use the loss function to calculate the mean square error of the output credit score to reduce the error probability of the output credit score. The formula is , where is the mean square error calculation result, is the sample size, is the real credit score, To predict credit scores;
[0042] S223. Regularly and automatically import new data, retrain the model, update feature weights, set thresholds and verify the mean square error results. When the mean square error result is less than the threshold, the manual review process is triggered. When a violation is detected, the credit score is immediately updated, and a violation notification is generated and pushed to the user and audit node.
[0043] Preferably, in step S41, processing the formula node includes the following steps:
[0044] S411. Nodes applying to join the consensus pool need to pass a credit review and pledge tokens when submitting an application. The higher the credit score, the lower the pledge. The formula is: , where is the number of staked tokens, Node credit score;
[0045] S412. Sort the consensus nodes by dynamic weight. The formula is: , where For the The node weight sorting results are: and are weight coefficients, is the tensor product, is the number of valid transactions, is the total number of transactions;
[0046] S413: Every 100 blocks generated, recalculate the node weights, update the consensus pool, remove nodes with weights below the threshold, and add new qualified nodes;
[0047] S414, the top three nodes by weight have priority in generating blocks, and other nodes generate blocks randomly according to their weight ratio. The formula is: , where is the block interval, Is the basic block interval time, is the adjustment coefficient of the weight’s influence on the block interval, For the Node weights, For the The probability that other nodes will randomly generate blocks according to their weight ratio;
[0048] S415: When a node fails to generate a block three times in a row, it is judged as a faulty node and temporarily removed from the consensus pool. After the fault is repaired, it must pass the credit review and weight calculation again before it can rejoin.
[0049] Preferably, in step S51, key generation includes the following steps:
[0050] S511. Generate a 256-bit symmetric key using a secure random number generator and use the key entropy value to detect it. The formula is: , where is a cryptographically secure random number generation function, is the key entropy, For the The probability of a state or value;
[0051] S512, will Split the last 5 shards into 5, generate a shared key, and store them on different nodes to ensure that at least 3 shards can restore the original data.
[0052] S513. When the recipient's private key is lost, the emergency process is initiated through a trusted institution and multi-signature decryption is used , generate a decryption log and store it on the chain.
[0053] The present invention provides a trusted ecosystem architecture and operation and maintenance management system for government affairs blockchains that integrates smart contracts, which has the following beneficial effects:
[0054] Through the deep integration of smart contracts and blockchain technology, this invention has built a government blockchain ecosystem that integrates trusted storage, dynamic operation and maintenance, secure expansion, privacy protection and compliance auditing, effectively solving the core pain points of traditional government chains in terms of efficiency, security and scalability, and providing efficient and secure technical support for trusted sharing of government data and business collaboration. BRIEF DESCRIPTION OF THE DRAWINGS
[0055] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0056] Figure 1 A system module diagram of a government blockchain trusted ecosystem architecture and operation and maintenance management system that integrates smart contracts provided in this application. DETAILED DESCRIPTION
[0057] The following embodiments of the present invention are described in further detail in conjunction with the accompanying drawings and examples. The following embodiments are only used to illustrate the present invention and are not intended to limit the scope of the present invention.
[0058] like Figure 1 As shown, this embodiment proposes a government blockchain trusted ecological architecture and operation and maintenance management system that integrates smart contracts, including:
[0059] Trusted ecological architecture module, used to build a multi-layer government blockchain system, enabling full life cycle management of government data;
[0060] The operation and maintenance management system module performs system operation monitoring, credit assessment, fault response, and dynamic strategy adjustment based on smart contracts;
[0061] A feasible ecological expansion module that supports multi-chain collaboration, cross-chain data interaction, and third-party trusted node access;
[0062] The underlying blockchain engine module is based on an improved dynamic weight consensus algorithm to ensure efficient blockchain verification and distributed storage;
[0063] The privacy setting module uses two-factor encryption and attribute access control to ensure the privacy of government data;
[0064] The audit supervision module records operation logs through smart contracts, making blockchain operations traceable and compliance auditable.
[0065] In this embodiment, the trusted ecological architecture module builds a multi-layer government blockchain system including the following steps:
[0066] S11. Store government data shards in distributed nodes of the blockchain. Each data shard generates a unique hash value. The formula is: , where For data The generated hash value, is the hash algorithm name, timestamp, and create data index and store Mapping relationship with node address;
[0067] S12. Users register through public and private keys and generate user credit files, including user , public and private keys, initial credit score, the initial credit score is used to estimate the user's initial credit, the formula is , where Initial credit score for the user, As the basic credit score, For the The weight of the class behavior, For behavioral data, is the occurrence time, is the violation penalty value, The number of behavioral data types calculated for credit assessment, The number of penalty items calculated for violations in the credit assessment;
[0068] S13. Deploy the credit assessment contract, access control contract, and operation and maintenance contract, and define the contract event mechanism;
[0069] S14. By coordinating distributed nodes to reach consensus rules, the blockchain system can achieve data consistency, transaction validity and decentralization, and adopt dynamic weighted authority proof. Consensus, the formula is , where is the dynamic weight, is the node credit score, and are weight coefficients, is the number of confirmed transactions, is the total number of transactions, It is the XOR complex product operation;
[0070] S15. Develop a government service interface to support data query and business approval operations, and integrate a visual interface to display on-chain data status and user credit information.
[0071] In this embodiment, the operation and maintenance management system module performs operation and maintenance management including the following steps:
[0072] S21, real-time collection of key indicators such as node load, calculate the load situation, the formula is , where is the node load, for Utilization rate, is the memory utilization;
[0073] S22. Collect user behavior data and process it, including data access compliance, business response timeliness, and number of violations, and update the credit score. The formula is: , where is the behavior weight, is the updated user credit score, is the number of behavioral factors involved in the weighted summation operation, is the number of violation penalty items involved in the summation operation, For multidimensional behavioral data, is the violation penalty value;
[0074] S23. When a node failure is detected, the smart contract triggers the replacement process and selects a candidate from the candidate node pool. The selected candidate node must meet the requirement that the modulo calculation result is greater than the set threshold. The formula is , where is the result of modulo calculation, Set the threshold, is the number of node status indicators involved in the calculation, For the The weight of the node status indicator, For the The value of the node status indicator, For Together they form the divisor part of the modulo operation, is the modulo operator;
[0075] S24. Adjust access rights based on credit score and reset behavioral data weights regularly. The formula is: , where and are the behavioral data weights before and after the update, is the attenuation factor, and , is the number of update cycles;
[0076] S25. Count the transaction processing volume of each node, according to Allocate storage resources, execute the sleep mechanism for idle nodes, and release computing resources. Node transaction processing volume, is a dynamic weight.
[0077] In this embodiment, the feasible ecological extension module performs the extension and interconnection of the government blockchain ecology, including the following steps:
[0078] S31. Define the cross-chain transaction format through the cross-contract connection between the main chain and the sub-chain. Among them, cross-chain verification requires consensus confirmation by at least 3 main chain nodes and 2 sub-chain nodes. Cross-chain data transmission uses proxy re-encryption technology to determine the data interaction rules. The formula is ,in, To use the target public key The encrypted data ciphertext, For proxy re-encryption operations, To use the source chain public key Encrypted data ciphertext, is the proxy private key;
[0079] S32: The third-party node submits an access application, including qualification certification and credit commitment. The smart contract verifies the validity of the qualification certification and extracts the initial credit score. After the 7-day trial period, the node is officially connected.
[0080] S33. Credit points are awarded to nodes that actively participate in the consensus, and rewards are given for each correct block verification. Credit penalties are imposed on malicious nodes.
[0081] In this embodiment, the blockchain underlying engine module performs smart contract execution including the following steps:
[0082] S41. Use the dynamic weight consensus algorithm to process the formula node;
[0083] S42. Calculate the block generation time by adding random factors and time weights based on the target difficulty in the blockchain. The formula is: , where is the block generation time, is a random factor, is the time weight;
[0084] S43, based on the optimization of the Ethereum virtual machine, supports and executes multiple contract transactions, and hashes the contract execution results and stores them on the chain;
[0085] S44, when a new node joins, Verify the consistency of the ledger, and the full node regularly pushes status updates to the node ,reduce synchronization overhead;
[0086] S45. Perform formal verification before smart contract deployment to check for code vulnerabilities, enable real-time monitoring of deployed contracts, and capture abnormal calls.
[0087] In this embodiment, the privacy setting module includes the following steps for privacy setting:
[0088] S51, use The algorithm generates a symmetric key to encrypt data and uses the recipient's public key to encrypt the symmetric key. The formula is , where To use symmetric keys For the original data conduct Encrypted ciphertext data, for The operation function of the encryption algorithm, To use the recipient's public key Symmetric key conduct The symmetric key of the encrypted ciphertext pair, for The operation function of the encryption algorithm will eventually and Stored on different nodes;
[0089] S52. Set access policies based on user attributes and data attributes to determine whether the user has access rights to specific data or resources. The formula is: , The access permission judgment result is For the character set, For the permission set, is the complement, is the data confidentiality threshold;
[0090] S53. When users query data, the authority is verified through zero-knowledge proof to ensure that the query does not reveal the user's formal attributes, and the sensitive fields are fuzzy processed. The formula is , where It is the mask string generated after processing the sensitive string. To extract the original sensitive string The function on the left side, is a placeholder character. To get the length of a string, To extract the original sensitive string The function on the right side;
[0091] S54. Introduce secure multi-dimensional computing protocols to support cross-institutional joint data analysis and ensure that data is available but not visible.
[0092] In this embodiment, in step S22, processing the collected data includes the following steps:
[0093] S221. Collect user login records, data operation records, and violation records, perform data cleaning, filter invalid entries, extract data features, and normalize feature values;
[0094] S222. Use the random forest algorithm to build a credit assessment model, input the feature vector, and output the credit score. Use the loss function to calculate the mean square error of the output credit score to reduce the error probability of the output credit score. The formula is , where is the mean square error calculation result, is the sample size, is the real credit score, To predict credit scores;
[0095] S223. Regularly and automatically import new data, retrain the model, update feature weights, set thresholds and verify the mean square error results. When the mean square error result is less than the threshold, the manual review process is triggered. When a violation is detected, the credit score is immediately updated, and a violation notification is generated and pushed to the user and audit node.
[0096] In this embodiment, in step S41, processing the formula node includes the following steps:
[0097] S411. Nodes applying to join the consensus pool need to pass a credit review and pledge tokens when submitting an application. The higher the credit score, the lower the pledge. The formula is: , where is the number of staked tokens, Node credit score;
[0098] S412. Sort the consensus nodes by dynamic weight. The formula is: , where For the The node weight sorting results are: and are weight coefficients, is the tensor product, is the number of valid transactions, is the total number of transactions;
[0099] S413: Every 100 blocks generated, recalculate the node weights, update the consensus pool, remove nodes with weights below the threshold, and add new qualified nodes;
[0100] S414, the top three nodes by weight have priority in generating blocks, and other nodes generate blocks randomly according to their weight ratio. The formula is: , where is the block interval, Is the basic block interval time, is the adjustment coefficient of the weight’s influence on the block interval, For the Node weights, For the The probability that other nodes will randomly generate blocks according to their weight ratio;
[0101] S415: When a node fails to generate a block three times in a row, it is judged as a faulty node and temporarily removed from the consensus pool. After the fault is repaired, it must pass the credit review and weight calculation again before it can rejoin.
[0102] In this embodiment, in step S51, key generation includes the following steps:
[0103] S511. Generate a 256-bit symmetric key using a secure random number generator and use the key entropy value to detect it. The formula is: , where is a cryptographically secure random number generation function, is the key entropy, For the The probability of a state or value;
[0104] S512, will Split the last 5 shards into 5, generate a shared key, and store them on different nodes to ensure that at least 3 shards can restore the original data.
[0105] S513. When the recipient's private key is lost, the emergency process is initiated through a trusted institution and multi-signature decryption is used , generate a decryption log and store it on the chain.
[0106] Specifically, through the deep integration of smart contracts and blockchain technology, a government blockchain ecosystem has been built that integrates trusted storage, dynamic operation and maintenance, secure expansion, privacy protection and compliance auditing, effectively solving the core pain points of traditional government chains in terms of efficiency, security and scalability, and providing efficient and secure technical support for trusted sharing of government data and business collaboration.
[0107] The above embodiments are intended to illustrate the present invention only and are not intended to limit the present invention. Although the present invention has been described in detail with reference to the embodiments, it should be understood by those skilled in the art that various combinations, modifications, or equivalent substitutions of the technical solutions of the present invention do not depart from the spirit and scope of the technical solutions of the present invention and should be encompassed by the scope of the claims of the present invention.
Claims
1. A trusted ecological architecture and operation and maintenance management system for government affairs blockchain integrating smart contracts, characterized by: include: Trusted ecological architecture module, used to build a multi-layer government blockchain system, enabling full life cycle management of government data; The operation and maintenance management system module performs system operation monitoring, credit assessment, fault response, and dynamic strategy adjustment based on smart contracts; A feasible ecological expansion module that supports multi-chain collaboration, cross-chain data interaction, and third-party trusted node access; The underlying blockchain engine module is based on an improved dynamic weight consensus algorithm to ensure efficient blockchain verification and distributed storage; The privacy setting module uses two-factor encryption and attribute access control to ensure the privacy of government data; The audit supervision module records operation logs through smart contracts, making blockchain operations traceable and compliance auditable; The trusted ecological architecture module builds a multi-layer government blockchain system including the following steps: S11. Store government data shards in distributed nodes of the blockchain. Each data shard generates a unique hash value. The formula is: , where For data The generated hash value, is the hash algorithm name, timestamp, and create data index and store Mapping relationship with node address; S12. Users register through public and private keys and generate user credit files, including user , public and private keys, initial credit score, the initial credit score is used to estimate the user's initial credit, the formula is , where Initial credit score for the user, As the basic credit score, For the The weight of the class behavior, For behavioral data, is the occurrence time, is the violation penalty value, The number of behavioral data types calculated for credit assessment, The number of penalty items calculated for violations in the credit assessment; S13. Deploy the credit assessment contract, access control contract, and operation and maintenance contract, and define the contract event mechanism; S14. By coordinating distributed nodes to reach consensus rules, the blockchain system can achieve data consistency, transaction validity and decentralization, and adopt dynamic weighted authority proof. Consensus, the formula is , where is the dynamic weight, is the node credit score, and are weight coefficients, is the number of confirmed transactions, is the total number of transactions, It is the XOR complex product operation; S15. Develop a government service interface to support data query and business approval operations, and integrate a visual interface to display on-chain data status and user credit information.
2. The government blockchain trusted ecological architecture and operation and maintenance management system integrating smart contracts according to claim 1 is characterized in that: The operation and maintenance management system module performs operation and maintenance management including the following steps: S21, real-time collection of key indicators such as node load, calculate the load situation, the formula is , where is the node load, for Utilization rate, is the memory utilization, for The abbreviation of , which is the utilization of the node; S22. Collect user behavior data and process it, including data access compliance, business response timeliness, and number of violations, and update the credit score. The formula is: , where is the behavior weight, is the updated user credit score, is the number of behavioral factors involved in the weighted summation operation, is the number of violation penalty items involved in the summation operation, For multidimensional behavioral data, is the violation penalty value; S23. When a node failure is detected, the smart contract triggers the replacement process and selects a candidate from the candidate node pool. The selected candidate node must meet the requirement that the modulo calculation result is greater than the set threshold. The formula is , where is the result of modulo calculation, Set the threshold, is the number of node status indicators involved in the calculation, For the The weight of the node status indicator, For the The value of the node status indicator, For Together they form the divisor part of the modulo operation, is the modulo operator; S24. Adjust access rights based on credit score and reset behavioral data weights regularly. The formula is: , where and are the behavioral data weights before and after the update, is the attenuation factor, and , is the number of update cycles; S25. Count the transaction processing volume of each node, according to Allocate storage resources, execute the sleep mechanism for idle nodes, and release computing resources. Node transaction processing volume, is a dynamic weight.
3. The government blockchain trusted ecological architecture and operation and maintenance management system integrating smart contracts according to claim 1 is characterized in that: The feasible ecological extension module for government blockchain ecological extension and interconnection includes the following steps: S31. Define the cross-chain transaction format through the cross-contract connection between the main chain and the sub-chain. Among them, cross-chain verification requires consensus confirmation by at least 3 main chain nodes and 2 sub-chain nodes. Cross-chain data transmission uses proxy re-encryption technology to determine the data interaction rules. The formula is ,in, To use the target public key The encrypted data ciphertext, For proxy re-encryption operations, To use the source chain public key Encrypted data ciphertext, is the proxy private key; S32: The third-party node submits an access application, including qualification certification and credit commitment. The smart contract verifies the validity of the qualification certification and extracts the initial credit score. After the 7-day trial period, the node is officially connected. S33. Credit points are awarded to nodes that actively participate in the consensus, and rewards are given for each correct block verification. Credit penalties are imposed on malicious nodes.
4. The government blockchain trusted ecological architecture and operation and maintenance management system integrating smart contracts according to claim 2 is characterized in that: The blockchain underlying engine module performs smart contract execution including the following steps: S41. Use the dynamic weight consensus algorithm to process the formula node; S42. Calculate the block generation time by adding random factors and time weights based on the target difficulty in the blockchain. The formula is: , where is the block generation time, is a random factor, is the time weight, is the adjustment value of the current difficulty parameter, is the basic difficulty parameter; S43, based on the optimization of the Ethereum virtual machine, supports and executes multiple contract transactions, and hashes the contract execution results and stores them on the chain; S44, when a new node joins, Verify the consistency of the ledger, and the full node regularly pushes status updates to the node ,reduce synchronization overhead; S45. Perform formal verification before smart contract deployment to check for code vulnerabilities, enable real-time monitoring of deployed contracts, and capture abnormal calls.
5. The government blockchain trusted ecological architecture and operation and maintenance management system integrating smart contracts according to claim 1 is characterized in that: The privacy setting module includes the following steps for privacy setting: S51, use The algorithm generates a symmetric key to encrypt data and uses the recipient's public key to encrypt the symmetric key. The formula is , where To use symmetric keys For the original data conduct Encrypted ciphertext data, for The operation function of the encryption algorithm, To use the recipient's public key Symmetric key conduct The symmetric key of the encrypted ciphertext pair, for The operation function of the encryption algorithm will eventually and Stored on different nodes; S52. Set access policies based on user attributes and data attributes to determine whether the user has access rights to specific data or resources. The formula is: , The access permission judgment result is For the character set, For the permission set, is the complement, is the data confidentiality threshold; S53. When users query data, the authority is verified through zero-knowledge proof to ensure that the query does not reveal the user's formal attributes, and the sensitive fields are fuzzy processed. The formula is , where It is the mask string generated after processing the sensitive string. To extract the original sensitive string The function on the left side, is a placeholder character. To get the length of a string, To extract the original sensitive string The function on the right side; S54. Introduce secure multi-dimensional computing protocols to support cross-institutional joint data analysis and ensure that data is available but not visible.
6. The government blockchain trusted ecological architecture and operation and maintenance management system integrating smart contracts according to claim 2 is characterized in that: In step S22, processing the collected data includes the following steps: S221. Collect user login records, data operation records, and violation records, perform data cleaning, filter invalid entries, extract data features, and normalize feature values; S222. Use the random forest algorithm to build a credit assessment model, input the feature vector, and output the credit score. Use the loss function to calculate the mean square error of the output credit score to reduce the error probability of the output credit score. The formula is , where is the mean square error calculation result, is the sample size, is the real credit score, To predict credit scores; S223. Regularly and automatically import new data, retrain the model, update feature weights, set thresholds and verify the mean square error results. When the mean square error result is less than the threshold, the manual review process is triggered. When a violation is detected, the credit score is immediately updated, and a violation notification is generated and pushed to the user and audit node.
7. The government blockchain trusted ecological architecture and operation and maintenance management system integrating smart contracts according to claim 4 is characterized in that: In step S41, processing the formula node includes the following steps: S411. Nodes applying to join the consensus pool need to pass a credit review and pledge tokens when submitting an application. The higher the credit score, the lower the pledge. The formula is: , where is the number of staked tokens, Node credit score; S412. Sort the consensus nodes by dynamic weight. The formula is: , where For the The node weight sorting results are: and are weight coefficients, is the tensor product, is the number of valid transactions, is the total number of transactions; S413: Every 100 blocks generated, recalculate the node weights, update the consensus pool, remove nodes with weights below the threshold, and add new qualified nodes; S414, the top three nodes by weight have priority in generating blocks, and other nodes generate blocks randomly according to their weight ratio. The formula is: , where is the block interval, Is the basic block interval time, is the adjustment coefficient of the weight’s influence on the block interval, For the Node weights, For the The probability that other nodes will randomly generate blocks according to the weight ratio, is the total number of all node weights; S415: When a node fails to generate a block three times in a row, it is judged as a faulty node and temporarily removed from the consensus pool. After the fault is repaired, it must pass the credit review and weight calculation again before it can rejoin.
8. The government blockchain trusted ecological architecture and operation and maintenance management system integrating smart contracts according to claim 5 is characterized in that: In step S51, key generation includes the following steps: S511. Generate a 256-bit symmetric key using a secure random number generator and use the key entropy value to detect it. The formula is: , where is a cryptographically secure random number generation function, is the key entropy, For the The probability of a state or The probability of a value; S512, will Split the last 5 shards into 5, generate a shared key, and store them on different nodes to ensure that at least 3 shards can restore the original data. S513. When the recipient's private key is lost, the emergency process is initiated through a trusted institution and multi-signature decryption is used , generate a decryption log and store it on the chain.
Citation Information
Patent Citations
E-government privacy security protection system based on blockchain technology
CN119760788A