Security storage system of electronic information system

By sharding the blockchain network and optimizing the consensus mechanism, the performance bottleneck of the blockchain network during peak hours is solved, efficient transaction processing and system management are achieved, and user experience and system performance are improved.

CN118827232AInactive Publication Date: 2024-10-22CHUZHOU UNIV
View PDF 0 Cites 7 Cited by

Patent Information

Application Number
CN202411107231.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-13
Publication Date
2024-10-22
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

In the existing technology, the blockchain network may face performance bottlenecks when processing a large number of transactions, such as transaction confirmation delays and block capacity limitations. Especially during flight-intensive periods, the system needs to process a large number of electronic tickets, causing the performance of the blockchain network to be challenged. .

Method used

The sharding management module is used to divide the blockchain network into multiple sub-networks, and the consensus mechanism module is used to optimize the consensus process of the blockchain network. It combines the data encryption module, access control module and automated operation and maintenance module to achieve efficient data processing and Automated management of the system.

Benefits of technology

It significantly reduces delays in the consensus process, increases transaction processing speed, disperses processing load, shortens transaction confirmation time, improves the overall processing capacity and user experience of the system, and reduces operation and maintenance costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118827232A_ABST
    Figure CN118827232A_ABST
Patent Text Reader

Abstract

The invention discloses a security storage system of an electronic information system. A consensus mechanism module is responsible for realizing and optimizing a consensus mechanism in a block chain network; the fragment management module is responsible for dividing the block chain network into a plurality of sub-networks and managing communication and data synchronization among the sub-networks; the data encryption module is responsible for encrypting the stored and transmitted data; the access control module is responsible for allocating different roles and permissions to different users; the automatic operation and maintenance module is responsible for quickly deploying and expanding the system by using a containerization technology and an automatic deployment tool; according to the invention, the block chain network is divided into a plurality of sub-networks, the processing load is effectively dispersed, the overall processing capability and throughput of the system are improved, each fragment independently processes part of transactions, the transaction confirmation time is further shortened, and the user experience is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of network information security, and in particular to a security storage system for an electronic information system. Background Art

[0002] Electronic tickets, also known as "paperless" tickets, refer to the reservation system where the passenger's purchase record is kept. Passengers will not receive paper tickets. The difference between electronic tickets and ordinary paper tickets is that one is tangible and the other is intangible. They can be issued, cancelled, refunded, exchanged, and changed like paper tickets. Electronic tickets rely on modern information technology to realize the entire process of paperless and electronic booking, checkout, and check-in. For passengers, its use is no different from traditional paper tickets.

[0003] After searching, the invention patent with Chinese patent number CN111064811A discloses a secure storage system for electronic information systems, which belongs to the field of network information security technology. It has solved the problem of only protecting information by encrypting it to prevent others from tampering with it, but has not considered how to reasonably verify the tampered information in the electronic ticket system; it includes a management server, a ticketing node module, an accounting node module and a distributed storage module, the accounting node module includes a No. 1 node unit and other node units, the other node units are accounting nodes in other node units except the No. 1 node unit, and the management server and the accounting node module are linked by a consortium chain to form a blockchain network.

[0004] Compared with the prior art, the invention patent with Chinese patent number CN111064811A uses a verification module to calculate the passenger information after takeoff using a calculation program and then compare it with the correct data, so as to quickly determine whether there is a problem with the electronic tickets on this batch of flights, until the passenger information with problems on the electronic tickets is confirmed, thereby achieving effective electronic ticket verification and sounding the alarm for people who tamper with electronic tickets, thereby eliminating such situations from occurring at the source and ensuring the security of the information stored in the electronic tickets.

[0005] However, during the use of the above-mentioned device, the blockchain network may face performance bottlenecks when processing a large number of transactions, such as transaction confirmation delays, block capacity limitations, etc. During peak hours, such as flight peaks, the system may need to process a large number of electronic tickets, which may pose a challenge to the performance of the blockchain network. Therefore, a secure storage system for an electronic information system is proposed. Summary of the invention

[0006] The purpose of the present invention is to solve the shortcomings of the prior art that the blockchain network may face performance bottlenecks when processing a large number of transactions, such as transaction confirmation delays, block capacity limitations, etc. During peak hours, such as flight intensive periods, the system may need to process a large number of electronic tickets, which may pose a challenge to the performance of the blockchain network, and propose a secure storage system for an electronic information system.

[0007] In order to achieve the above object, the present invention adopts the following technical solutions:

[0008] An electronic information system security storage system, comprising:

[0009] Consensus mechanism module: responsible for implementing and optimizing the consensus mechanism in the blockchain network;

[0010] Sharding management module: responsible for dividing the blockchain network into multiple sub-networks (shards) and managing the communication and data synchronization between these sub-networks (shards);

[0011] Data encryption module: responsible for encrypting data in storage and transmission;

[0012] Access control module: responsible for assigning different roles and permissions to different users;

[0013] Automated operation and maintenance module: responsible for quickly deploying and expanding the system using containerization technology and automated deployment tools;

[0014] Interface and integration module: responsible for providing standardized API interfaces to facilitate integration and interaction with other systems and applications;

[0015] The shard management module distributes transactions to different sub-networks (shards) for processing according to the consensus results provided by the consensus mechanism module. The data encryption module encrypts the data, and the encrypted data is distributed to each sub-network (shard) for storage through the shard management module. After verifying the user's identity and authority, the access control module allows or denies the user's access request to the encrypted data. The automated operation and maintenance module monitors and manages the overall operation status of the system, including the performance of the consensus mechanism and the efficiency of sub-network (shard) management. When anomalies or performance bottlenecks are found, the automated operation and maintenance module automatically adjusts the consensus mechanism parameters or sharding strategies to optimize system performance.

[0016] The above technical solution further includes:

[0017] Furthermore, the consensus mechanism module includes a representative node election unit, a voting result processing unit, a block producer selection unit, a block generation unit, a block verification unit, a blockchain state update unit, a network communication unit and a representative rotation unit. The representative node election unit is responsible for processing the election process of the representative node, which includes collecting votes, calculating the results of the votes, and determining which nodes will become representative nodes. The voting result processing unit is responsible for processing the collected voting data and calculating which nodes have obtained sufficient support to become representative nodes. The block producer selection unit selects block producers from the representative nodes according to the election results. The block producers will be responsible for generating and verifying new blocks. The block generation unit is responsible for generating new blocks and broadcasting them to the network for verification by other nodes. The block verification unit is responsible for verifying whether the newly generated blocks comply with the rules of the blockchain network, including the legitimacy of the transaction, the hash value of the block, etc. The blockchain state update unit is responsible for adding the new block to the end of the blockchain after the verification is passed, and updating the status of the blockchain (such as the balance of the account). The network communication unit is responsible for the communication between nodes in the blockchain network, including the dissemination of information such as blocks, transactions, and election results. The representative rotation unit is responsible for managing the rotation process of representative nodes to ensure the diversity of representative nodes and the stability of the network. The representative node election unit sends voting data to the voting result processing unit, which processes and returns the election result. The voting result processing unit sends the election result to the block producer selection unit and the representative rotation unit. The block producer selection unit sends the block producer information to the block generation unit, and the block generation unit sends the newly generated block to the block verification unit. The block verification unit sends the verified block to the blockchain status update unit. The blockchain status update unit sends the updated blockchain status information to the network communication unit for broadcasting. The network communication unit is responsible for forwarding the information to other nodes and corresponding processing units in the network. The representative rotation unit sends the rotation result to the network communication unit for broadcasting to ensure that all nodes understand the current representative node situation.

[0018] Furthermore, the sharding management module includes a sharding division unit, an intelligent sharding algorithm unit, a sharding state monitoring unit, a sharding communication management unit and a node information maintenance unit. The sharding division unit is responsible for dividing the blockchain network into multiple shards, and performing initial division according to a preset division strategy (such as transaction type, node geographical location, node load, etc.). The intelligent sharding algorithm unit implements an intelligent sharding algorithm, and automatically adjusts the sharding layout according to dynamic factors such as transaction type, data volume and node load to achieve load balancing and improve processing capabilities. The sharding state monitoring unit is responsible for monitoring the state and performance of the shards, including the transaction processing speed, node connection status, data synchronization status, etc. in the shards, to ensure the stable operation and efficient processing of the shards. The sharding communication management unit is responsible for managing the communication and data synchronization between shards, to ensure the consistency and real-time performance of the data between shards. The node information maintenance unit is responsible for maintaining the information of all nodes in the blockchain network, including the node's geographical location, computing power, load status, The sharding division unit provides an initial sharding division plan, and the intelligent sharding algorithm unit dynamically adjusts the sharding layout according to the network status. The two realize the optimization of the sharding strategy through data interaction. The sharding division unit and the intelligent sharding algorithm unit adjust and optimize the sharding division and layout according to the real-time data provided by the sharding status monitoring unit to ensure the stability and efficiency of the sharding. The sharding status monitoring unit monitors the communication and data synchronization between shards, and sends the relevant information to the sharding communication management unit. The sharding communication management unit relies on the node status information provided by the node information maintenance unit to manage the node connection and data synchronization between shards. Each unit in the sharding management module needs to interact with the transaction processing unit to ensure the correct processing of transactions and the data consistency between shards. For example, the intelligent sharding algorithm unit needs to understand the transaction type and data volume in the current network to adjust the sharding layout; the sharding communication management unit needs to ensure the correct processing and data synchronization of cross-shard transactions.

[0019] Furthermore, the intelligent sharding algorithm unit automatically adjusts the sharding layout according to the dynamic factors, including the following steps:

[0020] Demand Analysis:

[0021] Transaction type: Different transaction types consume different system resources (such as CPU, memory, I / O, etc.), and differentiated sharding strategies are implemented based on transaction types;

[0022] Data volume: The size of data directly affects query and processing time. Large data volumes are distributed across multiple shards to reduce the pressure on a single node.

[0023] Node load: monitor the load of each node in real time to prevent overloaded nodes from receiving more requests and allocate idle resources reasonably;

[0024] Data sharding strategy:

[0025] Hash sharding: Sharding based on the hash value of a field in the data (such as user ID, transaction ID), suitable for evenly distributed data;

[0026] Range sharding: distributes data to different shards by range (such as time, ID range), which is suitable for ordered data;

[0027] Composite sharding: Combine hash and range sharding strategies and flexibly select according to specific circumstances;

[0028] Load monitoring and evaluation:

[0029] Real-time monitoring: Use the heartbeat mechanism to collect key indicators such as CPU usage, memory usage, I / O waiting time, etc. of each node in real time;

[0030] Load evaluation: Based on the collected data, evaluate the node load and determine whether the sharding needs to be adjusted;

[0031] Dynamic adjustment strategy:

[0032] Data migration: When a shard has too much data or the node load is too high, the data migration mechanism is triggered to migrate data from one shard to other idle shards or nodes.

[0033] Sharding reorganization: re-planning the sharding strategy according to the new load conditions and transaction patterns, such as increasing or decreasing the number of shards, adjusting the sharding range, etc.;

[0034] Failover: When a node fails, the data and services of the failed node are transferred to other healthy nodes to ensure high availability of the system;

[0035] Architecture design: Design distributed system architecture, including data sharding layer, load balancing layer, data storage layer, etc.;

[0036] Component development:

[0037] Shard manager: responsible for the creation, adjustment and data migration of shards;

[0038] Load balancer: dynamically adjusts the distribution of data requests based on node load conditions;

[0039] Monitoring and alarm system: monitors node status in real time and issues alarms in abnormal situations;

[0040] Testing and optimization: Conduct stress testing and performance testing, and adjust algorithm parameters and system configuration based on test results to achieve optimal performance.

[0041] Furthermore, in the data sharding strategy:

[0042] Hash Sharding:

[0043] Choose a hash function: Choose a suitable hash function, such as MD5, SHA-1, etc., which converts an input of any length into an output (hash value) of fixed length;

[0044] Calculate hash value: perform hash calculation on the key fields of the data to obtain the hash value;

[0045] Mapping to shards: Determine how to map the hash value to a specific shard based on the number of shards N. Take a portion of the hash value (such as the first or last few digits), then take the modulus (%) of N. The result is the shard number where the data should be stored: shard_index = hash(key)%N, where hash(key) is the hash value of the field key and N is the total number of shards.

[0046] Range Sharding:

[0047] Determine the shard range: Divide the entire data range into several continuous sub-ranges according to the data distribution, and each sub-range corresponds to a shard;

[0048] Distribute data: When new data arrives, determine which sub-range it belongs to based on its field value and distribute the data to the corresponding shard. For example, if sharding is by time, the time can be divided into multiple time periods (such as one shard per day), and then the data is distributed to the corresponding shard based on its timestamp.

[0049] Composite Sharding:

[0050] Analyze requirements: Analyze the characteristics and query patterns of the data to determine which fields are suitable for hash sharding and which fields are suitable for range sharding;

[0051] Design a composite strategy: Based on the analysis results, design a composite sharding strategy. For example, you can first shard by time range, and then perform secondary sharding by the hash value of the user ID within each time range.

[0052] Implement sharding: Implement sharded storage of data based on the designed composite strategy.

[0053] Furthermore, the data encryption module includes an encryption engine unit, a key management unit, a data transmission unit and a data storage unit. The encryption engine unit is responsible for using an encryption algorithm to perform encryption and decryption operations on data. The key management unit is responsible for generating, storing, distributing and updating keys. The data transmission unit is responsible for data transmission. The data storage unit is responsible for data storage. When data encryption is required, the encryption engine unit requests a corresponding key from the key management unit. The key management unit generates or provides a key to the encryption engine unit based on the request. During the decryption process, the encryption engine unit also obtains the corresponding key from the key management unit. Before sending the data, the data transmission unit sends the data to be sent to the encryption engine unit for encryption. The encryption engine unit uses the key to encrypt the data, generates a ciphertext, and returns it to the data transmission unit. Before storing the data, the data storage unit sends the data to be stored to the encryption engine unit for encryption.

[0054] Furthermore, the encryption engine unit performs encryption and decryption operations on data using AES;

[0055] The AES encryption process is:

[0056] Grouping and initial setting: Data is processed in groups, each group of data is 128 bits long, and the key length can be 128 bits, 192 bits or 256 bits;

[0057] Round key addition: Before each round of encryption operation begins, the current state is XORed with the round key;

[0058] Byte replacement: Use a fixed S-box to replace each byte in the state. The replacement rule is: input byte as the row and column index of the S-box, and output the byte value at the corresponding position in the S-box;

[0059] Row shift: Circular shift operation is performed on the rows in the state array: the first row remains unchanged, the second row is circularly shifted left by 1 byte, the third row is circularly shifted left by 2 bytes, and the fourth row is circularly shifted left by 3 bytes;

[0060] Column confusion: The columns in the state array are obfuscated by multiplying them with a fixed matrix, mixing each byte in the column with the corresponding element in the matrix;

[0061] Repeat: Repeat round key addition, byte substitution, row shift and column confusion;

[0062] Output ciphertext: After multiple rounds of operations, the final ciphertext is obtained;

[0063] The AES decryption process is:

[0064] Initial round key addition: XOR the current state with the round key;

[0065] Reverse column obfuscation: Perform reverse obfuscation operations on the columns in the state array;

[0066] Reverse shift: perform reverse circular shift operation on the rows in the state array;

[0067] Reverse byte substitution: Use the inverse mapping of the S-box to replace each byte in the state;

[0068] Round key addition: Repeat the round key addition operation until the last round;

[0069] Output plaintext: Get the final plaintext.

[0070] Furthermore, the access control module includes a role management unit, a user management unit, a permission management unit, an authentication unit, a multi-factor authentication (MFA) unit and a log recording unit. The role management unit is responsible for defining and managing roles in the system, including the creation, modification, deletion and permission allocation of roles. The user management unit is responsible for managing user registration, login, information update and logout. The permission management unit is responsible for defining and managing permissions in the system, including the creation, modification and deletion of permissions such as accessing resources and performing operations. The authentication unit is responsible for implementing user identity authentication and supporting multi-factor authentication methods such as passwords and biometrics. The multi-factor authentication (MFA) unit is responsible for providing other authentication factor verification services in addition to passwords, such as mobile phone verification codes, fingerprint recognition, etc. The log recording unit The log recording unit is responsible for recording the user's operation log, including access time, operation content, operation results, etc. When the user registers or updates information, the user management unit will send the user information to the role management unit. When creating or modifying a role, the role management unit interacts with the permission management unit to obtain and assign corresponding permissions to the role. When the user logs in, the user management unit will call the authentication unit for identity authentication. If MFA is enabled, the user management unit will interact with the multi-factor authentication (MFA) unit to perform additional authentication factor verification. In scenarios where factor authentication (MFA) is required, the authentication unit will call the factor authentication (MFA) unit to perform additional authentication factor verification. Each operation of the user will be recorded by the user management unit and sent to the log recording unit for storage.

[0071] Furthermore, the automated operation and maintenance module includes an automated deployment unit, a configuration management unit, a resource management unit, a monitoring unit, a troubleshooting unit, a log management unit and an automated repair unit. The automated deployment unit is responsible for using containerization technology (such as Docker) and automated deployment tools (such as Ansible, Kubernetes) to quickly deploy and expand the system. The configuration management unit is responsible for managing the configuration information of the application, including environment variables, configuration files, etc. The resource management unit is responsible for managing computing resources (such as CPU, memory, storage) and network resources to provide necessary resource support for application deployment. The monitoring unit is responsible for real-time monitoring of the system's performance, network status and data security, and timely warning and response to abnormal situations. The troubleshooting unit is responsible for providing automated troubleshooting and recovery functions to reduce system downtime and maintenance costs. The log management unit is responsible for centralized storage and management of system logs, supporting log retrieval and analysis. The automated repair unit is responsible for automatically performing repair operations based on the results of the troubleshooting unit to restore the system to normal When deploying an application, the automated deployment unit will obtain the configuration information of the application from the configuration management unit to ensure that the application runs according to the expected configuration. When deploying or expanding an application, the automated deployment unit will request the resource management unit to allocate necessary computing resources. After the deployment is completed, the resource management unit will report the resource usage to the monitoring unit. The monitoring unit will collect the resource usage data provided by the resource management unit in real time for analyzing the performance and resource utilization of the system. When the monitoring unit detects an abnormal situation, it will send the fault information to the troubleshooting unit for further analysis. When troubleshooting, the troubleshooting unit will obtain relevant log information from the log management unit to help locate the problem. After finding the cause of the fault, the troubleshooting unit will generate a repair instruction and send it to the automated repair unit to perform the repair operation. During the repair process, the automated repair unit needs to adjust resource allocation, and will interact with the resource management unit at this time. After the repair is completed, the automated repair unit will report the repair result to the monitoring unit so that the monitoring unit can update the system status information.

[0072] The present invention has the following beneficial effects:

[0073] 1. In the present invention, the DPoS efficient consensus mechanism is adopted, which significantly reduces the delay in the consensus process, improves the transaction processing speed, and enables the system to respond to and process user requests faster.

[0074] 2. In the present invention, by dividing the blockchain network into multiple sub-networks, the processing load is effectively dispersed, the overall processing capacity and throughput of the system are improved, and each shard independently processes part of the transaction, further shortening the transaction confirmation time and improving the user experience.

[0075] 3. In the present invention, operation and maintenance tools and technologies such as automated deployment, monitoring and troubleshooting are introduced, which significantly reduces manual intervention and reduces operation and maintenance costs. At the same time, the automated monitoring and early warning mechanism can detect and handle potential problems in a timely manner, reducing the risk of system failure. BRIEF DESCRIPTION OF THE DRAWINGS

[0076] Figure 1 A system block diagram of a secure storage system for an electronic information system proposed by the present invention;

[0077] Figure 2 This is a system block diagram of the consensus mechanism module in the present invention. DETAILED DESCRIPTION

[0078] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0079] See also Figure 1-Figure 2 As shown, the present invention is a secure storage system for an electronic information system, comprising:

[0080] Consensus mechanism module: responsible for implementing and optimizing the consensus mechanism in the blockchain network;

[0081] Sharding management module: responsible for dividing the blockchain network into multiple sub-networks (shards) and managing the communication and data synchronization between these sub-networks (shards);

[0082] Data encryption module: responsible for encrypting data in storage and transmission;

[0083] Access control module: responsible for assigning different roles and permissions to different users;

[0084] Automated operation and maintenance module: responsible for quickly deploying and expanding the system using containerization technology and automated deployment tools;

[0085] Interface and integration module: responsible for providing standardized API interfaces to facilitate integration and interaction with other systems and applications;

[0086] The shard management module distributes transactions to different sub-networks (shards) for processing according to the consensus results provided by the consensus mechanism module. The data encryption module encrypts the data, and the encrypted data is distributed to each sub-network (shard) for storage through the shard management module. After verifying the user's identity and authority, the access control module allows or denies the user's access request to the encrypted data. The automated operation and maintenance module monitors and manages the overall operation status of the system, including the performance of the consensus mechanism and the efficiency of sub-network (shard) management. When anomalies or performance bottlenecks are found, the automated operation and maintenance module automatically adjusts the consensus mechanism parameters or sharding strategies to optimize system performance.

[0087] The working principle of the electronic information system security storage system proposed by the present invention is that the shard management module first receives the consensus results from the consensus mechanism module, which include verified transactions and block information. The shard management module distributes the received transactions to the most appropriate sub-network (shard) for processing according to the current shard status (such as load, processing capacity, etc.) and the intelligent sharding algorithm, ensuring that necessary communication and data synchronization can be carried out between different shards to ensure data consistency and correct processing of cross-shard transactions;

[0088] The data encryption module uses the key management strategy to generate the necessary key pairs (public and private keys) and securely stores the private key in the hardware security module (HSM) or distributed key management system (DKMS). Before the data is written to the storage, it uses AES and the public key to encrypt the data. The encrypted data exists in ciphertext form to ensure that even if the data is stolen, it cannot be easily decrypted.

[0089] When a user initiates a request to access encrypted data, user identity authentication is first performed, including username and password verification, multi-factor authentication (MFA) and other steps. After confirming the user's identity, it is verified whether the user has the right to access the requested data based on the user's role and permission settings. Based on the results of user authentication and permission verification, a decision to allow or deny access is made. If the user has the right to access the encrypted data and the data is stored in ciphertext form, the corresponding private key is used to decrypt the data so that the user can access the plaintext data;

[0090] The automated operation and maintenance module monitors the overall operation status of the system in real time, including the performance of the consensus mechanism, the efficiency of sharding management, the execution of data encryption and access control, etc. Once an anomaly or performance bottleneck is found, the early warning mechanism is triggered immediately. The automated operation and maintenance module uses automated troubleshooting tools and techniques to quickly troubleshoot and diagnose early warning events, determine the root cause of the problem, and automatically adjust the consensus mechanism parameters, sharding strategies or other system configurations based on the results of troubleshooting and diagnosis to optimize system performance and reduce the risk of failures. The automated operation and maintenance module records log information of all monitoring and operation and maintenance activities, and generates regular reports for administrators' reference and analysis. These reports can help administrators understand the system's operating status, identify potential problems and formulate improvement measures.

[0091] In one embodiment, for the above-mentioned consensus mechanism module, the consensus mechanism module includes a representative node election unit, a voting result processing unit, a block producer selection unit, a block generation unit, a block verification unit, a blockchain state update unit, a network communication unit and a representative rotation unit. The representative node election unit is responsible for processing the election process of the representative node, which includes collecting votes, calculating the voting results, and determining which nodes will become representative nodes. The voting result processing unit is responsible for processing the collected voting data and calculating which nodes have obtained sufficient support to become representative nodes. The block producer selection unit selects block producers from the representative nodes according to the election results. The block producer will be responsible for generating and verifying new blocks. The block generation unit is responsible for generating new blocks and broadcasting them to the network for verification by other nodes. The block verification unit is responsible for verifying whether the newly generated blocks comply with the rules of the blockchain network, including the legitimacy of the transaction, the hash value of the block, etc. The blockchain state update unit is responsible for adding the new block to the end of the blockchain and updating the blockchain after the verification is passed. The network communication unit is responsible for the communication between nodes in the blockchain network, including the dissemination of information such as blocks, transactions, and election results. The representative rotation unit is responsible for managing the rotation process of representative nodes to ensure the diversity of representative nodes and the stability of the network. The representative node election unit sends voting data to the voting result processing unit, which processes and returns the election result. The voting result processing unit sends the election result to the block producer selection unit and the representative rotation unit. The block producer selection unit sends the block producer information to the block generation unit, and the block generation unit sends the newly generated block to the block verification unit. The block verification unit sends the verified block to the blockchain status update unit. The blockchain status update unit sends the updated blockchain status information to the network communication unit for broadcasting. The network communication unit is responsible for forwarding the information to other nodes and corresponding processing units in the network. The representative rotation unit sends the rotation result to the network communication unit for broadcasting to ensure that all nodes understand the current representative node situation.

[0092] In one embodiment, for the above-mentioned sharding management module, the sharding management module includes a sharding division unit, an intelligent sharding algorithm unit, a sharding state monitoring unit, a sharding communication management unit and a node information maintenance unit. The sharding division unit is responsible for dividing the blockchain network into multiple shards, and performing initial division according to a preset division strategy (such as transaction type, node geographical location, node load, etc.). The intelligent sharding algorithm unit implements an intelligent sharding algorithm, and automatically adjusts the sharding layout according to dynamic factors such as transaction type, data volume and node load to achieve load balancing and improve processing capabilities. The sharding state monitoring unit is responsible for monitoring the state and performance of the shards, including the transaction processing speed, node connection status, data synchronization status, etc. in the shards, to ensure the stable operation and efficient processing of the shards. The sharding communication management unit is responsible for managing the communication and data synchronization between shards to ensure the consistency and real-time performance of the data between shards. The node information maintenance unit is responsible for maintaining the information of all nodes in the blockchain network, including the geographical location, computing The sharding division unit provides an initial sharding division plan, and the intelligent sharding algorithm unit dynamically adjusts the sharding layout according to the network status. The two realize the optimization of the sharding strategy through data interaction. The sharding division unit and the intelligent sharding algorithm unit adjust and optimize the sharding division and layout according to the real-time data provided by the sharding status monitoring unit to ensure the stability and efficiency of the sharding. The sharding status monitoring unit monitors the communication and data synchronization between shards and sends the relevant information to the sharding communication management unit. The sharding communication management unit relies on the node status information provided by the node information maintenance unit to manage the node connection and data synchronization between shards. Each unit in the sharding management module needs to interact with the transaction processing unit to ensure the correct processing of transactions and the consistency of data between shards. For example, the intelligent sharding algorithm unit needs to understand the transaction type and data volume in the current network to adjust the sharding layout; the sharding communication management unit needs to ensure the correct processing and data synchronization of cross-shard transactions.

[0093] In one embodiment, for the above-mentioned intelligent sharding algorithm unit, the intelligent sharding algorithm unit automatically adjusts the sharding layout according to the dynamic factors, including the following steps:

[0094] Demand Analysis:

[0095] Transaction type: Different transaction types consume different system resources (such as CPU, memory, I / O, etc.), and differentiated sharding strategies are implemented based on transaction types;

[0096] Data volume: The size of data directly affects query and processing time. Large data volumes are distributed across multiple shards to reduce the pressure on a single node.

[0097] Node load: monitor the load of each node in real time to prevent overloaded nodes from receiving more requests and allocate idle resources reasonably;

[0098] Data sharding strategy:

[0099] Hash sharding: Sharding based on the hash value of a field in the data (such as user ID, transaction ID), suitable for evenly distributed data;

[0100] Range sharding: distributes data to different shards by range (such as time, ID range), which is suitable for ordered data;

[0101] Composite sharding: Combine hash and range sharding strategies and flexibly select according to specific circumstances;

[0102] Load monitoring and evaluation:

[0103] Real-time monitoring: Use the heartbeat mechanism to collect key indicators such as CPU usage, memory usage, I / O waiting time, etc. of each node in real time;

[0104] Load evaluation: Based on the collected data, evaluate the node load and determine whether the sharding needs to be adjusted;

[0105] Dynamic adjustment strategy:

[0106] Data migration: When a shard has too much data or the node load is too high, the data migration mechanism is triggered to migrate data from one shard to other idle shards or nodes.

[0107] Sharding reorganization: re-planning the sharding strategy according to the new load conditions and transaction patterns, such as increasing or decreasing the number of shards, adjusting the sharding range, etc.;

[0108] Failover: When a node fails, the data and services of the failed node are transferred to other healthy nodes to ensure high availability of the system;

[0109] Architecture design: Design distributed system architecture, including data sharding layer, load balancing layer, data storage layer, etc.;

[0110] Component development:

[0111] Shard manager: responsible for the creation, adjustment and data migration of shards;

[0112] Load balancer: dynamically adjusts the distribution of data requests based on node load conditions;

[0113] Monitoring and alarm system: monitors node status in real time and issues alarms in abnormal situations;

[0114] Testing and optimization: Conduct stress testing and performance testing, and adjust algorithm parameters and system configuration based on test results to achieve optimal performance.

[0115] In one embodiment, for the above data sharding strategy, in the data sharding strategy:

[0116] Hash Sharding:

[0117] Choose a hash function: Choose a suitable hash function, such as MD5, SHA-1, etc., which converts an input of any length into an output (hash value) of fixed length;

[0118] Calculate hash value: perform hash calculation on the key fields of the data to obtain the hash value;

[0119] Mapping to shards: Determine how to map the hash value to a specific shard based on the number of shards N. Take a portion of the hash value (such as the first or last few digits), then take the modulus (%) of N. The result is the shard number where the data should be stored: shard_index = hash(key)%N, where hash(key) is the hash value of the field key and N is the total number of shards.

[0120] Range Sharding:

[0121] Determine the shard range: Divide the entire data range into several continuous sub-ranges according to the data distribution, and each sub-range corresponds to a shard;

[0122] Distribute data: When new data arrives, determine which sub-range it belongs to based on its field value and distribute the data to the corresponding shard. For example, if sharding is by time, the time can be divided into multiple time periods (such as one shard per day), and then the data is distributed to the corresponding shard based on its timestamp.

[0123] Composite Sharding:

[0124] Analyze requirements: Analyze the characteristics and query patterns of the data to determine which fields are suitable for hash sharding and which fields are suitable for range sharding;

[0125] Design a composite strategy: Based on the analysis results, design a composite sharding strategy. For example, you can first shard by time range, and then perform secondary sharding by the hash value of the user ID within each time range.

[0126] Implement sharding: Implement sharded storage of data based on the designed composite strategy.

[0127] In one embodiment, for the above-mentioned data encryption module, the data encryption module includes an encryption engine unit, a key management unit, a data transmission unit and a data storage unit. The encryption engine unit is responsible for using an encryption algorithm to perform encryption and decryption operations on data. The key management unit is responsible for key generation, storage, distribution and update. The data transmission unit is responsible for data transmission. The data storage unit is responsible for data storage. When the encryption engine unit needs to encrypt data, the key management unit requests the corresponding key from the key management unit. The key management unit generates or provides the key to the encryption engine unit according to the request. During the decryption process, the encryption engine unit also obtains the corresponding key from the key management unit. Before sending the data, the data transmission unit sends the data to be sent to the encryption engine unit for encryption. The encryption engine unit encrypts the data using the key, generates a ciphertext, and returns it to the data transmission unit. Before storing the data, the data storage unit sends the data to be stored to the encryption engine unit for encryption.

[0128] In one embodiment, for the above encryption engine unit, the encryption engine unit uses AES to perform encryption and decryption operations on data;

[0129] The AES encryption process is:

[0130] Grouping and initial setting: Data is processed in groups, each group of data is 128 bits long, and the key length can be 128 bits, 192 bits or 256 bits;

[0131] Round key addition: Before each round of encryption operation begins, the current state is XORed with the round key;

[0132] Byte replacement: Use a fixed S-box to replace each byte in the state. The replacement rule is: input byte as the row and column index of the S-box, and output the byte value at the corresponding position in the S-box;

[0133] Row shift: Circular shift operation is performed on the rows in the state array: the first row remains unchanged, the second row is circularly shifted left by 1 byte, the third row is circularly shifted left by 2 bytes, and the fourth row is circularly shifted left by 3 bytes;

[0134] Column confusion: The columns in the state array are obfuscated by multiplying them with a fixed matrix, mixing each byte in the column with the corresponding element in the matrix;

[0135] Repeat: Repeat round key addition, byte substitution, row shift and column confusion;

[0136] Output ciphertext: After multiple rounds of operations, the final ciphertext is obtained;

[0137] The AES decryption process is:

[0138] Initial round key addition: XOR the current state with the round key;

[0139] Reverse column obfuscation: Perform reverse obfuscation operations on the columns in the state array;

[0140] Reverse shift: perform reverse circular shift operation on the rows in the state array;

[0141] Reverse byte substitution: Use the inverse mapping of the S-box to replace each byte in the state;

[0142] Round key addition: Repeat the round key addition operation until the last round;

[0143] Output plaintext: Get the final plaintext.

[0144] In one embodiment, for the above-mentioned access control module, the access control module includes a role management unit, a user management unit, a permission management unit, an authentication unit, a multi-factor authentication (MFA) unit and a log recording unit. The role management unit is responsible for defining and managing roles in the system, including the creation, modification, deletion and permission allocation of roles. The user management unit is responsible for managing user registration, login, information update and logout. The permission management unit is responsible for defining and managing permissions in the system, including the creation, modification and deletion of permissions such as accessing resources and performing operations. The authentication unit is responsible for implementing user identity authentication and supporting multi-factor authentication methods such as passwords and biometrics. The multi-factor authentication (MFA) unit is responsible for providing other authentication factor verification services in addition to passwords, such as mobile phone verification codes, fingerprints, etc. The log recording unit is responsible for recording the user's operation log, including access time, operation content, operation results, etc. When the user registers or updates information, the user management unit will send the user information to the role management unit. When the role management unit creates or modifies a role, it interacts with the permission management unit to obtain and assign corresponding permissions to the role. When the user logs in, the user management unit will call the authentication unit for identity authentication. If MFA is enabled, the user management unit will interact with the multi-factor authentication (MFA) unit to perform additional authentication factor verification. In a scenario where factor authentication (MFA) is required, the authentication unit will call the factor authentication (MFA) unit to perform additional authentication factor verification. Each operation of the user will be recorded by the user management unit and sent to the log recording unit for storage.

[0145] In one embodiment, for the above-mentioned automated operation and maintenance module, the automated operation and maintenance module includes an automated deployment unit, a configuration management unit, a resource management unit, a monitoring unit, a troubleshooting unit, a log management unit and an automated repair unit. The automated deployment unit is responsible for using containerization technology (such as Docker) and automated deployment tools (such as Ansible, Kubernetes) to quickly deploy and expand the system. The configuration management unit is responsible for managing the configuration information of the application, including environment variables, configuration files, etc. The resource management unit is responsible for managing computing resources (such as CPU, memory, storage) and network resources to provide necessary resource support for application deployment. The monitoring unit is responsible for real-time monitoring of the system's performance, network status and data security, and timely warning and response to abnormal situations. The troubleshooting unit is responsible for providing automated troubleshooting and recovery functions to reduce system downtime and maintenance costs. The log management unit is responsible for centralized storage and management of system logs, supporting log retrieval and analysis, and the automated repair unit is responsible for automatically performing repair operations based on the results of the troubleshooting unit. To restore the normal operation of the system, the automated deployment unit will obtain the configuration information of the application from the configuration management unit when deploying the application to ensure that the application runs according to the expected configuration. When deploying or expanding the application, the automated deployment unit will request the resource management unit to allocate necessary computing resources. After the deployment is completed, the resource management unit will report the resource usage to the monitoring unit. The monitoring unit will collect the resource usage data provided by the resource management unit in real time for analyzing the performance and resource utilization of the system. When the monitoring unit detects an abnormal situation, it will send the fault information to the troubleshooting unit for further analysis. When troubleshooting, the troubleshooting unit will obtain relevant log information from the log management unit to help locate the problem. After finding the cause of the fault, the troubleshooting unit will generate a repair instruction and send it to the automated repair unit to perform the repair operation. During the repair process, the automated repair unit needs to adjust the resource allocation, and will interact with the resource management unit at this time. After the repair is completed, the automated repair unit will report the repair result to the monitoring unit so that the monitoring unit can update the system status information.

[0146] Although embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that various changes, modifications, substitutions and variations may be made to the embodiments without departing from the principles and spirit of the present invention, and that the scope of the present invention is defined by the appended claims and their equivalents.

Claims

1. An electronic information system security storage system, characterized in that: include: Consensus mechanism module: responsible for implementing and optimizing the consensus mechanism in the blockchain network; Sharding management module: responsible for dividing the blockchain network into multiple sub-networks and managing the communication and data synchronization between these sub-networks; Data encryption module: responsible for encrypting data in storage and transmission; Access control module: responsible for assigning different roles and permissions to different users; Automated operation and maintenance module: responsible for quickly deploying and expanding the system using containerization technology and automated deployment tools; Interface and integration module: responsible for providing standardized API interfaces to facilitate integration and interaction with other systems and applications; The sharding management module distributes transactions to different sub-networks for processing according to the consensus results provided by the consensus mechanism module. The data encryption module encrypts the data, and the encrypted data is distributed to each sub-network for storage through the sharding management module. After verifying the user's identity and authority, the access control module allows or denies the user's access request to the encrypted data. The automated operation and maintenance module monitors and manages the overall operation status of the system, including the performance of the consensus mechanism and the efficiency of sub-network management. When anomalies or performance bottlenecks are found, the automated operation and maintenance module automatically adjusts the consensus mechanism parameters or sharding strategies.

2. The electronic information system security storage system according to claim 1, characterized in that: The consensus mechanism module includes a representative node election unit, a voting result processing unit, a block producer selection unit, a block generation unit, a block verification unit, a blockchain status update unit, a network communication unit and a representative rotation unit. The representative node election unit is responsible for processing the election process of the representative node. The voting result processing unit is responsible for processing the collected voting data and calculating which nodes have obtained sufficient support to become representative nodes. The block producer selection unit selects block producers from the representative nodes according to the election results. The block producers will be responsible for generating and verifying new blocks. The block generation unit is responsible for generating new blocks and broadcasting them to the network for verification by other nodes. The block verification unit is responsible for verifying whether the newly generated blocks comply with the rules of the blockchain network. The blockchain status update unit is responsible for adding new blocks to the end of the blockchain and updating the blocks after verification. The network communication unit is responsible for the communication between nodes in the blockchain network, the representative rotation unit is responsible for managing the rotation process of the representative node, the representative node election unit sends the voting data to the voting result processing unit, the voting result processing unit processes and returns the election result, the voting result processing unit sends the election result to the block producer selection unit and the representative rotation unit, the block producer selection unit sends the block producer information to the block generation unit, the block generation unit sends the newly generated block to the block verification unit, the block verification unit sends the verified block to the blockchain status update unit, the blockchain status update unit sends the updated blockchain status information to the network communication unit for broadcasting, the network communication unit is responsible for forwarding the information to other nodes and corresponding processing units in the network, and the representative rotation unit sends the rotation result to the network communication unit for broadcasting.

3. The electronic information system security storage system according to claim 1, characterized in that: The shard management module includes a shard division unit, an intelligent sharding algorithm unit, a sharding state monitoring unit, a sharding communication management unit and a node information maintenance unit. The shard division unit is responsible for dividing the blockchain network into multiple shards and performing initial division according to a preset division strategy. The intelligent sharding algorithm unit automatically adjusts the sharding layout according to dynamic factors to achieve load balancing and improve processing capabilities. The sharding state monitoring unit is responsible for monitoring the state and performance of the shards. The sharding communication management unit is responsible for managing communication and data synchronization between shards. The node information maintenance unit is responsible for maintaining the information of all nodes in the blockchain network. The shard division unit provides initial The initial sharding division scheme, the intelligent sharding algorithm unit dynamically adjusts the sharding layout according to the network status, and the two realize the optimization of the sharding strategy through data interaction. The sharding division unit and the intelligent sharding algorithm unit adjust and optimize the sharding division and layout according to the real-time data provided by the sharding status monitoring unit. The sharding status monitoring unit monitors the communication and data synchronization between shards, and sends the relevant information to the sharding communication management unit. The sharding communication management unit relies on the node status information provided by the node information maintenance unit to manage the node connection and data synchronization between shards. Each unit in the sharding management module needs to interact with the transaction processing unit.

4. The electronic information system security storage system according to claim 3, characterized in that: The intelligent sharding algorithm unit automatically adjusts the sharding layout according to dynamic factors, including the following steps: Demand Analysis: Transaction type: Different transaction types consume different system resources, and differentiated sharding strategies are implemented based on transaction types; Data volume: The size of data directly affects query and processing time. Large data volumes are distributed across multiple shards to reduce the pressure on a single node. Node load: monitor the load of each node in real time to prevent overloaded nodes from receiving more requests; Data sharding strategy: Hash sharding: Sharding based on the hash value of a field in the data; Range sharding: Allocate data to different shards by range; Composite sharding: Combine hash and range sharding strategies and flexibly select according to specific circumstances; Load monitoring and evaluation: Real-time monitoring: Use the heartbeat mechanism to collect key indicators of each node in real time; Load evaluation: Based on the collected data, evaluate the node load and determine whether the sharding needs to be adjusted; Dynamic adjustment strategy: Data migration: When a shard has too much data or the node load is too high, the data migration mechanism is triggered to migrate data from one shard to other idle shards or nodes. Sharding reorganization: re-planning the sharding strategy based on the new load conditions and transaction patterns; Failover: When a node fails, the data and services of the failed node are transferred to other healthy nodes.

5. The electronic information system security storage system according to claim 4, characterized in that: In the data sharding strategy: Hash Sharding: Select a hash function: Select a hash function that converts an input of arbitrary length into an output of fixed length; Calculate hash value: perform hash calculation on the key fields of the data to obtain the hash value; Mapping to shards: Determine how to map the hash value to a specific shard based on the number of shards N. Take a portion of the hash value, then modulo N. The result is the shard number where the data should be stored: shard_index = hash(key) % N, where hash(key) is the hash value of the field key and N is the total number of shards. Range Sharding: Determine the shard range: Divide the entire data range into several continuous sub-ranges according to the data distribution, and each sub-range corresponds to a shard; Distribute data: When new data arrives, determine which sub-range it belongs to based on its field value and distribute the data to the corresponding shard; Composite Sharding: Analyze requirements: Analyze the characteristics and query patterns of the data to determine which fields are suitable for hash sharding and which fields are suitable for range sharding; Design a composite strategy: Based on the analysis results, design a composite sharding strategy; Implement sharding: Implement sharded storage of data based on the designed composite strategy.

6. The electronic information system security storage system according to claim 1, characterized in that: The data encryption module includes an encryption engine unit, a key management unit, a data transmission unit and a data storage unit. The encryption engine unit is responsible for using an encryption algorithm to encrypt and decrypt data. The key management unit is responsible for generating, storing, distributing and updating keys. The data transmission unit is responsible for data transmission. The data storage unit is responsible for data storage. When the encryption engine unit needs to encrypt data, it requests the corresponding key from the key management unit. The key management unit generates or provides the key to the encryption engine unit according to the request. During the decryption process, the encryption engine unit also obtains the corresponding key from the key management unit. Before sending the data, the data transmission unit sends the data to be sent to the encryption engine unit for encryption. The encryption engine unit encrypts the data using the key, generates a ciphertext, and returns it to the data transmission unit. Before storing the data, the data storage unit sends the data to be stored to the encryption engine unit for encryption.

7. The electronic information system security storage system according to claim 1, characterized in that: The encryption engine unit performs encryption and decryption operations on data using AES; The AES encryption process is: Grouping and initial setting: Data is processed in groups, each group of data is 128 bits long, and the key length can be 128 bits, 192 bits or 256 bits; Round key addition: Before each round of encryption operation begins, the current state is XORed with the round key; Byte replacement: Use a fixed S-box to replace each byte in the state. The replacement rule is: input byte as the row and column index of the S-box, and output the byte value at the corresponding position in the S-box; Row shift: Circular shift operation is performed on the rows in the state array: the first row remains unchanged, the second row is circularly shifted left by 1 byte, the third row is circularly shifted left by 2 bytes, and the fourth row is circularly shifted left by 3 bytes; Column confusion: The columns in the state array are obfuscated by multiplying them with a fixed matrix, mixing each byte in the column with the corresponding element in the matrix; Repeat: Repeat round key addition, byte substitution, row shift and column confusion; Output ciphertext: After multiple rounds of operations, the final ciphertext is obtained; The AES decryption process is: Initial round key addition: XOR the current state with the round key; Reverse column obfuscation: Perform reverse obfuscation operations on the columns in the state array; Reverse shift: perform reverse circular shift operation on the rows in the state array; Reverse byte substitution: Use the inverse mapping of the S-box to replace each byte in the state; Round key addition: Repeat the round key addition operation until the last round; Output plaintext: Get the final plaintext.

8. The electronic information system security storage system according to claim 1, characterized in that: The access control module includes a role management unit, a user management unit, a permission management unit, an authentication unit, a multi-factor authentication unit and a log recording unit. The role management unit is responsible for defining and managing roles in the system. The user management unit is responsible for managing user registration, login, information update and logout. The permission management unit is responsible for defining and managing permissions in the system. The authentication unit is responsible for implementing user identity authentication. The multi-factor authentication unit is responsible for providing other authentication factor verification services in addition to passwords. The log recording unit is responsible for recording user operation logs. When a user registers or updates information, the user management unit will send user information to the role management unit. When creating or modifying a role, the role management unit interacts with the permission management unit to obtain and assign corresponding permissions to the role. When a user logs in, the user management unit will call the authentication unit for identity authentication. The user management unit interacts with the multi-factor authentication unit for additional authentication factor verification. In a scenario where factor authentication is required, the authentication unit will call the factor authentication unit for additional authentication factor verification. Each operation of the user will be recorded by the user management unit and sent to the log recording unit for storage.

9. The electronic information system security storage system according to claim 1, characterized in that: The automated operation and maintenance module includes an automated deployment unit, a configuration management unit, a resource management unit, a monitoring unit, a troubleshooting unit, a log management unit and an automated repair unit. The automated deployment unit is responsible for using containerization technology and automated deployment tools to quickly deploy and expand the system. The configuration management unit is responsible for managing the configuration information of the application. The resource management unit is responsible for managing computing resources and network resources. The monitoring unit is responsible for real-time monitoring of the system's performance, network status and data security, and for early warning and response to abnormal situations. The troubleshooting unit is responsible for providing automated troubleshooting and recovery functions. The log management unit is responsible for centralized storage and management of system logs, and supports log retrieval and analysis. The automated repair unit is responsible for automatically performing repair operations based on the results of the troubleshooting unit. When deploying an application, the automated deployment unit will obtain the application's Configuration information. When deploying or expanding an application, the automated deployment unit will request the resource management unit to allocate necessary computing resources. After the deployment is completed, the resource management unit will report the resource usage to the monitoring unit. The monitoring unit will collect the resource usage data provided by the resource management unit in real time for analyzing the system's performance and resource utilization. When the monitoring unit detects an abnormality, it will send the fault information to the troubleshooting unit for further analysis. When troubleshooting, the troubleshooting unit will obtain relevant log information from the log management unit. After finding the cause of the fault, the troubleshooting unit will generate a repair instruction and send it to the automated repair unit to perform the repair operation. During the repair process, the automated repair unit needs to adjust resource allocation, and will interact with the resource management unit at this time. After the repair is completed, the automated repair unit will report the repair result to the monitoring unit.

Citation Information

Cited By

  • Multi-data fusion method and system based on edge calculation

    CN119598404A

  • A multi-data fusion method and system based on edge computing

    CN119598404B

  • Data security processing system and method based on port information

    CN119740253A

  • A data security processing system and method based on port information

    CN119740253B

  • Internet of Things equipment identity authentication method based on block chain

    CN120090857A