| CPC G06F 21/6227 (2013.01) [G06F 16/2246 (2019.01); G06F 21/602 (2013.01)] | 1 Claim |

|
1. A data-sharing method based on blockchain smart contracts, wherein the method at least comprises:
having a third-party blockchain system, when accessing a data-sharing blockchain system, preset data sharing rules in the data-sharing blockchain system;
assigning corresponding sharing rules to every entry of shared data during uploading of the shared data; and
having the data-sharing blockchain system perform data storage and/or data access control according to the data sharing rules;
deploying a first contract in the data-sharing blockchain system for processing access requests from third-party blockchain systems;
deploying a second contract in the data-sharing blockchain system for processing shared data submitted by third-party blockchain systems;
deploying a third contract in the data-sharing blockchain system for submitting access requests so as to establish connection between the third-party blockchain systems and the data-sharing blockchain system;
deploying a fourth contract in the third-party blockchain systems for uploading shared data, so that the third-party blockchain system can send the shared data to the data-sharing blockchain system;
deploying a fifth contract to perform hierarchical storage on the shared data according to the sharing and storing hierarchy; and
deploying a sixth contract to retrieve data in response to a client request that requires the shared data, and performs access control according to the data storing and sharing hierarchy.
|