CN111125187A - Data management method and device based on block chain - Google Patents

Data management method and device based on block chain Download PDF

Info

Publication number
CN111125187A
CN111125187A CN201911206344.7A CN201911206344A CN111125187A CN 111125187 A CN111125187 A CN 111125187A CN 201911206344 A CN201911206344 A CN 201911206344A CN 111125187 A CN111125187 A CN 111125187A
Authority
CN
China
Prior art keywords
data
blockchain
network
identifier
block chain
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201911206344.7A
Other languages
Chinese (zh)
Inventor
李立中
李知旃
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Lizhan Shanghai Technology Co ltd
Original Assignee
Lizhan Shanghai Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Lizhan Shanghai Technology Co ltd filed Critical Lizhan Shanghai Technology Co ltd
Priority to CN201911206344.7A priority Critical patent/CN111125187A/en
Publication of CN111125187A publication Critical patent/CN111125187A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/27Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/245Query processing
    • G06F16/2458Special types of queries, e.g. statistical queries, fuzzy queries or distributed queries
    • G06F16/2471Distributed queries

Abstract

The embodiment of the application discloses a data management method and device based on a block chain. In an embodiment, a method is applied to a computing device, the method comprising: sending network identifiers of at least two first block chain networks to the terminal equipment; receiving target data from a terminal device, and receiving selection information from the terminal device, the selection information indicating a target identifier selected by a user from network identifiers of at least two blockchain networks; and sending the transaction to the first blockchain network corresponding to the target identifier, wherein the data field of the transaction contains target data so that the first blockchain network corresponding to the target identifier stores the transaction to the blockchain. By the technical scheme of the embodiment of the application, a user can be ensured to selectively store target data in a certain block chain network without deploying client programs corresponding to a plurality of block chain networks in the terminal equipment managed by the user, and the user experience is good.

Description

Data management method and device based on block chain
Technical Field
The present application relates to the field of computer technologies, and in particular, to a data management method and apparatus based on a block chain.
Background
The blockchain verifies and stores data by using a chain data structure, generates and updates data by using a distributed node consensus algorithm, and ensures the safety of data transmission and access among various distributed nodes by using a cryptographic mode. The blockchain technology is a decentralized distributed database technology in nature, and data is stored in each accounting node of the blockchain network in a public and transparent mode, so that the data stored to the blockchain has the characteristic of being not tampered.
For a normal user, the terminal device managed by the normal user may not act as a blockchain node and join any blockchain network. Correspondingly, when a user needs to store specific data through the blockchain network, a client program corresponding to the corresponding blockchain network needs to be deployed in advance in the terminal device managed by the user, and the specific data is issued to the corresponding blockchain network through the client program, so that the blockchain network stores target data into the blockchain.
Correspondingly, in order to ensure that a user can selectively store target data in a certain blockchain network, a client program corresponding to each of a plurality of blockchain networks is often deployed in a terminal device managed by the user, and user experience is very poor.
Disclosure of Invention
The embodiment of the application provides a block chain based data management method and device, and a user can be ensured to selectively store target data in a certain block chain network without deploying client programs corresponding to a plurality of block chain networks in a terminal device managed by the user, so that the user experience is better.
In a first aspect, a data management method based on a block chain is provided, and is applied to a computing device connected to a terminal device, and the method includes:
sending network identifiers of at least two first block chain networks to a terminal device so that the terminal device provides the network identifiers of the first block chain networks to a user;
receiving the target data from the terminal device, and receiving selection information from the terminal device, wherein the selection information is used for indicating a target identifier selected by a user from network identifiers of the first blockchain networks;
and sending a transaction to the first blockchain network corresponding to the target identifier, wherein the data field of the transaction contains the target data, so that the first blockchain network corresponding to the target identifier stores the transaction to a blockchain.
In one possible embodiment of the method according to the invention,
before the sending of the network identifications of the at least two first blockchain networks to the terminal device, the method further comprises:
receiving requirement information of the target data from terminal equipment, wherein the requirement information at least comprises a safety performance requirement and the data volume of the target data;
determining at least two third blockchain networks meeting the safety performance requirements from the at least two second blockchain networks according to the safety performance description information of the at least two second blockchain networks;
determining the charge amount of each third block chain network according to the data volume and the charge standard of each third block chain network;
sequentially determining the at least two first block chain networks with the minimum corresponding charge amount from the third block chain networks according to the sequence from small to large, and forming an identification sequence by using the network identifications of the sequentially determined first block chain networks;
the sending of the network identifiers of the at least two first blockchain networks to the terminal device includes: and sending the identification sequence to the terminal equipment.
In one possible embodiment of the method according to the invention,
the method further comprises the following steps: and sending the charging amount and the security performance description information of each first block chain network to the terminal equipment so that the terminal equipment provides the charging amount and the security performance description information of each first block chain network to the user.
In one possible embodiment of the method according to the invention,
the requirement information also comprises a data identifier of the target data and an identity identifier of the user;
the data field of the transaction also comprises the data identification and the identity identification;
after the sending of the transaction to the first blockchain network to which the target identifier corresponds, the method further includes: and constructing an incidence relation among the data identification, the identity identification and the target identification.
In one possible embodiment of the method according to the invention,
the method further comprises the following steps:
receiving a data query request from the terminal equipment, wherein the data query request comprises the data identifier and the identity identifier;
determining the target identification associated with the data identification and the identity identification according to the association relationship;
acquiring the transaction from a first blockchain network corresponding to the target identifier;
and sending the target data contained in the data field of the transaction to the terminal equipment.
In a second aspect, an apparatus for block chain-based data management is provided, which is applied to a computing device connected to a terminal device, and includes:
a first transceiving unit, configured to send network identifiers of at least two first blockchain networks to a terminal device, so that the terminal device provides a user with a network identifier of each first blockchain network; receiving the target data from the terminal device, and receiving selection information from the terminal device, wherein the selection information is used for indicating a target identifier selected by a user from network identifiers of the first blockchain networks;
the processing unit is used for generating a transaction, and a data field of the transaction contains the target data;
and the second transceiver unit is configured 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 to a blockchain.
In one possible embodiment of the method according to the invention,
the first transceiving unit is configured to receive requirement information of the target data from a terminal device, where the requirement information at least includes a security performance requirement and a data volume of the target data;
the processing unit is configured to determine, according to the security performance description information of the at least two second blockchain networks, the at least two third blockchain networks meeting the security performance requirement from the at least two second blockchain networks; determining the charge amount of each third block chain network according to the data volume and the charge standard of each third block chain network; sequentially determining the at least two first block chain networks with the minimum corresponding charge amount from the third block chain networks according to the sequence from small to large, and forming an identification sequence by using the network identifications of the sequentially determined first block chain networks;
the first transceiver unit is specifically configured to send the identifier sequence to the terminal device.
In one possible embodiment of the method according to the invention,
the first transceiving unit is further configured to send the charging amount and the security performance description information of each first block chain network to the terminal device, so that the terminal device provides the charging amount and the security performance description information of each first block chain network to the user.
In one possible embodiment of the method according to the invention,
the requirement information also comprises a data identifier of the target data and an identity identifier of the user;
the data field of the transaction also comprises the data identification and the identity identification;
the processing unit is further configured to construct an association relationship between the data identifier, the identity identifier, and the target identifier.
In one possible embodiment of the method according to the invention,
the first transceiver unit is further configured to receive a data query request from the terminal device, where the data query request includes the data identifier and the identity identifier;
the processing unit is further used for determining the target identifier associated with the data identifier and the identity identifier according to the association relation; acquiring the transaction from a first blockchain network corresponding to the target identifier;
the first transceiving unit is further configured to send the target data included in the data field of the transaction to the terminal device.
In a third aspect, there is provided a computer readable storage medium having stored thereon a computer program which, when executed in a computing device, implements the method of any of the first aspects.
In a fourth aspect, there is provided a computing device comprising a memory having stored therein executable code and a processor that, when executing the executable code, implements the method of any of the first aspects.
By the data management method and device based on the blockchain, when a user needs to store target data in the blockchain network, the computing device can send network identifiers of at least two first blockchain networks to the terminal device managed by the user, and the user can select one 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. Therefore, the client programs corresponding to the plurality of block chain networks are not required to be deployed in the terminal equipment managed by the user, the user can be ensured to selectively store the target data in one block chain network, and the user experience is good.
Drawings
FIG. 1 is a system framework diagram of the solution provided in the examples of the present application;
fig. 2 is a schematic diagram illustrating a process of recommending, to a user, each blockchain network that meets the security performance desired by the user and is relatively inexpensive in cost in an embodiment of the present application;
fig. 3 is a schematic flowchart of a data management method based on a block chain according to an embodiment of the present application;
fig. 4 is a schematic process diagram of a computing device providing data stored in a blockchain network to a terminal device in an embodiment of the present application;
fig. 5 is a schematic structural diagram of a data management apparatus based on a block chain according to an embodiment of the present application.
Detailed Description
Fig. 1 shows a system framework schematic diagram of the technical solution provided in the embodiment of the present application. As shown in fig. 1, the computing device 20 may be connected to one or more terminal devices 30, as well as to a plurality of blockchain networks (otherwise known as blockchain systems) 10.
For a blockchain network 10, the blockchain network 10 may include a plurality of blockchain nodes 101. Each blockchain node 101 included in the blockchain network 10 has the capability to broadcast transactions containing data to other blockchain nodes 101 included in the blockchain network 10. The blockchain node 101 as an accounting node can pack the transactions received by the blockchain node into blocks, and add the blocks to the blockchain on the recording node, so as to store the data or the transactions containing the data into the blockchain. Each blockchain node 101 included in the blockchain network 10 stores the same transaction, that is, each blockchain node 101 of the blockchain network 10 stores the same data; and, of the two adjacent blocks included in the block chain stored at the block link point 101, the following packed block is associated with the preceding packed block. In this way, the data stored into the blockchain is made to have a non-tamperable characteristic.
It will be appreciated that different blockchain networks may have different security capabilities. For example, the number of blockchain nodes included in the blockchain network and the encryption algorithm used by the blockchain network in performing point-to-point data transmission may affect the security performance of the blockchain network. For example, different blockchain networks may use encryption algorithms with different complexity levels to encrypt point-to-point transmitted data, and if the complexity level of the encryption algorithm used by one blockchain network is higher, the difficulty of an intruder invading and tampering the transmitted data is higher, and the security performance of the blockchain network is higher.
The computing device 20 may be a server or a server cluster comprised of multiple servers.
For any one of the blockchain networks 10, a client program corresponding to the blockchain network 10 may be deployed on the computing device 20, so that the computing device 20 is connected to the blockchain node 101 of the blockchain network 10 through the client program. Accordingly, the computing device 20 may send transactions containing data to the blockchain nexus 101 to which it is connected, i.e., effect sending transactions containing data to the blockchain network 10. Also, the computing device 20 may obtain transactions that contain data from the block chain at the block link point 101 or obtain data contained in a transaction.
It is understood that the user managed terminal device 30 includes, but is not limited to, various forms of electronic devices such as a notebook computer, a tablet computer, a smart phone, and the like.
In the prior art, a user may need to deploy a client program corresponding to each of a plurality of blockchain networks in a terminal device, and when the user needs to store target data through the blockchain network, the user queries the security description information and the charging standard of the plurality of blockchain networks one by one in a manual query manner, and determines a blockchain network which meets the security performance expected by the user and has relatively low cost from a large number of blockchain networks. Then, the target data is stored in the blockchain network through the client program corresponding to the blockchain network which meets the safety performance expected by the user and has relatively low cost. That is to say, in order to ensure that a user can selectively store target data in a certain blockchain network, a client program corresponding to each of a plurality of blockchain networks often needs to be deployed in a terminal device managed by the user, user experience is very poor, and excessive resources of the terminal device may be consumed.
In view of this, the present disclosure provides at least a block chain based data management method and apparatus. When a user needs to store target data in the blockchain network, the computing device may send network identifiers of at least two first blockchain networks to a terminal device managed by the user, and the user may select one 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. Therefore, the client programs corresponding to the plurality of block chain networks are not required to be deployed in the terminal equipment managed by the user, the user can be ensured to selectively store the target data in one block chain network, and the user experience is good.
The technical solution of the embodiments of the present application will be described in detail below with reference to the above system framework and other drawings.
First, when different blockchain networks respectively provide data storage services for users, the different blockchain networks may have different charging standards and security capabilities, and the users themselves may also expect the blockchain network for storing target data to have corresponding security capabilities. In order to enable the user to quickly know the blockchain networks which meet the security performance desired by the user and are relatively cheap when the user needs to store the target data through the blockchain network, the computing device may perform steps 201 to 205 shown in fig. 2.
Fig. 2 is a schematic diagram illustrating a process of recommending, to a user, each blockchain network that meets the security performance desired by the user and is relatively inexpensive in cost in the embodiment of the present application. Specifically, as shown in fig. 2, the following steps 201 to 205 may be performed by the computing device 20 in which the block chain-based data management apparatus is deployed: step 201, receiving requirement information of the target data from a terminal device, wherein the requirement information at least comprises a security performance requirement and a data volume of the target data; step 202, according to the security performance description information of at least two second blockchain networks, determining at least two third blockchain networks meeting the security performance requirement from the at least two second blockchain networks; step 203, determining the charge amount of each third block chain network according to the data amount and the charge standard of each third block chain network; step 204, sequentially determining the at least two first block chain networks with the minimum corresponding charge amount from the third block chain networks in the descending order, and forming an identification sequence by using the sequentially determined network identifications of the first block chain networks; step 205, sending the identification sequence to the terminal device.
First, in step 201, the computing device 20 may receive requirement information of the target data from the terminal device, where the requirement information includes at least a security performance requirement and a data amount of the target data.
The requirement information of the target data may include at least a security requirement and a data amount of the target data.
For example, for the security performance requirement, a minimum value of the complexity of the encryption algorithm used by the blockchain network in the point-to-point data transmission may be indicated, and a minimum value of the number of blockchain nodes included in the blockchain network may also be indicated.
It is understood that the requirement information of the target data, including but not limited to the input to the terminal device by the user, may also be generated by the terminal device through a corresponding computer program. For example, a corresponding computer program can be deployed in the terminal device, by means of which the security performance requirement input by the user is received, and by means of which the data quantity of the target data already stored in the terminal device is determined.
Specifically, different types of target data or target data for implementing different business objectives may correspond to different security performance requirements, and the security performance requirements of the target data may be generally specified by a user in combination with actual situations.
Then, in step 202, the computing device 20 may determine, from the at least two second blockchain networks, the at least two third blockchain networks meeting the security performance requirement according to the security performance description information of the at least two second blockchain networks.
It is to be appreciated that the computing device 20 may pre-fetch security capability description information for each of a number of blockchain networks. For example, the security description of a blockchain network may include the complexity of the encryption algorithm used by the blockchain network for performing point-to-point data transmission, and may also include the number of blockchain nodes included in the blockchain network.
Correspondingly, for any third blockchain network, the complexity of the encryption algorithm applicable to the third blockchain network in point-to-point data transmission should be not less than the minimum value of the complexity of the encryption algorithm indicated by the security performance requirement; and it should contain no less than the minimum of the number of block link points indicated by the safety performance requirement.
Next, at step 203, computing device 20 may determine a charge amount for each of the third block chain networks based on the data amount and the charge criteria for each of the third block chain networks.
Generally, for a blockchain network, the larger the data amount of the target data that needs to be stored, the more resources (such as storage resources) that the target data needs to consume in the blockchain network, and the more fees the user needs to pay. However, different blockchain networks are typically managed by different operators, which may set different charging criteria for their respective managed blockchain networks.
That is, the computing device 20 may pre-obtain respective charging criteria for a large number of blockchain networks.
For example, in the charging standard established by the operator a for the blockchain network N1 managed by the operator a, if the data amount of the target data to be stored is between m1-m2, the charging amount is X1; in the charging standard set by the operator B for the blockchain network N2 managed by the operator B, if the data amount of the target data required to be stored is between m1-m2, the charging amount may be X2 different from X1. Accordingly, if the data amount contained in the demand information is between m1 and m2, the charged amount of N1 is X1, and the charged amount of N2 is X2.
Then, in step 204, the computing device 20 may sequentially determine, from the third blockchain networks, the at least two first blockchain networks with the smallest corresponding charging amount in descending order, and form an identification sequence by using the sequentially determined network identifiers of the first blockchain networks.
The determined number of each first blockchain network may be a preset value.
For example, for each blockchain network respectively identified by network identifiers N1, N2, N3, N4, and N5, for target data that a user needs to store to 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, and assuming that the number of each first blockchain network to be determined in advance is 3, block chain networks N1, N3, and N2 respectively corresponding to X1, X3, and X2 may be sequentially determined as a second blockchain network in descending order of 1, N3, and N2. Accordingly, the identification sequences [ N1, N3, N2] can be composed of N1, N3 and N2.
Further, at step 205, computing device 20 may send the identification sequence to the terminal device.
Accordingly, the terminal device 30 may provide the identification sequence to the user. Illustratively, after the terminal device 30 receives the identification sequence [ N1, N3, N2] from the computing device 20, the identification sequence [ N1, N3, N2] may be displayed to the user.
It will be understood that the sequence between the network representations included in the representation sequence is arranged in order of the smallest amount according to the charging amount of the blockchain network respectively corresponding to each identifier. Therefore, the user can also quickly determine the block chain network with the minimum corresponding charge amount according to the identification sequence, so that the user can store the target data through the block chain network with the minimum corresponding charge amount, and the user experience is excellent.
Meanwhile, the terminal device provides network identifiers of a plurality of block chain networks with relatively small charging amount for the user, and the user can select the block chain networks respectively indicated by one or more network identifiers to store the target data according to personal preference or for achieving other purposes.
In summary, when there is target data to be stored in the blockchain network in the terminal device managed by the user, the terminal device 30 managed by the user can trigger the computing device 20 to perform at least the foregoing steps 201 to 205, so as to quickly obtain the blockchain networks that meet the security performance requirements of the user and are relatively inexpensive.
It may be understood that the computing device may also determine, in other ways, network identifiers of at least two first blockchain networks sent to the terminal device, and provide, by the terminal device, the network identifiers of the first blockchain networks to the user. For example, the computing device may send a pre-established list to the terminal device containing the identities of the plurality of first blockchain networks, which list may be displayed by the terminal device to the user.
On the basis of the embodiment shown in fig. 2, when the computing device 20 sends the identification sequence to the terminal device, it may also send the charging amount and the security performance description information of each first blockchain network to the terminal device. Accordingly, the terminal device may provide the user with the charging amount and the security performance description information of each first blockchain network. So that the user can comprehensively measure the charging amount and the safety performance description information of each first block chain network, and one or more first block chain networks are selected to store target data.
Further, in order to realize that the target data is stored in the corresponding first blockchain network according to the instruction of the user without deploying a client program corresponding to each of the plurality of blockchain networks in the terminal device managed by the user. In a possible implementation, the computing device 20 deployed with the data management apparatus 50 based on the blockchain network may further perform steps 301 to 303 shown in fig. 3:
step 301, sending network identifiers of at least two first block chain networks to a terminal device, so that the terminal device provides a user with the network identifiers of the first block chain networks; step 302, receiving the target data from the terminal device, and receiving selection information from the terminal device, wherein the selection information is used for indicating a target identifier selected by a user from network identifiers of the first blockchain networks; step 303, sending a transaction to the first blockchain network corresponding to the target identifier, where a data field of the transaction includes the target data, so that the first blockchain network corresponding to the target identifier stores the transaction to a blockchain.
First, in step 301, the computing device 20 may send network identifications of at least two first blockchain networks to the terminal device.
As mentioned above, the network identifications of the at least two first blockchain networks sent by the computing device 20 to the terminal device may be an identification sequence formed by arranging the network identifications of the at least two first blockchain networks.
Accordingly, the terminal device may provide the user with a network identification of each of the first blockchain networks. For example, the terminal device may display to the user an identification sequence comprising network identifications of at least two blockchain networks.
Computing device 20 may receive the target data from the terminal device and select information from the terminal device, step 302.
Wherein the selection information is used for indicating a target identifier selected by a user from network identifiers of the first blockchain networks
For example, the terminal device 30 may display the identification sequence to the user through a corresponding computer program, and the user may trigger one of the target identifiers included in the identification sequence to form the selection information including the target identifier; accordingly, the selection information may then be used to indicate the target identity selected by the user from the identity sequence.
Next, at step 303, computing device 20 may also send a transaction to the first blockchain network to which the target identification corresponds.
The data field of the transaction contains the target data, and the first blockchain network corresponding to the target identifier can store the transaction to a blockchain. Therefore, the target data can be stored in the first block chain network corresponding to the target identification selected by the user.
In the embodiment shown in fig. 3, the user may 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. That is, the target data generated or obtained by the terminal device may 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 additionally deploy client programs corresponding to a plurality of blockchain networks. Therefore, on one hand, the resource consumption of the terminal equipment managed by the user can be reduced; on the other hand, a user does not need to deploy and operate a large number of client programs corresponding to the blockchain networks in the terminal equipment, and the user experience is excellent.
Further, in order to facilitate the user to obtain the target data that has been stored in the blockchain network through the terminal device 30 managed by the user, in a possible implementation manner, on the basis of the embodiment shown in fig. 3, the computing device 20 may further construct an association relationship between the data identifier of the target data, the identity identifier of the user, and the target identifier after completing the transaction sent to the second blockchain network corresponding to the target identifier.
In a more specific example, the requirement information of the target data may further include a data identifier of the target data and an identity identifier of the user. It is to be understood that the data identification of the target data may be used in the terminal device 30 to uniquely identify the target data, and the identity of the user may be used in the computing device 20 to uniquely identify the user managing the terminal device 30. Accordingly, the data identification of the target data and the identity of the user may then be used to uniquely identify the target data in the computing device 20. Thus, the data identifier of the target data and the identity identifier of the user are associated with the target identifier, so that the user can conveniently trigger the computing device 20 to acquire the target data or a transaction containing the target data from the first blockchain network corresponding to the target identifier in the subsequent process according to the data identifier of the target data and the identity identifier of the user, and send the target data to the terminal device 30.
In a more specific example, as shown in fig. 4, the computing device 20 deployed with the blockchain-based data management apparatus may further perform the following steps 401 to 404 to provide the target data stored in the blockchain network to the user.
First, in step 401, computing device 20 may receive a data query request from a terminal device.
The data query request comprises a data identifier of target data and an identity identifier of a user.
That is, when a user needs to query target data that has been stored in the blockchain network, the terminal device 30 may be triggered to generate a query request including a data identifier of the target data and an identity of the user, and send the query request to the computing device 20.
Next, at step 402, computing device 20 may determine the target identification associated with the data identification of the target data, the identity of the user.
That is, the computing device 20 may determine the first blockchain network in which the target data is stored according to the established association relationship, the data identifier of the target data included in the received query request, and the identity of the user.
Thereafter, at step 403, computing device 20 may also obtain the transaction from the first blockchain network corresponding to the target identification.
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 a host of the computing device, and according to the address information, the computing device 20 may obtain, from the second blockchain network corresponding to the target identifier, all transactions sent by the computing device 20 to the first blockchain network corresponding to the target identifier, or obtain data included in each transaction sent by the computing device 20 to the first blockchain network corresponding to the target identifier.
Accordingly, the computing device 20 may further determine, from each transaction sent to the first blockchain network corresponding to the target identifier, a transaction in which the data field includes the data identifier of the target data and the identity identifier of the user, and further obtain the target data from the transaction.
Further, at step 404, computing device 20 may send the target data contained in the data field of the transaction to the terminal device.
In this manner, the user may trigger the computing device 20 to obtain the target data or a transaction containing the target data from the blockchain network via the terminal device 30. That is to say, the terminal device 30 managed by the user can acquire the target data already stored in each blockchain network without additionally deploying a client program corresponding to each different blockchain network. Therefore, on one hand, the resource consumption of the terminal equipment managed by the user can be reduced; on the other hand, a user does not need to deploy and operate a large number of client programs corresponding to the blockchain networks in the terminal equipment, and the user experience is excellent.
Based on the same concept as the foregoing method embodiment, the embodiment of the present application further provides a block chain based data management apparatus 50, where the apparatus 50 may be deployed in a computing device 20 as shown in fig. 1. As shown in fig. 5, the apparatus may include at least:
a first transceiver unit 501, configured to send network identifiers of at least two first blockchain networks to a terminal device, so that the terminal device provides a network identifier of each first blockchain network to a user; receiving the target data from the terminal device, and receiving selection information from the terminal device, wherein the selection information is used for indicating a target identifier selected by a user from network identifiers of the first blockchain networks;
a processing unit 502, configured to generate a transaction, where a data field of the transaction includes the target data;
the second transceiver unit 503 is configured 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 to a blockchain.
In a possible implementation manner, the first transceiver unit 501 is configured to receive requirement information of the target data from a terminal device, where the requirement information at least includes a security performance requirement and a data amount of the target data;
the processing unit 502 is configured to determine, according to the security performance description information of at least two second blockchain networks, the at least two third blockchain networks meeting the security performance requirement from the at least two second blockchain networks; determining the charge amount of each third block chain network according to the data volume and the charge standard of each third block chain network; sequentially determining the at least two first block chain networks with the minimum corresponding charge amount from the third block chain networks according to the sequence from small to large, and forming an identification sequence by using the network identifications of the sequentially determined first block chain networks;
the first transceiver unit 501 is specifically configured to send the identifier sequence to the terminal device.
In a possible implementation manner, the first transceiver unit 501 is further configured to send the charging amount and the security capability description information of each first blockchain network to the terminal device, so that the terminal device provides the charging amount and the security capability description information of each first blockchain network to the user.
In a possible implementation manner, the requirement information further includes a data identifier of the target data and an identity identifier of the user; the data field of the transaction also comprises the data identification and the identity identification;
the processing unit 502 is further configured to construct an association relationship between the data identifier, the identity identifier, and the target identifier.
In a possible implementation manner, the first transceiver unit 501 is further configured to receive a data query request from the terminal device, where the data query request includes the data identifier and the identity identifier;
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; acquiring the transaction from a first blockchain network corresponding to the target identifier;
the first transceiver unit 501 is further configured to send the target data included in the data field of the transaction to the terminal device.
Those skilled in the art will recognize that in one or more of the examples described above, the functions described herein may be implemented in hardware, software, firmware, or any combination thereof. When implemented in software, a computer program corresponding to these functions may be stored in a computer-readable medium or transmitted as one or more instructions/codes on the computer-readable medium, so that when the computer program corresponding to these functions is executed by a computing device, the method described in any one of the embodiments of the present invention is implemented by the computing device.
Accordingly, a computer-readable storage medium is further provided in an embodiment of the present application, and a computer program is stored thereon, and when the computer program is executed in a computing device, the computing device implements the block chain based data management method provided in any one of the embodiments of the present application.
The embodiment of the present application further provides a computing device, which includes a memory and a processor, where the memory stores executable codes, and when the processor executes the executable codes, the method for managing data based on a block chain provided in any embodiment of the present application is implemented.
The various embodiments in this application are described in a progressive manner, and like parts in the various embodiments can be referred to one another, and each embodiment will be described with emphasis on differences from other embodiments. In particular, the apparatus/device/system embodiments are substantially similar to the method embodiments, so that the description is simple, and reference may be made to some descriptions of the method embodiments for relevant points.
The foregoing description of specific embodiments of the present application has been presented. Other embodiments are within the scope of the following claims. In some cases, the actions or steps recited in the claims may be performed in a different order than in the embodiments and still achieve desirable results. In addition, the processes depicted in the accompanying figures do not necessarily require the particular order shown, or sequential order, to achieve desirable results. In some embodiments, multitasking and parallel processing may also be possible or may be advantageous.
The above-mentioned embodiments, objects, technical solutions and advantages of the present invention are further described in detail, it should be understood that the above-mentioned embodiments are only exemplary embodiments of the present invention, and are not intended to limit the scope of the present invention, and any modifications, equivalent substitutions, improvements and the like made on the basis of the technical solutions of the present invention should be included in the scope of the present invention.

Claims (10)

1. A data management method based on a block chain is applied to a computing device connected with a terminal device, and the method comprises the following steps:
sending network identifiers of at least two first block chain networks to a terminal device so that the terminal device provides the network identifiers of the first block chain networks to a user;
receiving the target data from the terminal device, and receiving selection information from the terminal device, wherein the selection information is used for indicating a target identifier selected by a user from network identifiers of the first blockchain networks;
and sending a transaction to the first blockchain network corresponding to the target identifier, wherein the data field of the transaction contains the target data, so that the first blockchain network corresponding to the target identifier stores the transaction to a blockchain.
2. The method of claim 1,
before the sending of the network identifications of the at least two first blockchain networks to the terminal device, the method further comprises:
receiving requirement information of the target data from terminal equipment, wherein the requirement information at least comprises a safety performance requirement and the data volume of the target data;
determining at least two third blockchain networks meeting the safety performance requirements from the at least two second blockchain networks according to the safety performance description information of the at least two second blockchain networks;
determining the charge amount of each third block chain network according to the data volume and the charge standard of each third block chain network;
sequentially determining the at least two first block chain networks with the minimum corresponding charge amount from the third block chain networks according to the sequence from small to large, and forming an identification sequence by using the network identifications of the sequentially determined first block chain networks;
the sending of the network identifiers of the at least two first blockchain networks to the terminal device includes: and sending the identification sequence to the terminal equipment.
3. The method of claim 2,
the method further comprises the following steps: and sending the charging amount and the security performance description information of each first block chain network to the terminal equipment so that the terminal equipment provides the charging amount and the security performance description information of each first block chain network to the user.
4. The method according to any one of claims 1 to 3,
the requirement information also comprises a data identifier of the target data and an identity identifier of the user;
the data field of the transaction also comprises the data identification and the identity identification;
after the sending of the transaction to the first blockchain network to which the target identifier corresponds, the method further includes: and constructing an incidence relation among the data identification, the identity identification and the target identification.
5. The method of claim 4,
the method further comprises the following steps:
receiving a data query request from the terminal equipment, wherein the data query request comprises the data identifier and the identity identifier;
determining the target identification associated with the data identification and the identity identification according to the association relationship;
acquiring the transaction from a first blockchain network corresponding to the target identifier;
and sending the target data contained in the data field of the transaction to the terminal equipment.
6. A block chain-based data management device, applied to a computing device connected to a terminal device, the device comprising:
a first transceiving unit, configured to send network identifiers of at least two first blockchain networks to a terminal device, so that the terminal device provides a user with a network identifier of each first blockchain network; receiving the target data from the terminal device, and receiving selection information from the terminal device, wherein the selection information is used for indicating a target identifier selected by a user from network identifiers of the first blockchain networks;
the processing unit is used for generating a transaction, and a data field of the transaction contains the target data;
and the second transceiver unit is configured 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 to a blockchain.
7. The apparatus of claim 6,
the first transceiving unit is configured to receive requirement information of the target data from a terminal device, where the requirement information at least includes a security performance requirement and a data volume of the target data;
the processing unit is configured to determine, according to the security performance description information of the at least two second blockchain networks, the at least two third blockchain networks meeting the security performance requirement from the at least two second blockchain networks; determining the charge amount of each third block chain network according to the data volume and the charge standard of each third block chain network; sequentially determining the at least two first block chain networks with the minimum corresponding charge amount from the third block chain networks according to the sequence from small to large, and forming an identification sequence by using the network identifications of the sequentially determined first block chain networks;
the first transceiver unit is specifically configured to send the identifier sequence to the terminal device.
8. The apparatus of claim 7,
the first transceiving unit is further configured to send the charging amount and the security performance description information of each first block chain network to the terminal device, so that the terminal device provides the charging amount and the security performance description information of each first block chain network to the user.
9. The apparatus according to any one of claims 6 to 8,
the requirement information also comprises a data identifier of the target data and an identity identifier of the user;
the data field of the transaction also comprises the data identification and the identity identification;
the processing unit is further configured to construct an association relationship between the data identifier, the identity identifier, and the target identifier.
10. The apparatus of claim 9,
the first transceiver unit is further configured to receive a data query request from the terminal device, where the data query request includes the data identifier and the identity identifier;
the processing unit is further used for determining the target identifier associated with the data identifier and the identity identifier according to the association relation; acquiring the transaction from a first blockchain network corresponding to the target identifier;
the first transceiving unit is further configured to send the target data included in the data field of the transaction to the terminal device.
CN201911206344.7A 2019-11-29 2019-11-29 Data management method and device based on block chain Pending CN111125187A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911206344.7A CN111125187A (en) 2019-11-29 2019-11-29 Data management method and device based on block chain

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911206344.7A CN111125187A (en) 2019-11-29 2019-11-29 Data management method and device based on block chain

Publications (1)

Publication Number Publication Date
CN111125187A true CN111125187A (en) 2020-05-08

Family

ID=70497170

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911206344.7A Pending CN111125187A (en) 2019-11-29 2019-11-29 Data management method and device based on block chain

Country Status (1)

Country Link
CN (1) CN111125187A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113259462A (en) * 2021-06-02 2021-08-13 支付宝(杭州)信息技术有限公司 Block chain message distribution method and device

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1142718A (en) * 1995-06-30 1997-02-12 佳能株式会社 Communication apparatus and communication system
CN107018125A (en) * 2017-02-17 2017-08-04 阿里巴巴集团控股有限公司 A kind of block catenary system, date storage method and device
CN107358420A (en) * 2017-06-09 2017-11-17 北京博晨技术有限公司 Method for realizing the block catenary system of focus account and realizing focus account
WO2018095275A1 (en) * 2016-11-24 2018-05-31 阿里巴巴集团控股有限公司 Data access method, system and apparatus
CN108848148A (en) * 2018-06-04 2018-11-20 立旃(上海)科技有限公司 Transaction Information confirmation method and device based on block chain
CN109144969A (en) * 2018-10-09 2019-01-04 上海点融信息科技有限责任公司 For the data processing method of block chain network system, device and storage medium
CN109218352A (en) * 2017-06-30 2019-01-15 华为技术有限公司 The common recognition confirmation method and device of Transaction Information in a kind of block chain network
WO2019024161A1 (en) * 2017-08-04 2019-02-07 平安科技(深圳)有限公司 Block chain-based data management method, block chain system, server and readable storage medium
CN109426949A (en) * 2017-08-29 2019-03-05 华为技术有限公司 Across the chain method of commerce of one kind and device
WO2019191267A1 (en) * 2018-03-27 2019-10-03 Averon Us, Inc. Using out-of-band mobile device possession attestation to release verified user identity attributes during internet transactions
CN110348242A (en) * 2017-06-12 2019-10-18 腾讯科技(深圳)有限公司 Service request processing method and device

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1142718A (en) * 1995-06-30 1997-02-12 佳能株式会社 Communication apparatus and communication system
WO2018095275A1 (en) * 2016-11-24 2018-05-31 阿里巴巴集团控股有限公司 Data access method, system and apparatus
CN107018125A (en) * 2017-02-17 2017-08-04 阿里巴巴集团控股有限公司 A kind of block catenary system, date storage method and device
CN107358420A (en) * 2017-06-09 2017-11-17 北京博晨技术有限公司 Method for realizing the block catenary system of focus account and realizing focus account
CN110348242A (en) * 2017-06-12 2019-10-18 腾讯科技(深圳)有限公司 Service request processing method and device
CN109218352A (en) * 2017-06-30 2019-01-15 华为技术有限公司 The common recognition confirmation method and device of Transaction Information in a kind of block chain network
WO2019024161A1 (en) * 2017-08-04 2019-02-07 平安科技(深圳)有限公司 Block chain-based data management method, block chain system, server and readable storage medium
CN109426949A (en) * 2017-08-29 2019-03-05 华为技术有限公司 Across the chain method of commerce of one kind and device
WO2019042101A1 (en) * 2017-08-29 2019-03-07 华为技术有限公司 Cross-chain trading method and apparatus
WO2019191267A1 (en) * 2018-03-27 2019-10-03 Averon Us, Inc. Using out-of-band mobile device possession attestation to release verified user identity attributes during internet transactions
CN108848148A (en) * 2018-06-04 2018-11-20 立旃(上海)科技有限公司 Transaction Information confirmation method and device based on block chain
CN109144969A (en) * 2018-10-09 2019-01-04 上海点融信息科技有限责任公司 For the data processing method of block chain network system, device and storage medium

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
徐延军;苏鹏;: "高速公路联网收费网络安全性探讨", 上海船舶运输科学研究所学报, no. 02 *
陈齐;王正国;李文锋;曹菁菁;: "区块链技术在新型网络购物平台设计中的应用", 武汉理工大学学报(信息与管理工程版), no. 02 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113259462A (en) * 2021-06-02 2021-08-13 支付宝(杭州)信息技术有限公司 Block chain message distribution method and device
CN113259462B (en) * 2021-06-02 2021-10-15 支付宝(杭州)信息技术有限公司 Block chain message distribution method and device

Similar Documents

Publication Publication Date Title
CN110505065B (en) Trusted timestamp adding method and device and storage medium
CN111741026B (en) Cross-chain transaction request processing method, device, equipment and storage medium
US20180004852A1 (en) Method and system for facilitating terminal identifiers
CN109152061B (en) Channel allocation method, device, server and storage medium
CN105229591A (en) Overall situation polymerization NameSpace is created in order to storage administration
CN111597567B (en) Data processing method, data processing device, node equipment and storage medium
CN104486407A (en) Method and device for generating numbers
CN111163130A (en) Network service system and data transmission method thereof
CN106550030B (en) A kind of data sharing method, apparatus and system
CN110866740A (en) Processing method and device for block chain transaction request, electronic equipment and medium
CN113206877A (en) Session keeping method and device
CN112333289A (en) Reverse proxy access method, device, electronic equipment and storage medium
CN113691635A (en) Method and device for calling micro service, electronic equipment and readable storage medium
CN103428260A (en) System and method for allocating server to terminal and efficiently delivering messages to the terminal
CN112200680B (en) Block link point management method, device, computer and readable storage medium
CN111125187A (en) Data management method and device based on block chain
CN112017050B (en) Block chain-based account intelligent contract method and system supporting high-concurrency scene
US8745101B2 (en) Terminal and method for identifying contents
CN112181599B (en) Model training method, device and storage medium
KR20190130377A (en) Network server mediating game item transaction between user terminals and method of operating thereof
CN109544161B (en) Block chain data processing method, system and equipment and serial number generation method
CN110324426A (en) A kind of data capture method, device and system
CN111797169A (en) Data storage method, equipment and storage medium
CN114860390B (en) Container data management method, device, program product, medium and electronic equipment
US20230130882A1 (en) Method and apparatus for managing lwe instance

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination