CN107464117B - Block chain based data management method and block chain system - Google Patents
Block chain based data management method and block chain system Download PDFInfo
- Publication number
- CN107464117B CN107464117B CN201710659544.2A CN201710659544A CN107464117B CN 107464117 B CN107464117 B CN 107464117B CN 201710659544 A CN201710659544 A CN 201710659544A CN 107464117 B CN107464117 B CN 107464117B
- Authority
- CN
- China
- Prior art keywords
- data
- transaction
- response
- request
- node
- 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.)
- Active
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q20/00—Payment architectures, schemes or protocols
- G06Q20/38—Payment protocols; Details thereof
- G06Q20/382—Payment protocols; Details thereof insuring higher security of transaction
Abstract
The invention relates to a data management method based on a block chain and a block chain system, wherein the method comprises the following steps: the method comprises the following steps that a demand party node broadcasts a data transaction request with a demanded party node through a block chain network, wherein the data transaction request comprises transaction attribute data; the demanded party node acquires the data transaction request through the block chain network, and sends a transaction response request corresponding to the data transaction request to the block chain network according to the transaction attribute data of the data transaction request, wherein the transaction response request comprises response attribute data, and the response attribute data comprises a data identifier; and after the demand party node acquires the response attribute data in the transaction response request through the block chain network, determining a data identifier in the response attribute data, and downloading data corresponding to the data identifier from a preset data hosting server according to the determined data identifier. The invention improves the safety of data transaction and storage.
Description
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a block chain-based data management method and a block chain system.
Background
Currently, many companies need to acquire a large amount of sample data to train a relevant model when developing a preset type of data analysis system (e.g., an automatic license plate recognition system, an insurance fraud prevention system, etc.), and most of such sample data are stored in different places in a scattered manner, and when data is required for training, data must be downloaded from each place. There may be data that requires a fee, and it takes a lot of time to jump to a different website for payment.
Although there is a solution for storing data available for transaction by using a central server in the industry, however, the following technical drawbacks exist in this way of storing data by using a server in a centralized manner: the transaction process of transaction double-sending is usually transparent to the server side, the transaction of the transaction participant is not secret, and the security of the transaction and storage of data is not guaranteed.
Disclosure of Invention
The invention aims to provide a data management method based on a block chain and a block chain system, aiming at improving the safety of data transaction and storage.
In order to achieve the above object, the present invention provides a blockchain system, which includes a data hosting server and a blockchain network in data communication with the data hosting server, where the blockchain network includes a demanding party node and a demanded party node, and where:
the demand side node broadcasts a data transaction request with the demanded side node through the block chain network, and the data transaction request comprises transaction attribute data;
the demanded party node acquires the data transaction request through the blockchain network, and sends a transaction response request corresponding to the data transaction request to the blockchain network according to transaction attribute data of the data transaction request, wherein the transaction response request comprises response attribute data, and the response attribute data comprises a data identifier;
and after the demand party node acquires the response attribute data in the transaction response request through the block chain network, determining a data identifier in the response attribute data, and downloading data corresponding to the data identifier from the data hosting server according to the determined data identifier.
Preferably, the blockchain network further includes a transaction verification node and an accounting node, where:
after each transaction verification node of the block chain network receives the transaction response request through the block chain network, verifying the validity of the transaction response request according to a preset rule;
and if the transaction response request is verified to be valid, the accounting node of the blockchain network writes response attribute data of the transaction response request into an intelligent contract of the blockchain network so as to complete the broadcast of the response attribute data to each node of the blockchain network.
Preferably, the demander node is further configured to:
sending a data downloading request comprising a demander identity identifier and the data identifier to the data hosting server;
receiving data corresponding to the data identification, which is sent by the data hosting server in response to the data downloading request;
the data hosting server is further configured to:
after receiving a data downloading request sent by a demand side node of the block chain network, determining a data owner corresponding to a data identifier according to a mapping relation between the predetermined data identifier and the data owner;
inquiring whether the determined data owner is used as a required party node and effective data transaction is carried out with the required party node in an intelligent contract of the block chain network;
and if so, responding to the data downloading request and sending the data corresponding to the data identification to the demand side node.
Preferably, the data hosting server is further configured to:
and inquiring whether the determined data owner is used as a required node corresponding to the data identifier and has effective data transaction with the required node in the intelligent contract of the block chain network.
Preferably, the data hosting server is further configured to:
receiving an upload transaction request broadcasted by a data owner through the blockchain network, wherein the upload transaction request comprises upload attribute data;
and sending an upload response request corresponding to the upload transaction request to the blockchain network according to the upload attribute data, wherein the upload response request comprises upload response data, and the upload response data comprises a data identifier corresponding to the upload response data.
In addition, to achieve the above object, the present invention further provides a data management method based on a blockchain, which is applied to a blockchain system, where the blockchain system includes a data hosting server and a blockchain network in data communication with the data hosting server, and the blockchain network includes a requester node and a callee node, and the method includes the following steps:
A. the method comprises the following steps that a demand party node broadcasts a data transaction request with a demanded party node through a block chain network, wherein the data transaction request comprises transaction attribute data;
B. the demanded party node acquires the data transaction request through the blockchain network, and sends a transaction response request corresponding to the data transaction request to the blockchain network according to transaction attribute data of the data transaction request, wherein the transaction response request comprises response attribute data, and the response attribute data comprises a data identifier;
C. and after the demand party node acquires the response attribute data in the transaction response request through the block chain network, determining a data identifier in the response attribute data, and downloading data corresponding to the data identifier from a data hosting server according to the determined data identifier.
Preferably, the blockchain network further includes a transaction verification node and a billing node, and between step B and step C, further includes:
after each transaction verification node of the block chain network receives the transaction response request through the block chain network, verifying the validity of the transaction response request according to a preset rule;
and if the transaction response request is verified to be valid, the accounting node of the blockchain network writes response attribute data of the transaction response request into an intelligent contract of the blockchain network so as to complete the broadcast of the response attribute data to each node of the blockchain network.
Preferably, the step of downloading the data corresponding to the data identifier from the data hosting server according to the determined data identifier includes:
the demander node sends a data downloading request comprising a demander identity identifier and the data identifier to the data hosting server;
after receiving a data downloading request sent by a demand side node of the block chain network, the data hosting server determines a data owner corresponding to a data identifier according to a mapping relation between the predetermined data identifier and the data owner; inquiring whether the determined data owner is used as a required party node and effective data transaction is carried out with the required party node in an intelligent contract of the block chain network; if so, responding to the data downloading request, and sending the data corresponding to the data identification to the demand side node;
and the requiring side node receives the data corresponding to the data identification, which is sent by the data hosting server responding to the data downloading request.
Preferably, the method further comprises:
the data hosting server inquires whether the determined data owner is used as a required node corresponding to the data identification and has effective data transaction with the requiring party node in an intelligent contract of the block chain network.
Preferably, the method further comprises:
the data hosting server receives an uploading transaction request broadcasted by a data owner through the blockchain network, wherein the uploading transaction request comprises uploading attribute data; and sending an upload response request corresponding to the upload transaction request to the blockchain network according to the upload attribute data, wherein the upload response request comprises upload response data, and the upload response data comprises a data identifier corresponding to the upload response data.
According to the data management method and the block chain system based on the block chain, a demand party and a demanded party perform data transaction through the block chain network, corresponding data are obtained from a preset data hosting server according to effective transaction confirmed in the block chain network, data transaction is performed through the block chain network, and data is managed in the data hosting server in a centralized mode, so that time for finding data everywhere is saved, and safety of data transaction and storage can be greatly improved by using the block chain network to perform data transaction.
Drawings
FIG. 1 is a schematic diagram of an alternative application environment according to various embodiments of the present invention;
FIG. 2 is a flowchart illustrating an embodiment of a block chain-based data management method according to the present invention;
FIG. 3 is a flowchart illustrating a block chain-based data management method according to another embodiment of the present invention;
fig. 4 is a schematic diagram of a hardware architecture of an embodiment of the data hosting server in fig. 1.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that the description relating to "first", "second", etc. in the present invention is for descriptive purposes only and is not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one such feature. In addition, technical solutions between various embodiments may be combined with each other, but must be realized by a person skilled in the art, and when the technical solutions are contradictory or cannot be realized, such a combination should not be considered to exist, and is not within the protection scope of the present invention.
Fig. 1 is a schematic diagram of an alternative application environment according to various embodiments of the present invention.
In this embodiment, the blockchain system includes a data hosting server and a blockchain network in data communication with the data hosting server. As shown in fig. 1, the present invention is applicable to an application environment including, but not limited to, a data hosting server 1, a blockchain network 2. The data hosting server 1 is a device capable of automatically performing numerical calculation and/or information processing in accordance with a preset or stored instruction. The data hosting server 1 may be a computer, or may be a single network server, a server group composed of a plurality of network servers, or a cloud composed of a large number of hosts or network servers based on cloud computing, wherein the cloud computing is one of distributed computing and is a super virtual computer composed of a group of loosely coupled computers.
The data hosting server 1 is used for centrally storing data to be transacted, and the blockchain network 2 is a blockchain network used for data transaction control and can comprise a plurality of nodes, such as transaction verification nodes, accounting nodes and the like. The data hosting server 1 is in data communication with the blockchain network 2 through a network, which may be a wireless or wired network such as an Intranet (Intranet), the Internet (Internet), a Global System of Mobile communication (GSM), Wideband Code Division Multiple Access (WCDMA), a 4G network, a 5G network, Bluetooth (Bluetooth), Wi-Fi, and the like.
The invention provides a data management method based on a block chain.
Referring to fig. 2, fig. 2 is a flowchart illustrating an embodiment of a data management method based on a block chain according to the present invention.
In one embodiment, the block chain-based data management method includes:
in step S10, the requesting node broadcasts a data transaction request with the requested node via the blockchain network, where the data transaction request includes transaction attribute data.
In this embodiment, a requesting user broadcasts a data transaction request with a requested user through a first node, i.e. a requesting node, of the blockchain network, for example, if a user a needs data of a user B, the user a needs to send a data transaction request to the user B through the blockchain network, where the user a is the requesting user and the user B is the requested user. The data transaction request includes transaction attribute data that may include, but is not limited to, the name of the data requesting the transaction, the identity of the desired user, the first transaction identity, and the like.
Step S20, the demanded party node acquires the data transaction request through the blockchain network, and sends a transaction response request corresponding to the data transaction request to the blockchain network according to the transaction attribute data of the data transaction request, where the transaction response request includes response attribute data, and the response attribute data includes a data identifier.
The required user obtains the data transaction request through a second node of the blockchain network, namely a required party node (the second node may be the same as or different from the first node), and analyzes whether the data transaction request is sent to the required user or not according to transaction attribute data of the data transaction request. If the data transaction request is sent to the requested user, the requested user sends a transaction response request corresponding to the data transaction request to the blockchain network through the second node, and the transaction response request comprises response attribute data. The response attribute data can comprise an identity of the required user, an identity of the requiring user, a first transaction identity and the like; or the response attribute data comprises an identity of the demanded user, an identity of the demanding user, a first transaction identity, a data identity of data corresponding to the data transaction request in the data hosting server, and the like.
Step S30, after acquiring the response attribute data in the transaction response request through the blockchain network, the demander node determines the data identifier in the response attribute data, and downloads the data corresponding to the data identifier from a preset data hosting server according to the determined data identifier. For example, the demander node sends a data downloading request including a demander identity identifier and the data identifier to a preset data hosting server; and receiving data corresponding to the data identification, which is sent by the data hosting server in response to the data downloading request.
In the embodiment, by means of data transaction based on the blockchain network and centralized management of data in the data hosting server, not only is time for finding data everywhere saved, but also the blockchain network is used for data transaction, and the characteristics of decentralization, information non-falsification and the like of the blockchain network can be utilized to greatly improve the security of data transaction and storage.
Further, in an optional embodiment, as shown in fig. 3, on the basis of the above embodiment, the method further includes:
step S40, after each transaction verification node of the blockchain network receives the transaction response request through the blockchain network, verifying the validity of the transaction response request according to a preset rule.
And after each transaction verification node of the block chain network receives the transaction response request, verifying the validity of the transaction response request. For example, if the identity of the required user contained in the response attribute data of the transaction response request is consistent with the identity of the required user in the corresponding transaction attribute data, the identity of the required user contained in the response attribute data is consistent with the identity of the required user in the corresponding transaction attribute data, the first transaction identity contained in the response attribute data is consistent with the first transaction identity in the corresponding transaction attribute data, and the response attribute data contains the data identity, it is determined that the transaction response request is valid; or if the response attribute data does not contain the data identifier, the identity identifier of the demanded user contained in the response attribute data is inconsistent with the identity identifier of the demanded user in the corresponding transaction attribute data, or the first transaction identifier contained in the response attribute data is inconsistent with the first transaction identifier in the corresponding transaction attribute data, determining that the transaction response request is invalid.
Step S50, if the transaction response request is verified to be valid, the accounting node of the blockchain network writes the response attribute data of the transaction response request into the intelligent contract of the blockchain network, so as to complete the broadcast of the response attribute data to each node of the blockchain network.
If the transaction response request is verified to be valid by the transaction verification node, the accounting node of the blockchain network determines that the data transaction of the requiring user and the required user is valid, and response attribute data of the transaction response request is written into an intelligent contract of the blockchain network so as to complete the broadcast of the response attribute data to each node of the blockchain network.
In the embodiment, after the transaction verification node verifies that the data transaction of the requesting user and the requested user is valid, the response attribute data is broadcasted to each node of the block link network to complete the data transaction, so that invalid transaction is prevented, and the security of the data transaction is further improved.
The invention further provides a blockchain system, which comprises a data hosting server and a blockchain network in data communication with the data hosting server, wherein the blockchain network comprises a demand party node and a demanded party node, and the blockchain system comprises:
the demand side node broadcasts a data transaction request with the demanded side node through the block chain network, and the data transaction request comprises transaction attribute data.
In this embodiment, a requesting user broadcasts a data transaction request with a requested user through a first node, i.e. a requesting node, of the blockchain network, for example, if a user a needs data of a user B, the user a needs to send a data transaction request to the user B through the blockchain network, where the user a is the requesting user and the user B is the requested user. The data transaction request includes transaction attribute data that may include, but is not limited to, the name of the data requesting the transaction, the identity of the desired user, the first transaction identity, and the like.
The demanded party node acquires the data transaction request through the block chain network, and sends a transaction response request corresponding to the data transaction request to the block chain network according to the transaction attribute data of the data transaction request, wherein the transaction response request comprises response attribute data, and the response attribute data comprises data identification.
The required user obtains the data transaction request through a second node of the blockchain network, namely a required party node (the second node may be the same as or different from the first node), and analyzes whether the data transaction request is sent to the required user or not according to transaction attribute data of the data transaction request. If the data transaction request is sent to the requested user, the requested user sends a transaction response request corresponding to the data transaction request to the blockchain network through the second node, and the transaction response request comprises response attribute data. The response attribute data can comprise an identity of the required user, an identity of the requiring user, a first transaction identity and the like; or the response attribute data comprises an identity of the demanded user, an identity of the demanding user, a first transaction identity, a data identity of data corresponding to the data transaction request in the data hosting server, and the like.
And after the demand party node acquires the response attribute data in the transaction response request through the block chain network, determining a data identifier in the response attribute data, and downloading data corresponding to the data identifier from a preset data hosting server according to the determined data identifier. For example, the demander node sends a data downloading request including a demander identity identifier and the data identifier to a preset data hosting server; and receiving data corresponding to the data identification, which is sent by the data hosting server in response to the data downloading request.
In the embodiment, by means of data transaction based on the blockchain network and centralized management of data in the data hosting server, not only is time for finding data everywhere saved, but also the blockchain network is used for data transaction, and the characteristics of decentralization, information non-falsification and the like of the blockchain network can be utilized to greatly improve the security of data transaction and storage.
Further, in an optional embodiment, on the basis of the above embodiment, the blockchain system further includes a transaction verification node and a billing node, wherein:
and after each transaction verification node of the block chain network receives the transaction response request through the block chain network, verifying the validity of the transaction response request according to a preset rule.
And after each transaction verification node of the block chain network receives the transaction response request, verifying the validity of the transaction response request. For example, if the identity of the required user contained in the response attribute data of the transaction response request is consistent with the identity of the required user in the corresponding transaction attribute data, the identity of the required user contained in the response attribute data is consistent with the identity of the required user in the corresponding transaction attribute data, the first transaction identity contained in the response attribute data is consistent with the first transaction identity in the corresponding transaction attribute data, and the response attribute data contains the data identity, it is determined that the transaction response request is valid; or if the response attribute data does not contain the data identifier, the identity identifier of the demanded user contained in the response attribute data is inconsistent with the identity identifier of the demanded user in the corresponding transaction attribute data, or the first transaction identifier contained in the response attribute data is inconsistent with the first transaction identifier in the corresponding transaction attribute data, determining that the transaction response request is invalid.
And if the transaction response request is verified to be valid, the accounting node of the blockchain network writes response attribute data of the transaction response request into an intelligent contract of the blockchain network so as to complete the broadcast of the response attribute data to each node of the blockchain network.
If the transaction response request is verified to be valid by the transaction verification node, the accounting node of the blockchain network determines that the data transaction of the requiring user and the required user is valid, and response attribute data of the transaction response request is written into an intelligent contract of the blockchain network so as to complete the broadcast of the response attribute data to each node of the blockchain network.
In the embodiment, after the transaction verification node verifies that the data transaction of the requesting user and the requested user is valid, the response attribute data is broadcasted to each node of the block link network to complete the data transaction, so that invalid transaction is prevented, and the security of the data transaction is further improved.
Referring to fig. 4, which is a schematic diagram of an alternative hardware architecture of the data hosting server 1 in fig. 1, in the embodiment, the data hosting server 1 may include, but is not limited to, a memory 11, a processor 12, and a network interface 13, which are communicatively connected to each other through a system bus. It is noted that fig. 4 only shows the data hosting server 1 with components 11-13, but it is understood that not all of the shown components are required to be implemented, and that more or fewer components may be implemented instead.
The memory 11 includes at least one type of readable storage medium, which includes a flash memory, a hard disk, a multimedia card, a card-type memory (e.g., SD or DX memory, etc.), a Random Access Memory (RAM), a Static Random Access Memory (SRAM), a Read Only Memory (ROM), an Electrically Erasable Programmable Read Only Memory (EEPROM), a Programmable Read Only Memory (PROM), a magnetic memory, a magnetic disk, an optical disk, etc. In some embodiments, the storage 11 may be an internal storage unit of the data hosting server 1, such as a hard disk or a memory of the data hosting server 1. In other embodiments, the memory 11 may also be an external storage device of the data hosting server 1, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like equipped on the data hosting server 1. Of course, the memory 11 may also include both an internal storage unit and an external storage device of the data hosting server 1. In this embodiment, the memory 11 is generally used for storing an operating system installed in the data hosting server 1 and various types of application software, such as program codes of the data hosting system 10. Furthermore, the memory 11 may also be used to temporarily store various types of data that have been output or are to be output.
The processor 12 may be a Central Processing Unit (CPU), controller, microcontroller, microprocessor, or other data Processing chip in some embodiments. The processor 12 is generally configured to control the overall operation of the data hosting server 1, such as performing control and processing related to data interaction or communication with the blockchain system 2. In this embodiment, the processor 12 is configured to execute the program code stored in the memory 11 or process data, for example, execute the data hosting system 10.
The network interface 13 may comprise a wireless network interface or a wired network interface, and the network interface 13 is generally used for establishing a communication connection between the data hosting server 1 and other electronic devices. In this embodiment, the network interface 13 is mainly used for connecting the data hosting server 1 and the blockchain system 2 through the network 3, and establishing a data transmission channel and a communication connection between the data hosting server 1 and the blockchain system 2.
The data hosting system 10 includes at least one computer readable instruction stored in the memory 11 that is executable by the processor 12 to implement embodiments of the present application.
Wherein, the data hosting system 10 realizes the following steps when being executed by the processor 12:
step S1, after receiving the data download request sent by the demand side node of the block chain network, determining the data owner corresponding to the data identifier according to the predetermined mapping relationship between the data identifier and the data owner.
Step S2, inquiring whether the determined data owner is used as the demanded party node and the demanded party node has effective data transaction in the intelligent contract of the block chain network; for example, it may be queried whether response attribute data of a transaction response request is recorded in an intelligent contract of the blockchain network, and if so, it may be determined that the transaction response request is verified to be valid, and it may be determined that a data transaction between a data owner serving as a requested node and the requesting node is verified to be a valid data transaction according to the response attribute data.
Step S3, if it is determined that the data owner is a requested node and valid data transaction occurs with the requesting node, responding to the data download request, and sending the data corresponding to the data identifier to the requesting node.
In the embodiment, the data to be transacted is stored on the data hosting server in a centralized manner, so that the situation that the data is found everywhere due to the fact that the data is stored in different places in a scattered manner is avoided, a large amount of time is saved, and the data hosting server sends the corresponding data to the nodes of the requiring party after the determined data owning party is used as the nodes of the required party and the nodes of the requiring party have effective data transaction, so that the safety of the data transaction is ensured.
In an optional embodiment, when the processor 12 executes the step S2, the data hosting system 10 further includes:
and inquiring whether the determined data owner is used as a required node corresponding to the data identifier and has effective data transaction with the required node in the intelligent contract of the block chain network.
In this embodiment, when valid data transaction is verified, whether a determined data owner is used as a required node corresponding to the data identifier and a valid data transaction occurs with the requiring node is queried in an intelligent contract of the blockchain network, so as to prevent a situation that valid transaction misjudgment is caused by the presence of a plurality of different data identifiers in one data owner from occurring, and further improve the security of data downloading.
In an alternative embodiment, the data hosting system 10, when executed by the processor 12, further implements the steps of:
receiving an upload transaction request broadcasted by a data owner through the blockchain network, wherein the upload transaction request comprises upload attribute data;
and sending an upload response request corresponding to the upload transaction request to the blockchain network according to the upload attribute data, wherein the upload response request comprises upload response data, and the upload response data comprises a data identifier corresponding to the upload response data.
In this embodiment, a data owner broadcasts an upload transaction request including upload attribute data with a data hosting server through a third node (the first node, the second node, and/or the third node may be the same or different) of the blockchain network. The upload attribute data includes, but is not limited to, a name of the data requesting the upload transaction, an identification of the data hosting server, an identification of the data owner, a second transaction identification, and the like.
The data hosting server acquires the upload transaction request through the blockchain network, and analyzes whether the upload transaction request is sent to the data hosting server according to upload attribute data of the transaction request, for example, if the upload attribute data includes an identity of the data hosting server, it is determined that the upload transaction request is sent to the data hosting server, or if the upload attribute data does not include the identity of the data hosting server, it is determined that the upload transaction request is not sent to the data hosting server. If the upload transaction request is sent to the data hosting server, the data hosting server sends an upload response request corresponding to the upload transaction request to the blockchain network, where the upload response request includes upload response data, for example, the upload response data includes an identification of the data hosting server, an identification of the data owner, and a second transaction identification; or the upload response data comprises the identity of the data hosting server, the identity of the data owner, a second transaction identity, and a data identity of data corresponding to the upload transaction request in the data hosting server.
After each transaction verification node of the blockchain network receives the upload response request, verifying the validity of the upload response request, for example, if the identity of the data hosting server contained in the upload attribute data is consistent with the identity of the data hosting server in the corresponding upload response data, the identity of the data owner contained in the upload attribute data is consistent with the identity of the data owner in the corresponding upload response data, the second transaction identity contained in the upload attribute data is consistent with the second transaction identity in the corresponding upload response data, and the upload response data contains the data identity, determining that the upload response request is valid; or if the upload response data does not contain the data identifier, the identity identifier of the data hosting server contained in the upload attribute data is inconsistent with the identity identifier of the data hosting server in the corresponding upload response data, the identity identifier of the data owner contained in the upload attribute data is inconsistent with the identity identifier of the data owner in the corresponding upload response data, and the second transaction identifier contained in the upload attribute data is inconsistent with the second transaction identifier in the corresponding upload response data, determining that the upload response request is invalid.
If the upload response request is valid, the accounting node of the blockchain network determines that the data upload transaction between the data owner and the data hosting server is valid, and writes upload response data of the upload response request into an intelligent contract of the blockchain network so as to complete the broadcast of the upload response data to each node of the blockchain network;
and after the data owner acquires the upload response data through the third node, determining a data identifier from the upload response data, and storing the name of the data requesting the upload transaction in the upload attribute data in association with the data identifier.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better embodiment. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
The preferred embodiments of the present invention have been described above with reference to the accompanying drawings, and are not to be construed as limiting the scope of the invention. The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments. Additionally, while a logical order is shown in the flow diagrams, in some cases, the steps shown or described may be performed in an order different than here.
Those skilled in the art can implement the invention in various modifications, such as features from one embodiment can be used in another embodiment to yield yet a further embodiment, without departing from the scope and spirit of the invention. Any modification, equivalent replacement and improvement made within the technical idea of using the present invention should be within the scope of the right of the present invention.
Claims (8)
1. A blockchain system, comprising a data hosting server and a blockchain network in data communication with the data hosting server, wherein the blockchain network comprises a demanding party node and a demanded party node, wherein:
the demand side node broadcasts a data transaction request with the demanded side node through the block chain network, and the data transaction request comprises transaction attribute data;
the demanded party node acquires the data transaction request through the blockchain network, and sends a transaction response request corresponding to the data transaction request to the blockchain network according to transaction attribute data of the data transaction request, wherein the transaction response request comprises response attribute data, and the response attribute data comprises an identity of a demanded user, a first transaction identifier and a data identifier corresponding to the data transaction request in a data hosting server; the block chain network further comprises a transaction verification node and an accounting node, wherein:
after each transaction verification node of the block chain network receives the transaction response request through the block chain network, verifying the validity of the transaction response request according to a preset rule;
if the transaction response request is verified to be valid, the accounting node of the blockchain network writes response attribute data of the transaction response request into an intelligent contract of the blockchain network so as to complete the broadcast of the response attribute data to each node of the blockchain network;
the verifying the validity of the transaction response request according to the preset rule comprises: if the identity of the required user contained in the response attribute data of the transaction response request is consistent with the identity of the required user in the corresponding transaction attribute data, the identity of the required user contained in the response attribute data is consistent with the identity of the required user in the corresponding transaction attribute data, the first transaction identity contained in the response attribute data is consistent with the first transaction identity in the corresponding transaction attribute data, and the response attribute data contains the data identity, determining that the transaction response request is valid;
and after the demand party node acquires the response attribute data in the transaction response request through the block chain network, determining a data identifier in the response attribute data, and downloading data corresponding to the data identifier from the data hosting server according to the determined data identifier.
2. The blockchain system of claim 1, wherein the demand side node is further configured to:
sending a data downloading request comprising a demander identity identifier and the data identifier to the data hosting server;
receiving data corresponding to the data identification, which is sent by the data hosting server in response to the data downloading request;
the data hosting server is further configured to:
after receiving a data downloading request sent by a demand side node of the block chain network, determining a data owner corresponding to a data identifier according to a mapping relation between the predetermined data identifier and the data owner;
inquiring whether the determined data owner is used as a required party node and effective data transaction is carried out with the required party node in an intelligent contract of the block chain network;
and if so, responding to the data downloading request and sending the data corresponding to the data identification to the demand side node.
3. The blockchain system of claim 2, wherein the data hosting server is further configured to:
and inquiring whether the determined data owner is used as a required node corresponding to the data identifier and has effective data transaction with the required node in the intelligent contract of the block chain network.
4. The blockchain system of claim 2, wherein the data hosting server is further configured to:
receiving an upload transaction request broadcasted by a data owner through the blockchain network, wherein the upload transaction request comprises upload attribute data;
and sending an upload response request corresponding to the upload transaction request to the blockchain network according to the upload attribute data, wherein the upload response request comprises upload response data, and the upload response data comprises a data identifier corresponding to the upload response data.
5. A data management method based on a blockchain is applied to a blockchain system, the blockchain system comprises a data hosting server and a blockchain network in data communication with the data hosting server, the blockchain network comprises a demand side node and a demanded side node, and the method comprises the following steps:
A. the method comprises the following steps that a demand party node broadcasts a data transaction request with a demanded party node through a block chain network, wherein the data transaction request comprises transaction attribute data;
B. the demanded party node acquires the data transaction request through the blockchain network, and sends a transaction response request corresponding to the data transaction request to the blockchain network according to transaction attribute data of the data transaction request, wherein the transaction response request comprises response attribute data, and the response attribute data comprises an identity of a demanded user, a first transaction identifier and a data identifier corresponding to the data transaction request in a data hosting server; the block chain network further comprises a transaction verification node and an accounting node, wherein:
after each transaction verification node of the block chain network receives the transaction response request through the block chain network, verifying the validity of the transaction response request according to a preset rule;
if the transaction response request is verified to be valid, the accounting node of the blockchain network writes response attribute data of the transaction response request into an intelligent contract of the blockchain network so as to complete the broadcast of the response attribute data to each node of the blockchain network;
the verifying the validity of the transaction response request according to the preset rule comprises: if the identity of the required user contained in the response attribute data of the transaction response request is consistent with the identity of the required user in the corresponding transaction attribute data, the identity of the required user contained in the response attribute data is consistent with the identity of the required user in the corresponding transaction attribute data, the first transaction identity contained in the response attribute data is consistent with the first transaction identity in the corresponding transaction attribute data, and the response attribute data contains the data identity, determining that the transaction response request is valid;
C. and after the demand party node acquires the response attribute data in the transaction response request through the block chain network, determining a data identifier in the response attribute data, and downloading data corresponding to the data identifier from a data hosting server according to the determined data identifier.
6. The method for block chain-based data management according to claim 5, wherein the step of downloading the data corresponding to the data identifier from the data hosting server according to the determined data identifier comprises:
the demander node sends a data downloading request comprising a demander identity identifier and the data identifier to the data hosting server;
after receiving a data downloading request sent by a demand side node of the block chain network, the data hosting server determines a data owner corresponding to a data identifier according to a mapping relation between the predetermined data identifier and the data owner; inquiring whether the determined data owner is used as a required party node and effective data transaction is carried out with the required party node in an intelligent contract of the block chain network; if so, responding to the data downloading request, and sending the data corresponding to the data identification to the demand side node;
and the requiring side node receives the data corresponding to the data identification, which is sent by the data hosting server responding to the data downloading request.
7. The blockchain-based data management method of claim 6, further comprising:
the data hosting server inquires whether the determined data owner is used as a required node corresponding to the data identification and has effective data transaction with the requiring party node in an intelligent contract of the block chain network.
8. The blockchain-based data management method of claim 6, further comprising:
the data hosting server receives an uploading transaction request broadcasted by a data owner through the blockchain network, wherein the uploading transaction request comprises uploading attribute data; and sending an upload response request corresponding to the upload transaction request to the blockchain network according to the upload attribute data, wherein the upload response request comprises upload response data, and the upload response data comprises a data identifier corresponding to the upload response data.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710659544.2A CN107464117B (en) | 2017-08-04 | 2017-08-04 | Block chain based data management method and block chain system |
PCT/CN2017/100053 WO2019024161A1 (en) | 2017-08-04 | 2017-08-31 | Block chain-based data management method, block chain system, server and readable storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710659544.2A CN107464117B (en) | 2017-08-04 | 2017-08-04 | Block chain based data management method and block chain system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107464117A CN107464117A (en) | 2017-12-12 |
CN107464117B true CN107464117B (en) | 2021-06-22 |
Family
ID=60548382
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710659544.2A Active CN107464117B (en) | 2017-08-04 | 2017-08-04 | Block chain based data management method and block chain system |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN107464117B (en) |
WO (1) | WO2019024161A1 (en) |
Families Citing this family (35)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108156232A (en) * | 2017-12-22 | 2018-06-12 | 王轶捷 | Data sharing method and device |
CN108009834B (en) * | 2017-12-27 | 2021-10-15 | 上海唯链信息科技有限公司 | Automobile insurance information system based on block chain technology |
CN108304475B (en) * | 2017-12-28 | 2020-11-10 | 比特大陆科技有限公司 | Data query method and device and electronic equipment |
WO2019144353A1 (en) * | 2018-01-25 | 2019-08-01 | 深圳前海达闼云端智能科技有限公司 | Blockchain-based data training method and device, storage medium and blockchain node |
CN108055138B (en) * | 2018-02-01 | 2020-03-17 | 国家计算机网络与信息安全管理中心 | Block chain-based application distribution recording method and system |
CN108446947B (en) * | 2018-02-07 | 2021-05-18 | 平安科技(深圳)有限公司 | Real estate transaction method and device |
CN108510268B (en) * | 2018-02-09 | 2021-05-11 | 北京欧链科技有限公司 | Annular block chain structure, data processing method and device |
CN108491266B (en) * | 2018-03-09 | 2021-11-16 | 联想(北京)有限公司 | Data processing method and device based on block chain and electronic equipment |
CN108711041B (en) * | 2018-04-17 | 2022-12-09 | 福建兑信科技有限公司 | Donation system based on block chain technology and value token processing method thereof |
CN108512653A (en) * | 2018-04-18 | 2018-09-07 | 成都零光量子科技有限公司 | A kind of electronic evidence acquisition and method of servicing based on block chain |
CN108805550A (en) * | 2018-04-27 | 2018-11-13 | 深圳市元征科技股份有限公司 | A kind of pre-payment exchange management method and pre-payment trade management device |
CN108830732A (en) * | 2018-04-28 | 2018-11-16 | 厦门快商通信息技术有限公司 | A kind of method and system of the prevention Insurance Fraud based on block chain technology |
CN108924175A (en) * | 2018-05-02 | 2018-11-30 | 北京链链信息技术有限公司 | A kind of communication means and device of block interchain |
CN108764900A (en) * | 2018-05-03 | 2018-11-06 | 广州西麦科技股份有限公司 | Exchange management method, device based on system for cloud computing and storage device |
CN108933778A (en) * | 2018-05-23 | 2018-12-04 | 广州西麦科技股份有限公司 | Product trading monitoring method, device and storage medium based on system for cloud computing |
CN108989288B (en) * | 2018-06-20 | 2021-02-09 | 佛山科学技术学院 | Block chain-based mobile digital copyright protection method and device |
CN108961052B (en) * | 2018-06-25 | 2022-02-22 | 百度在线网络技术(北京)有限公司 | Verification method, storage method, device, equipment and medium of block chain data |
CN108900610A (en) * | 2018-06-29 | 2018-11-27 | 佛山伊苏巨森科技有限公司 | A kind of peer-to-peer network communication system for block chain |
CN109033405B (en) | 2018-08-03 | 2020-09-08 | 华为技术有限公司 | Method and apparatus for maintaining blockchain, server, and computer-readable storage medium |
CN109190769B (en) * | 2018-08-21 | 2021-12-24 | 深圳点宽网络科技有限公司 | Artificial intelligence training method based on block chain |
CN109064334B (en) * | 2018-08-27 | 2021-12-24 | 深圳前海益链网络科技有限公司 | Intelligent contract accounting method, computer device and readable storage medium |
CN109255614A (en) * | 2018-08-31 | 2019-01-22 | 深圳付贝科技有限公司 | Digging mine method and device, digging mine machine and block catenary system based on block chain |
CN109377220B (en) * | 2018-10-16 | 2020-02-18 | 中国传媒大学 | Block chain-based media data transaction method and system and computer storage medium |
CN109284634B (en) * | 2018-10-30 | 2023-04-25 | 深圳市元征科技股份有限公司 | Block chain node and product information acquisition method and device |
CN110048995B (en) * | 2018-12-05 | 2021-02-09 | 创新先进技术有限公司 | Method and device for confirming content of multimedia protocol and electronic equipment |
CN111614708B (en) * | 2019-02-26 | 2021-06-08 | 傲为信息技术(江苏)有限公司 | Transaction system based on block chain |
CN110099108B (en) * | 2019-04-26 | 2022-04-01 | 深圳前海微众银行股份有限公司 | Block chain event duplicate removal method and device, computer equipment and storage medium |
CN111782350A (en) * | 2019-06-25 | 2020-10-16 | 北京京东尚科信息技术有限公司 | Service processing method and device |
CN110808974A (en) * | 2019-10-31 | 2020-02-18 | 深圳市网心科技有限公司 | Data acquisition method and device, computer device and storage medium |
CN111125187A (en) * | 2019-11-29 | 2020-05-08 | 立旃(上海)科技有限公司 | Data management method and device based on block chain |
CN112669147B (en) * | 2019-12-31 | 2023-09-26 | 蚂蚁区块链科技(上海)有限公司 | Service request method and device based on block chain |
CN112232961B (en) * | 2020-02-07 | 2021-08-20 | 腾讯科技(深圳)有限公司 | Data processing method and device based on block chain system and electronic equipment |
CN111414434B (en) * | 2020-05-20 | 2021-09-03 | 华北电力大学 | Block chain-based data transaction management network, transaction device and storage medium |
CN111698130B (en) * | 2020-06-10 | 2023-05-05 | 上海聪链信息科技有限公司 | Block chain server operation information uploading method and system thereof |
CN111930747B (en) * | 2020-07-31 | 2021-04-06 | 广州威尔森信息科技有限公司 | Online data purchasing method and device |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2017021154A1 (en) * | 2015-07-31 | 2017-02-09 | British Telecommunications Public Limited Company | Access control |
CN106603698A (en) * | 2016-12-28 | 2017-04-26 | 北京果仁宝科技有限公司 | Block chain consensus method based on DPOS and nodes |
Family Cites Families (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20170134161A1 (en) * | 2015-11-06 | 2017-05-11 | Cable Television Laboratories, Inc | Blockchaining for media distribution |
CN106327173A (en) * | 2016-08-22 | 2017-01-11 | 布比(北京)网络技术有限公司 | Network payment method and network payment device |
CN106651346A (en) * | 2016-11-28 | 2017-05-10 | 上海凯岸信息科技有限公司 | Block chain-based credit investigation data sharing and trading system |
CN106788987A (en) * | 2016-11-28 | 2017-05-31 | 树读(上海)信息科技有限公司 | A kind of collage-credit data based on block chain is shared and transaction system |
CN106780007A (en) * | 2016-11-28 | 2017-05-31 | 树读(上海)信息科技有限公司 | A kind of collage-credit data is shared and transaction system |
CN106992990A (en) * | 2017-05-19 | 2017-07-28 | 北京牛链科技有限公司 | Data sharing method and system and block catenary system and computing device |
-
2017
- 2017-08-04 CN CN201710659544.2A patent/CN107464117B/en active Active
- 2017-08-31 WO PCT/CN2017/100053 patent/WO2019024161A1/en active Application Filing
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2017021154A1 (en) * | 2015-07-31 | 2017-02-09 | British Telecommunications Public Limited Company | Access control |
CN106603698A (en) * | 2016-12-28 | 2017-04-26 | 北京果仁宝科技有限公司 | Block chain consensus method based on DPOS and nodes |
Also Published As
Publication number | Publication date |
---|---|
CN107464117A (en) | 2017-12-12 |
WO2019024161A1 (en) | 2019-02-07 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107464117B (en) | Block chain based data management method and block chain system | |
CN109040029B (en) | Method and apparatus for executing transactions in a blockchain | |
CN109284205B (en) | Snapshot backup method and device, computer equipment and storage medium | |
CN110222535B (en) | Processing device, method and storage medium for block chain configuration file | |
CN111104664A (en) | Risk identification method of electronic equipment and server | |
CN112818414B (en) | Data processing method, data processing device, computer equipment and storage medium | |
CN114257551A (en) | Distributed current limiting method and system and storage medium | |
CN111371772A (en) | Intelligent gateway current limiting method and system based on redis and computer equipment | |
CN110851339A (en) | Method and device for reporting buried point data, storage medium and terminal equipment | |
CN109995879A (en) | Device, method and the storage medium of message push | |
CN111325586B (en) | Bill generation method, device, server and medium based on block chain network | |
CN109684026B (en) | APP skin replacement method and device, electronic equipment and storage medium | |
CN106934708B (en) | Event recording method and device | |
CN109905407B (en) | Management method, system, equipment and medium for accessing intranet based on VPN server | |
CN115004666A (en) | Registration method, device, equipment and storage medium of Internet of things equipment | |
CN110597886A (en) | Data processing method and device and computer storage medium | |
CN108876339B (en) | E-pet transaction method and device based on certificate | |
CN110348988A (en) | Arbitration process method, electronic device and computer readable storage medium | |
CN110717752B (en) | Electronic resource processing method, device, server and readable storage medium | |
CN111654398B (en) | Configuration updating method and device, computer equipment and readable storage medium | |
CN111260421B (en) | Electronic invoice management and control method and device based on block chain | |
CN113301557A (en) | eSIM card state management method, device, equipment and storage medium | |
CN109582680B (en) | Business processing method based on new product development, electronic device and readable storage medium | |
CN110266476A (en) | SMS platform sign test method, server and computer readable storage medium | |
CN113127847A (en) | Data management method and device |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |