Unlock instant, AI-driven research and patent intelligence for your innovation.

Blockchain data access control method and device based on smart contract

A technology of data access control and smart contract, which is applied in the field of data processing, can solve the problem of ineffective control and join nodes to access data, and achieve the effect of improving control effect and control efficiency

Active Publication Date: 2020-05-08
CHINA UNIONPAY
View PDF7 Cites 7 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Since each participating node will synchronize all block data during the operation of the blockchain system, the status of each node needs to be consistent. The existing technical solutions use authority management or block compression to control the access of the added nodes. However, none of them can effectively control the access of the post-join nodes to the data before the join.

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Blockchain data access control method and device based on smart contract
  • Blockchain data access control method and device based on smart contract
  • Blockchain data access control method and device based on smart contract

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0070] This embodiment adopts the payment certificate blockchain platform with Fabric as the bottom layer of the blockchain. The platform is assumed to be built first by the tax bureau and the medical insurance department, and then the social security department will join in. The tax bureau and the medical insurance department, due to the online operation in the early stage, the two parties have already generated data, and shared and used this part of the data. After the social security department joined in the future, the tax bureau and the medical insurance department had the data before the social security joined. The business process of the two parties is generated, so it is not desirable and unnecessary to share this part of data with the social security department. Therefore, the data access control contract deployed on the alliance chain built by the tax bureau, social security, and medical insurance uses Go language to obtain the time when the social security institutio...

Embodiment 2

[0081] This embodiment uses Ethereum as the underlying hospital medical record sharing platform, and the platform is assumed to be jointly built by Hospital A and Hospital B. Due to the early online operation, A and B hospitals have been implemented over time. During this period of time, the medical records of patients have been shared. This part of the data is jointly generated and used by A and B. When hospital C joins in later, hospitals A and B do not want to add the data before hospital C joins in, and they will get access to all the data as soon as C joins the alliance. This is also unfair to hospitals A and B. Therefore, the contract deployed on the alliance chain built by the three parties of the hospital A-B-C for data access control according to the institution's joining time uses the Solidity language to realize the acquisition of the time when the hospital C joins the alliance, and the exchange that finally changes the state of the patient's medical record in the a...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses a blockchain data access control method and device based on a smart contract. The method comprises the steps that: a blockchain node acquires the access operation request of amechanism, wherein the access operation request comprises a transaction identifier of an accessed transaction; a blockchain state corresponding to the transaction identifier is determined on the basisof the transaction identifier, wherein the blockchain state comprises the hash value of a corresponding transaction which is performed when the blockchain state changes for the last time; data accesscontrol is performed on the mechanism according to the hash value of the corresponding transaction which is performed when the blockchain state changes for the last time and the identifier of the mechanism to obtain a control result; and the control result is sent to the mechanism. The blockchain node obtains the timestamp of transaction data and the joining time of the mechanism through the identifier of the mechanism and the hash value of the transaction which is performed when the state changes for at the last time; and the data access of the mechanism is controlled according to the timestamp and the adding time of the mechanism; and therefore, the control effect of accessing data before node joining by a later jointed node can be improved, and control efficiency is improved.

Description

technical field [0001] The embodiments of the present invention relate to the technical field of data processing, and in particular to a smart contract-based blockchain data access control method and device. Background technique [0002] Based on the blockchain system, since the participants of various institutions do not join the alliance at the same time, some institutions may join after the alliance chain has been running for a period of time. The institutions that join the alliance first have already contributed or generated data, and the first to generate data for this part The institutions that join the alliance first have priority rights to the data, and there is a need not to allow subsequent new institutions to access it. Since each participating node will synchronize all block data during the operation of the blockchain system, the status of each node needs to be consistent. The existing technical solutions use authority management or block compression to control t...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): G06Q40/04G06F21/64G06F16/27
CPCG06Q40/04G06F21/64G06F16/27G06Q40/08H04L9/50G06F21/645G06F2221/2137H04L63/108H04L9/3239H04L9/3297G06Q20/38215G06Q20/3827G06Q20/4014G06Q20/407
Inventor 王贺贺许玉壮朱涛周钰
Owner CHINA UNIONPAY