Data management method and device based on blockchain
By providing multiple blockchain network identifiers on the computing device side, users can choose a blockchain network that stores data, solving the problem that terminal devices need to deploy multiple client programs, and improving user experience and resource utilization efficiency.
Patent Information
- Application Number
- CN201911206344.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2019-11-29
- Publication Date
- 2024-11-08
- Estimated Expiration
- 2039-11-29
AI Technical Summary
Users need to deploy multiple corresponding client programs in the terminal device to store data, resulting in poor user experience and high resource consumption.
Through the computing device, the identification of multiple blockchain networks is sent to the terminal device. The user can choose the appropriate network for data storage. The computing device is responsible for storing the data to the selected blockchain network without the need to deploy multiple clients in the terminal device. program.
It simplifies the user selection process, reduces the resource consumption of terminal devices, improves the user experience, and avoids the deployment and operation of multiple client programs.
Smart Images

Figure CN111125187B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to a data management method and device based on blockchain. Background Art
[0002] Blockchain uses chain data structures to verify and store data, uses distributed node consensus algorithms to generate and update data, and uses cryptography to ensure the security of data transmission and access between distributed nodes. Blockchain technology is essentially a decentralized distributed database technology. Data is openly and transparently stored in each accounting node of the blockchain network, making the data stored in the blockchain tamper-proof.
[0003] For ordinary users, the terminal devices they manage may not serve as blockchain nodes and join any blockchain network. Accordingly, when users need to store specific data through the blockchain network, they need to pre-deploy the client program corresponding to the corresponding blockchain network in the terminal devices they manage, and publish the specific data to the corresponding blockchain network through the client program, so that the blockchain network can store the target data in the blockchain.
[0004] Accordingly, in order to ensure that users can selectively store target data in a certain blockchain network, it is often necessary to deploy client programs corresponding to multiple blockchain networks in the terminal devices managed by users, resulting in an extremely poor user experience. Summary of the invention
[0005] The embodiments of the present application provide a blockchain-based data management method and device, which can ensure that users can selectively store target data in a certain blockchain network without deploying client programs corresponding to multiple blockchain networks in the terminal devices managed by users, and provide a better user experience.
[0006] In a first aspect, a blockchain-based data management method is provided, which is applied to a computing device connected to a terminal device, and the method includes:
[0007] Sending network identifiers of at least two first blockchain networks to a terminal device, so that the terminal device provides the network identifiers of each of the first blockchain networks to a user;
[0008] receiving the target data from the terminal device, and receiving selection information from the terminal device, the selection information being used to indicate a target identifier selected by a user from network identifiers of each of the first blockchain networks;
[0009] A transaction is sent to the first blockchain network corresponding to the target identifier, wherein the data field of the transaction includes the target data, so that the first blockchain network corresponding to the target identifier stores the transaction in the blockchain.
[0010] In one possible implementation,
[0011] Before sending the network identifiers of at least two first blockchain networks to the terminal device, the method further includes:
[0012] receiving demand information of the target data from a terminal device, wherein the demand information at least includes a security performance requirement and a data volume of the target data;
[0013] According to the security performance description information of at least two second blockchain networks, determining the at least two third blockchain networks that meet the security performance requirements from the at least two second blockchain networks;
[0014] Determine the charging amount of each of the third blockchain networks according to the data volume and the charging standards of each of the third blockchain networks;
[0015] In order from small to large, the at least two first blockchain networks with the smallest corresponding fee amounts are determined from each of the third blockchain networks in sequence, and an identification sequence is formed using the network identifications of each of the first blockchain networks determined in sequence;
[0016] The sending of at least two network identifiers of the first blockchain network to the terminal device includes: sending the identifier sequence to the terminal device.
[0017] In one possible implementation,
[0018] The method also includes: sending the charging amount and security performance description information of each of the first blockchain networks to the terminal device, so that the terminal device provides the charging amount and security performance description information of each of the first blockchain networks to the user.
[0019] In one possible implementation,
[0020] The demand information also includes the data identifier of the target data and the identity identifier of the user;
[0021] The data field of the transaction also includes the data identifier and the identity identifier;
[0022] After sending the transaction to the first blockchain network corresponding to the target identifier, the method further includes: establishing an association relationship between the data identifier, the identity identifier and the target identifier.
[0023] In one possible implementation,
[0024] The method further comprises:
[0025] receiving a data query request from the terminal device, wherein the data query request includes the data identifier and the identity identifier;
[0026] Determine the target identifier associated with the data identifier and the identity identifier according to the association relationship;
[0027] Obtaining the transaction from a first blockchain network corresponding to the target identifier;
[0028] The target data contained in the data field of the transaction is sent to the terminal device.
[0029] In a second aspect, a blockchain-based data management device is provided, which is applied to a computing device connected to a terminal device, and the device includes:
[0030] A first transceiver unit is configured to send network identifiers of at least two first blockchain networks to a terminal device so that the terminal device provides the network identifiers of each of the first blockchain networks to a user; receive the target data from the terminal device, and receive selection information from the terminal device, wherein the selection information is used to indicate a target identifier selected by the user from the network identifiers of each of the first blockchain networks;
[0031] A processing unit, configured to generate a transaction, wherein a data field of the transaction includes the target data;
[0032] The second transceiver unit is used to send the transaction to the first blockchain network corresponding to the target identifier, so that the first blockchain network corresponding to the target identifier stores the transaction in the blockchain.
[0033] In one possible implementation,
[0034] The first transceiver unit is used to receive demand information of the target data from a terminal device, wherein the demand information at least includes a security performance requirement and a data volume of the target data;
[0035] The processing unit is used to determine, based on the security performance description information of the at least two second blockchain networks, the at least two third blockchain networks that meet the security performance requirements from the at least two second blockchain networks; determine the charging amount of each of the third blockchain networks based on the data volume and the charging standards of each of the third blockchain networks; and determine, in order from small to large, the at least two first blockchain networks with the smallest corresponding charging amount from each of the third blockchain networks, and use the network identifiers of each of the first blockchain networks determined in sequence to form an identification sequence;
[0036] The first transceiver unit is specifically used to send the identification sequence to the terminal device.
[0037] In one possible implementation,
[0038] The first transceiver unit is also used to send the charging amount and security performance description information of each of the first blockchain networks to the terminal device, so that the terminal device can provide the charging amount and security performance description information of each of the first blockchain networks to the user.
[0039] In one possible implementation,
[0040] The demand information also includes the data identifier of the target data and the identity identifier of the user;
[0041] The data field of the transaction also includes the data identifier and the identity identifier;
[0042] The processing unit is further used to establish an association relationship between the data identifier, the identity identifier and the target identifier.
[0043] In one possible implementation,
[0044] The first transceiver unit is further configured to receive a data query request from the terminal device, wherein the data query request includes the data identifier and the identity identifier;
[0045] The processing unit is further configured to determine the target identifier associated with the data identifier and the identity identifier according to the association relationship; and obtain the transaction from the first blockchain network corresponding to the target identifier;
[0046] The first transceiver unit is further used to send the target data contained in the data field of the transaction to the terminal device.
[0047] According to a third aspect, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed in a computing device, the computing device implements the method as described in any one of the first aspects.
[0048] In a fourth aspect, a computing device is provided, comprising a memory and a processor, wherein the memory stores executable code, and when the processor executes the executable code, the method as described in any one of the first aspects is implemented.
[0049] Through the blockchain-based data management method and device provided in the embodiments of the present application, when the user needs to store the target data in the blockchain network, the computing device can send at least two network identifiers of the first blockchain network to the terminal device managed by the user, and the user can select a target identifier from the network identifiers of the at least two first blockchain networks through the terminal device. After receiving the target data sent by the terminal device and knowing the target identifier selected by the user, the computing device can store the target data in the first blockchain network corresponding to the target identifier. In this way, there is no need to deploy client programs corresponding to multiple blockchain networks in the terminal device managed by the user, which can ensure that the user can selectively store the target data in a certain blockchain network, and the user experience is better. BRIEF DESCRIPTION OF THE DRAWINGS
[0050] Figure 1 A schematic diagram of the system framework of the technical solution provided in the embodiments of the present application;
[0051] Figure 2 A schematic diagram of the process of recommending to a user various blockchain networks that meet the security performance expected by the user and are relatively inexpensive in an embodiment of the present application;
[0052] Figure 3 A flowchart of a blockchain-based data management method provided in an embodiment of the present application;
[0053] Figure 4 This is a schematic diagram of a process in which a computing device provides data stored in a blockchain network to a terminal device in an embodiment of the present application;
[0054] Figure 5 This is a schematic diagram of the structure of a blockchain-based data management device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0055] Figure 1 The system framework diagram of the technical solution provided in the embodiment of the present application is shown. Figure 1 As shown, the computing device 20 can be connected to one or more terminal devices 30, and connected to multiple blockchain networks (or blockchain systems) 10.
[0056] For a blockchain network 10, the blockchain network 10 may include multiple blockchain nodes 101. Each blockchain node 101 included in the blockchain network 10 has the ability to broadcast transactions containing data to other blockchain nodes 101 included in the blockchain network 10. Among them, the blockchain node 101 as a bookkeeping node can package the transactions it receives into blocks and add them to the blockchain on the recording node to store data or transactions containing data in the blockchain. Each blockchain node 101 included in the blockchain network 10 will store the same transaction, that is, each blockchain node 101 of the blockchain network 10 stores the same data; and, in the two adjacent blocks contained in the blockchain stored by the blockchain node 101, the block packaged later is associated with the block packaged earlier. In this way, the data stored in the blockchain has the characteristic of being tamper-proof.
[0057] It is understandable that different blockchain networks may have different security performance. For example, the number of blockchain nodes contained in the blockchain network and the encryption algorithm used by the blockchain network when transmitting data point-to-point may affect the security performance of the blockchain network. For example, different blockchain networks may use encryption algorithms of different complexity to encrypt data transmitted point-to-point. If the encryption algorithm used by a blockchain network is more complex, it will be more difficult for an intruder to invade and tamper with the transmitted data, and the security performance of the blockchain network will be higher.
[0058] The computing device 20 may be a server, or a server cluster consisting of multiple servers.
[0059] For any blockchain network 10, the client program corresponding to the blockchain network 10 can be deployed on the computing device 20, so that the computing device 20 can connect to the blockchain node 101 of the blockchain network 10 through the client program. Accordingly, the computing device 20 can send a transaction containing data to the blockchain node 101 connected thereto, that is, send a transaction containing data to the blockchain network 10. In addition, the computing device 20 can also obtain a transaction containing data or obtain data contained in a transaction from the blockchain on the blockchain node 101.
[0060] It can be understood that the terminal device 30 managed by the user includes but is not limited to various forms of electronic devices such as laptops, tablet computers, and smart phones.
[0061] In the prior art, users may need to deploy client programs corresponding to multiple blockchain networks in terminal devices. When users need to store target data through blockchain networks, they can manually query the security performance description information and charging standards of multiple blockchain networks one by one, and determine the blockchain network that meets the user's expected security performance and is relatively cheap from a large number of blockchain networks. Then, through the client program corresponding to the blockchain network that meets the user's expected security performance and is relatively cheap, the target data is stored in the blockchain network. In other words, in order to ensure that users can selectively store target data in a certain blockchain network, the terminal devices managed by users often need to deploy client programs corresponding to multiple blockchain networks, which has a very poor user experience and may require excessive consumption of terminal device resources.
[0062] In view of this, at least one data management method and device based on blockchain is provided in the embodiments of the present application. When a user needs to store target data in a blockchain network, the computing device can send at least two network identifiers of the first blockchain network to the terminal device managed by the user, and the user can select a target identifier from the network identifiers of the at least two first blockchain networks through the terminal device. After receiving the target data sent by the terminal device and knowing the target identifier selected by the user, the computing device can store the target data in the first blockchain network corresponding to the target identifier. In this way, there is no need to deploy client programs corresponding to multiple blockchain networks in the terminal device managed by the user, which can ensure that the user can selectively store the target data in a certain blockchain network, and the user experience is better.
[0063] Below, the technical solution of the embodiment of the present application will be described in detail in combination with the above system framework and other drawings.
[0064] First, when different blockchain networks provide data storage services to users, they may have different charging standards and security performance, and users themselves may also expect the blockchain network used to store target data to have corresponding security performance. In order to enable users to quickly find out which blockchain networks meet the user's expected security performance and are relatively inexpensive when they need to store target data through a blockchain network, the computing device can perform the following operations: Figure 2 Steps 201 to 205 are shown.
[0065] Figure 2 This is a schematic diagram of the process of recommending to users various blockchain networks that meet the security performance expected by users and are relatively cheap in the embodiment of the present application. Specifically, Figure 2As shown, the computing device 20 deployed with the blockchain-based data management device can perform the following steps 201 to 205: Step 201, receiving the demand information of the target data from the terminal device, the demand information at least including the security performance requirements and the data volume of the target data; Step 202, determining the at least two third blockchain networks that meet the security performance requirements from the at least two second blockchain networks based on the security performance description information of at least two second blockchain networks; Step 203, determining the charging amount of each of the third blockchain networks based on the data volume and the charging standards of each of the third blockchain networks; Step 204, in order from small to large, determining the at least two first blockchain networks with the smallest corresponding charging amount from each of the third blockchain networks in turn, and using the network identifiers of each of the first blockchain networks determined in turn to form an identification sequence; Step 205, sending the identification sequence to the terminal device.
[0066] First, in step 201, the computing device 20 may receive demand information of the target data from the terminal device, where the demand information at least includes security performance requirements and the data volume of the target data.
[0067] The target data requirement information may at least include security performance requirements and the data volume of the target data.
[0068] For example, for security performance requirements, it can indicate the minimum complexity of the encryption algorithm used by the blockchain network when transmitting data point-to-point, and it can also indicate the minimum number of blockchain nodes included in the blockchain network.
[0069] It is understood that the target data requirement information includes, but is not limited to, input by a user to a terminal device, and can also be generated by the terminal device through a corresponding computer program. Exemplarily, a corresponding computer program can be deployed in the terminal device, and the security performance requirements input by the user can be received through the computer program, and the data volume of the target data already stored in the terminal device can be determined through the computer program.
[0070] Specifically, different types of target data or target data used to achieve different business purposes may correspond to different security performance requirements. The security performance requirements of the target data can usually be specified by the user based on actual conditions.
[0071] Then, in step 202, the computing device 20 may determine, based on the security performance description information of the at least two second blockchain networks, the at least two third blockchain networks that meet the security performance requirements from the at least two second blockchain networks.
[0072] It is understandable that the computing device 20 can obtain the security performance description information of a large number of blockchain networks in advance. For example, the security performance description of a blockchain network may include the complexity of the encryption algorithm used by the blockchain network when transmitting data point-to-point, and may also include the number of blockchain nodes included in the blockchain network.
[0073] Accordingly, for any third blockchain network, the complexity of the encryption algorithm used when transmitting data point-to-point shall not be less than the minimum complexity of the encryption algorithm indicated by the security performance requirements; and the number of blockchain nodes it contains shall not be less than the minimum number of blockchain nodes indicated by the security performance requirements.
[0074] Next, in step 203, the computing device 20 may determine the charging amount of each of the third blockchain networks based on the data volume and the charging standards of each of the third blockchain networks.
[0075] Generally, for a blockchain network, the larger the amount of target data that needs to be stored, the more resources (such as storage resources) the target data consumes in the blockchain network, and the more fees the user needs to pay. However, different blockchain networks are usually managed by different operators, and different operators may set different charging standards for their respective blockchain networks.
[0076] That is, the computing device 20 can obtain the respective charging standards of a large number of blockchain networks in advance.
[0077] For example, in the charging standard formulated by operator A for the blockchain network N1 it manages, if the amount of target data to be stored is between m1 and m2, the charging amount is X1; in the charging standard formulated by operator B for the blockchain network N2 it manages, if the amount of target data to be stored is between m1 and m2, the charging amount may be X2 which is different from X1. Accordingly, if the amount of data contained in the demand information is between m1 and m2, it can be determined that the charging amount of N1 is X1 and the charging amount of N2 is X2.
[0078] Afterwards, in step 204, the computing device 20 may determine, in order from small to large, the at least two first blockchain networks with the smallest corresponding charging amounts from each of the third blockchain networks, and use the network identifiers of each of the first blockchain networks determined in turn to form an identification sequence.
[0079] Among them, the determined number of each of the first blockchain networks can be a preset value.
[0080] Exemplarily, for each blockchain network identified by network identifiers N1, N2, N3, N4, and N5 respectively, for the target data that the user needs to store in the blockchain network, the charging amount of N1 is X1, the charging amount of N2 is X2, the charging amount of N3 is X3, the charging amount of N4 is X4, and the charging amount of N5 is X5, where X1 < X3 < X2 < X5 < X4. Assuming that the number of each of the first blockchain networks to be determined preset is 3, then in ascending order, the blockchain networks N1, N3, and N2 corresponding to X1, X3, and X2 respectively can be determined as the second blockchain networks in sequence. Accordingly, an identification sequence [N1, N3, N2] can be formed using N1, N3, and N2.
[0081] Further, in step 205, the computing device 20 may send the identification sequence to the terminal device.
[0082] Accordingly, the terminal device 30 may provide the identification sequence to the user. Exemplarily, after the terminal device 30 receives the identification sequence [N1, N3, N2] from the computing device 20, it can display the identification sequence [N1, N3, N2] to the user.
[0083] It can be understood that the order among the network representations included in the representation sequence is arranged in ascending order according to the charging amounts of the blockchain networks corresponding to the respective identifiers. Therefore, the user can also quickly determine the blockchain network with the smallest corresponding charging amount according to this identification sequence, so that the user can store the target data through the blockchain network with the smallest corresponding charging amount, and the user experience is excellent.
[0084] At the same time, the terminal device provides the network identifiers of multiple blockchain networks with relatively small charging amounts to the user. The user can select one or more blockchain networks indicated by the network identifiers according to their personal preferences or for other purposes to store the target data.
[0085] All in all, when there is target data in the terminal device managed by the user that needs to be stored in the blockchain network, the terminal device 30 managed by the user can trigger the computing device 20 to at least execute the foregoing steps 201 to 205, and quickly learn about each blockchain network that meets the user's security performance requirements and has relatively low costs.
[0086] It can be understood that the computing device can also determine the network identifiers of at least two first blockchain networks to be sent to the terminal device in other ways, and provide the network identifiers of each of the first blockchain networks to the user through the terminal device. For example, the computing device can send a pre-established list containing the identifiers of multiple first blockchain networks to the terminal device, and this list can be displayed to the user by the terminal device.
[0087] In such Figure 2 On the basis of the illustrated embodiment, when the computing device 20 sends the identification sequence to the terminal device, it can also send the charging amount and security performance description information of each of the first blockchain networks to the terminal device. Accordingly, the terminal device can provide the user with the charging amount and security performance description information of each of the first blockchain networks. In this way, the user can comprehensively weigh the charging amount and security performance description information of each of the first blockchain networks and select one or more first blockchain networks to store the target data.
[0088] Furthermore, in order to achieve the situation where there is no need to deploy client programs corresponding to multiple blockchain networks in the terminal device managed by the user, the target data is stored in the corresponding first blockchain network according to the user's instructions. In a possible implementation, the computing device 20 deployed with the data management device 50 based on the blockchain network can also execute the following Figure 3 Steps 301 to 303 shown:
[0089] Step 301, sending at least two network identifiers of the first blockchain networks to a terminal device so that the terminal device provides the network identifiers of each of the first blockchain networks to a user; Step 302, receiving the target data from the terminal device, and receiving selection information from the terminal device, the selection information being used to indicate the target identifier selected by the user from the network identifiers of each of the first blockchain networks; Step 303, sending a transaction to the first blockchain network corresponding to the target identifier, the data field of the transaction containing the target data, so that the first blockchain network corresponding to the target identifier stores the transaction to the blockchain.
[0090] First, in step 301, the computing device 20 may send network identifiers of at least two first blockchain networks to the terminal device.
[0091] As mentioned above, the network identifiers of at least two first blockchain networks sent by the computing device 20 to the terminal device may be an identifier sequence formed by arranging the network identifiers of at least two first blockchain networks.
[0092] Accordingly, the terminal device may provide the user with the network identification of each of the first blockchain networks. For example, the terminal device may display to the user an identification sequence including the network identifications of at least two blockchain networks.
[0093] Step 302, the computing device 20 may receive the target data from the terminal device, and receive selection information from the terminal device.
[0094] The selection information is used to indicate the target identifier selected by the user from the network identifiers of each of the first blockchain networks.
[0095] Exemplarily, the terminal device 30 can display an identification sequence to the user through a corresponding computer program, and the user can trigger one of the target identifications included in the identification sequence to form selection information containing the target identification; accordingly, the selection information can be used to indicate the target identification selected by the user from the identification sequence.
[0096] Next, in step 303, the computing device 20 may also send a transaction to the first blockchain network corresponding to the target identifier.
[0097] Wherein, the data field of the transaction contains the target data, and the first blockchain network corresponding to the target identifier can store the transaction in the blockchain. In this way, the target data can be stored in the first blockchain network corresponding to the target identifier selected by the user.
[0098] like Figure 3 In the illustrated embodiment, the user can trigger the computing device 20 to store the target data in the second blockchain network corresponding to the target identifier selected by the user through the terminal device 30. In other words, the target data generated or obtained by the terminal device can be stored in each blockchain network connected to the computing device 20 through the computing device 20, and the terminal device 30 managed by the user does not need to deploy additional client programs corresponding to multiple blockchain networks. In this way, on the one hand, the resource consumption of the terminal device managed by the user can be reduced; on the other hand, the user does not need to deploy and operate a large number of client programs corresponding to the blockchain networks in the terminal device, and the user experience is excellent.
[0099] Furthermore, in order to facilitate the user to obtain the target data stored in the blockchain network through the terminal device 30 managed by the user, in a possible implementation, Figure 3 On the basis of the illustrated embodiment, the computing device 20 can also construct an association relationship between the data identifier of the target data, the user's identity identifier and the target identifier after completing sending the transaction to the second blockchain network corresponding to the target identifier.
[0100] In a more specific example, the target data demand information may also include the data identifier of the target data and the user's identity identifier. It can be understood that the data identifier of the target data can be used in the terminal device 30 to uniquely identify the target data, and the user's identity identifier can be used in the computing device 20 to uniquely identify the user who manages the terminal device 30. Correspondingly, the data identifier of the target data and the user's identity identifier can be used in the computing device 20 to uniquely identify the target data. In this way, the data identifier of the target data and the user's identity identifier are associated with the target identifier, which can facilitate the user to trigger the computing device 20 to obtain the target data or the transaction containing the target data from the first blockchain network corresponding to the target identifier according to the data identifier of the target data and the user's identity identifier in the subsequent process, and send the target data to the terminal device 30.
[0101] In a more specific example, Figure 4 As shown, the computing device 20 deployed with the blockchain-based data management apparatus can also execute the following steps 401 to 404 to provide the target data stored in the blockchain network to the user.
[0102] First, in step 401, the computing device 20 may receive a data query request from a terminal device.
[0103] The data query request includes the data identifier of the target data and the identity identifier of the user.
[0104] That is to say, when the user needs to query the target data that has been stored in the blockchain network, the terminal device 30 can be triggered to generate a query request containing the data identifier of the target data and the identity identifier of the user, and send the query request to the computing device 20.
[0105] Next, in step 402, the computing device 20 may determine the target identifier associated with the data identifier of the target data and the identity identifier of the user.
[0106] That is to say, the computing device 20 can determine the first blockchain network that stores the target data based on the established association relationship and the data identifier of the target data and the user's identity identifier contained in the received query request.
[0107] Afterwards, in step 403, the computing device 20 may also obtain the transaction from the first blockchain network corresponding to the target identifier.
[0108] It can be understood that in each transaction sent by the computing device 20 to the first blockchain network corresponding to the target identifier, the transaction initiator field may include address information for uniquely identifying the computing device or the custodian of the computing device. The computing device 20 can obtain all transactions sent by the computing device 20 to the first blockchain network corresponding to the target identifier from the second blockchain network corresponding to the target identifier based on the address information, or obtain the data respectively contained in each transaction sent by the computing device 20 to the first blockchain network corresponding to the target identifier.
[0109] Correspondingly, the computing device 20 can further determine the transaction whose data field contains the data identifier of the target data and the identity identifier of the user from each transaction sent by it to the first blockchain network corresponding to the target identifier, and then obtain the target data from the transaction.
[0110] Furthermore, in step 404, the computing device 20 may send the target data contained in the data field of the transaction to the terminal device.
[0111] In this way, the user can trigger the computing device 20 to obtain the target data or the transaction containing the target data from the blockchain network through the terminal device 30. In other words, the terminal device 30 managed by the user does not need to deploy the client programs corresponding to each different blockchain network, and the target data stored in each blockchain network can be obtained. In this way, on the one hand, the resource consumption of the terminal device managed by the user can be reduced; on the other hand, the user does not need to deploy and operate the client programs corresponding to a large number of blockchain networks in the terminal device, and the user experience is excellent.
[0112] Based on the same concept as the aforementioned method embodiment, the present application embodiment also provides a blockchain-based data management device 50, which can be deployed in Figure 1 In the computing device 20 shown. Figure 5 As shown, the device may include at least:
[0113] The first transceiver unit 501 is used to send the network identifiers of at least two first blockchain networks to the terminal device, so that the terminal device provides the network identifiers of each of the first blockchain networks to the user; receive the target data from the terminal device, and receive selection information from the terminal device, where the selection information is used to indicate the target identifier selected by the user from the network identifiers of each of the first blockchain networks;
[0114] A processing unit 502 is used to generate a transaction, wherein a data field of the transaction includes the target data;
[0115] The second transceiver unit 503 is used to send the transaction to the first blockchain network corresponding to the target identifier, so that the first blockchain network corresponding to the target identifier stores the transaction in the blockchain.
[0116] In a possible implementation manner, the first transceiver unit 501 is configured to receive demand information of the target data from a terminal device, where the demand information at least includes a security performance requirement and a data volume of the target data;
[0117] The processing unit 502 is used to determine the at least two third blockchain networks that meet the security performance requirements from the at least two second blockchain networks according to the security performance description information of the at least two second blockchain networks; determine the charging amount of each of the third blockchain networks according to the data volume and the charging standards of each of the third blockchain networks; determine the at least two first blockchain networks with the smallest corresponding charging amount from each of the third blockchain networks in order from small to large, and use the network identifiers of each of the first blockchain networks determined in sequence to form an identification sequence;
[0118] The first transceiver unit 501 is specifically configured to send the identification sequence to the terminal device.
[0119] In a possible implementation, the first transceiver unit 501 is further used to send the charging amount and security performance description information of each of the first blockchain networks to the terminal device, so that the terminal device provides the charging amount and security performance description information of each of the first blockchain networks to the user.
[0120] In a possible implementation manner, the demand information further includes the data identifier of the target data and the identity identifier of the user; the data field of the transaction further includes the data identifier and the identity identifier;
[0121] The processing unit 502 is further configured to construct an association relationship among the data identifier, the identity identifier and the target identifier.
[0122] In a possible implementation manner, the first transceiver unit 501 is further configured to receive a data query request from the terminal device, wherein the data query request includes the data identifier and the identity identifier;
[0123] The processing unit 502 is further configured to determine the target identifier associated with the data identifier and the identity identifier according to the association relationship; and obtain the transaction from the first blockchain network corresponding to the target identifier;
[0124] The first transceiver unit 501 is further configured to send the target data contained in the data field of the transaction to the terminal device.
[0125] Those skilled in the art should be aware that in one or more of the above examples, the functions described in this application can be implemented by hardware, software, firmware, or any combination thereof. When implemented by software, the computer programs corresponding to these functions can be stored in a computer-readable medium, or transmitted as one or more instructions / codes on a computer-readable medium, so that when the computer programs corresponding to these functions are executed by a computing device, the method described in any embodiment of the present invention is implemented by the computing device.
[0126] Correspondingly, a computer-readable storage medium is also provided in an embodiment of the present application, on which a computer program is stored. When the computer program is executed in a computing device, the computing device implements the blockchain-based data management method provided in any embodiment of the present application.
[0127] A computing device is also provided in an embodiment of the present application, including a memory and a processor, wherein an executable code is stored in the memory, and when the processor executes the executable code, the blockchain-based data management method provided in any embodiment of the present application is implemented.
[0128] Each embodiment in this application is described in a progressive manner, and the same or similar parts in each embodiment can be referred to each other, and each embodiment focuses on explaining the differences between it and other embodiments. In particular, for the device / equipment / system embodiment, it is basically similar to the method embodiment, so the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
[0129] The above describes specific embodiments of the present application. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the embodiments and still achieve the desired results. In addition, the processes depicted in the accompanying drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
[0130] The specific implementation methods described above further illustrate the objectives, technical solutions and beneficial effects of the present invention in detail. It should be understood that the above description is only a specific implementation method of the present invention and is not intended to limit the scope of protection of the present invention. Any modifications, equivalent substitutions, improvements, etc. made on the basis of the technical solution of the present invention should be included in the scope of protection of the present invention.
Claims
1. A data management method based on blockchain, characterized in that: Applied to a computing device connected to a terminal device, the method comprises: receiving target data demand information from a terminal device, wherein the demand information at least includes security performance requirements and the data volume of the target data; According to the security performance description information of at least two second blockchain networks, determining the at least two third blockchain networks that meet the security performance requirements from the at least two second blockchain networks; Determine the charging amount of each of the third blockchain networks according to the data volume and the charging standards of each of the third blockchain networks; In order from small to large, at least two first blockchain networks with the smallest corresponding fee amounts are determined from each of the third blockchain networks, and the network identifiers of each of the first blockchain networks determined in sequence are used to form an identification sequence; Sending at least two network identifiers of the first blockchain networks to a terminal device so that the terminal device provides the network identifiers of each of the first blockchain networks to a user; wherein sending at least two network identifiers of the first blockchain networks to the terminal device comprises: sending the identifier sequence to the terminal device; receiving the target data from the terminal device, and receiving selection information from the terminal device, wherein the selection information is used to indicate a target identifier selected by the user from the network identifiers of each of the first blockchain networks; Sending a transaction to the first blockchain network corresponding to the target identifier, wherein the data field of the transaction includes the target data, so that the first blockchain network corresponding to the target identifier stores the transaction in the blockchain; The method further includes: sending the charging amount and security performance description information of each of the first blockchain networks to the terminal device, so that the terminal device provides the charging amount and security performance description information of each of the first blockchain networks to the user; A description of the security performance of a blockchain network, including the complexity of the encryption algorithm used by the blockchain network when transmitting data point-to-point, and the number of blockchain nodes contained in the blockchain network; The terminal device provides the user with the network identifiers of multiple blockchain networks with relatively small charging amounts. The user selects the blockchain network indicated by one or more network identifiers to store the target data based on his or her personal preferences or for other purposes.
2. The method according to claim 1, characterized in that The demand information also includes the data identifier of the target data and the identity identifier of the user; The data field of the transaction also includes the data identifier and the identity identifier; After sending the transaction to the first blockchain network corresponding to the target identifier, the method further includes: establishing an association relationship between the data identifier, the identity identifier and the target identifier.
3. The method according to claim 2, characterized in that The method further comprises: receiving a data query request from the terminal device, wherein the data query request includes the data identifier and the identity identifier; Determine the target identifier associated with the data identifier and the identity identifier according to the association information; Obtaining the transaction from a first blockchain network corresponding to the target identifier; The target data contained in the data field of the transaction is sent to the terminal device.
4. A data management device based on blockchain, characterized in that: Applicable to a computing device connected to a terminal device, the device comprises: A first transceiver unit is configured to send network identifiers of at least two first blockchain networks to a terminal device so that the terminal device provides the network identifiers of each of the first blockchain networks to a user; receive target data from the terminal device, and receive selection information from the terminal device, the selection information being used to indicate a target identifier selected by the user from the network identifiers of each of the first blockchain networks; and further configured to receive demand information of the target data from the terminal device, the demand information at least including a security performance requirement and a data volume of the target data; A processing unit, configured to generate a transaction, wherein a data field of the transaction includes the target data; further configured to determine, based on the security performance description information of the at least two second blockchain networks, the at least two third blockchain networks that meet the security performance requirements; determine, based on the data volume and the charging standards of the respective third blockchain networks, the charging amount of each of the third blockchain networks; and sequentially determine, from the respective third blockchain networks, the at least two first blockchain networks with the smallest corresponding charging amount, in order from the smallest to the largest, and form an identification sequence using the network identifications of the respective first blockchain networks that are sequentially determined; A second transceiver unit is used to send the transaction to the first blockchain network corresponding to the target identifier, so that the first blockchain network corresponding to the target identifier stores the transaction in the blockchain; wherein the second transceiver unit is specifically used to send the identification sequence to the terminal device; The first transceiver unit is further used to send the charging amount and security performance description information of each of the first blockchain networks to the terminal device, so that the terminal device provides the charging amount and security performance description information of each of the first blockchain networks to the user; A description of the security performance of a blockchain network, including the complexity of the encryption algorithm used by the blockchain network when transmitting data point-to-point, and the number of blockchain nodes contained in the blockchain network; The terminal device provides the user with the network identifiers of multiple blockchain networks with relatively small charging amounts. The user selects the blockchain network indicated by one or more network identifiers to store the target data based on his or her personal preferences or for other purposes.
5. The device according to claim 4, characterized in that The demand information also includes the data identifier of the target data and the identity identifier of the user; The data field of the transaction also includes the data identifier and the identity identifier; The processing unit is further used to establish an association relationship between the data identifier, the identity identifier and the target identifier.
6. The device according to claim 5, characterized in that The first transceiver unit is further configured to receive a data query request from the terminal device, wherein the data query request includes the data identifier and the identity identifier; The processing unit is further configured to determine the target identifier associated with the data identifier and the identity identifier according to the association relationship; Obtaining the transaction from a first blockchain network corresponding to the target identifier; The second transceiver unit is further used to send the target data contained in the data field of the transaction to the terminal device.
