WO2019024161A1 - 基于区块链的数据管理方法、区块链系统、服务器及可读存储介质 - Google Patents

基于区块链的数据管理方法、区块链系统、服务器及可读存储介质 Download PDF

Info

Publication number
WO2019024161A1
WO2019024161A1 PCT/CN2017/100053 CN2017100053W WO2019024161A1 WO 2019024161 A1 WO2019024161 A1 WO 2019024161A1 CN 2017100053 W CN2017100053 W CN 2017100053W WO 2019024161 A1 WO2019024161 A1 WO 2019024161A1
Authority
WO
WIPO (PCT)
Prior art keywords
data
transaction
response
node
request
Prior art date
Application number
PCT/CN2017/100053
Other languages
English (en)
French (fr)
Inventor
王健宗
吴天博
黄章成
肖京
Original Assignee
平安科技(深圳)有限公司
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 平安科技(深圳)有限公司 filed Critical 平安科技(深圳)有限公司
Publication of WO2019024161A1 publication Critical patent/WO2019024161A1/zh

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION 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/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • G06Q20/382Payment protocols; Details thereof insuring higher security of transaction

Definitions

  • the present invention relates to the field of computer technologies, and in particular, to a blockchain-based data management method, a blockchain system, a server, and a readable storage medium.
  • the present invention provides a blockchain system including a data escrow server and a blockchain network in data communication with the data escrow server, the blockchain network including a demand side Node, demanded node, where:
  • the demand side node broadcasts a data transaction request with the demanded node through the blockchain network, the data transaction request including transaction attribute data;
  • the requested party node obtains the data transaction request through the blockchain network, and sends a transaction response corresponding to the data transaction request to the blockchain network according to the transaction attribute data of the data transaction request.
  • the request, the transaction response request includes response attribute data, and the response attribute data includes a data identifier;
  • the demanding node After the demanding node obtains the response attribute data in the transaction response request by using the blockchain network, the data identifier in the response attribute data is determined, and the data is managed according to the determined data identifier.
  • the server corresponding to the data identifier is downloaded.
  • the present invention also provides a data management method based on a blockchain.
  • the blockchain system includes a data escrow server and a blockchain network in data communication with the data escrow server, the blockchain network including a demand side node, being required A square node, the method comprising the steps of:
  • the demanding party node broadcasts a data transaction request with the demanded node through the blockchain network, the data transaction request including transaction attribute data;
  • the requested party node obtains the data transaction request through the blockchain network, and sends a transaction corresponding to the data transaction request to the blockchain network according to the transaction attribute data of the data transaction request.
  • a transaction response request the transaction response request includes response attribute data, and the response attribute data includes a data identifier;
  • the demand side node obtains the response attribute data in the transaction response request through the blockchain network, the data identifier in the response attribute data is determined, and the data identifier is determined according to the determined data.
  • the server corresponding to the data identifier is downloaded.
  • the present invention further provides a data escrow server, comprising a memory and a processor, wherein the memory stores a data escrow system, and when the data escrow system is executed by the processor, the following steps are implemented:
  • the present invention also provides a computer readable storage medium storing a data escrow system, the data escrow system being executable by at least one processor to implement the following step:
  • Data exchange based on blockchain network and centralized management of data in data escrow server not only saves time to find data everywhere, but also utilizes blockchain network for data transaction, which can greatly improve the security of data transaction and storage. .
  • FIG. 1 is a schematic diagram of an optional application environment according to various embodiments of the present invention.
  • FIG. 2 is a schematic flowchart of an embodiment of a data management method based on a blockchain according to an embodiment of the present invention
  • FIG. 3 is a schematic flowchart of another embodiment of a data management method based on a blockchain according to the present invention.
  • FIG. 4 is a schematic diagram of a hardware architecture of an embodiment of the data hosting server of FIG. 1.
  • first, second and the like in the present invention are for the purpose of description only, and are not to be construed as indicating or implying their relative importance or implicitly indicating the number of indicated technical features. .
  • features defining “first” and “second” may include at least one of the features, either explicitly or implicitly.
  • the technical solutions between the various embodiments may be combined with each other, but must be based on the realization of those skilled in the art, and when the combination of the technical solutions is contradictory or impossible to implement, it should be considered that the combination of the technical solutions does not exist. It is also within the scope of protection required by the present invention.
  • FIG. 1 is a schematic diagram of an optional application environment according to various embodiments of the present invention.
  • the blockchain system includes a data escrow server and a blockchain network in data communication with the data escrow server.
  • 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 escrow server 1 is a device capable of automatically performing numerical calculation and/or information processing in accordance with an instruction set or stored in advance.
  • the data escrow server 1 may be a computer, a single network server, a server group composed of a plurality of network servers, or a cloud-based cloud composed of a large number of hosts or network servers, wherein the cloud computing is a type of distributed computing, A super virtual computer consisting of a group of loosely coupled computers.
  • the data escrow server 1 is used for centrally storing data to be traded, and the blockchain network 2 is a blockchain network for data transaction control, and may include a plurality of nodes, such as a transaction verification node, a billing node, and the like.
  • the data escrow server 1 communicates with the blockchain network 2 through a network, which may be an intranet, an Internet, a Global System of Mobile communication (GSM), and a broadband. Code division multiple access (Wideband Code Division Multiple Access, WCDMA), 4G network, 5G network, Bluetooth, Wi-Fi, etc.
  • the invention provides a data management method based on blockchain.
  • FIG. 2 is a schematic flowchart diagram of an embodiment of a data management method based on a blockchain according to an embodiment of the present invention.
  • the blockchain-based data management method is applied to a blockchain system, the blockchain system including a data escrow server and a blockchain network in data communication with the data escrow server, the blockchain network including requirements Party node, required node.
  • the blockchain based data management method comprises:
  • Step S10 the demanding party broadcasts a data transaction request with the demanded node through the blockchain network, and the data transaction request includes transaction attribute data.
  • a demanding user broadcasts a request and a data request of a requested user through a first node of the blockchain network, that is, a demanding node.
  • a first node of the blockchain network that is, a demanding node.
  • the blockchain network sends a data transaction request to B, user A is the demanding user, and B is the required user.
  • the data transaction request includes transaction attribute data, which may include, but is not limited to, the name of the data requesting the transaction, the identity of the requested user, the identity of the demanding user, the first transaction identification, and the like.
  • Step S20 the demanded node acquires the data transaction request through the blockchain network, and sends a corresponding to the data transaction request to the blockchain network according to the transaction attribute data of the data transaction request.
  • the transaction response request includes the response attribute data, and the response attribute data includes a data identifier.
  • the second node that is required by the user to pass the blockchain network acquires the data transaction request, and analyzes the transaction attribute data according to the data transaction request. Whether the data transaction request is sent to itself, for example, if the transaction attribute data includes the identity of the requested user, determining whether the data transaction request is sent to itself, or if the transaction attribute data is not Including the identity of the requested user, it is determined that the data transaction request is not issued to itself. If it is determined that the data transaction request is sent to itself, 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 includes response attribute data.
  • the response attribute data may include an identifier of the requested user, an identifier of the required user, a first transaction identifier, and the like; or the response attribute data includes an identifier of the requested user, an identifier of the required user, a first transaction identifier, The data identifier of the data corresponding to the data transaction request in the data escrow server.
  • Step S30 after the demanding node obtains the response attribute data in the transaction response request through the blockchain network, the data identifier in the response attribute data is determined, and the data identifier is determined according to the determined data.
  • the data corresponding to the data identifier is downloaded in the data hosting server.
  • the demanding party node sends a data download request including a demand side identity identifier and the data identifier to a preset data escrow server; and receiving, by the data escrow server, the data identities corresponding to the data identifier sent in response to the data download request The data.
  • the method further includes:
  • Step S40 After receiving the transaction response request by the blockchain network, each transaction verification node of the blockchain network verifies the validity of the transaction response request according to a preset rule.
  • each transaction verification node of the blockchain network After receiving the transaction response request, each transaction verification node of the blockchain network verifies 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 user in need in the corresponding transaction attribute data, and the identity of the user in need in the response attribute data and the corresponding The identity of the user in the transaction attribute data is consistent, the first transaction identifier included in the response attribute data is consistent with the first transaction identifier in the corresponding transaction attribute data, and the response attribute data includes a data identifier, and then the The transaction response request is valid; or, if the response attribute data does not contain the data identifier, the identity of the requested user contained in the response attribute data is inconsistent with the identity of the requested user in the corresponding transaction attribute data, and the response attribute data is included.
  • the transaction response request is invalid.
  • Step S50 if it is verified that the transaction response request is valid, the accounting node of the blockchain network writes the response attribute data of the transaction response request into the smart contract of the blockchain network to complete the The broadcast of the response attribute data to each node of the blockchain network.
  • the accounting node of the blockchain network determines that the data transaction of the demand user and the requested user is valid, and writes the response attribute data of the transaction response request. Into the smart contract of the blockchain network, to complete the broadcast of the response attribute data to each node of the blockchain network.
  • the response attribute data is broadcasted to each node of the blockchain network to complete the data transaction, thereby preventing the invalid transaction. Occurs to further improve the security of data transactions.
  • the present invention further provides a blockchain system, the blockchain system comprising a data escrow server and a blockchain network in data communication with the data escrow server, the blockchain network including a demand side node, being required Square node, where:
  • the demand side node broadcasts a data transaction request with the demanded node through the blockchain network, the data transaction request including transaction attribute data.
  • a demanding user passes through the first node of the blockchain network, that is, the demand side node is wide. Broadcast a request and a data transaction request of the requested user. For example, if user A needs user B's data, then A needs to send a data transaction request to B through the blockchain network. User A is the demanding user, and B is Be asked by the user.
  • the data transaction request includes transaction attribute data, which may include, but is not limited to, the name of the data requesting the transaction, the identity of the requested user, the identity of the demanding user, the first transaction identification, and the like.
  • the requested party node obtains the data transaction request through the blockchain network, and sends a transaction response corresponding to the data transaction request to the blockchain network according to the transaction attribute data of the data transaction request.
  • the request, the transaction response request includes response attribute data, and the response attribute data includes a data identifier.
  • the second node that is required by the user to pass the blockchain network acquires the data transaction request, and analyzes the transaction attribute data according to the data transaction request. Whether the data transaction request is sent to itself, for example, if the transaction attribute data includes the identity of the requested user, determining whether the data transaction request is sent to itself, or if the transaction attribute data is not Including the identity of the requested user, it is determined that the data transaction request is not issued to itself. If it is determined that the data transaction request is sent to itself, 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 includes response attribute data.
  • the response attribute data may include an identifier of the requested user, an identifier of the required user, a first transaction identifier, and the like; or the response attribute data includes an identifier of the requested user, an identifier of the required user, a first transaction identifier, The data identifier of the data corresponding to the data transaction request in the data escrow server.
  • the demand side node After the demand side node obtains the response attribute data in the transaction response request by using the blockchain network, the data identifier in the response attribute data is determined, and the preset data is identified according to the determined data identifier.
  • the data corresponding to the data identifier is downloaded in the hosting server.
  • the demanding party node sends a data download request including a demand side identity identifier and the data identifier to a preset data escrow server; and receiving, by the data escrow server, the data identities corresponding to the data identifier sent in response to the data download request The data.
  • the blockchain system further includes a transaction verification node and a billing node, wherein:
  • each transaction verification node of the blockchain network After receiving the transaction response request by the blockchain network, each transaction verification node of the blockchain network verifies the validity of the transaction response request according to a preset rule.
  • each transaction verification node of the blockchain network After receiving the transaction response request, each transaction verification node of the blockchain network verifies the validity of the transaction response request. For example, if the number of response attributes of the transaction response request According to the identity of the user in need and the identity of the user in the corresponding transaction attribute data, the identity of the user in the response attribute data and the identity of the user in the corresponding transaction attribute data.
  • the first transaction identifier included in the consistency and response attribute data is consistent with the first transaction identifier in the corresponding transaction attribute data, and the response attribute data includes a data identifier, and then the transaction response request is determined to be valid; or, if the response attribute data is The data identifier is not included, the identity of the requested user contained in the response attribute data is inconsistent with the identity of the requested user in the corresponding transaction attribute data, the identity of the demanding user contained in the response attribute data, and the corresponding transaction attribute. If the identity of the demanding user in the data is inconsistent, or the first transaction identifier included in the response attribute data is inconsistent with the first transaction identifier in the corresponding transaction attribute data, it is determined that the transaction response request is invalid.
  • the billing node of the blockchain network writes the response attribute data of the transaction response request into the smart contract of the blockchain network to complete the response attribute.
  • the accounting node of the blockchain network determines that the data transaction of the demand user and the requested user is valid, and writes the response attribute data of the transaction response request. Into the smart contract of the blockchain network, to complete the broadcast of the response attribute data to each node of the blockchain network.
  • the response attribute data is broadcasted to each node of the blockchain network to complete the data transaction, thereby preventing the invalid transaction. Occurs to further improve the security of data transactions.
  • FIG. 4 is a schematic diagram of an optional hardware architecture of the data hosting server 1 of FIG. 1.
  • the data hosting server 1 may include, but is not limited to, a memory 11 and a processor that can be communicably connected to each other through a system bus. 12.
  • Network interface 13 It is noted that FIG. 4 only shows the data hosting server 1 with components 11-13, but it should be understood that not all illustrated components may be implemented, and more or fewer components may be implemented instead.
  • the memory 11 includes at least one type of readable storage medium including a flash memory, a hard disk, a multimedia card, a card type memory (eg, SD or DX memory, etc.), and a random access memory (RAM). , static random access memory (SRAM), read only memory (ROM), electrically erasable programmable read only memory (EEPROM), programmable read only memory (PROM), magnetic memory, magnetic disk, optical disk, and the like.
  • the memory 11 may be an internal storage unit of the data hosting server 1, such as a hard disk or memory of the data hosting server 1.
  • the memory 11 may also be an external storage device of the data hosting server 1, such as a plug-in hard disk equipped with the smart storage card (SMC).
  • SMC smart storage card
  • the memory 11 can also include both the internal storage unit of the data hosting server 1 and its external storage device.
  • the memory 11 is generally used to store 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 and the like.
  • the memory 11 can also be used for temporary use. Timely stores various types of data that have been output or will 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 typically used to control the overall operation of the data escrow server 1, such as performing control and processing related to data interaction or communication with the blockchain system 2.
  • the processor 12 is configured to run program code or process data stored in the memory 11, such as running the data hosting system 10 and the like.
  • the network interface 13 may comprise a wireless network interface or a wired network interface, which is typically used to establish a communication connection between the data hosting server 1 and other electronic devices.
  • the network interface 13 is mainly used to connect the data escrow server 1 to the blockchain system 2 through the network 3, in the data escrow server 1 and the blockchain system 2 A data transmission channel and a communication connection are established between each other.
  • the data hosting system 10 includes at least one computer readable instructions stored in the memory 11, the at least one computer readable instructions being executable by the processor 12 to implement various embodiments of the present application.
  • Step S1 After receiving the data download request sent by the demanding party node of the blockchain network, determine the data owner corresponding to the data identifier according to the mapping relationship between the predetermined data identifier and the data owner.
  • Step S2 querying, in the smart contract of the blockchain network, whether the determined data owner has a valid data transaction as the demanded node and the demander node; for example, the intelligence of the blockchain network may be queried Whether the response attribute data of the transaction response request is recorded in the contract, if the record is present, the transaction response request has been verified to be valid, and the data owner can be confirmed as the demanded node and the demander node according to the response attribute data. Data transactions have been verified as valid data transactions.
  • Step S3 If it is determined that the data owner has valid data transaction with the demander node as the demanded party node, in response to the data download request, the data corresponding to the data identifier is sent to the demander node.
  • the data to be traded is stored in the data escrow server, which avoids the situation that the data is scattered and stored in different places and the data is searched everywhere, which saves a lot of time, and the data escrow server is determined by the data owner. After the valid data transaction is performed by the demanding party node and the demanding party node, the corresponding data is sent to the demanding party node, thereby ensuring the security of the data transaction.
  • the method when the data management system 10 is executed by the processor 12 to implement the step S2, the method further includes:
  • a data owner broadcasts a request and data hosting server upload transaction request through a third node of the blockchain network (the first node, the second node, and/or the third node may be the same or different).
  • the upload transaction request includes uploading attribute data.
  • the upload attribute data includes, but is not limited to, the name of the data requesting the upload transaction, the identity of the data escrow server, the identity of the data owner, the second transaction identifier, and the like.
  • the data escrow server obtains the upload transaction request through the blockchain network, and analyzes whether the upload transaction request is sent to itself according to the upload attribute data of the transaction request, for example, if the upload attribute data includes the data escrow.
  • the identity of the server determines whether the upload transaction request is sent to itself, or if the upload attribute data does not include the identity of the data escrow server, it is determined that the upload transaction request is not sent to itself.
  • the data hosting server sends an upload response request corresponding to the upload transaction request to the blockchain network, and the upload response request includes upload response data, for example, the upload response
  • the data includes an identity of the data hosting server, an identity of the data owner, and a second transaction identifier; or the upload response data includes an identity of the data hosting server, an identity of the data owner, and a second transaction identifier.
  • a data identifier of the data corresponding to the upload transaction request in the data hosting server is sent to itself, the data hosting server sends an upload response request corresponding to the upload transaction request to the blockchain network, and the upload response request includes upload response data, for example, the upload response The data includes an identity of the data hosting server, an identity of the data owner, and a second transaction identifier; or the upload response data includes an identity of the data hosting server, an identity of the data owner, and a second transaction identifier. And a data identifier of the data corresponding to the upload transaction request in the data hosting server.
  • each transaction verification node of the blockchain network verifies the validity of the upload response request, for example, if the uploading attribute data includes the identity of the data hosting server and the corresponding upload
  • the identity of the data escrow server in the response data is consistent, 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, and the second transaction identifier contained in the upload attribute data Corresponding to the second transaction identifier in the corresponding upload response data, and the upload response data includes the data identifier, determining that the upload response request is valid; or, if the upload response data does not contain the data identifier, the upload attribute data
  • the identity of the data escrow server is inconsistent with the identity of the data escrow server in the corresponding upload response data
  • the identity of the data owner contained in the upload attribute data is inconsistent with the identity of the data owner in the corresponding upload response data.
  • Upload attribute data contains A second transaction identifier and the response data corresponding to the uploaded second transaction different from the identifier,
  • the accounting node of the blockchain network determines that the current data upload transaction of the data owner and the data escrow server is valid, and writes the upload response data of the upload response request into the area.
  • the smart contract of the blockchain network to complete the broadcast of the upload response data to each node of the blockchain network;
  • the data identifier is determined from the upload response data, and the name of the data requesting the upload transaction in the upload attribute data is associated with the data identifier. save.
  • the foregoing embodiment method can be implemented by means of software plus a necessary general hardware platform, and can also be implemented by hardware, but in many cases, the former is A better implementation.
  • the technical solution of the present invention which is essential or contributes to the prior art, may be embodied in the form of a software product stored in a storage medium (such as ROM/RAM, disk,
  • the optical disc includes a number of instructions for causing a terminal device (which may be a cell phone, a computer, a server, an air conditioner, or a network device, etc.) to perform the methods described in various embodiments of the present invention.

Abstract

一种基于区块链的数据管理方法、区块链系统、数据托管服务器及可读存储介质,该方法包括:需求方节点通过区块链网络广播一个与被需求方节点的数据交易请求,数据交易请求包括交易属性数据;被需求方节点通过所述区块链网络获取所述数据交易请求,并根据所述数据交易请求的交易属性数据向所述区块链网络发送一个与所述数据交易请求对应的交易应答请求,所述交易应答请求包括应答属性数据,所述应答属性数据中包括数据标识;需求方节点通过所述区块链网络获取到所述交易应答请求中的应答属性数据后,确定出所述应答属性数据中的数据标识,并根据确定出的数据标识从预设的数据托管服务器中下载与该数据标识对应的数据。本发明提高数据交易和存储的安全性。

Description

基于区块链的数据管理方法、区块链系统、服务器及可读存储介质
本申请申明享有2017年8月4日递交的申请号为201710659544.2、名称为“基于区块链的数据管理方法及区块链系统”的中国专利申请的优先权,该中国专利申请的整体内容以参考的方式结合在本申请中。
技术领域
本发明涉及计算机技术领域,尤其涉及一种基于区块链的数据管理方法、区块链系统、服务器及可读存储介质。
背景技术
目前,很多公司在开发预设类型的数据分析系统(例如,车牌自动识别系统、保险反欺诈系统等)时,需要获取大量的样本数据进行相关模型的训练,而目前大部分的这类样本数据都是分散储存在各个不同地方的,当训练需要数据时就必需从各地方下载数据。这些数据中可能存在需要收费的,要跳转到不同网站进行付费,消耗大量时间。
虽然,目前业界存在着利用中心服务器集中存储可用于交易的数据的方案,然而,这种利用服务器集中存储数据的方式存在如下的技术缺陷:交易双发的交易过程对服务器一方通常是公开透明的,交易参与方的交易毫无秘密可言,数据的交易和存储的安全性得不到保障。
发明内容
本发明的目的在于提供一种基于区块链的数据管理方法、区块链系统、服务器及可读存储介质,旨在提高数据交易和存储的安全性。
为实现上述目的,本发明提供一种区块链系统,所述区块链系统包括数据托管服务器以及与所述数据托管服务器数据通信的区块链网络,所述区块链网络中包括需求方节点、被需求方节点,其中:
所述需求方节点通过区块链网络广播一个与被需求方节点的数据交易请求,所述数据交易请求包括交易属性数据;
所述被需求方节点通过所述区块链网络获取所述数据交易请求,并根据所述数据交易请求的交易属性数据向所述区块链网络发送一个与所述数据交易请求对应的交易应答请求,所述交易应答请求包括应答属性数据,所述应答属性数据中包括数据标识;
所述需求方节点通过所述区块链网络获取到所述交易应答请求中的应答属性数据后,确定出所述应答属性数据中的数据标识,并根据确定出的数据标识从所述数据托管服务器中下载与该数据标识对应的数据。
此外,为实现上述目的,本发明还提供一种基于区块链的数据管理方法, 应用于如上所述的区块链系统,所述区块链系统包括数据托管服务器以及与所述数据托管服务器数据通信的区块链网络,所述区块链网络中包括需求方节点、被需求方节点,所述方法包括以下步骤:
A、需求方节点通过区块链网络广播一个与被需求方节点的数据交易请求,所述数据交易请求包括交易属性数据;
B、所述被需求方节点通过所述区块链网络获取所述数据交易请求,并根据所述数据交易请求的交易属性数据向所述区块链网络发送一个与所述数据交易请求对应的交易应答请求,所述交易应答请求包括应答属性数据,所述应答属性数据中包括数据标识;
C、所述需求方节点通过所述区块链网络获取到所述交易应答请求中的应答属性数据后,确定出所述应答属性数据中的数据标识,并根据确定出的数据标识从数据托管服务器中下载与该数据标识对应的数据。
进一步地,为实现上述目的,本发明还提供一种数据托管服务器,包括存储器和处理器,所述存储器上存储有数据托管系统,所述数据托管系统被所述处理器执行时实现如下步骤:
S1,在收到所述区块链网络的需求方节点发送的数据下载请求后,根据预先确定的数据标识与数据拥有方的映射关系,确定所述数据标识对应的数据拥有方;
S2,在所述区块链网络的智能合约中查询确定的数据拥有方是否作为被需求方节点与所述需求方节点发生了有效数据交易;
S3,若确定数据拥有方作为被需求方节点与所述需求方节点发生了有效数据交易,则响应所述数据下载请求,将与所述数据标识对应的数据发送给所述需求方节点。
更进一步地,为实现上述目的,本发明还提供一种计算机可读存储介质,所述计算机可读存储介质存储有数据托管系统,所述数据托管系统可被至少一个处理器执行,以实现如下步骤:
S1,在收到所述区块链网络的需求方节点发送的数据下载请求后,根据预先确定的数据标识与数据拥有方的映射关系,确定所述数据标识对应的数据拥有方;
S2,在所述区块链网络的智能合约中查询确定的数据拥有方是否作为被需求方节点与所述需求方节点发生了有效数据交易;
S3,若确定数据拥有方作为被需求方节点与所述需求方节点发生了有效数据交易,则响应所述数据下载请求,将与所述数据标识对应的数据发送给所述需求方节点。
本发明提出的基于区块链的数据管理方法、数据托管服务器、计算机可 读存储介质及区块链系统,需求方与被需求方通过区块链网络进行数据交易,并根据在区块链网络中确认的有效交易从预设的数据托管服务器中获取对应的数据,通过基于区块链网络进行数据交易及在数据托管服务器中集中管理数据的方式,不但节省了到处找数据的时间,而且利用区块链网络来进行数据交易能极大地提高数据交易和存储的安全性。
附图说明
图1为本发明各个实施例一可选的应用环境示意图;
图2为本发明基于区块链的数据管理方法一实施例的流程示意图;
图3为本发明基于区块链的数据管理方法另一实施例的流程示意图;
图4是图1中数据托管服务器一实施例的硬件架构的示意图。
具体实施方式
为了使本发明的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本发明进行进一步详细说明。应当理解,此处所描述的具体实施例仅用以解释本发明,并不用于限定本发明。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。
需要说明的是,在本发明中涉及“第一”、“第二”等的描述仅用于描述目的,而不能理解为指示或暗示其相对重要性或者隐含指明所指示的技术特征的数量。由此,限定有“第一”、“第二”的特征可以明示或者隐含地包括至少一个该特征。另外,各个实施例之间的技术方案可以相互结合,但是必须是以本领域普通技术人员能够实现为基础,当技术方案的结合出现相互矛盾或无法实现时应当认为这种技术方案的结合不存在,也不在本发明要求的保护范围之内。
参阅图1,是本发明各个实施例一可选的应用环境示意图。
在本实施例中,区块链系统包括数据托管服务器以及与所述数据托管服务器数据通信的区块链网络。如图1所示,本发明可应用于包括,但不仅限于,数据托管服务器1、区块链网络2的应用环境中。其中,数据托管服务器1是一种能够按照事先设定或者存储的指令,自动进行数值计算和/或信息处理的设备。数据托管服务器1可以是计算机、也可以是单个网络服务器、多个网络服务器组成的服务器组或者基于云计算的由大量主机或者网络服务器构成的云,其中云计算是分布式计算的一种,由一群松散耦合的计算机集组成的一个超级虚拟计算机。
数据托管服务器1用于集中存储待交易数据,区块链网络2是用于数据交易控制的区块链网络,可包括多个节点,如交易验证节点、记账节点等。所述数据托管服务器1通过网络与所述区块链网络2数据通信,该网络可以是企业内部网(Intranet)、互联网(Internet)、全球移动通讯系统(Global System of Mobile communication,GSM)、宽带码分多址(Wideband Code Division  Multiple Access,WCDMA)、4G网络、5G网络、蓝牙(Bluetooth)、Wi-Fi等无线或有线网络。
本发明提供一种基于区块链的数据管理方法。
参照图2,图2为本发明基于区块链的数据管理方法一实施例的流程示意图。该基于区块链的数据管理方法应用于区块链系统,所述区块链系统包括数据托管服务器以及与所述数据托管服务器数据通信的区块链网络,所述区块链网络中包括需求方节点、被需求方节点。
在一实施例中,该基于区块链的数据管理方法包括:
步骤S10,需求方节点通过区块链网络广播一个与被需求方节点的数据交易请求,所述数据交易请求包括交易属性数据。
本实施例中,一个需求用户通过区块链网络的第一节点即需求方节点广播一个请求与一个被需求用户的数据交易请求,例如,假设用户A需要用户B的数据,那么A需要通过区块链网络向B发送一个数据交易请求,用户A即是需求用户,B即是被需求用户。该数据交易请求包括交易属性数据,该交易属性数据可包括但不限于请求交易的数据的名称、被需求用户的身份标识、需求用户的身份标识、第一交易标识等等。
步骤S20,所述被需求方节点通过所述区块链网络获取所述数据交易请求,并根据所述数据交易请求的交易属性数据向所述区块链网络发送一个与所述数据交易请求对应的交易应答请求,所述交易应答请求包括应答属性数据,所述应答属性数据中包括数据标识。
被需求用户通过该区块链网络的第二节点即被需求方节点(第二节点与第一节点可以相同,也可以不同)获取该数据交易请求,并根据该数据交易请求的交易属性数据分析该数据交易请求是否是向自己发出的,例如,若所述交易属性数据中包括被需求用户的身份标识,则确定该数据交易请求是向自己发出的,或者,若所述交易属性数据中不包括被需求用户的身份标识,则确定该数据交易请求不是向自己发出的。若确定该数据交易请求是向自己发出的,则被需求用户通过该第二节点向该区块链网络发送一个与所述数据交易请求对应的交易应答请求,该交易应答请求包括应答属性数据。该应答属性数据可包括被需求用户的身份标识、需求用户的身份标识、第一交易标识等;或者,该应答属性数据包括被需求用户的身份标识、需求用户的身份标识、第一交易标识、数据托管服务器中与该数据交易请求对应的数据的数据标识等。
步骤S30,所述需求方节点通过所述区块链网络获取到所述交易应答请求中的应答属性数据后,确定出所述应答属性数据中的数据标识,并根据确定出的数据标识从预设的数据托管服务器中下载与该数据标识对应的数据。例如,所述需求方节点向预设的数据托管服务器发送包括需求方身份标识及所述数据标识的数据下载请求;接收所述数据托管服务器响应所述数据下载请求发送的与所述数据标识对应的数据。
本实施例通过基于区块链网络进行数据交易及在数据托管服务器中集中管理数据的方式,不但节省了到处找数据的时间,而且利用区块链网络来进行数据交易,能利用区块链网络具有的去中心化、信息不可篡改等特性极大地提高数据交易和存储的安全性。
进一步地,在一可选的实施例中,如图3所示,在上述实施例的基础上,还包括:
步骤S40,所述区块链网络的各个交易验证节点通过所述区块链网络接收到所述交易应答请求后,按预设规则对所述交易应答请求的有效性进行验证。
该区块链网络的各个交易验证节点接收到所述交易应答请求后,对所述交易应答请求的有效性进行验证。例如,若所述交易应答请求的应答属性数据中含有的被需求用户的身份标识与对应的交易属性数据中的被需求用户的身份标识一致、应答属性数据中含有的需求用户的身份标识与对应的交易属性数据中的需求用户的身份标识一致、应答属性数据中含有的第一交易标识与对应的交易属性数据中的第一交易标识一致,且应答属性数据中含有数据标识,则确定所述交易应答请求有效;或者,若应答属性数据中不含有数据标识、应答属性数据中含有的被需求用户的身份标识与对应的交易属性数据中的被需求用户的身份标识不一致、应答属性数据中含有的需求用户的身份标识与对应的交易属性数据中的需求用户的身份标识不一致、或者应答属性数据中含有的第一交易标识与对应的交易属性数据中的第一交易标识不一致,则确定所述交易应答请求无效。
步骤S50,若验证所述交易应答请求有效,则所述区块链网络的记账节点将所述交易应答请求的应答属性数据写入所述区块链网络的智能合约中,以完成将所述应答属性数据对所述区块链网络的各个节点的广播。
若经交易验证节点验证所述交易应答请求有效,则该区块链网络的记账节点确定该需求用户与被需求用户的本次数据交易有效,则将所述交易应答请求的应答属性数据写入该区块链网络的智能合约中,以完成将所述应答属性数据对区块链网络的各个节点的广播。
本实施例中通过交易验证节点验证需求用户与被需求用户的本次数据交易有效后,再将所述应答属性数据对区块链网络的各个节点进行广播来完成数据交易,防止了无效交易的发生,进一步地提高了数据交易的安全性。
本发明进一步提供一种区块链系统,所述区块链系统包括数据托管服务器以及与所述数据托管服务器数据通信的区块链网络,所述区块链网络中包括需求方节点、被需求方节点,其中:
需求方节点通过区块链网络广播一个与被需求方节点的数据交易请求,所述数据交易请求包括交易属性数据。
本实施例中,一个需求用户通过区块链网络的第一节点即需求方节点广 播一个请求与一个被需求用户的数据交易请求,例如,假设用户A需要用户B的数据,那么A需要通过区块链网络向B发送一个数据交易请求,用户A即是需求用户,B即是被需求用户。该数据交易请求包括交易属性数据,该交易属性数据可包括但不限于请求交易的数据的名称、被需求用户的身份标识、需求用户的身份标识、第一交易标识等等。
所述被需求方节点通过所述区块链网络获取所述数据交易请求,并根据所述数据交易请求的交易属性数据向所述区块链网络发送一个与所述数据交易请求对应的交易应答请求,所述交易应答请求包括应答属性数据,所述应答属性数据中包括数据标识。
被需求用户通过该区块链网络的第二节点即被需求方节点(第二节点与第一节点可以相同,也可以不同)获取该数据交易请求,并根据该数据交易请求的交易属性数据分析该数据交易请求是否是向自己发出的,例如,若所述交易属性数据中包括被需求用户的身份标识,则确定该数据交易请求是向自己发出的,或者,若所述交易属性数据中不包括被需求用户的身份标识,则确定该数据交易请求不是向自己发出的。若确定该数据交易请求是向自己发出的,则被需求用户通过该第二节点向该区块链网络发送一个与所述数据交易请求对应的交易应答请求,该交易应答请求包括应答属性数据。该应答属性数据可包括被需求用户的身份标识、需求用户的身份标识、第一交易标识等;或者,该应答属性数据包括被需求用户的身份标识、需求用户的身份标识、第一交易标识、数据托管服务器中与该数据交易请求对应的数据的数据标识等。
所述需求方节点通过所述区块链网络获取到所述交易应答请求中的应答属性数据后,确定出所述应答属性数据中的数据标识,并根据确定出的数据标识从预设的数据托管服务器中下载与该数据标识对应的数据。例如,所述需求方节点向预设的数据托管服务器发送包括需求方身份标识及所述数据标识的数据下载请求;接收所述数据托管服务器响应所述数据下载请求发送的与所述数据标识对应的数据。
本实施例通过基于区块链网络进行数据交易及在数据托管服务器中集中管理数据的方式,不但节省了到处找数据的时间,而且利用区块链网络来进行数据交易,能利用区块链网络具有的去中心化、信息不可篡改等特性极大地提高数据交易和存储的安全性。
进一步地,在一可选的实施例中,在上述实施例的基础上,所述区块链系统还包括交易验证节点、记账节点,其中:
所述区块链网络的各个交易验证节点通过所述区块链网络接收到所述交易应答请求后,按预设规则对所述交易应答请求的有效性进行验证。
该区块链网络的各个交易验证节点接收到所述交易应答请求后,对所述交易应答请求的有效性进行验证。例如,若所述交易应答请求的应答属性数 据中含有的被需求用户的身份标识与对应的交易属性数据中的被需求用户的身份标识一致、应答属性数据中含有的需求用户的身份标识与对应的交易属性数据中的需求用户的身份标识一致、应答属性数据中含有的第一交易标识与对应的交易属性数据中的第一交易标识一致,且应答属性数据中含有数据标识,则确定所述交易应答请求有效;或者,若应答属性数据中不含有数据标识、应答属性数据中含有的被需求用户的身份标识与对应的交易属性数据中的被需求用户的身份标识不一致、应答属性数据中含有的需求用户的身份标识与对应的交易属性数据中的需求用户的身份标识不一致、或者应答属性数据中含有的第一交易标识与对应的交易属性数据中的第一交易标识不一致,则确定所述交易应答请求无效。
若验证所述交易应答请求有效,则所述区块链网络的记账节点将所述交易应答请求的应答属性数据写入所述区块链网络的智能合约中,以完成将所述应答属性数据对所述区块链网络的各个节点的广播。
若经交易验证节点验证所述交易应答请求有效,则该区块链网络的记账节点确定该需求用户与被需求用户的本次数据交易有效,则将所述交易应答请求的应答属性数据写入该区块链网络的智能合约中,以完成将所述应答属性数据对区块链网络的各个节点的广播。
本实施例中通过交易验证节点验证需求用户与被需求用户的本次数据交易有效后,再将所述应答属性数据对区块链网络的各个节点进行广播来完成数据交易,防止了无效交易的发生,进一步地提高了数据交易的安全性。
参阅图4,是图1中数据托管服务器1一可选的硬件架构的示意图,本实施例中,数据托管服务器1可包括,但不仅限于,可通过系统总线相互通信连接的存储器11、处理器12、网络接口13。需要指出的是,图4仅示出了具有组件11-13的数据托管服务器1,但是应理解的是,并不要求实施所有示出的组件,可以替代的实施更多或者更少的组件。
其中,所述存储器11至少包括一种类型的可读存储介质,所述可读存储介质包括闪存、硬盘、多媒体卡、卡型存储器(例如,SD或DX存储器等)、随机访问存储器(RAM)、静态随机访问存储器(SRAM)、只读存储器(ROM)、电可擦除可编程只读存储器(EEPROM)、可编程只读存储器(PROM)、磁性存储器、磁盘、光盘等。在一些实施例中,所述存储器11可以是所述数据托管服务器1的内部存储单元,例如该数据托管服务器1的硬盘或内存。在另一些实施例中,所述存储器11也可以是所述数据托管服务器1的外部存储设备,例如该数据托管服务器1上配备的插接式硬盘,智能存储卡(Smart Media Card,SMC),安全数字(Secure Digital,SD)卡,闪存卡(Flash Card)等。当然,所述存储器11还可以既包括所述数据托管服务器1的内部存储单元也包括其外部存储设备。本实施例中,所述存储器11通常用于存储安装于所述数据托管服务器1的操作系统和各类应用软件,例如所述数据托管系统10的程序代码等。此外,所述存储器11还可以用于暂 时地存储已经输出或者将要输出的各类数据。
所述处理器12在一些实施例中可以是中央处理器(Central Processing Unit,CPU)、控制器、微控制器、微处理器、或其他数据处理芯片。该处理器12通常用于控制所述数据托管服务器1的总体操作,例如执行与所述区块链系统2进行数据交互或者通信相关的控制和处理等。本实施例中,所述处理器12用于运行所述存储器11中存储的程序代码或者处理数据,例如运行所述数据托管系统10等。
所述网络接口13可包括无线网络接口或有线网络接口,该网络接口13通常用于在所述数据托管服务器1与其他电子设备之间建立通信连接。本实施例中,所述网络接口13主要用于通过所述网络3将所述数据托管服务器1与所述区块链系统2相连,在所述数据托管服务器1与所述区块链系统2之间建立数据传输通道和通信连接。
数据托管系统10包括至少一个存储在所述存储器11中的计算机可读指令,该至少一个计算机可读指令可被所述处理器12执行,以实现本申请各实施例。
其中,上述数据托管系统10被所述处理器12执行时实现如下步骤:
步骤S1,在收到所述区块链网络的需求方节点发送的数据下载请求后,根据预先确定的数据标识与数据拥有方的映射关系,确定所述数据标识对应的数据拥有方。
步骤S2,在所述区块链网络的智能合约中查询确定的数据拥有方是否作为被需求方节点与所述需求方节点发生了有效数据交易;例如,可查询所述区块链网络的智能合约中是否记录有交易应答请求的应答属性数据,若记录有,则说明该交易应答请求已被验证有效,并可根据应答属性数据确认数据拥有方作为被需求方节点与所述需求方节点的数据交易已被验证为有效数据交易。
步骤S3,若确定数据拥有方作为被需求方节点与所述需求方节点发生了有效数据交易,则响应所述数据下载请求,将与所述数据标识对应的数据发送给所述需求方节点。
本实施例中,待交易数据集中存储在数据托管服务器上,避免了因数据分散储存在各个不同地方而到处找数据的情况,节省了大量时间,而且,数据托管服务器在确定的数据拥有方作为被需求方节点与所述需求方节点发生了有效数据交易之后,才将对应的数据发送给所述需求方节点,保证了数据交易的安全性。
在一可选的实施例中,所述数据托管系统10被所述处理器12执行实现所述步骤S2时,进一步包括:
在该区块链网络的智能合约中查询确定的数据拥有方是否作为所述数据标识对应的被需求节点与所述需求方节点发生了有效数据交易。
本实施例中,在验证有效数据交易时,在该区块链网络的智能合约中查 询确定的数据拥有方是否作为所述数据标识对应的被需求节点与所述需求方节点发生了有效数据交易,以防止因一个数据拥有方存在多个不同数据标识而引起的有效交易误判的情况发生,进一步地提高数据下载的安全性。
在一可选的实施例中,所述数据托管系统10被所述处理器12执行时,还实现如下步骤:
通过所述区块链网络接收数据拥有方广播的上传交易请求,所述上传交易请求包括上传属性数据;
根据所述上传属性数据向所述区块链网络发送一个与所述上传交易请求对应的上传应答请求,所述上传应答请求包括上传应答数据,所述上传应答数据包括所述上传应答数据对应的数据标识。
本实施例中,一个数据拥有方通过区块链网络的第三节点(第一节点、第二节点及/或第三节点可以相同,也可以不同)广播一个请求与数据托管服务器的上传交易请求,该上传交易请求包括上传属性数据。该上传属性数据包括但不限于请求上传交易的数据的名称、数据托管服务器的身份标识、该数据拥有方的身份标识、第二交易标识等。
数据托管服务器通过该区块链网络获取该上传交易请求,并根据该上述交易请求的上传属性数据分析该上传交易请求是否是向自己发出的,例如,若所述上传属性数据中包括该数据托管服务器的身份标识,则确定该上传交易请求是向自己发出的,或者,若所述上传属性数据中不包括该数据托管服务器的身份标识,则确定该上传交易请求不是向自己发出的。若该上传交易请求是向自己发出的,则该数据托管服务器向该区块链网络发送一个与所述上传交易请求对应的上传应答请求,该上传应答请求包括上传应答数据,例如,该上传应答数据包括该数据托管服务器的身份标识、该数据拥有方的身份标识、第二交易标识;或者,该上传应答数据包括该数据托管服务器的身份标识、该数据拥有方的身份标识、第二交易标识、数据托管服务器中与该上传交易请求对应的数据的数据标识。
该区块链网络的各个交易验证节点接收到所述上传应答请求后,对所述上传应答请求的有效性进行验证,例如,若上传属性数据中含有的数据托管服务器的身份标识与对应的上传应答数据中的数据托管服务器的身份标识一致、上传属性数据中含有的数据拥有方的身份标识与对应的上传应答数据中的数据拥有方的身份标识一致、上传属性数据中含有的第二交易标识与对应的上传应答数据中的第二交易标识一致,且上传应答数据中含有数据标识,则确定所述上传应答请求有效;或者,若上传应答数据中不含有数据标识、上传属性数据中含有的数据托管服务器的身份标识与对应的上传应答数据中的数据托管服务器的身份标识不一致、上传属性数据中含有的数据拥有方的身份标识与对应的上传应答数据中的数据拥有方的身份标识不一致、上传属性数据中含有的第二交易标识与对应的上传应答数据中的第二交易标识不一致,则确定所述上传应答请求无效。
若所述上传应答请求有效,则该区块链网络的记账节点确定该数据拥有方与数据托管服务器的本次数据上传交易有效,并把所述上传应答请求的上传应答数据写入该区块链网络的智能合约中,以完成将所述上传应答数据对区块链网络的各个节点的广播;
该数据拥有方通过该第三节点获取到所述上传应答数据后,从所述上传应答数据中确定出数据标识,并将该上传属性数据中请求上传交易的数据的名称与所述数据标识关联保存。
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素。
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件来实现,但很多情况下前者是更佳的实施方式。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端设备(可以是手机,计算机,服务器,空调器,或者网络设备等)执行本发明各个实施例所述的方法。
以上参照附图说明了本发明的优选实施例,并非因此局限本发明的权利范围。上述本发明实施例序号仅仅为了描述,不代表实施例的优劣。另外,虽然在流程图中示出了逻辑顺序,但是在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤。
本领域技术人员不脱离本发明的范围和实质,可以有多种变型方案实现本发明,比如作为一个实施例的特征可用于另一实施例而得到又一实施例。凡在运用本发明的技术构思之内所作的任何修改、等同替换和改进,均应在本发明的权利范围之内。

Claims (20)

  1. 一种区块链系统,其特征在于,所述区块链系统包括数据托管服务器以及与所述数据托管服务器数据通信的区块链网络,所述区块链网络中包括需求方节点、被需求方节点,其中:
    所述需求方节点通过区块链网络广播一个与被需求方节点的数据交易请求,所述数据交易请求包括交易属性数据;
    所述被需求方节点通过所述区块链网络获取所述数据交易请求,并根据所述数据交易请求的交易属性数据向所述区块链网络发送一个与所述数据交易请求对应的交易应答请求,所述交易应答请求包括应答属性数据,所述应答属性数据中包括数据标识;
    所述需求方节点通过所述区块链网络获取到所述交易应答请求中的应答属性数据后,确定出所述应答属性数据中的数据标识,并根据确定出的数据标识从所述数据托管服务器中下载与该数据标识对应的数据。
  2. 根据权利要求1所述的区块链系统,其特征在于,所述区块链网络中还包括交易验证节点、记账节点,其中:
    所述区块链网络的各个交易验证节点通过所述区块链网络接收到所述交易应答请求后,按预设规则对所述交易应答请求的有效性进行验证;
    若验证所述交易应答请求有效,则所述区块链网络的记账节点将所述交易应答请求的应答属性数据写入所述区块链网络的智能合约中,以完成将所述应答属性数据对所述区块链网络的各个节点的广播。
  3. 根据权利要求1所述的区块链系统,其特征在于,所述需求方节点还用于:
    向所述数据托管服务器发送包括需求方身份标识及所述数据标识的数据下载请求;
    接收所述数据托管服务器响应所述数据下载请求发送的与所述数据标识对应的数据;
    所述数据托管服务器还用于:
    在收到所述区块链网络的需求方节点发送的数据下载请求后,根据预先确定的数据标识与数据拥有方的映射关系,确定所述数据标识对应的数据拥有方;
    在所述区块链网络的智能合约中查询确定的数据拥有方是否作为被需求方节点与所述需求方节点发生了有效数据交易;
    若是,则响应所述数据下载请求,将与所述数据标识对应的数据发送给所述需求方节点。
  4. 根据权利要求2所述的区块链系统,其特征在于,所述需求方节点 还用于:
    向所述数据托管服务器发送包括需求方身份标识及所述数据标识的数据下载请求;
    接收所述数据托管服务器响应所述数据下载请求发送的与所述数据标识对应的数据;
    所述数据托管服务器还用于:
    在收到所述区块链网络的需求方节点发送的数据下载请求后,根据预先确定的数据标识与数据拥有方的映射关系,确定所述数据标识对应的数据拥有方;
    在所述区块链网络的智能合约中查询确定的数据拥有方是否作为被需求方节点与所述需求方节点发生了有效数据交易;
    若是,则响应所述数据下载请求,将与所述数据标识对应的数据发送给所述需求方节点。
  5. 根据权利要求3所述的区块链系统,其特征在于,所述数据托管服务器还用于:
    在该区块链网络的智能合约中查询确定的数据拥有方是否作为所述数据标识对应的被需求节点与所述需求方节点发生了有效数据交易。
  6. 根据权利要求4所述的区块链系统,其特征在于,所述数据托管服务器还用于:
    在该区块链网络的智能合约中查询确定的数据拥有方是否作为所述数据标识对应的被需求节点与所述需求方节点发生了有效数据交易。
  7. 根据权利要求3所述的区块链系统,其特征在于,所述数据托管服务器还用于:
    通过所述区块链网络接收数据拥有方广播的上传交易请求,所述上传交易请求包括上传属性数据;
    根据所述上传属性数据向所述区块链网络发送一个与所述上传交易请求对应的上传应答请求,所述上传应答请求包括上传应答数据,所述上传应答数据包括所述上传应答数据对应的数据标识。
  8. 根据权利要求4所述的区块链系统,其特征在于,所述数据托管服务器还用于:
    通过所述区块链网络接收数据拥有方广播的上传交易请求,所述上传交易请求包括上传属性数据;
    根据所述上传属性数据向所述区块链网络发送一个与所述上传交易请求对应的上传应答请求,所述上传应答请求包括上传应答数据,所述上传应答数据包括所述上传应答数据对应的数据标识。
  9. 一种基于区块链的数据管理方法,应用于区块链系统,其特征在于,所述区块链系统包括数据托管服务器以及与所述数据托管服务器数据通信的区块链网络,所述区块链网络中包括需求方节点、被需求方节点,所述方法包括以下步骤:
    A、需求方节点通过区块链网络广播一个与被需求方节点的数据交易请求,所述数据交易请求包括交易属性数据;
    B、所述被需求方节点通过所述区块链网络获取所述数据交易请求,并根据所述数据交易请求的交易属性数据向所述区块链网络发送一个与所述数据交易请求对应的交易应答请求,所述交易应答请求包括应答属性数据,所述应答属性数据中包括数据标识;
    C、所述需求方节点通过所述区块链网络获取到所述交易应答请求中的应答属性数据后,确定出所述应答属性数据中的数据标识,并根据确定出的数据标识从数据托管服务器中下载与该数据标识对应的数据。
  10. 根据权利要求9所述的基于区块链的数据管理方法,其特征在于,所述步骤B与步骤C之间还包括:
    所述区块链网络的各个交易验证节点通过所述区块链网络接收到所述交易应答请求后,按预设规则对所述交易应答请求的有效性进行验证;
    若验证所述交易应答请求有效,则所述区块链网络的记账节点将所述交易应答请求的应答属性数据写入所述区块链网络的智能合约中,以完成将所述应答属性数据对所述区块链网络的各个节点的广播。
  11. 根据权利要求9所述的基于区块链的数据管理方法,其特征在于,所述根据确定出的数据标识从数据托管服务器中下载与该数据标识对应的数据的步骤包括:
    所述需求方节点向所述数据托管服务器发送包括需求方身份标识及所述数据标识的数据下载请求;
    所述数据托管服务器在收到所述区块链网络的需求方节点发送的数据下载请求后,根据预先确定的数据标识与数据拥有方的映射关系,确定所述数据标识对应的数据拥有方;在所述区块链网络的智能合约中查询确定的数据拥有方是否作为被需求方节点与所述需求方节点发生了有效数据交易;若是,则响应所述数据下载请求,将与所述数据标识对应的数据发送给所述需求方节点;
    所述需求方节点接收所述数据托管服务器响应所述数据下载请求发送的与所述数据标识对应的数据。
  12. 根据权利要求10所述的基于区块链的数据管理方法,其特征在于,所述根据确定出的数据标识从数据托管服务器中下载与该数据标识对应的 数据的步骤包括:
    所述需求方节点向所述数据托管服务器发送包括需求方身份标识及所述数据标识的数据下载请求;
    所述数据托管服务器在收到所述区块链网络的需求方节点发送的数据下载请求后,根据预先确定的数据标识与数据拥有方的映射关系,确定所述数据标识对应的数据拥有方;在所述区块链网络的智能合约中查询确定的数据拥有方是否作为被需求方节点与所述需求方节点发生了有效数据交易;若是,则响应所述数据下载请求,将与所述数据标识对应的数据发送给所述需求方节点;
    所述需求方节点接收所述数据托管服务器响应所述数据下载请求发送的与所述数据标识对应的数据。
  13. 根据权利要求11所述的基于区块链的数据管理方法,其特征在于,该方法还包括:
    所述数据托管服务器在所述区块链网络的智能合约中查询确定的数据拥有方是否作为所述数据标识对应的被需求节点与所述需求方节点发生了有效数据交易。
  14. 根据权利要求12所述的基于区块链的数据管理方法,其特征在于,该方法还包括:
    所述数据托管服务器在所述区块链网络的智能合约中查询确定的数据拥有方是否作为所述数据标识对应的被需求节点与所述需求方节点发生了有效数据交易。
  15. 根据权利要求11所述的基于区块链的数据管理方法,其特征在于,该方法还包括:
    所述数据托管服务器通过所述区块链网络接收数据拥有方广播的上传交易请求,所述上传交易请求包括上传属性数据;根据所述上传属性数据向所述区块链网络发送一个与所述上传交易请求对应的上传应答请求,所述上传应答请求包括上传应答数据,所述上传应答数据包括所述上传应答数据对应的数据标识。
  16. 根据权利要求12所述的基于区块链的数据管理方法,其特征在于,该方法还包括:
    所述数据托管服务器通过所述区块链网络接收数据拥有方广播的上传交易请求,所述上传交易请求包括上传属性数据;根据所述上传属性数据向所述区块链网络发送一个与所述上传交易请求对应的上传应答请求,所述上传应答请求包括上传应答数据,所述上传应答数据包括所述上传应答数据对应的数据标识。
  17. 一种数据托管服务器,其特征在于,包括存储器和处理器,所述存储器上存储有数据托管系统,所述数据托管系统被所述处理器执行时实现如下步骤:
    S1,在收到所述区块链网络的需求方节点发送的数据下载请求后,根据预先确定的数据标识与数据拥有方的映射关系,确定所述数据标识对应的数据拥有方;S2,在所述区块链网络的智能合约中查询确定的数据拥有方是否作为被需求方节点与所述需求方节点发生了有效数据交易;
    S3,若确定数据拥有方作为被需求方节点与所述需求方节点发生了有效数据交易,则响应所述数据下载请求,将与所述数据标识对应的数据发送给所述需求方节点。
  18. 根据权利要求17所述的数据托管服务器,其特征在于,所述步骤S2包括:
    在该区块链网络的智能合约中查询确定的数据拥有方是否作为所述数据标识对应的被需求节点与所述需求方节点发生了有效数据交易。
  19. 根据权利要求17或18所述的数据托管服务器,其特征在于,所述数据托管系统被所述处理器执行时,还实现如下步骤:
    通过所述区块链网络接收数据拥有方广播的上传交易请求,所述上传交易请求包括上传属性数据;
    根据所述上传属性数据向所述区块链网络发送一个与所述上传交易请求对应的上传应答请求,所述上传应答请求包括上传应答数据,所述上传应答数据包括所述上传应答数据对应的数据标识。
  20. 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质存储有数据托管系统,所述数据托管系统可被至少一个处理器执行,以实现如下步骤:
    S1,在收到所述区块链网络的需求方节点发送的数据下载请求后,根据预先确定的数据标识与数据拥有方的映射关系,确定所述数据标识对应的数据拥有方;
    S2,在所述区块链网络的智能合约中查询确定的数据拥有方是否作为被需求方节点与所述需求方节点发生了有效数据交易;
    S3,若确定数据拥有方作为被需求方节点与所述需求方节点发生了有效数据交易,则响应所述数据下载请求,将与所述数据标识对应的数据发送给所述需求方节点。
PCT/CN2017/100053 2017-08-04 2017-08-31 基于区块链的数据管理方法、区块链系统、服务器及可读存储介质 WO2019024161A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201710659544.2 2017-08-04
CN201710659544.2A CN107464117B (zh) 2017-08-04 2017-08-04 基于区块链的数据管理方法及区块链系统

Publications (1)

Publication Number Publication Date
WO2019024161A1 true WO2019024161A1 (zh) 2019-02-07

Family

ID=60548382

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/100053 WO2019024161A1 (zh) 2017-08-04 2017-08-31 基于区块链的数据管理方法、区块链系统、服务器及可读存储介质

Country Status (2)

Country Link
CN (1) CN107464117B (zh)
WO (1) WO2019024161A1 (zh)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111125187A (zh) * 2019-11-29 2020-05-08 立旃(上海)科技有限公司 基于区块链的数据管理方法及装置
CN111698130A (zh) * 2020-06-10 2020-09-22 上海聪链信息科技有限公司 区块链服务器运行信息上传方法及其系统
CN111782350A (zh) * 2019-06-25 2020-10-16 北京京东尚科信息技术有限公司 业务处理方法及装置
CN113255005A (zh) * 2020-09-15 2021-08-13 支付宝(杭州)信息技术有限公司 一种基于区块链的数据资产流转方法、装置及设备

Families Citing this family (32)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108156232A (zh) * 2017-12-22 2018-06-12 王轶捷 数据共享方法及装置
CN108009834B (zh) * 2017-12-27 2021-10-15 上海唯链信息科技有限公司 一种基于区块链技术的汽车保险信息系统
CN108304475B (zh) * 2017-12-28 2020-11-10 比特大陆科技有限公司 数据查询方法、装置及电子设备
WO2019144353A1 (zh) * 2018-01-25 2019-08-01 深圳前海达闼云端智能科技有限公司 基于区块链的数据训练方法、装置、存储介质及区块链节点
CN108055138B (zh) * 2018-02-01 2020-03-17 国家计算机网络与信息安全管理中心 基于区块链的应用分发记录方法和系统
CN108446947B (zh) * 2018-02-07 2021-05-18 平安科技(深圳)有限公司 一种房产交易方法及装置
CN108510268B (zh) * 2018-02-09 2021-05-11 北京欧链科技有限公司 环形区块链结构、数据处理方法和装置
CN108491266B (zh) * 2018-03-09 2021-11-16 联想(北京)有限公司 基于区块链的数据处理方法、装置及电子设备
CN108711041B (zh) * 2018-04-17 2022-12-09 福建兑信科技有限公司 基于区块链技术的捐助系统及其价值代币处理方法
CN108512653A (zh) * 2018-04-18 2018-09-07 成都零光量子科技有限公司 一种基于区块链的电子证据采集和服务方法
CN108805550A (zh) * 2018-04-27 2018-11-13 深圳市元征科技股份有限公司 一种预付费交易管理方法及预付费交易管理装置
CN108830732A (zh) * 2018-04-28 2018-11-16 厦门快商通信息技术有限公司 一种基于区块链技术的预防保险欺诈的方法及系统
CN108924175A (zh) * 2018-05-02 2018-11-30 北京链链信息技术有限公司 一种区块链间的通信方法和装置
CN108764900A (zh) * 2018-05-03 2018-11-06 广州西麦科技股份有限公司 基于云计算网络的交易管理方法、装置和存储设备
CN108933778A (zh) * 2018-05-23 2018-12-04 广州西麦科技股份有限公司 基于云计算网络的产品交易监控方法、装置和存储介质
CN108989288B (zh) * 2018-06-20 2021-02-09 佛山科学技术学院 一种基于区块链的移动数字版权保护方法及装置
CN108961052B (zh) * 2018-06-25 2022-02-22 百度在线网络技术(北京)有限公司 区块链数据的验证方法、存储方法、装置、设备和介质
CN108900610A (zh) * 2018-06-29 2018-11-27 佛山伊苏巨森科技有限公司 一种用于区块链的对等网络通信系统
CN109033405B (zh) * 2018-08-03 2020-09-08 华为技术有限公司 维护区块链的方法和装置、服务器和计算机可读存储介质
CN109190769B (zh) * 2018-08-21 2021-12-24 深圳点宽网络科技有限公司 一种基于区块链的人工智能训练方法
CN109064334B (zh) * 2018-08-27 2021-12-24 深圳前海益链网络科技有限公司 一种智能合约记账方法、计算机装置及可读存储介质
CN109255614A (zh) * 2018-08-31 2019-01-22 深圳付贝科技有限公司 基于区块链的挖矿方法及装置、挖矿机及区块链系统
CN109377220B (zh) * 2018-10-16 2020-02-18 中国传媒大学 基于区块链的传媒数据交易方法及系统、计算机存储介质
CN109284634B (zh) * 2018-10-30 2023-04-25 深圳市元征科技股份有限公司 一种区块链节点及产品信息获取方法、装置
CN110048995B (zh) * 2018-12-05 2021-02-09 创新先进技术有限公司 多媒体协议的内容确认方法及装置、电子设备
CN111614709B (zh) * 2019-02-26 2022-12-16 傲为有限公司 基于区块链的分区交易方法及系统
CN110099108B (zh) * 2019-04-26 2022-04-01 深圳前海微众银行股份有限公司 一种区块链事件去重方法、装置、计算机设备及存储介质
CN110808974A (zh) * 2019-10-31 2020-02-18 深圳市网心科技有限公司 数据获取方法及装置、计算机装置及存储介质
CN111127021B (zh) * 2019-12-31 2020-10-30 蚂蚁区块链科技(上海)有限公司 基于区块链的服务请求方法及装置
CN112232961B (zh) * 2020-02-07 2021-08-20 腾讯科技(深圳)有限公司 基于区块链系统的数据处理方法、装置及电子设备
CN111414434B (zh) * 2020-05-20 2021-09-03 华北电力大学 基于区块链的数据交易管理网络、交易设备和存储介质
CN111930747B (zh) * 2020-07-31 2021-04-06 广州威尔森信息科技有限公司 一种线上数据购买的方法和装置

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106327173A (zh) * 2016-08-22 2017-01-11 布比(北京)网络技术有限公司 网络支付方法及装置
US20170134161A1 (en) * 2015-11-06 2017-05-11 Cable Television Laboratories, Inc Blockchaining for media distribution
CN106992990A (zh) * 2017-05-19 2017-07-28 北京牛链科技有限公司 数据共享方法和系统以及区块链系统和计算设备

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11347876B2 (en) * 2015-07-31 2022-05-31 British Telecommunications Public Limited Company Access control
CN106651346A (zh) * 2016-11-28 2017-05-10 上海凯岸信息科技有限公司 基于区块链的征信数据共享与交易系统
CN106780007A (zh) * 2016-11-28 2017-05-31 树读(上海)信息科技有限公司 一种征信数据共享与交易系统
CN106788987A (zh) * 2016-11-28 2017-05-31 树读(上海)信息科技有限公司 一种基于区块链的征信数据共享与交易系统
CN106603698A (zh) * 2016-12-28 2017-04-26 北京果仁宝科技有限公司 基于dpos的区块链共识方法和节点

Patent Citations (3)

* Cited by examiner, † Cited by third party
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 (zh) * 2016-08-22 2017-01-11 布比(北京)网络技术有限公司 网络支付方法及装置
CN106992990A (zh) * 2017-05-19 2017-07-28 北京牛链科技有限公司 数据共享方法和系统以及区块链系统和计算设备

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111782350A (zh) * 2019-06-25 2020-10-16 北京京东尚科信息技术有限公司 业务处理方法及装置
CN111125187A (zh) * 2019-11-29 2020-05-08 立旃(上海)科技有限公司 基于区块链的数据管理方法及装置
CN111698130A (zh) * 2020-06-10 2020-09-22 上海聪链信息科技有限公司 区块链服务器运行信息上传方法及其系统
CN111698130B (zh) * 2020-06-10 2023-05-05 上海聪链信息科技有限公司 区块链服务器运行信息上传方法及其系统
CN113255005A (zh) * 2020-09-15 2021-08-13 支付宝(杭州)信息技术有限公司 一种基于区块链的数据资产流转方法、装置及设备

Also Published As

Publication number Publication date
CN107464117B (zh) 2021-06-22
CN107464117A (zh) 2017-12-12

Similar Documents

Publication Publication Date Title
WO2019024161A1 (zh) 基于区块链的数据管理方法、区块链系统、服务器及可读存储介质
CN109981679B (zh) 在区块链网络中执行事务的方法和装置
WO2020057016A1 (zh) 基于区块链的保险理赔方法、电子装置及存储介质
US10299191B2 (en) Method and device for establishing wireless connection
CN112840617B (zh) 用于管理区块链资源的方法和计算节点,计算机可读介质
WO2019042176A1 (zh) 黑名单数据交换方法及应用服务器
US11520773B2 (en) Blockchain notification board storing blockchain resources
WO2019114096A1 (zh) 基于区块链的存储系统
US20210049715A1 (en) Blockchain-based data procesing method, apparatus, and electronic device
US11669532B2 (en) Blockchain implementing reliability database
CN110033373A (zh) 区块链中背书的装置、方法及存储介质
CA3088147C (en) Data isolation in distributed hash chains
CN110599275A (zh) 一种基于区块链网络的数据处理方法、装置及存储介质
WO2019095667A1 (zh) 数据库数据采集方法、应用服务器及计算机可读存储介质
CN110222535A (zh) 区块链配置文件的处理装置、方法及存储介质
CN110955724A (zh) 基于区块链的数据处理方法、装置、节点设备及存储介质
CN115131022A (zh) 基于区块链的数字资产交易方法、装置、设备及介质
CN106203179B (zh) 一种对文件的完整性校验系统及方法
US10853359B1 (en) Data log stream processing using probabilistic data structures
US9665732B2 (en) Secure Download from internet marketplace
CN113806816A (zh) 一种基于区块链的电子档案管理方法、装置及电子设备
CN111460256A (zh) 网页数据的爬取方法、装置、计算机设备和存储介质
CN115004666A (zh) 物联网设备的注册方法、装置、设备及存储介质
CN110597886A (zh) 一种数据处理方法、装置及计算机存储介质
US20220327242A1 (en) Data management method and apparatus

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 17920218

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 17920218

Country of ref document: EP

Kind code of ref document: A1

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC , EPO FORM 1205A DATED 05.08.2020.

122 Ep: pct application non-entry in european phase

Ref document number: 17920218

Country of ref document: EP

Kind code of ref document: A1