Virtual storage method and device based on hybrid block chain and computer equipment

Through the virtualized storage method based on hybrid blockchain, the computing power and energy consumption problems of PKI certification in IoT devices are solved, and the secure distribution and storage of data is realized, the storage efficiency and security are improved, and the risk of data leakage is reduced. .

CN119276475AInactive Publication Date: 2025-01-07GUANGZHOU DINGJIA COMPUTER TECHNOLOGY CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202411300079.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-18
Publication Date
2025-01-07
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

In the prior art, PKI certified IoT devices have limited computing power and high energy consumption, resulting in reduced performance and shortened battery life. At the same time, certificate management is complex and scalable, making it difficult to ensure data security, especially in distributed storage environments. Under, the risk of data breaches and unauthorized access is higher.

Method used

Using a virtualized storage method based on hybrid blockchain, file data is divided into multiple data slices, and verified and stored through pseudo-anonymous public key infrastructure and blockchain network, and using the self-organized peer-to-peer of private blockchain networks The decentralized characteristics of networks and public blockchains realize the secure distribution and storage of data.

Benefits of technology

It improves the security and efficiency of data storage, reduces the risk of single point of failure and the risk of data being attacked, enhances the confidentiality and reliability of data, and ensures the secure transmission and storage of data between different nodes.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119276475A_ABST
    Figure CN119276475A_ABST
Patent Text Reader

Abstract

The invention relates to a virtual storage method and device based on a hybrid block chain and computer equipment, and relates to the technical field of storage virtualization. The method comprises the following steps: acquiring file data to be stored of any hybrid node equipment; transmitting to-be-stored file data from any hybrid node device to the main node device; segmenting the stored file data based on a file manager of the main node equipment to obtain at least two data pieces; and packaging each data piece according to a preset data structure to obtain a virtual data block corresponding to each data piece, and randomly storing each virtual data block in each target hybrid node device according to a preset sequence. By adopting the method, the security of the data storage process can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of storage virtualization technology, and in particular to a virtualized storage method, apparatus, computer device, computer-readable storage medium, and computer program product based on a hybrid blockchain. Background Art

[0002] Existing technologies mainly include the use of public key infrastructure (PKI) to authenticate Internet of Things (IoT) devices and traditional storage virtualization technology. Among them, the PKI authentication method consists of a certificate authority, a registration authority, a certificate repository, etc. The certificate authority issues a digital certificate for the IoT device, which contains the device's public key and identity information. When the device communicates or transmits data, it uses a private key to digitally sign, and the recipient confirms the device identity and data integrity by verifying the public key in the digital certificate. Traditional storage virtualization technology abstracts physical storage devices into logical storage resources, integrates multiple different storage devices into a storage pool, and users access them through a unified interface without having to worry about specific physical devices.

[0003] However, there are many drawbacks for PKI-authenticated IoT devices. On the one hand, IoT devices usually have limited computing power and strict energy consumption requirements, and the complex encryption operations and certificate management of PKI consume a lot of computing resources and energy, resulting in reduced device performance and shortened battery life. At the same time, the management process of issuing, updating and revoking certificates is complicated, which increases the cost of system management. On the other hand, for large-scale IoT device networks, the scalability of PKI is limited. As the number of devices increases, the burden of certificate management increases dramatically, which may affect system performance or even cause a crash. Traditional storage virtualization technology is insufficient in data security and privacy. It lacks strong encryption methods and strict access control mechanisms, and it is difficult to effectively prevent data leakage and unauthorized access. Especially in a distributed storage environment, it is difficult to ensure the secure transmission and storage of data between different nodes, and the risk of data being tampered with, lost or leaked is high. Therefore, the current storage method has the problem of low data security. Summary of the invention

[0004] Based on this, it is necessary to provide a hybrid blockchain-based virtualized storage method, device, computer equipment, computer-readable storage medium and computer program product that can improve the security of the data storage process in response to the above technical problems.

[0005] In a first aspect, an embodiment of the present application provides a virtualized storage method based on a hybrid blockchain.

[0006] The method comprises:

[0007] Obtain file data to be stored in any hybrid node device; any hybrid node is any node device in a private blockchain network that has a file storage requirement;

[0008] The file data to be stored is transmitted from any of the hybrid node devices to the master node device; the master node device is a hybrid node device in the private blockchain network with data distribution and aggregation functions;

[0009] Based on the file manager of the master node device, the stored file data is divided to obtain at least two data slices;

[0010] Each of the data slices is encapsulated according to a preset data structure to obtain a virtual data block corresponding to each of the data slices, and each of the virtual data blocks is randomly stored in each target hybrid node device according to a preset order; the target hybrid node device is each node device in the private blockchain network.

[0011] In one embodiment, encapsulating each of the data slices according to a preset data structure to obtain a virtual data block corresponding to each of the data slices includes:

[0012] Performing data verification on each of the data slices to obtain a verification result;

[0013] When the verification result is that the verification is passed, the virtual data block is generated according to the data slice that has passed the verification.

[0014] In one embodiment, the method further comprises:

[0015] If the verification result is that the verification is passed, the virtual data blocks corresponding to the data pieces that have passed the verification are packaged to obtain transaction data;

[0016] The transaction data is stored in a public blockchain network.

[0017] In one embodiment, performing data verification on each of the data slices to obtain a verification result includes:

[0018] Verifying the digital signature corresponding to the data piece by using a pseudo-anonymous public key infrastructure technology to obtain the verification result corresponding to the digital signature;

[0019] Based on the consensus mechanism in the blockchain network, the timestamp is verified by the current time to obtain the verification result corresponding to the timestamp.

[0020] In one embodiment, the method further comprises:

[0021] When the target hybrid node device in the private blockchain is started, sending broadcast information to other target hybrid node devices;

[0022] In response to the reply information of the other target hybrid node devices to the broadcast information, a connection list corresponding to the private blockchain is established; the connection list is used to generate a self-sufficient peer-to-peer network.

[0023] In one of the embodiments, the step of randomly storing the virtual data blocks in the target hybrid node devices according to a preset order includes:

[0024] Acquire the file storage order of each of the virtual data blocks as the preset order;

[0025] Generate a file distribution random number, use the preset order as the file distribution order of each virtual data block, and distribute each virtual data block to each target hybrid node device according to the file distribution object represented by the file distribution random number;

[0026] Each of the hybrid node devices stores each of the virtual data.

[0027] In a second aspect, the present application also provides a virtualized storage device based on a hybrid blockchain. The device comprises:

[0028] A file data acquisition module, used to acquire file data to be stored in any hybrid node device; any hybrid node is any node device in a private blockchain network that has a file storage requirement;

[0029] A file data transmission module, used to transmit the file data to be stored from any of the hybrid node devices to the master node device; the master node device is a hybrid node device with data distribution and aggregation functions in the private blockchain network;

[0030] A file data segmentation module, configured to segment the stored file data based on the file manager of the master node device to obtain at least two data slices;

[0031] The virtual block storage module is used to encapsulate each of the data slices according to a preset data structure, obtain virtual data blocks corresponding to each of the data slices, and randomly store each of the virtual data blocks in each target hybrid node device according to a preset order; the target hybrid node device is each node device in the private blockchain network.

[0032] In a third aspect, the present application further provides a computer device. The computer device includes a memory and a processor, the memory stores a computer program, and the processor implements the following steps when executing the computer program:

[0033] Obtain file data to be stored in any hybrid node device; any hybrid node is any node device in a private blockchain network that has a file storage requirement;

[0034] The file data to be stored is transmitted from any of the hybrid node devices to the master node device; the master node device is a hybrid node device in the private blockchain network with data distribution and aggregation functions;

[0035] Based on the file manager of the master node device, the stored file data is divided to obtain at least two data slices;

[0036] Each of the data slices is encapsulated according to a preset data structure to obtain a virtual data block corresponding to each of the data slices, and each of the virtual data blocks is randomly stored in each target hybrid node device according to a preset order; the target hybrid node device is each node device in the private blockchain network.

[0037] In a fourth aspect, the present application further provides a computer-readable storage medium. The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the following steps are implemented:

[0038] Obtain file data to be stored in any hybrid node device; any hybrid node is any node device in a private blockchain network that has a file storage requirement;

[0039] The file data to be stored is transmitted from any of the hybrid node devices to the master node device; the master node device is a hybrid node device in the private blockchain network with data distribution and aggregation functions;

[0040] Based on the file manager of the master node device, the stored file data is divided to obtain at least two data slices;

[0041] Each of the data slices is encapsulated according to a preset data structure to obtain a virtual data block corresponding to each of the data slices, and each of the virtual data blocks is randomly stored in each target hybrid node device according to a preset order; the target hybrid node device is each node device in the private blockchain network.

[0042] In a fifth aspect, the present application further provides a computer program product. The computer program product includes a computer program, and when the computer program is executed by a processor, the following steps are implemented:

[0043] Obtain file data to be stored in any hybrid node device; any hybrid node is any node device in a private blockchain network that has a file storage requirement;

[0044] The file data to be stored is transmitted from any of the hybrid node devices to the master node device; the master node device is a hybrid node device in the private blockchain network with data distribution and aggregation functions;

[0045] Based on the file manager of the master node device, the stored file data is divided to obtain at least two data slices;

[0046] Each of the data slices is encapsulated according to a preset data structure to obtain a virtual data block corresponding to each of the data slices, and each of the virtual data blocks is randomly stored in each target hybrid node device according to a preset order; the target hybrid node device is each node device in the private blockchain network.

[0047] The above-mentioned virtualized storage method, device, computer equipment, storage medium and computer program product based on hybrid blockchain first obtain the file data to be stored from any hybrid node device and transmit it to the master node device. The master node device uses the file manager to divide the file into at least two data slices, and then encapsulates each data slice into a virtual data block according to a preset data structure. Finally, each virtual data block is randomly stored in each target hybrid node device in a preset order; distributed storage is realized, storage efficiency and security are improved, and single point failure is avoided. At the same time, data segmentation and random storage methods enhance the confidentiality of data and reduce the risk of data being attacked. BRIEF DESCRIPTION OF THE DRAWINGS

[0048] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the related technologies, the drawings required for use in the embodiments or the related technical descriptions are briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0049] Figure 1 This is an application environment diagram of a virtualized storage method based on a hybrid blockchain in one embodiment;

[0050] Figure 2 The figure is a flow chart of a virtualized storage method based on a hybrid blockchain in one embodiment;

[0051] Figure 3 It is a flowchart of a virtualized storage method based on a hybrid blockchain in another embodiment;

[0052] Figure 4 The following is an architectural diagram of a virtualized storage method based on a hybrid blockchain in one embodiment;

[0053] Figure 5 It is a structural block diagram of a virtualized storage device based on a hybrid blockchain in one embodiment;

[0054] Figure 6 is an internal structure diagram of a computer device in one embodiment;

[0055] Figure 7 FIG. 4 is a diagram showing the internal structure of a computer device in another embodiment. DETAILED DESCRIPTION

[0056] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0057] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant laws, regulations and standards of relevant countries and regions.

[0058] The virtualized storage method based on hybrid blockchain provided in the embodiment of the present application can be applied to Figure 1 In the application environment shown, the terminal 102 communicates with the server 104 through a network.

[0059] The terminal 102 may be, but is not limited to, various personal computers, laptops, smart phones, tablet computers, IoT devices, and portable wearable devices. The IoT devices may be smart speakers, smart TVs, smart air conditioners, smart car-mounted devices, etc. The portable wearable devices may be smart watches, smart bracelets, head-mounted devices, etc. The server 104 may be implemented as an independent server or a server cluster consisting of multiple servers.

[0060] In one embodiment, Figure 2 As shown, a virtualized storage method based on a hybrid blockchain is provided, and the method is applied to Figure 1 The terminal 102 in the example is used as an example to illustrate, and the following steps are included:

[0061] S201, obtaining file data to be stored in any hybrid node device.

[0062] Among them, any hybrid node is any node device in the private blockchain network that has file storage requirements.

[0063] Among them, nodes refer to computers or devices connected to the blockchain network; hybrid nodes refer to the entry nodes accessed by file managers, which are responsible for encrypting and transmitting data to the public blockchain network. As a key part of connecting devices to blockchains, hybrid nodes are responsible for encrypting and transmitting data to the public blockchain network on the one hand, and verifying and storing data in private blockchain networks on the other.

[0064] Among them, the private blockchain network consists of multiple hybrid nodes and is only open to specific entities. It can protect data privacy and achieve efficient management and security control of internal file storage systems.

[0065] S202, transferring the file data to be stored from any hybrid node device to the master node device.

[0066] Among them, the master node device is a hybrid node device with data distribution and aggregation functions in the private blockchain network. The master node is also called the first hybrid node.

[0067] Exemplarily, multiple factors may be considered when determining the first hybrid node in a hybrid node network. One possible approach is to select a node with relatively stable performance and good network connection quality as the first hybrid node. For example, the selection may be made by evaluating the processing power, storage capacity, network bandwidth, and historical reliability of the node. A node with higher security settings may also be selected as the first hybrid node. For example, the node has powerful encryption technology and access control mechanisms that can better protect received data slices. In addition, the node may also be selected based on its geographic location. A node that is closer to the file source may be selected as the first hybrid node to reduce data transmission delays and potential network failure risks.

[0068] S203: The file manager based on the master node device divides the stored file data into at least two data slices.

[0069] The data slices are also called data slices, which means that a file or other data is operated in segments and divided into specified segments.

[0070] Exemplarily, a file is divided into multiple data slices by a file manager in a device within the hybrid node network.

[0071] S204, encapsulating each data slice according to a preset data structure to obtain a virtual data block corresponding to each data slice, and randomly storing each virtual data block in each target hybrid node device according to a preset order.

[0072] Among them, the virtual data block is also called a virtual block, which is a data structure packaged by data slices.

[0073] Among them, the target hybrid node devices are the node devices in the private blockchain network.

[0074] Exemplarily, each data slice is transmitted to a first hybrid node among a plurality of hybrid nodes, and each data slice is sequentially and randomly transmitted to other hybrid nodes to form a virtual block data structure.

[0075] In the above-mentioned virtualized storage method based on hybrid blockchain, the file data to be stored is first obtained from any hybrid node device and transmitted to the master node device. The master node device uses the file manager to divide the file into at least two data slices, and then encapsulates each data slice into a virtual data block according to a preset data structure. Finally, each virtual data block is randomly stored in each target hybrid node device in a preset order; distributed storage is realized, storage efficiency and security are improved, and single point failure is avoided. At the same time, data segmentation and random storage methods enhance the confidentiality of data and reduce the risk of data being attacked.

[0076] In one embodiment, each data slice is encapsulated according to a preset data structure to obtain a virtual data block corresponding to each data slice, including: performing data verification on each data slice to obtain a verification result; when the verification result is passed, generating a virtual data block based on the verified data slice.

[0077] Exemplarily, each data slice is verified in other hybrid nodes, and the verified data slice is stored in these nodes.

[0078] In this embodiment, each data slice is first verified. If the verification is passed, a virtual data block is generated based on the data slice, and each data slice is verified and stored in other hybrid nodes. The implementation process ensures the accuracy and integrity of the data, improves the reliability of data storage, and avoids storing erroneous data; through multi-node verification, data security is enhanced to prevent malicious tampering. At the same time, the distributed verification and storage method improves the fault tolerance of the system. Even if some nodes have problems, it does not affect the availability of the overall data, providing a more stable and efficient data storage guarantee for the storage virtualization architecture.

[0079] In one embodiment, the method further includes: when the verification result is passed, packaging according to the virtual data block corresponding to the passed-verification data piece to obtain transaction data; and storing the transaction data in a public blockchain network.

[0080] Among them, a transaction is an information unit that encapsulates a piece of data in a specific format and structure after verification so that it can be stored and disseminated in a public blockchain network. It represents a request and record of a data storage operation; transaction data realizes the secure storage of data and also provides support for data verification, consensus and traceability.

[0081] Exemplarily, the verified data pieces are packaged into transactions, and the transactions are submitted to the public blockchain network for storage.

[0082] Among them, the public blockchain network is composed of private chains of multiple entities, which has the characteristics of decentralization and immutability, ensuring the transparency and security of data transactions and providing a reliable platform for data interaction between different entities.

[0083] In this embodiment, after the data piece is verified, it is packaged to obtain the transaction data, and then stored in the public blockchain network. During the implementation process, the transaction encapsulates the verified data piece, representing the data storage operation request and record; ensures the safe storage of data, and uses the characteristics of the public blockchain to achieve data verification, consensus and traceability; provides a reliable platform for data interaction between different entities, enhances the transparency and security of data, and prevents data tampering.

[0084] In one embodiment, data verification is performed on each data piece to obtain a verification result, including: verifying the digital signature corresponding to the data piece through a pseudo-anonymous public key infrastructure technology to obtain a verification result corresponding to the digital signature; based on a consensus mechanism in a blockchain network, verifying the timestamp through the current time to obtain a verification result corresponding to the timestamp.

[0085] Among them, pseudo-anonymous public key infrastructure (PPKI) is an encryption technology responsible for encrypting data.

[0086] Exemplarily, during the verification process, the digital signature and authenticity of the corresponding virtual block are verified using pseudo-anonymous public key infrastructure (PPKI) technology. Each data piece and its timestamp are placed in the virtual block for authenticity verification, including confirming whether the virtual block is forged and whether the corresponding timestamp is valid.

[0087] It should be noted that the confirmation of whether the virtual block is forged can be done by verifying the digital signature through PPKI technology. The validity of the timestamp can be determined by comparing the current time with the timestamp, as well as the consensus mechanism in the blockchain network to determine whether it has been tampered with. The verification process mainly occurs at the stage of packaging the data piece into a virtual block and preparing to submit it to the public blockchain network for storage. Generally speaking, before submitting the virtual block to the public blockchain network, the hybrid node will use the pseudo-anonymous public key infrastructure (PPKI) technology to verify the digital signature and authenticity of the virtual block to ensure that the virtual block has not been forged and the timestamp of the data piece therein is valid. This verification step is a key link before submitting the virtual block to the public blockchain network for storage to ensure the reliability of the data stored in the public blockchain.

[0088] In this embodiment, the digital signature of the data piece is verified by using pseudo-anonymous public key infrastructure technology, and the timestamp is verified by the current time based on the blockchain network consensus mechanism. The implementation process ensures the authenticity and integrity of the data; digital signature verification enhances the security and non-repudiation of the data and prevents data from being forged; timestamp verification ensures the timeliness and sequence of the data, making it easier to trace the history of the data; the combination of the two improves the reliability of data in the storage virtualization architecture, provides a more secure and stable environment for data storage and interaction, and meets the needs of different entities for data security and traceability.

[0089] In one embodiment, the method also includes: when the target hybrid node device in the private blockchain is started, sending broadcast information to other target hybrid node devices; in response to the reply information of other target hybrid node devices to the broadcast information, establishing a connection list corresponding to the private blockchain; the connection list is used to generate a self-sufficient peer-to-peer network.

[0090] For example, first, each hybrid node broadcasts its existence and status information to surrounding nodes when it starts. This information includes the node's identification, storage capacity, network connection status, etc. Through this broadcast mechanism, the hybrid node can discover other nearby nodes and establish an initial connection. Next, the hybrid node will select other nodes to connect to according to certain rules. These rules may include factors such as the distance, storage capacity, and reliability of the node. For example, nodes with low network latency, large storage capacity, and high reliability are preferred for connection. Then, as more hybrid nodes join the network, they will continuously update their connection lists to maintain connections with the optimal nodes. Finally, through this self-organizing method, the hybrid node network forms a peer-to-peer network structure, and each node can communicate and transmit data directly with other nodes without relying on a central server.

[0091] In this embodiment, when the target hybrid node device in the private blockchain is started, a broadcast message is sent to other target hybrid node devices, and a connection list is established after receiving the reply message, which is used to generate a self-organizing point-to-point network. During the implementation process, the connection is quickly established through the broadcast and reply mechanism; the scalability and flexibility of the network are improved without relying on a central server; the self-organizing point-to-point network enhances the stability and fault tolerance of the system, and even if some nodes fail, it will not affect the overall network.

[0092] In one embodiment, each virtual data block is randomly stored in each target hybrid node device according to a preset order, including: obtaining the file storage order of each virtual data block as the preset order; generating a file distribution random number, using the preset order as the file distribution order of each virtual data block, and distributing each virtual data block to each target hybrid node device according to the file distribution object represented by the file distribution random number; each hybrid node device stores each virtual data.

[0093] Exemplarily, each data slice is sequentially and randomly transmitted to other hybrid nodes to form a virtual block data structure.

[0094] In this embodiment, the file storage order of the virtual data block is first obtained as the preset order, and then a file distribution random number is generated. The preset order is used as the distribution order, and the virtual data block is distributed to each target hybrid node device storage according to the distribution object determined by the random number. The implementation process utilizes a random distribution mechanism to improve data storage security and prevent malicious attacks from determining data locations. At the same time, the system fault tolerance is enhanced, and data can be restored from other nodes when some nodes fail, providing a reliable and secure data storage method for the storage virtualization architecture and improving the efficiency and stability of data storage.

[0095] In another embodiment, Figure 3 As shown, a virtualized storage method based on a hybrid blockchain is provided, comprising the following steps:

[0096] S301, verifying the digital signature corresponding to the data piece through pseudo-anonymous public key infrastructure technology to obtain a verification result corresponding to the digital signature.

[0097] S302, based on the consensus mechanism in the blockchain network, verify the timestamp through the current time to obtain a verification result corresponding to the timestamp.

[0098] S303: When the verification result is that the verification is passed, a virtual data block is generated according to the data slice that has passed the verification.

[0099] S304, obtaining the file storage order of each virtual data block as a preset order.

[0100] S305, generating a file distribution random number, taking a preset order as the file distribution order of each virtual data block, and distributing each virtual data block to each target hybrid node device according to the file distribution object represented by the file distribution random number.

[0101] S306, each hybrid node device stores each virtual data.

[0102] S307, when the verification result is that the verification is passed, the virtual data blocks corresponding to the verified data pieces are packaged to obtain transaction data.

[0103] S308, storing the transaction data in the public blockchain network.

[0104] It should be noted that the specific limitations of the above steps can be found in the specific limitations of a virtualized storage method based on a hybrid blockchain above, which will not be repeated here.

[0105] In one embodiment, the closest prior art is to use public key infrastructure (PKI) to authenticate IoT devices and ensure data security and privacy. This authentication method, public key infrastructure (PKI), is costly for IoT devices in terms of computing power and energy consumption, and traditional storage virtualization technology may not meet the growing data security and privacy requirements.

[0106] Based on this, the embodiment of the present application provides a virtualized storage method based on a hybrid blockchain, which is referred to below Figure 4 , a virtualized storage method based on a hybrid blockchain is described in detail with a specific embodiment. It is worth noting that the following description is only an exemplary description and not a specific limitation of the application.

[0107] This technical solution belongs to the field of storage virtualization technology, specifically a storage virtualization architecture and method combined with hybrid blockchain technology. This technology aims to solve the resource security problem of the internal file storage system of an enterprise, and improve the security and privacy protection of data access by hybrid blockchain and storage virtualization technology.

[0108] The storage virtualization process combined with hybrid blockchain technology includes: first, the architecture includes a private blockchain network in at least one entity, which is composed of multiple hybrid nodes to form a hybrid node network. These hybrid nodes can be part of the private blockchain network, responsible for data encryption, verification and management of the internal file storage system, and protect the privacy of the data. At the same time, the hybrid nodes can be connected to the public blockchain network. The file is divided into multiple data slices by the file manager in the device, and these slices are packaged into virtual block data structures and randomly distributed in the hybrid node network. After verifying the virtual block, the hybrid node submits it as a package to the public blockchain network for storage. The decentralized and tamper-proof characteristics of the public blockchain network ensure the transparency and security of data transactions, thereby realizing the combination of storage virtualization architecture and hybrid blockchain technology, improving the security and privacy protection capabilities of data access, and improving storage efficiency.

[0109] The virtualized storage method based on hybrid blockchain provided in this application, also known as storage virtualization architecture and method with hybrid blockchain, proposes an architecture combining storage virtualization technology and hybrid blockchain to solve the resource security problem of the internal file storage system of an enterprise. Through hybrid blockchain technology, it is possible to improve storage efficiency and data access flexibility while protecting data security. The architecture contains multiple hybrid nodes (Hybrid Nodes), which can form a hybrid node network, which can be used as part of a private blockchain network or connected to a public blockchain network. This design allows data to be securely transmitted and verified between different nodes. The file is divided into multiple data slices (Data Slices), which are packaged into virtual block data structures and randomly distributed in the hybrid node network. This slicing method increases the redundancy and security of the data and improves the accessibility of the data. Each device is equipped with a file manager for storing and reading files. The device can control and manage files through a hybrid node network. The file manager can slice and transmit files to the hybrid node, which then verifies the slices and packages them into transactions and submits them to the public blockchain network for storage.

[0110] The present application proposes a storage virtualization architecture, including a private blockchain network in at least one entity, which is composed of multiple hybrid nodes to form a hybrid node network; multiple devices, which are coupled to at least one of the multiple hybrid nodes, wherein each of the multiple devices has a file manager, and a public blockchain network coupled to the hybrid node network. The hybrid node network is capable of self-organizing into a peer-to-peer network. The public blockchain network is formed by multiple entities, each of which has its own private blockchain network. The file manager divides the file into multiple data slices and packages the data slices into a virtual block data structure, wherein the multiple data slices are randomly distributed among multiple hybrid nodes. The file manager transmits the virtual block to a hybrid node in the private blockchain network. The hybrid node verifies each block of the virtual block and uses the verified virtual block as a package, and then submits the data packet to the public blockchain network for storage. Among them, if Figure 4 As shown, entities usually refer to enterprises and organizations with storage needs. In the application scenario, the entity ensures the security of internal file storage by establishing its own private blockchain network.

[0111] The present application also proposes a storage virtualization method, including providing a private blockchain network of at least one entity, wherein the private blockchain network has multiple hybrid nodes to form a hybrid node network; dividing a file into multiple data slices through a file manager in a device in the hybrid node network; transmitting each data slice to the first hybrid node among the multiple hybrid nodes; and transmitting each data slice sequentially and randomly to other hybrid nodes to form a virtual block data structure. The method further includes verifying each data slice in other hybrid nodes and storing the verified data slices in these nodes. In addition, the method also involves packaging the verified data slices into transactions and submitting these transactions to the public blockchain network for storage. The hybrid node network is capable of self-organizing into a peer-to-peer network. The public blockchain network is formed by multiple entities, each of which has its own private blockchain network. During the verification process, the digital signature and authenticity of the corresponding virtual block are verified using a pseudo-anonymous public key infrastructure (PPKI) technology. Each data slice and its timestamp are placed in a virtual block for authenticity verification, including confirming whether the virtual block is forged and whether the corresponding timestamp is valid.

[0112] The virtualized storage method based on hybrid blockchain provided in this application has the following advantages:

[0113] (1) Enhanced data security: By dividing files into multiple data slices and randomly distributing these slices among multiple hybrid nodes, redundant data storage is achieved, thereby improving data security. Even if some nodes are attacked or fail, the data will not be completely lost. Using the hybrid blockchain architecture, the private blockchain network protects the privacy of the data, while the public blockchain network ensures the transparency and security of data transactions through its decentralized and tamper-proof characteristics.

[0114] (2) Improved storage efficiency: Storage virtualization technology allows all storage devices to be treated as a single storage pool, thereby improving the utilization of storage resources. At the same time, through file slicing and virtual block data structures, data can be flexibly allocated and accessed between multiple hybrid nodes, further improving storage efficiency.

[0115] Among them, storage virtualization technology is a technical means to abstract, integrate and uniformly manage physical storage resources.

[0116] Normally, different storage devices may have different specifications, performance, and management methods, which makes the allocation and use of storage resources more complicated. Storage virtualization technology integrates these scattered storage devices and logically treats them as a unified storage pool. In this way, when there is a storage demand, the system can dynamically allocate storage resources according to the actual situation without having to consider which physical device is providing the storage. For example, if the storage space of a device is running out, the system can automatically store the data on other devices with remaining space, making full use of the resources of all storage devices, avoiding the situation where some devices are idle while others are running out of space, and thus improving the overall utilization of storage resources.

[0117] (3) Decentralized trust and consensus mechanism: By self-organizing the hybrid node network into a peer-to-peer network and using decentralized trust and consensus mechanisms (such as Merkle roots and puzzle solutions), the risk of single point failure is reduced and the overall stability and security of the system is improved. This mechanism also enhances the system's resistance to malicious attacks.

[0118] The Merkle tree is a binary tree data structure that consists of a series of hash values ​​of data blocks, and the Merkle root is the hash value of the root node of the Merkle tree. It represents the summary information of the entire Merkle tree and can be used to quickly verify whether a data block exists in the blockchain.

[0119] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.

[0120] Based on the same inventive concept, the embodiment of the present application also provides a hybrid blockchain-based virtualized storage device for implementing the hybrid blockchain-based virtualized storage method involved above. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above method, so the specific limitations in one or more hybrid blockchain-based virtualized storage device embodiments provided below can refer to the above limitations on the hybrid blockchain-based virtualized storage method, which will not be repeated here.

[0121] In one embodiment, Figure 5 As shown, a virtualized storage device based on a hybrid blockchain is provided, including: a file data acquisition module 501, a file data transmission module 502, a file data segmentation module 503, and a virtual block storage module 504, wherein:

[0122] The file data acquisition module 501 is used to acquire the file data to be stored of any hybrid node device; any hybrid node is any node device in the private blockchain network that has a file storage requirement;

[0123] The file data transmission module 502 is used to transmit the file data to be stored from any hybrid node device to the master node device; the master node device is a hybrid node device with data distribution and aggregation functions in the private blockchain network;

[0124] The file data segmentation module 503 is used to segment the stored file data based on the file manager of the master node device to obtain at least two data slices;

[0125] The virtual block storage module 504 is used to encapsulate each data slice according to a preset data structure, obtain a virtual data block corresponding to each data slice, and randomly store each virtual data block in each target hybrid node device according to a preset order; the target hybrid node device is each node device in the private blockchain network.

[0126] In one embodiment, the device is used to: perform data verification on each data slice to obtain a verification result; if the verification result is a passed verification, generate a virtual data block according to the verified data slice.

[0127] In one embodiment, the device is used to: when the verification result is passed, package the virtual data blocks corresponding to the passed-verification data pieces to obtain transaction data; and store the transaction data in a public blockchain network.

[0128] In one embodiment, the device is used to: verify the digital signature corresponding to the data piece through pseudo-anonymous public key infrastructure technology to obtain a verification result corresponding to the digital signature; based on the consensus mechanism in the blockchain network, verify the timestamp through the current time to obtain a verification result corresponding to the timestamp.

[0129] In one embodiment, the device is used to: when a target hybrid node device in a private blockchain is started, send broadcast information to other target hybrid node devices; in response to reply information of other target hybrid node devices to the broadcast information, establish a connection list corresponding to the private blockchain; the connection list is used to generate a self-sufficient peer-to-peer network.

[0130] In one embodiment, the device is used to: obtain the file storage order of each virtual data block as a preset order; generate a file distribution random number, use the preset order as the file distribution order of each virtual data block, and distribute each virtual data block to each target hybrid node device according to the file distribution object represented by the file distribution random number; each hybrid node device stores each virtual data.

[0131] Each module in the above-mentioned virtualized storage device based on hybrid blockchain can be implemented in whole or in part by software, hardware and their combination. Each of the above modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory of the computer device in the form of software, so that the processor can call and execute the operations corresponding to each of the above modules.

[0132] In one embodiment, a computer device is provided. The computer device may be a server, and its internal structure diagram may be as follows: Figure 6As shown. The computer device includes a processor, a memory, an input / output interface (Input / Output, referred to as I / O) and a communication interface. Among them, the processor, the memory and the input / output interface are connected through a system bus, and the communication interface is connected to the system bus through the input / output interface. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store data. The input / output interface of the computer device is used to exchange information between the processor and an external device. The communication interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a virtualized storage method based on a hybrid blockchain is implemented.

[0133] In one embodiment, a computer device is provided. The computer device may be a terminal, and its internal structure diagram may be as follows: Figure 7 As shown. The computer device includes a processor, a memory, an input / output interface, a communication interface, a display unit and an input device. Among them, the processor, the memory and the input / output interface are connected through a system bus, and the communication interface, the display unit and the input device are connected to the system bus through the input / output interface. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The input / output interface of the computer device is used to exchange information between the processor and the external device. The communication interface of the computer device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be implemented through WIFI, a mobile cellular network, NFC (near field communication) or other technologies. When the computer program is executed by the processor, a virtualized storage method based on a hybrid blockchain is implemented. The display unit of the computer device is used to form a visually visible picture, which can be a display screen, a projection device or a virtual reality imaging device. The display screen can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device can be a touch layer covering the display screen, or a button, trackball or touchpad set on the computer device shell, or an external keyboard, touchpad or mouse.

[0134] Those skilled in the art will understand that Figure 6 and Figure 7The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0135] In one embodiment, a computer device includes a memory and a processor. The memory stores a computer program. When the processor executes the computer program, the steps in the above method embodiments are implemented.

[0136] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps in the above-mentioned method embodiments are implemented.

[0137] In one embodiment, a computer program product is provided, including a computer program, which implements the steps in the above method embodiments when executed by a processor.

[0138] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., but are not limited to this.

[0139] The technical features of the above embodiments may be arbitrarily combined. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0140] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.

Claims

1. A virtualized storage method based on hybrid blockchain, characterized in that: The method comprises: Obtain file data to be stored in any hybrid node device; any hybrid node is any node device in a private blockchain network that has a file storage requirement; The file data to be stored is transmitted from any of the hybrid node devices to the master node device; the master node device is a hybrid node device in the private blockchain network with data distribution and aggregation functions; Based on the file manager of the master node device, the stored file data is divided to obtain at least two data slices; Each of the data slices is encapsulated according to a preset data structure to obtain a virtual data block corresponding to each of the data slices, and each of the virtual data blocks is randomly stored in each target hybrid node device according to a preset order; the target hybrid node device is each node device in the private blockchain network.

2. The method according to claim 1, characterized in that: The step of encapsulating each of the data slices according to a preset data structure to obtain a virtual data block corresponding to each of the data slices includes: Performing data verification on each of the data slices to obtain a verification result; When the verification result is that the verification is passed, the virtual data block is generated according to the data slice that has passed the verification.

3. The method according to claim 2, characterized in that The method further comprises: If the verification result is that the verification is passed, the virtual data blocks corresponding to the data pieces that have passed the verification are packaged to obtain transaction data; The transaction data is stored in a public blockchain network.

4. The method according to claim 2, characterized in that: The performing data verification on each of the data slices to obtain a verification result includes: Verifying the digital signature corresponding to the data piece by using a pseudo-anonymous public key infrastructure technology to obtain the verification result corresponding to the digital signature; Based on the consensus mechanism in the blockchain network, the timestamp is verified by the current time to obtain the verification result corresponding to the timestamp.

5. The method according to claim 1, characterized in that The method further comprises: When the target hybrid node device in the private blockchain is started, sending broadcast information to other target hybrid node devices; In response to the reply information of the other target hybrid node devices to the broadcast information, a connection list corresponding to the private blockchain is established; the connection list is used to generate a self-sufficient peer-to-peer network.

6. The method according to claim 1, characterized in that The step of randomly storing each of the virtual data blocks in each target hybrid node device according to a preset order includes: Acquire the file storage order of each of the virtual data blocks as the preset order; Generate a file distribution random number, use the preset order as the file distribution order of each virtual data block, and distribute each virtual data block to each target hybrid node device according to the file distribution object represented by the file distribution random number; Each of the hybrid node devices stores each of the virtual data.

7. A virtualized storage device based on a hybrid blockchain, characterized in that: The device comprises: A file data acquisition module, used to acquire file data to be stored in any hybrid node device; any hybrid node is any node device in a private blockchain network that has a file storage requirement; A file data transmission module, used to transmit the file data to be stored from any of the hybrid node devices to the master node device; the master node device is a hybrid node device with data distribution and aggregation functions in the private blockchain network; A file data segmentation module, configured to segment the stored file data based on the file manager of the master node device to obtain at least two data slices; The virtual block storage module is used to encapsulate each of the data slices according to a preset data structure, obtain virtual data blocks corresponding to each of the data slices, and randomly store each of the virtual data blocks in each target hybrid node device according to a preset order; the target hybrid node device is each node device in the private blockchain network.

8. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 6 are implemented.

9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.

10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.

Citation Information

Patent Citations

  • File storage method and system based on block chain distributed encryption

    CN115499249A

  • Data storage method and device based on block chain and computer equipment

    CN117714474A

  • Storage Virtualization Architecture with Hybrid Blockchain and the Method Thereof

    US20230074590A1

  • Methods and systems for decentralized blockchain-scheduled container orchestration, repository and code deployment with tokenized tracking

    US20230305884A1