+

CN115186033A - Data processing method based on block chain, authorization method and device and electronic equipment - Google Patents

Data processing method based on block chain, authorization method and device and electronic equipment Download PDF

Info

Publication number
CN115186033A
CN115186033A CN202210902591.6A CN202210902591A CN115186033A CN 115186033 A CN115186033 A CN 115186033A CN 202210902591 A CN202210902591 A CN 202210902591A CN 115186033 A CN115186033 A CN 115186033A
Authority
CN
China
Prior art keywords
data
target
requester
request
authorization record
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210902591.6A
Other languages
Chinese (zh)
Inventor
肖凯
周海京
杨毅
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Industrial and Commercial Bank of China Ltd ICBC
ICBC Technology Co Ltd
Original Assignee
Industrial and Commercial Bank of China Ltd ICBC
ICBC Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Industrial and Commercial Bank of China Ltd ICBC, ICBC Technology Co Ltd filed Critical Industrial and Commercial Bank of China Ltd ICBC
Priority to CN202210902591.6A priority Critical patent/CN115186033A/en
Publication of CN115186033A publication Critical patent/CN115186033A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/27Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/23Updating
    • G06F16/2358Change logging, detection, and notification
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/23Updating
    • G06F16/2365Ensuring data consistency and integrity
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/62Protecting access to data via a platform, e.g. using keys or access control rules
    • G06F21/6218Protecting access to data via a platform, e.g. using keys or access control rules to a system of files or objects, e.g. local or distributed file system or database
    • G06F21/6245Protecting personal data, e.g. for financial or medical purposes

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Data Mining & Analysis (AREA)
  • Computer Security & Cryptography (AREA)
  • Health & Medical Sciences (AREA)
  • Bioethics (AREA)
  • General Health & Medical Sciences (AREA)
  • Computing Systems (AREA)
  • Medical Informatics (AREA)
  • Computer Hardware Design (AREA)
  • Software Systems (AREA)
  • Storage Device Security (AREA)

Abstract

本公开提供了一种基于区块链的数据处理方法、授权方法及装置、电子设备,可以应用于区块链技术领域,也可用于金融技术领域。上述基于区块链的数据处理方法包括:从区块链网络中获取目标数据的摘要信息,其中所述摘要信息通过数据授权方发布至所述区块链网络,所述摘要信息中包括与所述目标数据关联的目标请求地址,其中,所述目标请求地址链接至数据存储方;通过访问所述目标请求地址向所述数据存储方发起数据共享请求;接收来自于所述数据存储方的所述目标数据,其中,所述目标数据是在所述数据存储方根据链上目标授权记录对数据请求方进行确权验证通过的情况下发送的。

Figure 202210902591

The present disclosure provides a block chain-based data processing method, authorization method and device, and electronic equipment, which can be applied to the field of block chain technology and can also be used in the field of financial technology. The above block chain-based data processing method includes: obtaining summary information of target data from a block chain network, wherein the summary information is released to the block chain network through a data authorizer, and the summary information includes the same information as the relevant data. The target request address associated with the target data, wherein the target request address is linked to the data storage party; initiate a data sharing request to the data storage party by accessing the target request address; receive all the data from the data storage party The target data, wherein the target data is sent under the condition that the data storage party confirms the data requester according to the target authorization record on the chain and passes the verification.

Figure 202210902591

Description

基于区块链的数据处理方法、授权方法及装置、电子设备Blockchain-based data processing method, authorization method and device, and electronic equipment

技术领域technical field

本公开涉及区块链技术领域,具体涉及一种基于区块链的数据处理方法、授权方法、装置、设备、介质和程序产品。The present disclosure relates to the technical field of blockchain, and in particular to a blockchain-based data processing method, authorization method, apparatus, device, medium and program product.

背景技术Background technique

针对多方数据共享和变更的场景,相关技术中大多是以数据所有方的中心化服务为基础,与数据操作方进行线上或线下协商之后,再由数据操作方获取并分析数据进行数据变更等操作。因需经过多方协商,沟通成本高,缺乏有效的可信的机制。相关技术中通过区块链实现数据共享的方法虽然可解决沟通成本的问题,但是基本是通过区块链实现数据的共享,数据存在一定的安全风险。For the scenarios of multi-party data sharing and change, most of the related technologies are based on the centralized services of the data owner. After online or offline negotiation with the data operator, the data operator obtains and analyzes the data to change the data. and so on. Due to the multi-party negotiation, the communication cost is high, and there is no effective and credible mechanism. Although the method of realizing data sharing through blockchain in related technologies can solve the problem of communication cost, it basically realizes data sharing through blockchain, and the data has certain security risks.

发明内容SUMMARY OF THE INVENTION

鉴于上述问题,本公开提供了一种基于区块链的数据处理方法、授权方法、装置、设备、介质和程序产品。In view of the above problems, the present disclosure provides a blockchain-based data processing method, authorization method, apparatus, device, medium and program product.

本公开的一个方面,提供了一种基于区块链的数据处理方法,包括:One aspect of the present disclosure provides a blockchain-based data processing method, including:

从区块链网络中获取目标数据的摘要信息,其中摘要信息通过数据授权方发布至区块链网络,摘要信息中包括与目标数据关联的目标请求地址,其中,目标请求地址链接至数据存储方;Obtain the summary information of the target data from the blockchain network, wherein the summary information is published to the blockchain network by the data authorizer, and the summary information includes the target request address associated with the target data, wherein the target request address is linked to the data storage party ;

通过访问目标请求地址向数据存储方发起数据共享请求;Initiate a data sharing request to the data storage party by accessing the target request address;

接收来自于数据存储方的目标数据,其中,目标数据是在数据存储方根据链上目标授权记录对数据请求方进行确权验证通过的情况下发送的。Receive the target data from the data storage party, where the target data is sent when the data storage party confirms and verifies the data requester according to the target authorization record on the chain.

根据本公开的实施例,上述方法还包括:According to an embodiment of the present disclosure, the above method further includes:

变更目标数据的数据信息;Change the data information of the target data;

将变更后的数据信息发送至区块链网络,以使得区块链网络向数据存储方推送变更通知后,数据存储方根据变更后的数据信息更新目标数据。The changed data information is sent to the blockchain network, so that after the blockchain network pushes the change notification to the data storage party, the data storage party updates the target data according to the changed data information.

根据本公开的实施例,其中,目标数据的数据信息包括,与目标数据关联的扩展字段的值,其中扩展字段用于表征目标数据的属性类型。According to an embodiment of the present disclosure, the data information of the target data includes a value of an extension field associated with the target data, wherein the extension field is used to represent an attribute type of the target data.

根据本公开的实施例,其中,摘要信息中还包括与目标数据关联的扩展字段的名称,变更目标数据的数据信息包括:According to an embodiment of the present disclosure, wherein the summary information further includes the name of the extension field associated with the target data, and the data information of changing the target data includes:

从摘要信息中读取扩展字段的名称;Read the name of the extension field from the summary information;

根据扩展字段的名称,确定需要对目标数据进行变更的目标属性类型;According to the name of the extension field, determine the target attribute type that needs to be changed to the target data;

确定目标数据在目标属性类型下的目标属性值;Determine the target attribute value of the target data under the target attribute type;

将扩展字段的初始值变更为目标属性值。Change the initial value of the extension field to the target property value.

根据本公开的实施例,其中,将变更后的数据信息发送至区块链网络包括:According to an embodiment of the present disclosure, sending the changed data information to the blockchain network includes:

利用子证书访问链上的目标授权记录,其中目标授权记录和子证书由数据授权方签发,子证书携带有关键字,子证书通过关键字与目标授权记录关联;Use the sub-certificate to access the target authorization record on the chain, where the target authorization record and the sub-certificate are issued by the data authorizer, the sub-certificate carries a keyword, and the sub-certificate is associated with the target authorization record through the keyword;

将对扩展字段的初始值变更后得到的目标属性值,更新至目标授权记录。The target attribute value obtained by changing the initial value of the extension field is updated to the target authorization record.

根据本公开的实施例,其中:According to embodiments of the present disclosure, wherein:

摘要信息中还包括以下至少之一:目标数据的数据源名称、数据标识、数据源哈希摘要、数据所属者、数据在链上所属模块、数据简要描述。The summary information also includes at least one of the following: the name of the data source of the target data, the data identifier, the hash digest of the data source, the owner of the data, the module on the chain to which the data belongs, and a brief description of the data.

一种基于区块链的数据处理方法,包括:A blockchain-based data processing method, comprising:

接收来自于数据请求方通过访问目标请求地址发起的数据共享请求,其中,数据共享请求用于请求目标数据,其中目标请求地址包含在与目标数据关联的摘要信息中,摘要信息通过数据授权方发布至区块链网络;Receive a data sharing request initiated by the data requester by accessing the target request address, where the data sharing request is used to request target data, where the target request address is included in the summary information associated with the target data, and the summary information is released by the data authorizer to the blockchain network;

从区块链网络中的多个授权记录中,确定与数据请求方和目标数据关联的目标授权记录,其中目标授权记录由数据授权方签发;From multiple authorization records in the blockchain network, determine the target authorization record associated with the data requester and the target data, wherein the target authorization record is issued by the data authorizer;

根据目标授权记录对数据请求方进行确权;Confirm the data requester according to the target authorization record;

在确权通过的情况下,向数据请求方发送目标数据。When the right is confirmed, the target data is sent to the data requester.

根据本公开的实施例,其中,从区块链网络中的多个授权记录中,确定与数据请求方和目标数据关联的目标授权记录包括:According to an embodiment of the present disclosure, wherein, from a plurality of authorization records in the blockchain network, determining the target authorization record associated with the data requester and the target data includes:

获取数据请求方的子证书,其中子证书由数据授权方签发,子证书携带有关键字,子证书通过关键字与目标授权记录关联;Obtain the sub-certificate of the data requester, wherein the sub-certificate is issued by the data authorizer, the sub-certificate carries a keyword, and the sub-certificate is associated with the target authorization record through the keyword;

将多个授权记录中,与子证书的关键字关联的授权记录,作为与数据请求方和目标数据关联的目标授权记录。Among the multiple authorization records, the authorization record associated with the keyword of the sub-certificate is used as the target authorization record associated with the data requester and the target data.

根据本公开的实施例,其中,目标授权记录包括授权数据请求方请求目标数据的可请求次数、可请求时间段;According to an embodiment of the present disclosure, the target authorization record includes a requestable number of times and a requestable time period for an authorized data requester to request the target data;

根据目标授权记录对数据请求方进行确权包括:Confirming the data requester's rights according to the target authorization record includes:

基于目标授权记录,在数据请求方对目标数据的已请求次数小于可请求次数、且数据请求方的当前请求时段在可请求时间段范围内的情况下,确定数据请求方当前具有目标数据的请求权限。Based on the target authorization record, if the number of times the data requester has requested the target data is less than the number of times that can be requested, and the current request period of the data requester is within the range of the requestable time period, determine that the data requester currently has a request for the target data permissions.

一种基于区块链的授权方法,包括:A blockchain-based authorization method that includes:

将目标数据的摘要信息发布至区块链网络,以使得数据请求方根据摘要信息中包含的与目标数据关联的目标请求地址,向数据存储方发起数据共享请求;Publish the summary information of the target data to the blockchain network, so that the data requester initiates a data sharing request to the data storage party according to the target request address associated with the target data contained in the summary information;

接收来自于数据请求方的数据授权请求;Receive data authorization requests from data requesters;

响应于数据授权请求,生成与数据请求方和目标数据关联的目标授权记录;In response to the data authorization request, generating a target authorization record associated with the data requester and the target data;

将目标授权记录发布至区块链网络,以使得数据存储方根据从链上获得的目标授权记录,对数据请求方进行确权验证通过后,向数据请求方发送目标数据。Publish the target authorization record to the blockchain network, so that the data storage party can send the target data to the data requester after verifying the data requester according to the target authorization record obtained from the chain.

根据本公开的实施例,上述方法还包括:According to an embodiment of the present disclosure, the above method further includes:

向数据请求方签发与目标授权记录关联的子证书,以使得数据请求方利用子证书访问目标授权记录,其中子证书携带有关键字,子证书通过关键字与目标授权记录关联。A sub-certificate associated with the target authorization record is issued to the data requester, so that the data requester uses the sub-certificate to access the target authorization record, wherein the sub-certificate carries a keyword, and the sub-certificate is associated with the target authorization record through the keyword.

本公开的另一个方面提供了一种基于区块链的数据处理装置,包括:Another aspect of the present disclosure provides a blockchain-based data processing device, including:

获取模块,用于从区块链网络中获取目标数据的摘要信息,其中摘要信息通过数据授权方发布至区块链网络,摘要信息中包括与目标数据关联的目标请求地址,其中,目标请求地址链接至数据存储方;The obtaining module is used to obtain the summary information of the target data from the blockchain network, wherein the summary information is released to the blockchain network through the data authorizer, and the summary information includes the target request address associated with the target data, wherein the target request address link to the data store;

请求模块,用于通过访问目标请求地址向数据存储方发起数据共享请求;The request module is used to initiate a data sharing request to the data storage party by accessing the target request address;

第一接收模块,用于接收来自于数据存储方的目标数据,其中,目标数据是在数据存储方根据链上目标授权记录对数据请求方进行确权验证通过的情况下发送的。The first receiving module is used for receiving the target data from the data storage party, wherein the target data is sent when the data storage party confirms the right of the data requester according to the target authorization record on the chain and passes the verification.

根据本公开的实施例,上述装置还包括:According to an embodiment of the present disclosure, the above-mentioned apparatus further includes:

变更模块,用于变更目标数据的数据信息;The change module is used to change the data information of the target data;

第一发送模块,用于将变更后的数据信息发送至区块链网络,以使得区块链网络向数据存储方推送变更通知后,数据存储方根据变更后的数据信息更新目标数据。The first sending module is used to send the changed data information to the blockchain network, so that after the blockchain network pushes the change notification to the data storage party, the data storage party updates the target data according to the changed data information.

根据本公开的实施例,其中,目标数据的数据信息包括,与目标数据关联的扩展字段的值,其中扩展字段用于表征目标数据的属性类型。According to an embodiment of the present disclosure, the data information of the target data includes a value of an extension field associated with the target data, wherein the extension field is used to represent an attribute type of the target data.

根据本公开的实施例,其中,摘要信息中还包括与目标数据关联的扩展字段的名称,变更模块包括:According to an embodiment of the present disclosure, wherein the summary information further includes the name of the extension field associated with the target data, and the changing module includes:

读取单元,用于从摘要信息中读取扩展字段的名称;The reading unit is used to read the name of the extension field from the summary information;

第一确定单元,用于根据扩展字段的名称,确定需要对目标数据进行变更的目标属性类型;a first determining unit, configured to determine the target attribute type that needs to be changed to the target data according to the name of the extension field;

第二确定单元,用于确定目标数据在目标属性类型下的目标属性值;a second determining unit, used for determining the target attribute value of the target data under the target attribute type;

变更单元,用于将扩展字段的初始值变更为目标属性值。The change unit is used to change the initial value of the extension field to the target attribute value.

根据本公开的实施例,其中,第一发送模块包括:According to an embodiment of the present disclosure, the first sending module includes:

访问单元,用于利用子证书访问链上的目标授权记录,其中目标授权记录和子证书由数据授权方签发,子证书携带有关键字,子证书通过关键字与目标授权记录关联;The access unit is used to use the sub-certificate to access the target authorization record on the chain, wherein the target authorization record and the sub-certificate are issued by the data authorizer, the sub-certificate carries a keyword, and the sub-certificate is associated with the target authorization record through the keyword;

更新单元,用于将对扩展字段的初始值变更后得到的目标属性值,更新至目标授权记录。The updating unit is used for updating the target attribute value obtained after changing the initial value of the extension field to the target authorization record.

根据本公开的实施例,其中:According to embodiments of the present disclosure, wherein:

摘要信息中还包括以下至少之一:目标数据的数据源名称、数据标识、数据源哈希摘要、数据所属者、数据在链上所属模块、数据简要描述。The summary information also includes at least one of the following: the name of the data source of the target data, the data identifier, the hash digest of the data source, the owner of the data, the module on the chain to which the data belongs, and a brief description of the data.

一种基于区块链的数据处理装置,包括:A blockchain-based data processing device, comprising:

第二接收模块,用于接收来自于数据请求方通过访问目标请求地址发起的数据共享请求,其中,数据共享请求用于请求目标数据,其中目标请求地址包含在与目标数据关联的摘要信息中,摘要信息通过数据授权方发布至区块链网络;The second receiving module is configured to receive a data sharing request initiated by the data requester by accessing the target request address, wherein the data sharing request is used to request target data, and the target request address is included in the summary information associated with the target data, The summary information is released to the blockchain network through the data authorizer;

确定模块,用于从区块链网络中的多个授权记录中,确定与数据请求方和目标数据关联的目标授权记录,其中目标授权记录由数据授权方签发;The determining module is used to determine the target authorization record associated with the data requester and the target data from multiple authorization records in the blockchain network, wherein the target authorization record is issued by the data authorizer;

确权模块,用于根据目标授权记录对数据请求方进行确权;The right confirmation module is used to confirm the right of the data requester according to the target authorization record;

第二发送模块,用于在确权通过的情况下,向数据请求方发送目标数据。The second sending module is configured to send the target data to the data requester when the right is confirmed.

根据本公开的实施例,其中,确定模块包括:According to an embodiment of the present disclosure, wherein the determining module includes:

获取单元,用于获取数据请求方的子证书,其中子证书由数据授权方签发,子证书携带有关键字,子证书通过关键字与目标授权记录关联;The obtaining unit is used to obtain the sub-certificate of the data requester, wherein the sub-certificate is issued by the data authorizer, the sub-certificate carries a keyword, and the sub-certificate is associated with the target authorization record through the keyword;

第三确定单元,用于将多个授权记录中,与子证书的关键字关联的授权记录,作为与数据请求方和目标数据关联的目标授权记录。The third determining unit is configured to use the authorization record associated with the keyword of the sub-certificate among the plurality of authorization records as the target authorization record associated with the data requester and the target data.

根据本公开的实施例,其中,目标授权记录包括授权数据请求方请求目标数据的可请求次数、可请求时间段;According to an embodiment of the present disclosure, the target authorization record includes a requestable number of times and a requestable time period for an authorized data requester to request the target data;

确权模块包括确权单元,用于基于目标授权记录,在数据请求方对目标数据的已请求次数小于可请求次数、且数据请求方的当前请求时段在可请求时间段范围内的情况下,确定数据请求方当前具有目标数据的请求权限。The right confirmation module includes a right confirmation unit for, based on the target authorization record, in the case that the number of times the data requester has requested the target data is less than the number of times that can be requested, and the current request period of the data requester is within the range of the time period that can be requested, Determines that the data requester currently has the request permission for the target data.

一种基于区块链的授权装置,包括:A blockchain-based authorization device, comprising:

第一发布模块,用于将目标数据的摘要信息发布至区块链网络,以使得数据请求方根据摘要信息中包含的与目标数据关联的目标请求地址,向数据存储方发起数据共享请求;a first publishing module, configured to publish the summary information of the target data to the blockchain network, so that the data requester initiates a data sharing request to the data storage party according to the target request address associated with the target data contained in the summary information;

第三接收模块,用于接收来自于数据请求方的数据授权请求;The third receiving module is used to receive the data authorization request from the data requester;

生成模块,用于响应于数据授权请求,生成与数据请求方和目标数据关联的目标授权记录;A generating module, configured to generate a target authorization record associated with the data requester and the target data in response to the data authorization request;

第二发布模块,用于将目标授权记录发布至区块链网络,以使得数据存储方根据从链上获得的目标授权记录,对数据请求方进行确权验证通过后,向数据请求方发送目标数据。The second publishing module is used to publish the target authorization record to the blockchain network, so that the data storage party confirms the data requester according to the target authorization record obtained from the chain, and sends the target to the data requester after passing the authorization verification data.

根据本公开的实施例,上述装置还包括:According to an embodiment of the present disclosure, the above-mentioned apparatus further includes:

签发模块,用于向数据请求方签发与目标授权记录关联的子证书,以使得数据请求方利用子证书访问目标授权记录,其中子证书携带有关键字,子证书通过关键字与目标授权记录关联。The issuing module is used to issue the sub-certificate associated with the target authorization record to the data requester, so that the data requester can use the sub-certificate to access the target authorization record, wherein the sub-certificate carries a keyword, and the sub-certificate is associated with the target authorization record through the keyword. .

本公开的另一个方面提供了一种电子设备,包括:一个或多个处理器;存储器,用于存储一个或多个程序,其中,当所述一个或多个程序被所述一个或多个处理器执行时,使得一个或多个处理器执行上述数据处理方法。Another aspect of the present disclosure provides an electronic device, comprising: one or more processors; a memory for storing one or more programs, wherein when the one or more programs are executed by the one or more programs When the processor executes, one or more processors are caused to execute the above data processing method.

本公开的另一个方面还提供了一种计算机可读存储介质,其上存储有可执行指令,该指令被处理器执行时使处理器执行上述数据处理方法。Another aspect of the present disclosure also provides a computer-readable storage medium having executable instructions stored thereon, the instructions, when executed by a processor, cause the processor to execute the above data processing method.

本公开的另一个方面还提供了一种计算机程序产品,包括计算机程序,该计算机程序被处理器执行时实现上述数据处理方法。Another aspect of the present disclosure also provides a computer program product, including a computer program, which implements the above data processing method when executed by a processor.

附图说明Description of drawings

通过以下参照附图对本公开实施例的描述,本公开的上述内容以及其他目的、特征和优点将更为清楚,在附图中:The foregoing and other objects, features and advantages of the present disclosure will become more apparent from the following description of embodiments of the present disclosure with reference to the accompanying drawings, in which:

图1示意性示出了根据本公开实施例的数据处理方法、装置、设备、介质和程序产品的应用场景图;FIG. 1 schematically shows an application scenario diagram of a data processing method, apparatus, device, medium and program product according to an embodiment of the present disclosure;

图2示意性示出了根据本公开实施例的数据处理方法的流程图;FIG. 2 schematically shows a flowchart of a data processing method according to an embodiment of the present disclosure;

图3示意性示出了根据本公开实施例的多方通过区块链进行数据共享和数据更新的系统图;FIG. 3 schematically shows a system diagram of data sharing and data updating by multiple parties through a blockchain according to an embodiment of the present disclosure;

图4示意性示出了根据本公开实施例的数据处理方法的流程图;FIG. 4 schematically shows a flowchart of a data processing method according to an embodiment of the present disclosure;

图5示意性示出了根据本公开实施例的授权方法的流程图;FIG. 5 schematically shows a flowchart of an authorization method according to an embodiment of the present disclosure;

图6示意性示出了根据本公开实施例的数据处理装置的结构框图;6 schematically shows a structural block diagram of a data processing apparatus according to an embodiment of the present disclosure;

图7示意性示出了根据本公开实施例的数据处理装置的结构框图;FIG. 7 schematically shows a structural block diagram of a data processing apparatus according to an embodiment of the present disclosure;

图8示意性示出了根据本公开实施例的授权装置的结构框图;FIG. 8 schematically shows a structural block diagram of an authorization apparatus according to an embodiment of the present disclosure;

图9示意性示出了根据本公开实施例的适于实现数据处理方法的电子设备的方框图。FIG. 9 schematically shows a block diagram of an electronic device suitable for implementing a data processing method according to an embodiment of the present disclosure.

具体实施方式Detailed ways

以下,将参照附图来描述本公开的实施例。但是应该理解,这些描述只是示例性的,而并非要限制本公开的范围。在下面的详细描述中,为便于解释,阐述了许多具体的细节以提供对本公开实施例的全面理解。然而,明显地,一个或多个实施例在没有这些具体细节的情况下也可以被实施。此外,在以下说明中,省略了对公知结构和技术的描述,以避免不必要地混淆本公开的概念。Hereinafter, embodiments of the present disclosure will be described with reference to the accompanying drawings. It should be understood, however, that these descriptions are exemplary only, and are not intended to limit the scope of the present disclosure. In the following detailed description, for convenience of explanation, numerous specific details are set forth in order to provide a thorough understanding of the embodiments of the present disclosure. It will be apparent, however, that one or more embodiments may be practiced without these specific details. Also, in the following description, descriptions of well-known structures and techniques are omitted to avoid unnecessarily obscuring the concepts of the present disclosure.

在此使用的术语仅仅是为了描述具体实施例,而并非意在限制本公开。在此使用的术语“包括”、“包含”等表明了所述特征、步骤、操作和/或部件的存在,但是并不排除存在或添加一个或多个其他特征、步骤、操作或部件。The terminology used herein is for the purpose of describing particular embodiments only and is not intended to limit the present disclosure. The terms "comprising", "comprising" and the like as used herein indicate the presence of stated features, steps, operations and/or components, but do not preclude the presence or addition of one or more other features, steps, operations or components.

在此使用的所有术语(包括技术和科学术语)具有本领域技术人员通常所理解的含义,除非另外定义。应注意,这里使用的术语应解释为具有与本说明书的上下文相一致的含义,而不应以理想化或过于刻板的方式来解释。All terms (including technical and scientific terms) used herein have the meaning as commonly understood by one of ordinary skill in the art, unless otherwise defined. It should be noted that terms used herein should be construed to have meanings consistent with the context of the present specification and should not be construed in an idealized or overly rigid manner.

在使用类似于“A、B和C等中至少一个”这样的表述的情况下,一般来说应该按照本领域技术人员通常理解该表述的含义来予以解释(例如,“具有A、B和C中至少一个的系统”应包括但不限于单独具有A、单独具有B、单独具有C、具有A和B、具有A和C、具有B和C、和/或具有A、B、C的系统等)。Where expressions like "at least one of A, B, and C, etc.," are used, they should generally be interpreted in accordance with the meaning of the expression as commonly understood by those skilled in the art (eg, "has A, B, and C") At least one of the "systems" shall include, but not be limited to, systems with A alone, B alone, C alone, A and B, A and C, B and C, and/or A, B, C, etc. ).

针对多方数据共享和变更的场景,相关技术中大多是以数据所有方的中心化服务为基础,与数据操作方进行线上或线下协商之后,再由数据操作方获取并分析数据进行数据变更等操作。因需经过多方协商,沟通成本高,缺乏有效的可信的机制,依托于中心化的服务不具备可扩展性。相关技术中通过区块链实现数据共享的方法虽然可解决沟通成本的问题,但是基本是通过区块链实现数据的共享,数据存在一定的安全风险。For the scenarios of multi-party data sharing and change, most of the related technologies are based on the centralized services of the data owner. After online or offline negotiation with the data operator, the data operator obtains and analyzes the data to change the data. and so on. Due to the need for multi-party negotiation, high communication costs, lack of effective and credible mechanisms, and centralized services are not scalable. Although the method of realizing data sharing through blockchain in related technologies can solve the problem of communication cost, it basically realizes data sharing through blockchain, and the data has certain security risks.

有鉴于此,本公开的实施例利用区块链的多方互信协作能力,提供一种可信的、多方接入的数据处理方法,适用于多方数据共享、变更与互操作的场景。In view of this, the embodiments of the present disclosure utilize the multi-party mutual trust and cooperation capability of the blockchain to provide a credible, multi-party access data processing method, which is suitable for scenarios of multi-party data sharing, modification and interoperability.

本公开的实施例提供了的基于区块链的数据处理方法包括:The blockchain-based data processing method provided by the embodiments of the present disclosure includes:

从区块链网络中获取目标数据的摘要信息,其中摘要信息通过数据授权方发布至区块链网络,摘要信息中包括与目标数据关联的目标请求地址,其中,目标请求地址链接至数据存储方;Obtain the summary information of the target data from the blockchain network, wherein the summary information is published to the blockchain network by the data authorizer, and the summary information includes the target request address associated with the target data, wherein the target request address is linked to the data storage party ;

通过访问目标请求地址向数据存储方发起数据共享请求;Initiate a data sharing request to the data storage party by accessing the target request address;

接收来自于数据存储方的目标数据,其中,目标数据是在数据存储方根据链上目标授权记录对数据请求方进行确权验证通过的情况下发送的。Receive the target data from the data storage party, where the target data is sent when the data storage party confirms and verifies the data requester according to the target authorization record on the chain.

图1示意性示出了根据本公开实施例的数据处理方法、装置、设备、介质和程序产品的应用场景图。FIG. 1 schematically shows an application scenario diagram of a data processing method, apparatus, device, medium, and program product according to an embodiment of the present disclosure.

如图1所示,根据该实施例的应用场景100可以包括区块链网络101、数据授权方102、数据请求方103、数据存储方104。As shown in FIG. 1 , an application scenario 100 according to this embodiment may include a blockchain network 101 , a data authorizer 102 , a data requester 103 , and a data store 104 .

其中,该区块链网络101对应的区块链可以是与业务合约相关联的区块链。数据授权方102、数据请求方103、数据存储方104可以分别包括接入区块链网络101的多个节点。The blockchain corresponding to the blockchain network 101 may be a blockchain associated with a business contract. The data authorizer 102 , the data requester 103 , and the data storage party 104 may respectively include multiple nodes accessing the blockchain network 101 .

通过该区块链网络101,数据授权方102、数据请求方103、数据存储方104可实现数据共享。每个节点之间可以建立网络连接,以通过该网络连接进行数据传输。Through the blockchain network 101, the data authorizer 102, the data requester 103, and the data storage party 104 can realize data sharing. A network connection can be established between each node for data transmission over the network connection.

数据授权方102可以将数据的摘要信息发布至区块链网络,以供数据请求方103通过读取摘要信息得知数据的基本信息。数据授权方102还可以基于数据请求方103的数据授权请求,向数据请求方103签发用于访问区块链网络101的子证书。The data authorizer 102 can publish the summary information of the data to the blockchain network, so that the data requester 103 can know the basic information of the data by reading the summary information. The data authorizer 102 may also issue a sub-certificate for accessing the blockchain network 101 to the data requester 103 based on the data authorization request of the data requester 103 .

其中,摘要信息中包括与目标数据关联的目标请求地址,其中,目标请求地址链接至数据存储方104,数据请求方103通过读取摘要信息得知数据的基本信息后,可以通过访问目标请求地址向数据存储方104发起数据共享请求。The summary information includes a target request address associated with the target data, wherein the target request address is linked to the data storage party 104, and the data requester 103 can access the target request address after learning the basic information of the data by reading the summary information. A data sharing request is initiated to the data store 104 .

数据存储方104在接收到数据请求方103发起的数据共享请求后,通过区块链网络101对数据请求方103进行鉴权,鉴权通过后,将数据通过链下发送给数据请求方103。After receiving the data sharing request initiated by the data requester 103, the data storage party 104 authenticates the data requester 103 through the blockchain network 101, and after the authentication is passed, the data is sent to the data requester 103 through the off-chain.

数据请求方103也可以作为数据变更方,在获得授权的情况下进行数据变更,并将变更后的数据上传至区块链网络101,区块链网络101可将数据变更的消息通知到数据授权方102和数据存储方104。The data requester 103 can also act as a data changer to change the data when authorized, and upload the changed data to the blockchain network 101, and the blockchain network 101 can notify the data authorization message of the data change party 102 and data store party 104.

应当理解,数据授权方102和数据存储方104可以是同一节点,也可以是不同的节点。数据授权方102、数据请求方103、数据存储方104可以分别包括多个节点,也可以是仅包括一个节点。It should be understood that the data authorizer 102 and the data store 104 may be the same node, or may be different nodes. The data authorizer 102, the data requester 103, and the data storage party 104 may respectively include multiple nodes, or may include only one node.

需要说明的是,本公开的数据处理方法、授权方法及装置可用于区块链技术领域,也可用于金融技术领域,也可用于除区块链技术领域和金融技术领域之外的任意领域,本公开的实施例对上述数据处理方法、授权方法及装置的应用领域不做限定。It should be noted that the data processing method, authorization method and device disclosed in the present disclosure can be used in the field of blockchain technology, can also be used in the field of financial technology, and can also be used in any field other than the field of blockchain technology and financial technology. The embodiments of the present disclosure do not limit the application fields of the above-mentioned data processing method, authorization method, and apparatus.

在本公开的技术方案中,所涉及的用户个人信息的收集、存储、使用、加工、传输、提供、公开和应用等处理,均符合相关法律法规的规定,采取了必要保密措施,且不违背公序良俗。In the technical solution of the present disclosure, the collection, storage, use, processing, transmission, provision, disclosure and application of the user's personal information involved are all in compliance with the relevant laws and regulations, and necessary confidentiality measures have been taken, and do not violate the Public order and good customs.

在本公开的技术方案中,在获取或采集用户个人信息之前,均获取了用户的授权或同意。In the technical solution of the present disclosure, the authorization or consent of the user is obtained before the user's personal information is obtained or collected.

以下将基于图1描述的场景,通过图2~图9对公开实施例的数据处理方法进行详细描述。Based on the scenario described in FIG. 1 , the data processing method of the disclosed embodiment will be described in detail below with reference to FIGS. 2 to 9 .

图2示意性示出了根据本公开实施例的数据处理方法的流程图。图3示意性示出了根据本公开实施例的多方通过区块链进行数据共享和数据更新的系统图。以下结合图2、图3对本公开实施例的方法进行说明。FIG. 2 schematically shows a flowchart of a data processing method according to an embodiment of the present disclosure. FIG. 3 schematically shows a system diagram of data sharing and data updating by multiple parties through a blockchain according to an embodiment of the present disclosure. The method of the embodiment of the present disclosure will be described below with reference to FIG. 2 and FIG. 3 .

如图2所示,该实施例的基于区块链的数据处理方法包括操作S201~操作S203。As shown in FIG. 2 , the blockchain-based data processing method of this embodiment includes operations S201 to S203.

在操作S201,从区块链网络中获取目标数据的摘要信息,其中摘要信息通过数据授权方发布至区块链网络,摘要信息中包括与目标数据关联的目标请求地址,其中,目标请求地址链接至数据存储方;In operation S201, the abstract information of the target data is obtained from the blockchain network, wherein the abstract information is published to the blockchain network by the data authorizer, and the abstract information includes the target request address associated with the target data, wherein the target request address is linked to the data store;

在操作S202,通过访问目标请求地址向数据存储方发起数据共享请求;In operation S202, initiate a data sharing request to the data storage party by accessing the target request address;

在操作S203,接收来自于数据存储方的目标数据,其中,目标数据是在数据存储方根据链上目标授权记录对数据请求方进行确权验证通过的情况下发送的。In operation S203, the target data from the data storage party is received, wherein the target data is sent under the condition that the data storage party confirms the right of the data requester according to the target authorization record on the chain and passes the verification.

如图3所示,根据本公开的实施例,该实施例数据处理方法基于区块链实现,接入区块链网络的可以有多方,例如可包括但不限于数据授权方、数据请求方、数据存储方、数据变更方等。多方可通过区块链访问介质接入区块链数据授权中心,数据授权方、数据请求方、数据存储方、数据变更方可包括接入区块链网络的一个或多个节点。如图3所示,接入区块链的数据授权中心的可扩展的数据源可包括但不限于数据中心、存储系统、政务共享系统……。As shown in FIG. 3 , according to an embodiment of the present disclosure, the data processing method of this embodiment is implemented based on blockchain, and there can be multiple parties accessing the blockchain network, such as but not limited to data authorizers, data requesters, Data storage party, data change party, etc. Multiple parties can access the blockchain data authorization center through the blockchain access medium. The data authorizer, data requester, data storage party, and data change party can include one or more nodes accessing the blockchain network. As shown in Figure 3, the scalable data sources of the data authorization center accessing the blockchain may include, but are not limited to, data centers, storage systems, government affairs sharing systems . . .

根据本公开的实施例,数据请求方也可以作为数据变更方,在获得授权的情况下进行数据变更,并将变更后的数据上传至区块链网络,区块链网络可将数据变更的消息通知到数据授权方和数据存储方。应当理解,数据授权方和数据存储方可以是同一节点,也可以是不同的节点。According to the embodiment of the present disclosure, the data requester can also act as the data changer, change the data under the condition of authorization, and upload the changed data to the blockchain network, and the blockchain network can change the information of the data change. Notify the data authorizer and data store. It should be understood that the data authorizer and the data storage party may be the same node or different nodes.

该实施例的基于区块链的数据处理方法可以是由数据请求方或数据变更方执行,数据请求方和数据变更方可以为同一个执行主体,也可以是不同的执行主体。The blockchain-based data processing method in this embodiment may be executed by a data requester or a data changer, and the data requester and the data changer may be the same executive body or different executive bodies.

如图3所示,数据请求方或数据变更方可以通过区块链网络请求目标数据。数据授权方可以将目标数据的摘要信息发布至区块链网络数据授权中心,摘要信息可包括但不限于目标数据的数据源名称、数据标识(数据主键)、数据源哈希摘要、数据所属者、数据在链上所属模块、数据简要描述等等,以供数据请求方或数据变更方通过读取摘要信息得知数据的基本信息。链上公开的数据摘要信息可由数据授权方进行授权并将授权信息上链。其中,摘要信息中包括与目标数据关联的目标请求地址,其中,目标请求地址链接至数据存储方。As shown in Figure 3, the data requester or data changer can request the target data through the blockchain network. The data authorizer can publish the summary information of the target data to the blockchain network data authorization center. The summary information can include but is not limited to the data source name of the target data, data identification (data primary key), data source hash abstract, data owner , the module the data belongs to on the chain, the brief description of the data, etc., so that the data requester or data changer can know the basic information of the data by reading the summary information. The data summary information disclosed on the chain can be authorized by the data authorizer and the authorization information can be uploaded to the chain. The summary information includes a target request address associated with the target data, wherein the target request address is linked to the data storage party.

数据请求方或数据变更方通过从链上获取目标数据的摘要信息后,可根据获取到的数据基本信息决定是否要请求该数据,可以通过访问目标请求地址向数据存储方发起数据共享请求。After obtaining the summary information of the target data from the chain, the data requester or data changer can decide whether to request the data according to the obtained basic information of the data, and can initiate a data sharing request to the data storage party by accessing the target request address.

数据存储方在接收到数据请求方发起的数据共享请求后,通过区块链网络对数据请求方或数据变更方进行鉴权,鉴权通过后,将数据通过链下发送给数据请求方或数据变更方。After the data storage party receives the data sharing request initiated by the data requester, it authenticates the data requester or data changer through the blockchain network. After the authentication is passed, the data is sent off-chain to the data requester or data Change party.

根据本公开的实施例,如图3所示,数据存储方对数据请求进行鉴权,例如可以是根据链上目标授权记录对数据请求方进行确权验证。其中目标授权记录由数据授权方签发,可以是数据请求方或数据变更方向数据授权方发起请求目标数据的数据授权请求后,数据授权方响应于数据授权请求,生成与数据请求方和目标数据关联的目标授权记录,并将目标授权记录上链。目标授权记录可包括授权数据请求方请求目标数据的可请求次数、可请求时间段等。According to an embodiment of the present disclosure, as shown in FIG. 3 , the data storage party authenticates the data request, for example, the data requester may be authenticated according to the target authorization record on the chain. The target authorization record is issued by the data authorizer, which can be the data requester or the data change direction. After the data authorizer initiates a data authorization request to request the target data, the data authorizer responds to the data authorization request and generates an association between the data requester and the target data. , and upload the target authorization record to the chain. The target authorization record may include a requestable number of times, a requestable time period, and the like for the authorized data requester to request the target data.

根据本公开的实施例,数据存储方在对数据请求方或数据变更方进行鉴权时,可通过访问区块链,确定区块链网络中是否存在与数据请求方和目标数据关联的目标授权记录,若存在,则进一步根据目标授权记录中记载的可请求次数、可请求时间段等信息确定数据请求方或数据变更方当前是否具有数据请求权限,在鉴权通过的情况下,数据存储方通过链下向数据请求方或数据变更方发送目标数据。According to the embodiments of the present disclosure, when the data storage party authenticates the data requester or the data changer, it can access the blockchain to determine whether there is a target authorization record associated with the data requester and the target data in the blockchain network , if it exists, then further determine whether the data requester or data changer currently has the data request authority according to the information such as the number of requests and the requestable time period recorded in the target authorization record. The target data is sent off-chain to the data requester or data changer.

根据本公开的实施例,区别于相关技术中多方通过区块链网络共享数据的方法,本公开实施例的数据处理方法只是通过区块链网络共享数据的摘要信息,并非共享实体数据。通过共享数据的摘要信息可便于接入区块链的多方能够了解到数据的基本信息,以便根据各自的实际需求确定是否需要请求该数据。在需要请求数据的情况下,数据请求方可通过摘要信息中共享的请求地址向数据存储方发起数据请求,进一步数据存储方通过区块链进行鉴权后实体数据通过链下传输。可见,本公开实施例的数据处理方法通过区块链网络共享数据的摘要信息,并非共享实体数据,实体数据通过链下点对点传输,可保证数据的安全性,进一步地,实体数据在通过区块链网络鉴权通过的情况下才通过链下传输,进一步提高了数据的安全性,并且多方通过区块链实现各自的职能(数据授权方进行授权、数据存储方进行鉴权、数据请求数据),实现了一种可信的、多方参与的数据共享方法,具备了多方参与可扩展的特性,同时赋予了数据共享和互操作的能力,为数据的可信流通提供了参考。According to the embodiments of the present disclosure, different from the method of sharing data between multiple parties through the blockchain network in the related art, the data processing method of the embodiment of the present disclosure only shares the summary information of the data through the blockchain network, rather than sharing entity data. By sharing the summary information of the data, it is convenient for multiple parties accessing the blockchain to know the basic information of the data, so as to determine whether to request the data according to their actual needs. In the case of requesting data, the data requester can initiate a data request to the data storage party through the request address shared in the summary information, and the data storage party further authenticates through the blockchain and transmits the entity data through the off-chain. It can be seen that the data processing method of the embodiment of the present disclosure shares the summary information of the data through the blockchain network, rather than sharing the entity data. The entity data is transmitted through the chain point-to-point, which can ensure the security of the data. Only when the chain network authentication is passed, the data is transmitted off-chain, which further improves the security of the data, and multiple parties realize their respective functions through the blockchain (the data authorizer performs authorization, the data storage side performs authentication, and the data requests data). , realizes a credible, multi-participation data sharing method, has the characteristics of multi-participation and extensibility, and at the same time endows data sharing and interoperability capabilities, providing a reference for the credible flow of data.

根据本公开的实施例,如图3所示,数据授权方发布至链上的目标数据的摘要信息中,可包括但不限于以下信息内容,例如目标数据的数据源名称、数据标识(数据主键)、数据源哈希摘要、数据所属者、数据在链上所属模块、数据简要描述等等。According to an embodiment of the present disclosure, as shown in FIG. 3 , the summary information of the target data published by the data authorizer on the chain may include but not limited to the following information content, such as the data source name of the target data, the data identifier (data primary key ), data source hash digest, data owner, data on-chain module, data brief description, etc.

其中,摘要信息中,数据源哈希摘要为源数据通过摘要算法生成的唯一字符串,用于数据核对确认,数据请求方或数据变更方在获取到目标数据后,通过运行相关的摘要算法生成一字符串,将生成的这一字符串与链上摘要信息中的数据源哈希摘要是否一致。Among them, in the summary information, the data source hash summary is a unique string generated by the source data through the summary algorithm, which is used for data verification and confirmation. After the data requester or data changer obtains the target data, it is generated by running the relevant summary algorithm. A string, whether the generated string is consistent with the data source hash digest in the on-chain digest information.

根据本公开的实施例,数据授权方可以授权数据请求方或数据变更方变更目标数据的数据信息,例如变更目标数据的价格、数据类型、数据验证结果等等,根据目标数据的具体使用场景而定。具体地,数据授权方可以授权数据请求方或数据变更方变更与目标数据关联的扩展字段的值,例如变更扩展字段“价格”的数值,变更“数据类型”的类型值等等。According to the embodiments of the present disclosure, the data authorizer can authorize the data requester or the data changer to change the data information of the target data, such as changing the price, data type, data verification result, etc. of the target data, according to the specific usage scenario of the target data. Certainly. Specifically, the data authorizer can authorize the data requester or the data changer to change the value of the extension field associated with the target data, for example, change the value of the extension field "price", change the type value of "data type", and so on.

根据本公开的实施例,基于上述数据变更的场景,摘要信息中可包括与目标数据关联的扩展字段的名称,以便数据变更方了解到数据授权方的数据变更需求。According to the embodiment of the present disclosure, based on the above data change scenario, the summary information may include the name of the extension field associated with the target data, so that the data changer can understand the data change requirements of the data authorizer.

根据本公开的实施例,如图3所示,数据授权方需要提前在链上进行数据源注册,数据授权方向区块链上送数据源信息(注册),包括应用的名称、应用关键字、模块名称、扩展字段名称等,链上可包括多个数据模块,不同数据模块可用于注册不同类型的数据源,例如A企业在用户信息模块登记注册有一些用户信息,B企业在金融模块登记注册有一些金融财务数据。链上每一模块中存储有数据源相关的信息,例如数据源关键字、数据源名称、模块名称等,基于上述数据变更的场景,每一模块中还配置有可变更的扩展字段名称,用于指示数据授权方的数据变更需求。同一个模块可以定义多个扩展字段,扩展字段即表示可以授权给他方修改的字段名称。According to an embodiment of the present disclosure, as shown in FIG. 3 , the data authorizer needs to register the data source on the chain in advance, and the data authorizer sends the data source information (registration) to the blockchain, including the name of the application, application keywords, Module name, extension field name, etc. The chain can include multiple data modules, and different data modules can be used to register different types of data sources. For example, company A has some user information registered in the user information module, and company B is registered in the financial module. There are some financial financial data. Each module on the chain stores information related to data sources, such as data source keywords, data source names, module names, etc. Based on the above data change scenarios, each module is also configured with a changeable extension field name, which is used To indicate the data change requirements of the data authorizer. The same module can define multiple extension fields, and extension fields represent the field names that can be authorized to be modified by others.

基于上述数据注册的场景,如图3所示,目标数据的摘要信息中,还可包括数据源在链上所属模块的名称信息,用于指示数据源的注册信息。Based on the above data registration scenario, as shown in Figure 3, the summary information of the target data may also include the name information of the module to which the data source belongs on the chain, which is used to indicate the registration information of the data source.

根据本公开的实施例,基于上述数据变更的场景,上述方法还包括,在获得数据授权方的情况下,数据变更方变更目标数据的数据信息,并将变更后的数据信息发送至区块链网络,以使得区块链网络向数据存储方推送变更通知后,数据存储方根据变更后的数据信息更新目标数据。According to an embodiment of the present disclosure, based on the above data change scenario, the above method further includes, in the case of obtaining the data authorizer, the data change party changes the data information of the target data, and sends the changed data information to the blockchain network, so that after the blockchain network pushes the change notification to the data storage party, the data storage party updates the target data according to the changed data information.

具体地,目标数据的数据信息包括,与目标数据关联的扩展字段的值,其中扩展字段用于表征目标数据的属性类型,需要说明的是,扩展字段的含义不限于目标数据的属性类型也可以是其他任意与变更需求有关的含义,例如,在A企业授权B企业为A企业的一些个人消费信息数据进行定价的场景下,扩展字段为“价格”;在A企业授权B企业为A企业的一些金融财务数据进行数据验证的情况下,扩展字段为“数据验证结果”。Specifically, the data information of the target data includes the value of the extension field associated with the target data, wherein the extension field is used to represent the attribute type of the target data. It should be noted that the meaning of the extension field is not limited to the attribute type of the target data. It is any other meaning related to change requirements. For example, in the scenario where company A authorizes company B to price some personal consumption information data of company A, the extension field is "price"; In the case of data verification for some financial and financial data, the extended field is "Data Verification Result".

根据本公开的实施例,在摘要信息中包括与目标数据关联的扩展字段的名称的前提下,数据变更方变更目标数据的数据信息具体包括:According to an embodiment of the present disclosure, on the premise that the abstract information includes the name of the extension field associated with the target data, the data information of the target data changed by the data changer specifically includes:

从摘要信息中读取扩展字段的名称;Read the name of the extension field from the summary information;

根据扩展字段的名称,确定需要对目标数据进行变更的目标属性类型;According to the name of the extension field, determine the target attribute type that needs to be changed to the target data;

确定目标数据在目标属性类型下的目标属性值;Determine the target attribute value of the target data under the target attribute type;

将扩展字段的初始值变更为目标属性值。Change the initial value of the extension field to the target property value.

根据本公开的实施例,例如,在A企业(数据授权方)授权B企业(数据变更方)为A企业的一些个人消费信息数据进行定价的场景下,链上摘要信息中的扩展字段为“价格”,数据变更方可以在获得数据授权方授权的情况下,读取链上摘要信息,通过摘要信息中的数据访问地址向C企业(数据存储方,数据存储方也可以是A企业)请求数据,C企业接受请求可向区块链发起认证,通过链上授权记录对数据请求方进行确权验证,验证通过之后,C企业返回数据给B企业。According to an embodiment of the present disclosure, for example, in the scenario where company A (data authorizer) authorizes company B (data changer) to price some personal consumption information data of company A, the extension field in the on-chain summary information is " Price", the data changer can read the summary information on the chain with the authorization of the data authorizer, and request the C enterprise (the data storage party, the data storage party can also be the A enterprise) through the data access address in the summary information. Data, enterprise C can initiate authentication to the blockchain after accepting the request, and verify the data requester through the authorization record on the chain. After the verification is passed, enterprise C returns the data to enterprise B.

需要说明的是,通过摘要信息中的数据访问地址请求的数据可以是目标数据的样例数据,而非实体数据,也可以仅仅是目标数据的数据简介,可根据数据具体业务场景和安全隐私要求来灵活设定。因此,在上述示例变更数据价格的场景下,C企业返回给B企业的数据可以是个人消费信息数据的样例数据,而非真实个人信息数据。It should be noted that the data requested through the data access address in the summary information can be the sample data of the target data, not the entity data, or just the data introduction of the target data. for flexible settings. Therefore, in the scenario of changing the data price in the above example, the data returned by company C to company B may be sample data of personal consumption information data, rather than real personal information data.

仍以上述示例为例,B企业在收到C企业返回的个人消费信息数据的样例数据后,可以通过分析样例数据确定数据价格,即变更相应的扩展字段“价格”的数值,并将其上链更新到链上,链上收到扩展字段更新会触发通知,将更新的扩展字段推送给C企业进行数据变更,C企业根据业务需求变更指定扩展字段值。Still taking the above example as an example, after receiving the sample data of personal consumption information data returned by company C, company B can determine the data price by analyzing the sample data, that is, change the value of the corresponding extension field "price", and set the data price. The on-chain update is uploaded to the chain, and the extension field update on the chain will trigger a notification, and the updated extension field will be pushed to the C company for data changes, and the C company will change the specified extension field value according to business needs.

根据本公开的实施例,通过上述数据处理方法,在实现数据共享的基础上,可实现数据变更,区别于相关技术中通过区块链变更实体数据或部分实体数据,本公开的实施例的方法,仅通过区块链变更实体数据的扩展字段,没有通过区块链变更实体数据,进一步保证了数据的安全性,并且,基于本公开实施例的数据变更场景,因需要变更的并非实体数据,仅仅是实体数据的数据信息,因此,数据存储方向数据变更方返回的目标数据可以仅是目标数据的样例数据、目标数据的数据简介等,而非实体数据,可实现数据变更方不接触实体数据的前提下实现数据变更,提高了数据的安全性。According to the embodiments of the present disclosure, through the above data processing method, data change can be realized on the basis of data sharing, which is different from changing entity data or part of entity data through blockchain in the related art. , only the extended fields of the entity data are changed through the blockchain, and the entity data is not changed through the blockchain, which further ensures the security of the data, and, based on the data change scenario of the embodiment of the present disclosure, because the entity data needs to be changed, It is only the data information of the entity data. Therefore, the target data returned by the data storage direction to the data changer can only be the sample data of the target data, the data introduction of the target data, etc., rather than the entity data, so that the data changer does not contact the entity. Data changes are realized under the premise of data, which improves the security of data.

根据本公开的实施例,通过上述数据处理方法,基于区块链特性实现了可信的多方扩展(数据源可扩展、业务场景可扩展、业务字段可扩展)的能力,基于区块链可溯源的能力实现数据每次使用留痕,便于后续监管,数据变更方可以不接触完整数据实现数据的变更操作,充分保护数据隐私安全。According to the embodiments of the present disclosure, the above-mentioned data processing method realizes the ability of trusted multi-party expansion (expansion of data sources, expandable business scenarios, and expandable business fields) based on the characteristics of blockchain, and traceability based on blockchain The ability to realize the trace of data every time it is used is convenient for subsequent supervision.

根据本公开的实施例,如图3所示,数据变更方在变更目标数据的扩展字段后,将变更后的数据信息发送至区块链网络包括:将对扩展字段的初始值变更后得到的目标属性值,更新至链上的目标授权记录。其中,数据变更方利用子证书访问链上的目标授权记录,其中目标授权记录和子证书由数据授权方签发,子证书携带有关键字,子证书通过关键字与目标授权记录关联,通过子证书可访问到对应的授权记录。通过将变更后的数据信息更新至区块链网络授权记录后,区块链网络数据授权中心向数据存储方推送变更通知,数据存储方根据变更后的数据信息更新目标数据。According to an embodiment of the present disclosure, as shown in FIG. 3 , after changing the extension field of the target data, the data changer sends the changed data information to the blockchain network including: changing the initial value of the extension field to obtain the The target attribute value is updated to the target authorization record on the chain. The data changer uses the sub-certificate to access the target authorization record on the chain, in which the target authorization record and the sub-certificate are issued by the data authorizer, the sub-certificate carries keywords, and the sub-certificate is associated with the target authorization record through the keyword. Access to the corresponding authorization record. After updating the changed data information to the blockchain network authorization record, the blockchain network data authorization center pushes the change notification to the data storage party, and the data storage party updates the target data according to the changed data information.

根据本公开的实施例,上述数据处理方法利用证书特性实现了便捷的授权、共享和互操作,数据授权方只需发布授权记录、签发子证书即可完成授权和数据变更。其中子证书中带有关键字,与授权记录一一关联,如此,可实现对不同子证书拥有者差别化权限管理。According to the embodiments of the present disclosure, the above data processing method utilizes certificate characteristics to realize convenient authorization, sharing and interoperability, and the data authorizer only needs to issue authorization records and issue sub-certificates to complete authorization and data changes. The sub-certificates have keywords, which are associated with the authorization records one by one. In this way, differentiated rights management for the owners of different sub-certificates can be realized.

本公开的另一方面提供了一种基于区块链的数据处理方法,该数据处理方法由数据存储方执行。Another aspect of the present disclosure provides a blockchain-based data processing method, the data processing method being performed by a data storage party.

图4示意性示出了根据本公开实施例的数据处理方法的流程图。FIG. 4 schematically shows a flowchart of a data processing method according to an embodiment of the present disclosure.

如图4所示,该实施例的基于区块链的数据处理方法包括操作S401~操作S404。As shown in FIG. 4 , the blockchain-based data processing method of this embodiment includes operations S401 to S404.

在操作S401,接收来自于数据请求方通过访问目标请求地址发起的数据共享请求,其中,数据共享请求用于请求目标数据,其中目标请求地址包含在与目标数据关联的摘要信息中,摘要信息通过数据授权方发布至区块链网络;In operation S401, a data sharing request initiated by a data requester by accessing a target request address is received, wherein the data sharing request is used for requesting target data, wherein the target request address is included in the summary information associated with the target data, and the summary information passes through The data authorizer publishes to the blockchain network;

在操作S402,从区块链网络中的多个授权记录中,确定与数据请求方和目标数据关联的目标授权记录,其中目标授权记录由数据授权方签发;In operation S402, from a plurality of authorization records in the blockchain network, determine a target authorization record associated with the data requester and the target data, wherein the target authorization record is issued by the data authorizer;

在操作S403,根据目标授权记录对数据请求方进行确权;In operation S403, confirm the right of the data requester according to the target authorization record;

在操作S404,在确权通过的情况下,向数据请求方发送目标数据。In operation S404, if the right is confirmed, the target data is sent to the data requester.

基于上述实施例有关由数据请求方或数据变更方执行的数据处理方法的描述,数据存储方主要用于在接收到数据请求方发起的数据共享请求后,通过区块链网络对数据请求方或数据变更方进行鉴权,鉴权通过后,将数据通过链下发送给数据请求方或数据变更方。Based on the description of the data processing method performed by the data requester or the data changer in the above-mentioned embodiments, the data storage party is mainly used for, after receiving the data sharing request initiated by the data requester, to transfer the data requestor or data requester through the blockchain network The data changer performs authentication, and after the authentication is passed, the data is sent off-chain to the data requester or data changer.

根据本公开的实施例,如图3所示,数据存储方对数据请求进行鉴权,例如可以是根据链上目标授权记录对数据请求方进行确权验证。其中目标授权记录由数据授权方签发,可以是数据请求方或数据变更方向数据授权方发起请求目标数据的数据授权请求后,数据授权方响应于数据授权请求,生成与数据请求方和目标数据关联的目标授权记录,并将目标授权记录上链。According to an embodiment of the present disclosure, as shown in FIG. 3 , the data storage party authenticates the data request, for example, the data requester may be authenticated according to the target authorization record on the chain. The target authorization record is issued by the data authorizer, which can be the data requester or the data change direction. After the data authorizer initiates a data authorization request to request the target data, the data authorizer responds to the data authorization request and generates an association between the data requester and the target data. , and upload the target authorization record to the chain.

数据存储方在对数据请求方或数据变更方进行鉴权时,可通过访问区块链,确定区块链网络中是否存在与数据请求方和目标数据关联的目标授权记录,若存在,则进一步根据目标授权记录中记载的信息确定数据请求方或数据变更方当前是否具有数据请求权限,在鉴权通过的情况下,数据存储方通过链下向数据请求方或数据变更方发送目标数据。When the data storage party authenticates the data requester or data changer, it can access the blockchain to determine whether there is a target authorization record associated with the data requester and the target data in the blockchain network. The information recorded in the target authorization record determines whether the data requester or data changer currently has the data request authority. If the authentication is passed, the data storage party sends the target data to the data requester or data changer through the off-chain.

根据本公开的实施例,在数据请求方请求数据的情况下,数据在通过数据存储方鉴权通过的情况下才通过链下传输,提高了数据的安全性,并且数据的授权和确权均通过区块链网络实现,具体地由数据授权方签发授权记录并上链,由数据存储方根据链上授权记录对请求方的请求进行鉴权,可见通过区块链,实现了一种可信的、多方参与的数据共享方法,具备了多方参与可扩展的特性,同时赋予了数据共享和互操作的能力。According to the embodiments of the present disclosure, when the data requester requests data, the data is transmitted off-chain only after being authenticated by the data storage party, which improves the security of the data, and both the authorization and confirmation of the data pass through the zone. The implementation of the blockchain network, specifically, the data authorizer issues the authorization record and uploads it to the chain, and the data storage party authenticates the requester's request according to the authorization record on the chain. It can be seen that through the blockchain, a credible, The multi-participation data sharing method has the characteristics of multi-participation and scalability, and at the same time endows data sharing and interoperability.

根据本公开的实施例,数据存储方在对数据请求方或数据变更方进行鉴权时,通过访问区块链,确定区块链网络中是否存在与数据请求方和目标数据关联的目标授权记录,具体可包括:According to the embodiments of the present disclosure, when the data storage party authenticates the data requester or the data changer, by accessing the blockchain, it is determined whether there is a target authorization record associated with the data requester and the target data in the blockchain network, Specifically, it can include:

获取数据请求方的子证书,其中子证书由数据授权方签发,子证书携带有关键字,子证书通过关键字与目标授权记录关联;Obtain the sub-certificate of the data requester, wherein the sub-certificate is issued by the data authorizer, the sub-certificate carries a keyword, and the sub-certificate is associated with the target authorization record through the keyword;

将多个授权记录中,与子证书的关键字关联的授权记录,作为与数据请求方和目标数据关联的目标授权记录。Among the multiple authorization records, the authorization record associated with the keyword of the sub-certificate is used as the target authorization record associated with the data requester and the target data.

根据本公开的实施例,数据授权方在对数据请求方或数据变更方签发授权记录的前提下,可基于数据请求方或数据变更方的请求,对数据请求方或数据变更方签发用于访问区块链中授权记录的子证书。其中,子证书携带有关键字,子证书通过关键字与目标授权记录关联,通过子证书可访问到对应的授权记录。According to the embodiments of the present disclosure, on the premise that the data authorizer issues the authorization record to the data requester or the data changer, based on the request of the data requester or the data changer, the data requester or the data changer can issue an authorization record to the data requester or the data changer for access. The sub-certificate of the authorization record in the blockchain. The sub-certificate carries a keyword, the sub-certificate is associated with the target authorization record through the keyword, and the corresponding authorization record can be accessed through the sub-certificate.

数据存储方在对数据请求方或数据变更方进行鉴权时,可通过访问区块链,确定区块链网络中是否存在与数据请求方和目标数据关联的目标授权记录,具体地,可进一步根据数据请求方或数据变更方的子证书,基于子证书中的关键字,从区块链网络中查找否存在与数据请求方和目标数据关联的目标授权记录。例如,数据授权方对数据请求方A企业签发的子证书中包含关键字“A企业”,数据授权方对数据请求方A企业签发的授权记录中可以包括子证书的关键字“A企业”,还可以包括数据源的名称:XX数据,如此,可将子证书与授权记录关联。数据存储方在对数据请求方或数据变更方进行鉴权时,可通过关键字“A企业”查找区块链网络中是否存包括子证书的关键字“A企业”的目标授权记录。When the data storage party authenticates the data requester or data changer, it can access the blockchain to determine whether there is a target authorization record associated with the data requester and the target data in the blockchain network. The sub-certificate of the data requester or data changer, based on the keywords in the sub-certificate, finds whether there is a target authorization record associated with the data requester and the target data from the blockchain network. For example, the sub-certificate issued by the data authorizer to the data requester company A contains the keyword "A company", and the authorization record issued by the data authorizer to the data requester company A may include the sub-certificate keyword "A company", The name of the data source: XX data can also be included, so that the sub-certificate can be associated with the authorization record. When the data storage party authenticates the data requester or data changer, it can use the keyword "A company" to find out whether the target authorization record of the keyword "A company" including the sub-certificate exists in the blockchain network.

根据本公开的实施例,如图3所示,目标授权记录中除了可包括子证书的关键字以外,还可以包括数据源名称、授权对象、数据源摘要主键、操作方式(如可读或可写)、可授权变更的扩展字段的初值、授权数据请求方请求目标数据的可请求次数、可请求时间段、已请求次数等等。According to an embodiment of the present disclosure, as shown in FIG. 3 , the target authorization record may include, in addition to the keywords of the sub-certificate, the name of the data source, the authorization object, the primary key of the abstract of the data source, the operation mode (such as readable or Write), the initial value of the extension field that can be authorized to be changed, the number of times that the authorized data requester can request the target data, the time period that can be requested, the number of times it has been requested, and so on.

根据本公开的实施例,若区块链网络中存在与数据请求方和目标数据关联的目标授权记录,则进一步根据目标授权记录中记载的可请求次数、可请求时间段等信息确定数据请求方或数据变更方当前是否具有数据请求权限,例如,可基于目标授权记录,在数据请求方对目标数据的已请求次数小于可请求次数、且数据请求方的当前请求时段在可请求时间段范围内的情况下,确定数据请求方当前具有目标数据的请求权限。在鉴权通过的情况下,数据存储方通过链下向数据请求方或数据变更方发送目标数据。According to the embodiments of the present disclosure, if there is a target authorization record associated with the data requester and the target data in the blockchain network, the data requester is further determined according to information such as the number of requests and the requestable time period recorded in the target authorization record. Or whether the data changer currently has the data request permission, for example, based on the target authorization record, when the number of times the data requester has requested the target data is less than the number of requests, and the current request period of the data requester is within the range of the requestable time period In the case of , determine that the data requester currently has the request permission for the target data. In the case of passing the authentication, the data storage party sends the target data to the data requester or data change party through the off-chain.

根据本公开的实施例,数据存储方还可以根据目标授权记录中记载的操作方式,如可读或可写,确定数据请求方是否具有相应的权限,可读代表数据请求方具有读取数据的权限,可写代表数据请求方具有变更数据扩展字段的权限。According to the embodiment of the present disclosure, the data storage party can also determine whether the data requester has the corresponding authority according to the operation mode recorded in the target authorization record, such as readable or writable. Readable means that the data requester has the right to read the data. Permission, writable means that the data requester has the permission to change the data extension field.

本公开的另一方面提供了一种基于区块链的授权方法,该授权方法由数据授权方执行。Another aspect of the present disclosure provides a blockchain-based authorization method performed by a data authorizer.

图5示意性示出了根据本公开实施例的授权方法的流程图。FIG. 5 schematically shows a flowchart of an authorization method according to an embodiment of the present disclosure.

如图5所示,根据本公开实施例的授权方法包括操作S501~操作S504。As shown in FIG. 5 , the authorization method according to the embodiment of the present disclosure includes operations S501 to S504.

在操作S501,将目标数据的摘要信息发布至区块链网络,以使得数据请求方根据摘要信息中包含的与目标数据关联的目标请求地址,向数据存储方发起数据共享请求;In operation S501, the summary information of the target data is published to the blockchain network, so that the data requester initiates a data sharing request to the data storage party according to the target request address associated with the target data contained in the summary information;

在操作S502,接收来自于数据请求方的数据授权请求;In operation S502, receiving a data authorization request from a data requester;

在操作S503,响应于数据授权请求,生成与数据请求方和目标数据关联的目标授权记录;In operation S503, in response to the data authorization request, generating a target authorization record associated with the data requester and the target data;

在操作S504,将目标授权记录发布至区块链网络,以使得数据存储方根据从链上获得的目标授权记录,对数据请求方进行确权验证通过后,向数据请求方发送目标数据。In operation S504, the target authorization record is published to the blockchain network, so that the data storage party sends the target data to the data requester after confirming and verifying the data requester according to the target authorization record obtained from the chain.

根据本公开的实施例,基于上述实施例有关由数据请求方或数据变更方、以及数据存储方执行的数据处理方法的描述,数据授权方主要用于对数据请求方或数据变更方进行请求授权,在接收到来自于数据请求方的数据授权请求时,生成与数据请求方和目标数据关联的目标授权记录并将授权记录上链,以便数据存储方根据从链上获得的目标授权记录对数据请求方进行鉴权。According to the embodiments of the present disclosure, based on the description of the data processing method performed by the data requester or the data changer and the data storage party in the above-mentioned embodiments, the data authorizer is mainly used to request authorization for the data requester or the data changer , when receiving a data authorization request from the data requester, generate a target authorization record associated with the data requester and the target data, and upload the authorization record to the chain, so that the data storage party can verify the data according to the target authorization record obtained from the chain. The requestor authenticates.

根据本公开的实施例,数据请求方和数据存储方之间进行数据共享的前提是基于数据授权方的授权,通过授权,保证了数据传输的安全性,进一步地,基于区块链网络建立起了多方参与的数据共享机制,具备了多方参与可扩展的特性,可基于区块链网络多方实现各自不同的职能,实现有序、可信的数据共享。According to the embodiments of the present disclosure, the premise of data sharing between the data requester and the data storage party is based on the authorization of the data authorizer, through which the security of data transmission is guaranteed. It has a multi-party participation data sharing mechanism, and has the characteristics of multi-party participation and scalability. Based on the blockchain network, multiple parties can realize their different functions and achieve orderly and credible data sharing.

根据本公开的实施例,数据授权方在对数据请求方或数据变更方签发授权记录的前提下,可基于数据请求方或数据变更方的请求,对数据请求方或数据变更方签发用于访问区块链中授权记录的子证书。其中,子证书携带有关键字,子证书通过关键字与目标授权记录关联,通过子证书可访问到对应的授权记录。According to the embodiments of the present disclosure, on the premise that the data authorizer issues the authorization record to the data requester or the data changer, based on the request of the data requester or the data changer, the data requester or the data changer can issue an authorization record to the data requester or the data changer for access. The sub-certificate of the authorization record in the blockchain. The sub-certificate carries a keyword, the sub-certificate is associated with the target authorization record through the keyword, and the corresponding authorization record can be accessed through the sub-certificate.

在授权与验证逻辑方面,区块链的用户体系基于证书实现,参与区块链的组织机构提供根证书公钥给各自的节点,使用方可通过该组织根证书签发的子证书访问区块链网络。数据变更方根据数据授权方发布的数据摘要填写授权记录申请授权,只要数据授权方确认通过补充“认证方式”(子证书)信息并给数据变更方签发授权子证书即可。In terms of authorization and verification logic, the user system of the blockchain is implemented based on certificates. Organizations participating in the blockchain provide the public key of the root certificate to their respective nodes, and users can access the blockchain through the sub-certificate issued by the root certificate of the organization. network. The data changer fills in the authorization record according to the data summary issued by the data authorizer to apply for authorization, as long as the data authorizer confirms that it has supplemented the "authentication method" (sub-certificate) information and issues an authorization sub-certificate to the data changer.

签发的子证书可以附带“关键字”,可以事先约束好指定“关键字”。如图3所示,在数据授权方对数据请求方或数据变更方签发授权记录(包含证书“关键字”信息)的前提下,再由数据授权方签发带有指定“关键字”的子证书给数据请求方或数据变更方,数据请求方或数据变更方可以通过子证书访问区块链中获取数据访问地址,通过数据访问地址向数据存储方请求数据,数据存储方向区块链网络发起认证获取授权记录,验证子证书与授权次数/时效,验证通过之后则返回具体数据。The issued sub-certificate can be accompanied by "keywords", and the "keywords" can be specified in advance. As shown in Figure 3, on the premise that the data authorizer issues an authorization record (including the certificate "keyword" information) to the data requester or data changer, the data authorizer issues a sub-certificate with the specified "keyword" To the data requester or data changer, the data requester or data changer can access the blockchain to obtain the data access address through the sub-certificate, request data from the data storage party through the data access address, and the data storage party initiates authentication to the blockchain network Obtain the authorization record, verify the sub-certificate and the number of authorization times/time, and return the specific data after the verification is passed.

根据本公开的实施例,子证书通过关键字与授权记录一一关联,不同的授权记录记录了可授权请求数据的不同权限,例如,数据授权方对数据请求方A企业签发的子证书中包含关键字“A企业”,数据授权方对A企业签发的授权记录中可以包括子证书的关键字“A企业”,且记录了可请求目标数据1的次数为100次;数据授权方对数据请求方B企业签发的子证书中包含关键字“B企业”,数据授权方对B企业签发的授权记录中可以包括子证书的关键字“B企业”,且记录了可请求目标数据2的次数为2000次;如此,通过子证书和授权记录,实现了对不同数据请求方权限的差别化管理,便于精细化权限控制,有效保证了数据的安全性。According to an embodiment of the present disclosure, the sub-certificates are associated with authorization records one by one through keywords, and different authorization records record different permissions that can authorize the request data. The keyword "Company A", the authorization record issued by the data authorizer to Company A may include the keyword "Company A" of the sub-certificate, and the number of times the target data 1 can be requested is recorded 100 times; The sub-certificate issued by Party B company contains the keyword "B company", and the authorization record issued by the data authorizing party to B company may include the sub-certificate keyword "B company", and the number of times the target data 2 can be requested is recorded as 2000 times; in this way, through sub-certificates and authorization records, differentiated management of the permissions of different data requesters is realized, which facilitates refined permission control and effectively ensures data security.

基于上述数据处理方法,本公开还提供了一种数据处理装置。以下将结合图6对该装置进行详细描述。Based on the above data processing method, the present disclosure also provides a data processing apparatus. The device will be described in detail below with reference to FIG. 6 .

图6示意性示出了根据本公开实施例的数据处理装置的结构框图。FIG. 6 schematically shows a structural block diagram of a data processing apparatus according to an embodiment of the present disclosure.

如图6所示,该实施例的基于区块链的数据处理装置包括获取模块601、请求模块602和第一接收模块603。As shown in FIG. 6 , the blockchain-based data processing apparatus of this embodiment includes an acquisition module 601 , a request module 602 and a first receiving module 603 .

获取模块601,用于从区块链网络中获取目标数据的摘要信息,其中摘要信息通过数据授权方发布至区块链网络,摘要信息中包括与目标数据关联的目标请求地址,其中,目标请求地址链接至数据存储方;The obtaining module 601 is used to obtain the summary information of the target data from the blockchain network, wherein the summary information is released to the blockchain network through the data authorizer, and the summary information includes the target request address associated with the target data, wherein the target request The address is linked to the data store;

请求模块602,用于通过访问目标请求地址向数据存储方发起数据共享请求;A request module 602, configured to initiate a data sharing request to the data storage party by accessing the target request address;

第一接收模块603,用于接收来自于数据存储方的目标数据,其中,目标数据是在数据存储方根据链上目标授权记录对数据请求方进行确权验证通过的情况下发送的。The first receiving module 603 is configured to receive target data from the data storage party, wherein the target data is sent under the condition that the data storage party confirms and verifies the data requester according to the target authorization record on the chain.

根据本公开的实施例,获取模块601从区块链中获取到的为目标数据的摘要信息,区别于相关技术中多方通过区块链网络共享实体数据,本公开实施例的数据处理装置通过区块链网络只能够获取到数据的摘要信息,并非实体数据。通过请求模块602可通过摘要信息中共享的请求地址向数据存储方发起数据请求,进一步通过第一接收模块603通过区块链进行鉴权后实现实体数据链下传输,可保证数据的安全性,进一步地,实体数据在通过区块链网络鉴权通过的情况下才通过链下传输,进一步提高了数据的安全性,并且多方通过区块链实现各自的职能(数据授权方进行授权、数据存储方进行鉴权、数据请求数据),实现了一种可信的、多方参与的数据共享方法,具备了多方参与可扩展的特性,同时赋予了数据共享和互操作的能力,为数据的可信流通提供了参考。According to the embodiment of the present disclosure, the abstract information of the target data obtained by the obtaining module 601 from the blockchain is different from the related art that multiple parties share entity data through the blockchain network. The blockchain network can only obtain the summary information of the data, not the entity data. Through the request module 602, a data request can be initiated to the data storage party through the request address shared in the summary information, and further through the first receiving module 603 to perform authentication through the blockchain to realize the off-chain transmission of the entity data, which can ensure the security of the data. Further, the entity data is transmitted off-chain only when it is authenticated through the blockchain network, which further improves the security of the data, and multiple parties realize their respective functions through the blockchain (data authorizers perform authorization, data storage, etc.). authentication, data request data), realizes a credible, multi-participation data sharing method, has the characteristics of multi-participation and extensibility, and at the same time endows data sharing and interoperability capabilities, for the credibility of data Circulation provides a reference.

根据本公开的实施例,上述装置还包括变更模块和第一发送模块。According to an embodiment of the present disclosure, the above-mentioned apparatus further includes a changing module and a first sending module.

其中,变更模块,用于变更目标数据的数据信息;第一发送模块,用于将变更后的数据信息发送至区块链网络,以使得区块链网络向数据存储方推送变更通知后,数据存储方根据变更后的数据信息更新目标数据。The changing module is used to change the data information of the target data; the first sending module is used to send the changed data information to the blockchain network, so that after the blockchain network pushes the change notification to the data storage party, the data The storage party updates the target data according to the changed data information.

根据本公开的实施例,其中,目标数据的数据信息包括,与目标数据关联的扩展字段的值,其中扩展字段用于表征目标数据的属性类型。According to an embodiment of the present disclosure, the data information of the target data includes a value of an extension field associated with the target data, wherein the extension field is used to represent an attribute type of the target data.

根据本公开的实施例,其中,摘要信息中还包括与目标数据关联的扩展字段的名称,变更模块包括读取单元、第一确定单元、第一确定单元和变更单元。According to an embodiment of the present disclosure, the abstract information further includes the name of the extension field associated with the target data, and the changing module includes a reading unit, a first determining unit, a first determining unit, and a changing unit.

其中,读取单元,用于从摘要信息中读取扩展字段的名称;第一确定单元,用于根据扩展字段的名称,确定需要对目标数据进行变更的目标属性类型;第一确定单元,用于确定目标数据在目标属性类型下的目标属性值;变更单元,用于将扩展字段的初始值变更为目标属性值。Wherein, the reading unit is used to read the name of the extension field from the summary information; the first determination unit is used to determine the target attribute type that needs to be changed in the target data according to the name of the extension field; the first determination unit is used for It is used to determine the target attribute value of the target data under the target attribute type; the change unit is used to change the initial value of the extension field to the target attribute value.

根据本公开的实施例,其中,第一发送模块包括访问单元、更新单元。According to an embodiment of the present disclosure, the first sending module includes an access unit and an update unit.

其中,访问单元,用于利用子证书访问链上的目标授权记录,其中目标授权记录和子证书由数据授权方签发,子证书携带有关键字,子证书通过关键字与目标授权记录关联;更新单元,用于将对扩展字段的初始值变更后得到的目标属性值,更新至目标授权记录。The access unit is used to use the sub-certificate to access the target authorization record on the chain, wherein the target authorization record and the sub-certificate are issued by the data authorizer, the sub-certificate carries a keyword, and the sub-certificate is associated with the target authorization record through the keyword; the update unit , which is used to update the target attribute value obtained after changing the initial value of the extension field to the target authorization record.

根据本公开的实施例,其中,摘要信息中还包括以下至少之一:目标数据的数据源名称、数据标识、数据源哈希摘要、数据所属者、数据在链上所属模块、数据简要描述。According to an embodiment of the present disclosure, the summary information further includes at least one of the following: a data source name of the target data, a data identifier, a data source hash digest, a data owner, a module on the chain to which the data belongs, and a brief description of the data.

基于上述数据处理方法,本公开还提供了一种数据处理装置。以下将结合图7对该装置进行详细描述。Based on the above data processing method, the present disclosure also provides a data processing apparatus. The device will be described in detail below with reference to FIG. 7 .

图7示意性示出了根据本公开实施例的数据处理装置的结构框图。FIG. 7 schematically shows a structural block diagram of a data processing apparatus according to an embodiment of the present disclosure.

如图7所示,该实施例的基于区块链的数据处理装置包括第二接收模块701、确定模块702、确权模块703、第二发送模块704。As shown in FIG. 7 , the blockchain-based data processing apparatus in this embodiment includes a second receiving module 701 , a determining module 702 , a right confirming module 703 , and a second sending module 704 .

其中,第二接收模块701,用于接收来自于数据请求方通过访问目标请求地址发起的数据共享请求,其中,数据共享请求用于请求目标数据,其中目标请求地址包含在与目标数据关联的摘要信息中,摘要信息通过数据授权方发布至区块链网络;The second receiving module 701 is configured to receive a data sharing request initiated by a data requester by accessing the target request address, wherein the data sharing request is used to request target data, and the target request address is included in the abstract associated with the target data In the information, the summary information is released to the blockchain network through the data authorizer;

确定模块702,用于从区块链网络中的多个授权记录中,确定与数据请求方和目标数据关联的目标授权记录,其中目标授权记录由数据授权方签发;A determination module 702, configured to determine a target authorization record associated with the data requester and the target data from a plurality of authorization records in the blockchain network, wherein the target authorization record is issued by the data authorizer;

确权模块703,用于根据目标授权记录对数据请求方进行确权;The right confirmation module 703 is used to confirm the right of the data requester according to the target authorization record;

第二发送模块704,用于在确权通过的情况下,向数据请求方发送目标数据。The second sending module 704 is configured to send the target data to the data requester when the right is confirmed.

根据本公开的实施例,在数据请求方请求数据的情况下,通过确定模块702、确权模块703,数据在通过数据存储方鉴权通过的情况下才通过链下传输,提高了数据的安全性,并且数据的授权和确权均通过区块链网络实现,具体地由数据授权方签发授权记录并上链,通过确权模块703由数据存储方根据链上授权记录对请求方的请求进行鉴权,可见通过区块链,实现了一种可信的、多方参与的数据共享方法,具备了多方参与可扩展的特性,同时赋予了数据共享和互操作的能力。According to the embodiment of the present disclosure, when the data requester requests data, the determination module 702 and the right confirmation module 703 allow the data to be transmitted off-chain only after being authenticated by the data storage party, which improves the security of the data. And the authorization and confirmation of the data are realized through the blockchain network. Specifically, the data authorizer issues the authorization record and uploads it to the chain. Through the authorization confirmation module 703, the data storage party authenticates the requester's request according to the authorization record on the chain. , it can be seen that through the blockchain, a credible, multi-party data sharing method has been realized, which has the characteristics of multi-party participation and scalability, and at the same time endows data sharing and interoperability.

根据本公开的实施例,其中,确定模块包括获取单元、第三确定单元。According to an embodiment of the present disclosure, the determining module includes an acquiring unit and a third determining unit.

其中,获取单元,用于获取数据请求方的子证书,其中子证书由数据授权方签发,子证书携带有关键字,子证书通过关键字与目标授权记录关联;第三确定单元,用于将多个授权记录中,与子证书的关键字关联的授权记录,作为与数据请求方和目标数据关联的目标授权记录。Wherein, the obtaining unit is used to obtain the sub-certificate of the data requester, wherein the sub-certificate is issued by the data authorization party, the sub-certificate carries a keyword, and the sub-certificate is associated with the target authorization record through the keyword; the third determining unit is used to Among the multiple authorization records, the authorization record associated with the keyword of the sub-certificate serves as the target authorization record associated with the data requester and the target data.

根据本公开的实施例,其中,目标授权记录包括授权数据请求方请求目标数据的可请求次数、可请求时间段;According to an embodiment of the present disclosure, the target authorization record includes a requestable number of times and a requestable time period for an authorized data requester to request the target data;

确权模块包括确权单元,用于基于目标授权记录,在数据请求方对目标数据的已请求次数小于可请求次数、且数据请求方的当前请求时段在可请求时间段范围内的情况下,确定数据请求方当前具有目标数据的请求权限。The right confirmation module includes a right confirmation unit for, based on the target authorization record, in the case that the number of times the data requester has requested the target data is less than the number of times that can be requested, and the current request period of the data requester is within the range of the time period that can be requested, Determines that the data requester currently has the request permission for the target data.

基于上述基于区块链的授权方法,本公开还提供了一种基于区块链的授权装置。以下将结合图8对该装置进行详细描述。Based on the above blockchain-based authorization method, the present disclosure also provides a blockchain-based authorization device. The device will be described in detail below with reference to FIG. 8 .

图8示意性示出了根据本公开实施例的授权装置的结构框图。FIG. 8 schematically shows a structural block diagram of an authorization apparatus according to an embodiment of the present disclosure.

如图8所示,该实施例的基于区块链的授权装置包括第一发布模块801、第三接收模块802、生成模块803、第二发布模块804。As shown in FIG. 8 , the blockchain-based authorization device of this embodiment includes a first issuing module 801 , a third receiving module 802 , a generating module 803 , and a second issuing module 804 .

第一发布模块801,用于将目标数据的摘要信息发布至区块链网络,以使得数据请求方根据摘要信息中包含的与目标数据关联的目标请求地址,向数据存储方发起数据共享请求;The first publishing module 801 is configured to publish the summary information of the target data to the blockchain network, so that the data requester initiates a data sharing request to the data storage party according to the target request address associated with the target data contained in the summary information;

第三接收模块802,用于接收来自于数据请求方的数据授权请求;A third receiving module 802, configured to receive a data authorization request from a data requester;

生成模块803,用于响应于数据授权请求,生成与数据请求方和目标数据关联的目标授权记录;A generating module 803, configured to generate a target authorization record associated with the data requester and the target data in response to the data authorization request;

第二发布模块804,用于将目标授权记录发布至区块链网络,以使得数据存储方根据从链上获得的目标授权记录,对数据请求方进行确权验证通过后,向数据请求方发送目标数据。The second publishing module 804 is configured to publish the target authorization record to the blockchain network, so that the data storage party confirms and verifies the data requester according to the target authorization record obtained from the chain, and then sends the data to the data requester. target data.

根据本公开的实施例,数据请求方和数据存储方之间进行数据共享的前提是基于数据授权方的授权,通过第三接收模块802、生成模块803生成与数据请求方和目标数据关联的目标授权记录来进行授权,保证了数据传输的安全性,进一步地,通过第二发布模块804将目标授权记录发布至区块链网络,基于区块链网络建立起了多方参与的数据共享机制,具备了多方参与可扩展的特性,可基于区块链网络多方实现各自不同的职能,实现有序、可信的数据共享。According to the embodiment of the present disclosure, the premise of data sharing between the data requester and the data storage party is that, based on the authorization of the data authorizer, the third receiving module 802 and the generating module 803 generate a target associated with the data requester and the target data. The authorization record is used for authorization, which ensures the security of data transmission. Further, the target authorization record is released to the blockchain network through the second release module 804, and a multi-party data sharing mechanism is established based on the blockchain network. With the feature of multi-party participation and scalability, multiple parties can realize their different functions based on the blockchain network, and realize orderly and credible data sharing.

根据本公开的实施例,上述装置还包括签发模块,用于向数据请求方签发与目标授权记录关联的子证书,以使得数据请求方利用子证书访问目标授权记录,其中子证书携带有关键字,子证书通过关键字与目标授权记录关联。According to an embodiment of the present disclosure, the above-mentioned apparatus further includes an issuing module, configured to issue a sub-certificate associated with the target authorization record to the data requester, so that the data requester uses the sub-certificate to access the target authorization record, wherein the sub-certificate carries a keyword , the sub-certificate is associated with the target authorization record by keyword.

根据本公开的实施例,取模块601、请求模块602、第一接收模块603、第二接收模块701、确定模块702、确权模块703、第二发送模块704、第一发布模块801、第三接收模块802、生成模块803、第二发布模块804中的任意多个模块可以合并在一个模块中实现,或者其中的任意一个模块可以被拆分成多个模块。或者,这些模块中的一个或多个模块的至少部分功能可以与其他模块的至少部分功能相结合,并在一个模块中实现。根据本公开的实施例,取模块601、请求模块602、第一接收模块603、第二接收模块701、确定模块702、确权模块703、第二发送模块704、第一发布模块801、第三接收模块802、生成模块803、第二发布模块804中的至少一个可以至少被部分地实现为硬件电路,例如现场可编程门阵列(FPGA)、可编程逻辑阵列(PLA)、片上系统、基板上的系统、封装上的系统、专用集成电路(ASIC),或可以通过对电路进行集成或封装的任何其他的合理方式等硬件或固件来实现,或以软件、硬件以及固件三种实现方式中任意一种或以其中任意几种的适当组合来实现。或者,取模块601、请求模块602、第一接收模块603、第二接收模块701、确定模块702、确权模块703、第二发送模块704、第一发布模块801、第三接收模块802、生成模块803、第二发布模块804中的至少一个可以至少被部分地实现为计算机程序模块,当该计算机程序模块被运行时,可以执行相应的功能。According to the embodiment of the present disclosure, the retrieval module 601, the request module 602, the first receiving module 603, the second receiving module 701, the determining module 702, the right confirming module 703, the second sending module 704, the first issuing module 801, the third Any multiple modules among the receiving module 802, the generating module 803, and the second publishing module 804 may be combined into one module for implementation, or any one of the modules may be split into multiple modules. Alternatively, at least part of the functionality of one or more of these modules may be combined with at least part of the functionality of other modules and implemented in one module. According to the embodiment of the present disclosure, the retrieval module 601, the request module 602, the first receiving module 603, the second receiving module 701, the determining module 702, the right confirming module 703, the second sending module 704, the first issuing module 801, the third At least one of the receiving module 802, the generating module 803, and the second issuing module 804 may be implemented at least partially as a hardware circuit, such as a Field Programmable Gate Array (FPGA), a Programmable Logic Array (PLA), a system-on-chip, an on-board system, system-on-package, application-specific integrated circuit (ASIC), or any other reasonable way of integrating or packaging the circuit, such as hardware or firmware, or in any of the three implementations of software, hardware, and firmware. One or an appropriate combination of any of them is implemented. Or, the fetching module 601, the requesting module 602, the first receiving module 603, the second receiving module 701, the determining module 702, the right confirming module 703, the second sending module 704, the first issuing module 801, the third receiving module 802, the generating At least one of the module 803 and the second publishing module 804 may be implemented at least in part as a computer program module, and when the computer program module is executed, it may perform corresponding functions.

图9示意性示出了根据本公开实施例的适于实现数据处理方法的电子设备的方框图。FIG. 9 schematically shows a block diagram of an electronic device suitable for implementing a data processing method according to an embodiment of the present disclosure.

如图9所示,根据本公开实施例的电子设备900包括处理器901,其可以根据存储在只读存储器(ROM)902中的程序或者从存储部分908加载到随机访问存储器(RAM)903中的程序而执行各种适当的动作和处理。处理器901例如可以包括通用微处理器(例如CPU)、指令集处理器和/或相关芯片组和/或专用微处理器(例如,专用集成电路(ASIC))等等。处理器901还可以包括用于缓存用途的板载存储器。处理器901可以包括用于执行根据本公开实施例的方法流程的不同动作的单一处理单元或者是多个处理单元。As shown in FIG. 9 , an electronic device 900 according to an embodiment of the present disclosure includes a processor 901 that can be loaded into a random access memory (RAM) 903 according to a program stored in a read only memory (ROM) 902 or from a storage portion 908 program to perform various appropriate actions and processes. The processor 901 may include, for example, a general-purpose microprocessor (eg, a CPU), an instruction set processor and/or a related chipset, and/or a special-purpose microprocessor (eg, an application-specific integrated circuit (ASIC)), and the like. The processor 901 may also include on-board memory for caching purposes. The processor 901 may include a single processing unit or multiple processing units for performing different actions of the method flow according to the embodiments of the present disclosure.

在RAM 903中,存储有电子设备900操作所需的各种程序和数据。处理器901、ROM902以及RAM 903通过总线904彼此相连。处理器901通过执行ROM 902和/或RAM 903中的程序来执行根据本公开实施例的方法流程的各种操作。需要注意,所述程序也可以存储在除ROM 902和RAM 903以外的一个或多个存储器中。处理器901也可以通过执行存储在所述一个或多个存储器中的程序来执行根据本公开实施例的方法流程的各种操作。In the RAM 903, various programs and data necessary for the operation of the electronic device 900 are stored. The processor 901 , the ROM 902 and the RAM 903 are connected to each other through a bus 904 . The processor 901 performs various operations of the method flow according to the embodiment of the present disclosure by executing the programs in the ROM 902 and/or the RAM 903 . Note that the program may also be stored in one or more memories other than the ROM 902 and the RAM 903 . The processor 901 may also perform various operations of the method flow according to the embodiments of the present disclosure by executing programs stored in the one or more memories.

根据本公开的实施例,电子设备900还可以包括输入/输出(I/O)接口905,输入/输出(I/O)接口905也连接至总线904。电子设备900还可以包括连接至I/O接口905的以下部件中的一项或多项:包括键盘、鼠标等的输入部分906;包括诸如阴极射线管(CRT)、液晶显示器(LCD)等以及扬声器等的输出部分907;包括硬盘等的存储部分908;以及包括诸如LAN卡、调制解调器等的网络接口卡的通信部分909。通信部分909经由诸如因特网的网络执行通信处理。驱动器910也根据需要连接至I/O接口905。可拆卸介质911,诸如磁盘、光盘、磁光盘、半导体存储器等等,根据需要安装在驱动器910上,以便于从其上读出的计算机程序根据需要被安装入存储部分908。According to an embodiment of the present disclosure, the electronic device 900 may also include an input/output (I/O) interface 905 which is also connected to the bus 904 . Electronic device 900 may also include one or more of the following components connected to I/O interface 905: input portion 906 including keyboard, mouse, etc.; including components such as cathode ray tube (CRT), liquid crystal display (LCD), etc., and An output section 907 of speakers and the like; a storage section 908 including a hard disk and the like; and a communication section 909 including a network interface card such as a LAN card, a modem, and the like. The communication section 909 performs communication processing via a network such as the Internet. A drive 910 is also connected to the I/O interface 905 as needed. A removable medium 911, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is mounted on the drive 910 as needed so that a computer program read therefrom is installed into the storage section 908 as needed.

本公开还提供了一种计算机可读存储介质,该计算机可读存储介质可以是上述实施例中描述的设备/装置/系统中所包含的;也可以是单独存在,而未装配入该设备/装置/系统中。上述计算机可读存储介质承载有一个或者多个程序,当上述一个或者多个程序被执行时,实现根据本公开实施例的方法。The present disclosure also provides a computer-readable storage medium. The computer-readable storage medium may be included in the device/apparatus/system described in the above embodiments; it may also exist alone without being assembled into the device/system. device/system. The above-mentioned computer-readable storage medium carries one or more programs, and when the above-mentioned one or more programs are executed, implement the method according to the embodiment of the present disclosure.

根据本公开的实施例,计算机可读存储介质可以是非易失性的计算机可读存储介质,例如可以包括但不限于:便携式计算机磁盘、硬盘、随机访问存储器(RAM)、只读存储器(ROM)、可擦式可编程只读存储器(EPROM或闪存)、便携式紧凑磁盘只读存储器(CD-ROM)、光存储器件、磁存储器件、或者上述的任意合适的组合。在本公开中,计算机可读存储介质可以是任何包含或存储程序的有形介质,该程序可以被指令执行系统、装置或者器件使用或者与其结合使用。例如,根据本公开的实施例,计算机可读存储介质可以包括上文描述的ROM 902和/或RAM 903和/或ROM 902和RAM 903以外的一个或多个存储器。According to an embodiment of the present disclosure, the computer-readable storage medium may be a non-volatile computer-readable storage medium, such as, but not limited to, portable computer disks, hard disks, random access memory (RAM), read only memory (ROM) , erasable programmable read only memory (EPROM or flash memory), portable compact disk read only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing. In this disclosure, a computer-readable storage medium may be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, apparatus, or device. For example, according to embodiments of the present disclosure, a computer-readable storage medium may include one or more memories other than ROM 902 and/or RAM 903 and/or ROM 902 and RAM 903 described above.

本公开的实施例还包括一种计算机程序产品,其包括计算机程序,该计算机程序包含用于执行流程图所示的方法的程序代码。当计算机程序产品在计算机系统中运行时,该程序代码用于使计算机系统实现本公开实施例所提供的数据处理方法。Embodiments of the present disclosure also include a computer program product comprising a computer program containing program code for performing the method illustrated in the flowchart. When the computer program product runs in the computer system, the program code is used to make the computer system implement the data processing method provided by the embodiments of the present disclosure.

在该计算机程序被处理器901执行时执行本公开实施例的系统/装置中限定的上述功能。根据本公开的实施例,上文描述的系统、装置、模块、单元等可以通过计算机程序模块来实现。When the computer program is executed by the processor 901, the above-described functions defined in the system/apparatus of the embodiment of the present disclosure are performed. According to embodiments of the present disclosure, the systems, apparatuses, modules, units, etc. described above may be implemented by computer program modules.

在一种实施例中,该计算机程序可以依托于光存储器件、磁存储器件等有形存储介质。在另一种实施例中,该计算机程序也可以在网络介质上以信号的形式进行传输、分发,并通过通信部分909被下载和安装,和/或从可拆卸介质911被安装。该计算机程序包含的程序代码可以用任何适当的网络介质传输,包括但不限于:无线、有线等等,或者上述的任意合适的组合。In one embodiment, the computer program may rely on a tangible storage medium such as an optical storage device, a magnetic storage device, or the like. In another embodiment, the computer program may also be transmitted, distributed in the form of a signal over a network medium, and downloaded and installed through the communication section 909, and/or installed from a removable medium 911. The program code embodied by the computer program may be transmitted using any suitable network medium, including but not limited to: wireless, wired, etc., or any suitable combination of the foregoing.

在这样的实施例中,该计算机程序可以通过通信部分909从网络上被下载和安装,和/或从可拆卸介质911被安装。在该计算机程序被处理器901执行时,执行本公开实施例的系统中限定的上述功能。根据本公开的实施例,上文描述的系统、设备、装置、模块、单元等可以通过计算机程序模块来实现。In such an embodiment, the computer program may be downloaded and installed from the network via the communication portion 909, and/or installed from the removable medium 911. When the computer program is executed by the processor 901, the above-described functions defined in the system of the embodiment of the present disclosure are performed. According to embodiments of the present disclosure, the above-described systems, apparatuses, apparatuses, modules, units, etc. can be implemented by computer program modules.

根据本公开的实施例,可以以一种或多种程序设计语言的任意组合来编写用于执行本公开实施例提供的计算机程序的程序代码,具体地,可以利用高级过程和/或面向对象的编程语言、和/或汇编/机器语言来实施这些计算程序。程序设计语言包括但不限于诸如Java,C++,python,“C”语言或类似的程序设计语言。程序代码可以完全地在用户计算设备上执行、部分地在用户设备上执行、部分在远程计算设备上执行、或者完全在远程计算设备或服务器上执行。在涉及远程计算设备的情形中,远程计算设备可以通过任意种类的网络,包括局域网(LAN)或广域网(WAN),连接到用户计算设备,或者,可以连接到外部计算设备(例如利用因特网服务提供商来通过因特网连接)。According to the embodiments of the present disclosure, the program code for executing the computer program provided by the embodiments of the present disclosure may be written in any combination of one or more programming languages, and specifically, high-level procedures and/or object-oriented programming may be used. programming language, and/or assembly/machine language to implement these computational programs. Programming languages include, but are not limited to, languages such as Java, C++, python, "C" or similar programming languages. The program code may execute entirely on the user computing device, partly on the user device, partly on a remote computing device, or entirely on the remote computing device or server. In the case of a remote computing device, the remote computing device may be connected to the user computing device through any kind of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computing device (eg, using an Internet service provider business via an Internet connection).

附图中的流程图和框图,图示了按照本公开各种实施例的系统、方法和计算机程序产品的可能实现的体系架构、功能和操作。在这点上,流程图或框图中的每个方框可以代表一个模块、程序段、或代码的一部分,上述模块、程序段、或代码的一部分包含一个或多个用于实现规定的逻辑功能的可执行指令。也应当注意,在有些作为替换的实现中,方框中所标注的功能也可以以不同于附图中所标注的顺序发生。例如,两个接连地表示的方框实际上可以基本并行地执行,它们有时也可以按相反的顺序执行,这依所涉及的功能而定。也要注意的是,框图或流程图中的每个方框、以及框图或流程图中的方框的组合,可以用执行规定的功能或操作的专用的基于硬件的系统来实现,或者可以用专用硬件与计算机指令的组合来实现。The flowchart and block diagrams in the Figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code that contains one or more logical functions for implementing the specified functions executable instructions. It should also be noted that, in some alternative implementations, the functions noted in the blocks may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It is also noted that each block of the block diagrams or flowchart illustrations, and combinations of blocks in the block diagrams or flowchart illustrations, can be implemented in special purpose hardware-based systems that perform the specified functions or operations, or can be implemented using A combination of dedicated hardware and computer instructions is implemented.

本领域技术人员可以理解,本公开的各个实施例和/或权利要求中记载的特征可以进行多种组合或/或结合,即使这样的组合或结合没有明确记载于本公开中。特别地,在不脱离本公开精神和教导的情况下,本公开的各个实施例和/或权利要求中记载的特征可以进行多种组合和/或结合。所有这些组合和/或结合均落入本公开的范围。Those skilled in the art will appreciate that various combinations and/or combinations of features recited in various embodiments and/or claims of the present disclosure are possible, even if such combinations or combinations are not expressly recited in the present disclosure. In particular, various combinations and/or combinations of the features recited in the various embodiments of the present disclosure and/or in the claims may be made without departing from the spirit and teachings of the present disclosure. All such combinations and/or combinations fall within the scope of this disclosure.

以上对本公开的实施例进行了描述。但是,这些实施例仅仅是为了说明的目的,而并非为了限制本公开的范围。尽管在以上分别描述了各实施例,但是这并不意味着各个实施例中的措施不能有利地结合使用。本公开的范围由所附权利要求及其等同物限定。不脱离本公开的范围,本领域技术人员可以做出多种替代和修改,这些替代和修改都应落在本公开的范围之内。Embodiments of the present disclosure have been described above. However, these examples are for illustrative purposes only, and are not intended to limit the scope of the present disclosure. Although the various embodiments are described above separately, this does not mean that the measures in the various embodiments cannot be used in combination to advantage. The scope of the present disclosure is defined by the appended claims and their equivalents. Without departing from the scope of the present disclosure, those skilled in the art can make various substitutions and modifications, and these substitutions and modifications should all fall within the scope of the present disclosure.

Claims (17)

1.一种基于区块链的数据处理方法,包括:1. A data processing method based on blockchain, comprising: 从区块链网络中获取目标数据的摘要信息,其中所述摘要信息通过数据授权方发布至所述区块链网络,所述摘要信息中包括与所述目标数据关联的目标请求地址,其中,所述目标请求地址链接至数据存储方;Obtain the summary information of the target data from the blockchain network, wherein the summary information is published to the blockchain network by the data authorizer, and the summary information includes the target request address associated with the target data, wherein, The target request address is linked to the data storage party; 通过访问所述目标请求地址向所述数据存储方发起数据共享请求;Initiating a data sharing request to the data storage party by accessing the target request address; 接收来自于所述数据存储方的所述目标数据,其中,所述目标数据是在所述数据存储方根据链上目标授权记录对数据请求方进行确权验证通过的情况下发送的。The target data from the data storage party is received, wherein the target data is sent under the condition that the data storage party confirms and verifies the data requester according to the target authorization record on the chain. 2.根据权利要求2所述的方法,还包括:2. The method of claim 2, further comprising: 变更所述目标数据的数据信息;Change the data information of the target data; 将变更后的数据信息发送至所述区块链网络,以使得所述区块链网络向所述数据存储方推送变更通知后,所述数据存储方根据所述变更后的数据信息更新所述目标数据。Send the changed data information to the blockchain network, so that after the blockchain network pushes the change notification to the data storage party, the data storage party updates the data according to the changed data information. target data. 3.根据权利要求2所述的方法,其中:3. The method of claim 2, wherein: 所述目标数据的数据信息包括,与所述目标数据关联的扩展字段的值,其中所述扩展字段用于表征所述目标数据的属性类型。The data information of the target data includes a value of an extension field associated with the target data, wherein the extension field is used to represent the attribute type of the target data. 4.根据权利要求3所述的方法,其中,所述摘要信息中还包括与所述目标数据关联的扩展字段的名称,所述变更所述目标数据的数据信息包括:4. The method according to claim 3, wherein the summary information further includes the name of the extension field associated with the target data, and the data information of changing the target data comprises: 从所述摘要信息中读取所述扩展字段的名称;Read the name of the extension field from the summary information; 根据所述扩展字段的名称,确定需要对所述目标数据进行变更的目标属性类型;According to the name of the extension field, determine the target attribute type that needs to be changed to the target data; 确定所述目标数据在所述目标属性类型下的目标属性值;determining the target attribute value of the target data under the target attribute type; 将所述扩展字段的初始值变更为所述目标属性值。The initial value of the extension field is changed to the target attribute value. 5.根据权利要求4所述的方法,其中,所述将变更后的数据信息发送至所述区块链网络包括:5. The method of claim 4, wherein the sending the changed data information to the blockchain network comprises: 利用子证书访问链上的所述目标授权记录,其中所述目标授权记录和所述子证书由所述数据授权方签发,所述子证书携带有关键字,所述子证书通过所述关键字与所述目标授权记录关联;The target authorization record on the chain is accessed using a sub-certificate, wherein the target authorization record and the sub-certificate are issued by the data authorizer, the sub-certificate carries a keyword, and the sub-certificate passes the keyword associated with the target authorization record; 将对所述扩展字段的初始值变更后得到的所述目标属性值,更新至所述目标授权记录。The target attribute value obtained after changing the initial value of the extension field is updated to the target authorization record. 6.根据权利要求1所述的方法,其中:6. The method of claim 1, wherein: 所述摘要信息中还包括以下至少之一:所述目标数据的数据源名称、数据标识、数据源哈希摘要、数据所属者、数据在链上所属模块、数据简要描述。The summary information also includes at least one of the following: the name of the data source of the target data, the data identifier, the hash abstract of the data source, the owner of the data, the module to which the data belongs on the chain, and a brief description of the data. 7.一种基于区块链的数据处理方法,包括:7. A data processing method based on blockchain, comprising: 接收来自于数据请求方通过访问目标请求地址发起的数据共享请求,其中,所述数据共享请求用于请求目标数据,其中所述目标请求地址包含在与所述目标数据关联的摘要信息中,所述摘要信息通过数据授权方发布至区块链网络;Receive a data sharing request initiated by a data requester by accessing a target request address, wherein the data sharing request is used to request target data, wherein the target request address is included in the summary information associated with the target data, so The above summary information is released to the blockchain network through the data authorizer; 从所述区块链网络中的多个授权记录中,确定与所述数据请求方和所述目标数据关联的目标授权记录,其中所述目标授权记录由所述数据授权方签发;from a plurality of authorization records in the blockchain network, determining a target authorization record associated with the data requester and the target data, wherein the target authorization record is issued by the data authorizer; 根据所述目标授权记录对所述数据请求方进行确权;Confirming the right of the data requester according to the target authorization record; 在确权通过的情况下,向所述数据请求方发送所述目标数据。If the right is confirmed, the target data is sent to the data requester. 8.根据权利要求7所述的方法,其中,所述从所述区块链网络中的多个授权记录中,确定与所述数据请求方和所述目标数据关联的目标授权记录包括:8. The method of claim 7, wherein the determining, from a plurality of authorization records in the blockchain network, a target authorization record associated with the data requester and the target data comprises: 获取所述数据请求方的子证书,其中所述子证书由所述数据授权方签发,所述子证书携带有关键字,所述子证书通过所述关键字与所述目标授权记录关联;obtaining a sub-certificate of the data requester, wherein the sub-certificate is issued by the data authorizer, the sub-certificate carries a keyword, and the sub-certificate is associated with the target authorization record through the keyword; 将所述多个授权记录中,与所述子证书的关键字关联的授权记录,作为与所述数据请求方和所述目标数据关联的目标授权记录。Among the plurality of authorization records, the authorization record associated with the keyword of the sub-certificate is used as the target authorization record associated with the data requester and the target data. 9.根据权利要求7所述的方法,其中,所述目标授权记录包括授权所述数据请求方请求所述目标数据的可请求次数、可请求时间段;9. The method according to claim 7, wherein the target authorization record comprises a requestable number of times and a requestable time period for authorizing the data requester to request the target data; 所述根据所述目标授权记录对所述数据请求方进行确权包括:The confirming the right of the data requester according to the target authorization record includes: 基于所述目标授权记录,在所述数据请求方对所述目标数据的已请求次数小于所述可请求次数、且所述数据请求方的当前请求时段在所述可请求时间段范围内的情况下,确定所述数据请求方当前具有所述目标数据的请求权限。Based on the target authorization record, when the number of times the data requester has requested the target data is less than the number of times that can be requested, and the current request period of the data requester is within the range of the requestable time period Next, it is determined that the data requester currently has the request authority for the target data. 10.一种基于区块链的授权方法,包括:10. A blockchain-based authorization method, comprising: 将目标数据的摘要信息发布至区块链网络,以使得数据请求方根据所述摘要信息中包含的与所述目标数据关联的目标请求地址,向数据存储方发起数据共享请求;Publish the summary information of the target data to the blockchain network, so that the data requester initiates a data sharing request to the data storage party according to the target request address associated with the target data contained in the summary information; 接收来自于所述数据请求方的数据授权请求;receiving a data authorization request from the data requester; 响应于所述数据授权请求,生成与所述数据请求方和所述目标数据关联的目标授权记录;in response to the data authorization request, generating a target authorization record associated with the data requester and the target data; 将所述目标授权记录发布至所述区块链网络,以使得所述数据存储方根据从链上获得的所述目标授权记录,对所述数据请求方进行确权验证通过后,向所述数据请求方发送所述目标数据。Publish the target authorization record to the blockchain network, so that the data storage party confirms and verifies the data requester according to the target authorization record obtained from the chain, and then sends the data to the data requester. The data requester sends the target data. 11.根据权利要求10所述的方法,还包括:11. The method of claim 10, further comprising: 向所述数据请求方签发与所述目标授权记录关联的子证书,以使得所述数据请求方利用所述子证书访问所述目标授权记录,其中所述子证书携带有关键字,所述子证书通过所述关键字与所述目标授权记录关联。Issue a sub-certificate associated with the target authorization record to the data requesting party, so that the data requesting party uses the sub-certificate to access the target authorization record, wherein the sub-certificate carries a keyword, and the sub-certificate carries a keyword. The certificate is associated with the target authorization record by the key. 12.一种基于区块链的数据处理装置,包括:12. A data processing device based on blockchain, comprising: 获取模块,用于从区块链网络中获取目标数据的摘要信息,其中所述摘要信息通过数据授权方发布至所述区块链网络,所述摘要信息中包括与所述目标数据关联的目标请求地址,其中,所述目标请求地址链接至数据存储方;an acquisition module, configured to acquire summary information of the target data from the blockchain network, wherein the summary information is published to the blockchain network by a data authorizer, and the summary information includes the target associated with the target data request address, wherein the target request address is linked to the data storage party; 请求模块,用于通过访问所述目标请求地址向所述数据存储方发起数据共享请求;a request module, configured to initiate a data sharing request to the data storage party by accessing the target request address; 第一接收模块,用于接收来自于所述数据存储方的所述目标数据,其中,所述目标数据是在所述数据存储方根据链上目标授权记录对数据请求方进行确权验证通过的情况下发送的。The first receiving module is used to receive the target data from the data storage party, wherein the target data is verified by the data requester by the data storage party according to the target authorization record on the chain. sent under the circumstances. 13.一种基于区块链的数据处理装置,包括:13. A data processing device based on blockchain, comprising: 第二接收模块,用于接收来自于数据请求方通过访问目标请求地址发起的数据共享请求,其中,所述数据共享请求用于请求目标数据,其中所述目标请求地址包含在与所述目标数据关联的摘要信息中,所述摘要信息通过数据授权方发布至区块链网络;The second receiving module is configured to receive a data sharing request initiated by a data requester by accessing a target request address, wherein the data sharing request is used to request target data, wherein the target request address is included in the target data In the associated summary information, the summary information is published to the blockchain network through the data authorizer; 确定模块,用于从所述区块链网络中的多个授权记录中,确定与所述数据请求方和所述目标数据关联的目标授权记录,其中所述目标授权记录由所述数据授权方签发;A determination module, configured to determine a target authorization record associated with the data requester and the target data from a plurality of authorization records in the blockchain network, wherein the target authorization record is determined by the data authorizer issue; 确权模块,用于根据所述目标授权记录对所述数据请求方进行确权;a right confirmation module, configured to confirm the right of the data requester according to the target authorization record; 第二发送模块,用于在确权通过的情况下,向所述数据请求方发送所述目标数据。The second sending module is configured to send the target data to the data requester when the right is confirmed. 14.一种基于区块链的授权装置,包括:14. A blockchain-based authorization device, comprising: 第一发布模块,用于将目标数据的摘要信息发布至区块链网络,以使得数据请求方根据所述摘要信息中包含的与所述目标数据关联的目标请求地址,向数据存储方发起数据共享请求;The first publishing module is used to publish the summary information of the target data to the blockchain network, so that the data requester initiates data to the data storage party according to the target request address associated with the target data contained in the summary information sharing request; 第三接收模块,用于接收来自于所述数据请求方的数据授权请求;a third receiving module, configured to receive a data authorization request from the data requester; 生成模块,用于响应于所述数据授权请求,生成与所述数据请求方和所述目标数据关联的目标授权记录;a generating module, configured to generate a target authorization record associated with the data requester and the target data in response to the data authorization request; 第二发布模块,用于将所述目标授权记录发布至所述区块链网络,以使得所述数据存储方根据从链上获得的所述目标授权记录,对所述数据请求方进行确权验证通过后,向所述数据请求方发送所述目标数据。The second publishing module is configured to publish the target authorization record to the blockchain network, so that the data storage party confirms the right of the data requester according to the target authorization record obtained from the chain After the verification is passed, the target data is sent to the data requester. 15.一种电子设备,包括:15. An electronic device comprising: 一个或多个处理器;one or more processors; 存储装置,用于存储一个或多个程序,storage means for storing one or more programs, 其中,当所述一个或多个程序被所述一个或多个处理器执行时,使得所述一个或多个处理器执行根据权利要求1~6中任一项所述的方法。Wherein, when the one or more programs are executed by the one or more processors, the one or more processors are caused to perform the method according to any one of claims 1-6. 16.一种计算机可读存储介质,其上存储有可执行指令,该指令被处理器执行时使处理器执行根据权利要求1~6中任一项所述的方法。16. A computer-readable storage medium having stored thereon executable instructions which, when executed by a processor, cause the processor to perform the method of any one of claims 1-6. 17.一种计算机程序产品,包括计算机程序,所述计算机程序被处理器执行时实现根据权利要求1~6中任一项所述的方法。17. A computer program product comprising a computer program which, when executed by a processor, implements the method of any one of claims 1-6.
CN202210902591.6A 2022-07-28 2022-07-28 Data processing method based on block chain, authorization method and device and electronic equipment Pending CN115186033A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210902591.6A CN115186033A (en) 2022-07-28 2022-07-28 Data processing method based on block chain, authorization method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210902591.6A CN115186033A (en) 2022-07-28 2022-07-28 Data processing method based on block chain, authorization method and device and electronic equipment

Publications (1)

Publication Number Publication Date
CN115186033A true CN115186033A (en) 2022-10-14

Family

ID=83520486

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210902591.6A Pending CN115186033A (en) 2022-07-28 2022-07-28 Data processing method based on block chain, authorization method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN115186033A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117040930A (en) * 2023-10-08 2023-11-10 腾讯科技(深圳)有限公司 Resource processing method, device, product, equipment and medium of block chain network

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018223125A1 (en) * 2017-06-02 2018-12-06 Visa International Service Association Methods and systems for ownership verification using blockchain
CN110245185A (en) * 2019-05-21 2019-09-17 平安普惠企业管理有限公司 Data processing method, terminal device and computer storage medium based on alliance's chain
US20200169388A1 (en) * 2019-07-31 2020-05-28 Alibaba Group Holding Limited Providing data authorization based on blockchain
CN111786792A (en) * 2020-06-16 2020-10-16 杭州溪塔科技有限公司 Block chain-based data change recording method and device
CN112217636A (en) * 2020-09-17 2021-01-12 建信金融科技有限责任公司 Data processing method and device based on block chain, computer equipment and medium
WO2022042301A1 (en) * 2020-08-26 2022-03-03 腾讯科技(深圳)有限公司 Data processing method and apparatus, smart device and storage medium
CN114254383A (en) * 2021-12-09 2022-03-29 清华大学 Blockchain-based data security management system and method for intelligent networked vehicles

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018223125A1 (en) * 2017-06-02 2018-12-06 Visa International Service Association Methods and systems for ownership verification using blockchain
CN110245185A (en) * 2019-05-21 2019-09-17 平安普惠企业管理有限公司 Data processing method, terminal device and computer storage medium based on alliance's chain
US20200169388A1 (en) * 2019-07-31 2020-05-28 Alibaba Group Holding Limited Providing data authorization based on blockchain
CN111786792A (en) * 2020-06-16 2020-10-16 杭州溪塔科技有限公司 Block chain-based data change recording method and device
WO2022042301A1 (en) * 2020-08-26 2022-03-03 腾讯科技(深圳)有限公司 Data processing method and apparatus, smart device and storage medium
CN112217636A (en) * 2020-09-17 2021-01-12 建信金融科技有限责任公司 Data processing method and device based on block chain, computer equipment and medium
CN114254383A (en) * 2021-12-09 2022-03-29 清华大学 Blockchain-based data security management system and method for intelligent networked vehicles

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117040930A (en) * 2023-10-08 2023-11-10 腾讯科技(深圳)有限公司 Resource processing method, device, product, equipment and medium of block chain network
CN117040930B (en) * 2023-10-08 2024-01-30 腾讯科技(深圳)有限公司 Resource processing method, device, product, equipment and medium of block chain network

Similar Documents

Publication Publication Date Title
US10735202B2 (en) Anonymous consent and data sharing on a blockchain
US20220372673A9 (en) Digital Contracts in Blockchain Environments
US11741083B2 (en) Cross-shard private atomic commit
US20190050854A1 (en) Blockchain-based digital data exchange
CN111448565A (en) Data authorization based on decentralized identity
CN110532323A (en) Student identity information processing method and device in block chain network, electronic equipment and storage medium
US11223475B2 (en) Document validation
AU2024219519A1 (en) Low trust privileged access management
US11374755B1 (en) Entangled token structure for blockchain networks
US11940958B2 (en) Artificial intelligence software marketplace
US20130006865A1 (en) Systems, methods, apparatuses, and computer program products for providing network-accessible patient health records
WO2022058183A1 (en) Integrating device identity into a permissioning framework of a blockchain
US11811865B2 (en) Blockchain declarative descriptor for cross-network communication
EP3839791B1 (en) Identification and authorization of transactions via smart contracts
US11386232B2 (en) Distributed data management and verification
US11956360B2 (en) Provable trade secrets on blockchain networks
US20210133721A1 (en) Downstream tracking of content consumption
Zhao et al. A Blockchain-Based cryptographic interaction method of digital museum collections
WO2021148907A1 (en) Conflict-free version control
CN116860866A (en) Block chain-based data sharing method, device, equipment and storage medium
US11640392B2 (en) Blockchain endorsement agreement
Widick et al. Blockchain based authentication and authorization framework for remote collaboration systems
US20210224253A1 (en) Conflict-free version control
CN115186033A (en) Data processing method based on block chain, authorization method and device and electronic equipment
Qu et al. Aggregation-chain: a consortium blockchain based multi-chain data sharing framework with efficient query

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
点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载