Multimedia data sharing method, system and related equipment based on blockchain
By dividing multimedia data into sensitive and non-sensitive data on the blockchain platform, and performing identity verification and storage, the problem of being unable to meet the storage needs of multimedia data in existing technology is solved, and diversified storage and data security are achieved.
Patent Information
- Application Number
- CN202311639917.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-12-01
- Publication Date
- 2024-10-11
- Estimated Expiration
- 2043-12-01
AI Technical Summary
Existing blockchain-based data sharing methods cannot effectively distinguish and process data in different fields and sensitivity levels, resulting in the inability to meet the storage needs of multimedia data in different scenarios.
By dividing multimedia data into sensitive data and non-sensitive data, and performing identity verification and storage on the blockchain platform, sensitive data is stored in the local database, and non-sensitive data is stored in the blockchain platform, providing different data storage and sharing path.
It realizes the diversified storage requirements for multimedia data, improves the data storage universality of the blockchain platform, and ensures the security and integrity of data through encryption and smart contracts.
Smart Images

Figure CN117834103B_ABST
Abstract
Description
Background Art
[0002] Blockchain technology has become mature, and its application in the field of trusted data sharing has gradually been recognized by everyone. Based on the decentralized nature of blockchain, data transactions are open, transparent and tamper-proof.
[0003] At present, the data sharing methods based on blockchain are relatively general, and rarely distinguish between the type and sensitivity of data. However, data in different fields and with different sensitivity levels will have very different data characteristics and sharing methods. For example, government data is mostly field-based structured data, while multimedia data is mostly unstructured data. The storage, chaining, and extraction methods of the two types of data will be very different; in addition, the two parties of government data sharing are people, while the two parties of multimedia data sharing will also involve equipment. Therefore, the large and general blockchain data sharing method cannot be applied to all fields.
[0004] It should be noted that the information disclosed in the above background technology section is only used to enhance the understanding of the background of the present disclosure, and therefore may include information that does not constitute the prior art known to ordinary technicians in the field. Summary of the invention
[0005] The present disclosure provides a blockchain-based multimedia data sharing method, system and related equipment, which at least to a certain extent overcome the technical problem that the blockchain-based data storage method in the related art is difficult to meet the data storage requirements in different scenarios.
[0006] Other features and advantages of the present disclosure will become apparent from the following detailed description, or may be learned in part by the practice of the present disclosure.
[0007] According to one aspect of the present disclosure, a multimedia data sharing method based on blockchain is provided, including: a data provider divides the multimedia data to be shared into sensitive data and non-sensitive data, and shares the sensitive data and / or non-sensitive data with a data demander based on a blockchain platform, wherein the sensitive data is stored in a local database of the data provider, and the non-sensitive data is stored in the blockchain platform, and the blockchain platform is used to verify the user identity information and / or device identity information of the data provider and / or the data demander.
[0008] In some embodiments, before the data provider divides the multimedia data to be shared into sensitive data and non-sensitive data, and shares the sensitive data and / or non-sensitive data with the data demander based on the blockchain platform, the method also includes: the data provider registers its identity on the blockchain platform to generate a user identity, a user public key and a user private key of the data provider; the data provider registers its device on the blockchain platform to generate a device identity, a device public key and a device private key of the data provider.
[0009] In some embodiments, the method also includes: the data provider receives an encrypted authorization request message sent by the data demander, wherein the encrypted authorization request message is a message obtained by the data demander using the data provider's device public key to encrypt the data demander's device identity, device public key and private key signature; the data provider uses the data provider's device private key to decrypt the encrypted authorization request message to obtain the data demander's device identity and device public key, and authenticates the data demander through the blockchain platform; when the blockchain platform returns an authentication result of passed authentication, the data provider sends its own device public key and device private key to the data demander, so that the data demander can access the data provider's local device based on the data provider's device public key and device private key.
[0010] In some embodiments, the data provider divides the multimedia data to be shared into sensitive data and non-sensitive data, and shares the sensitive data and / or non-sensitive data with the data demander based on the blockchain platform, including: the data provider divides the multimedia data to be shared into sensitive data and non-sensitive data; the data provider uploads the non-sensitive data to the blockchain platform, and shares the non-sensitive data stored on the blockchain platform with the data demander through the blockchain platform; the data provider stores the sensitive data in the local database of the data provider, and records the sensitive data stored in its own local database shared by the data demander through the blockchain platform and generates credentials.
[0011] In some embodiments, the data provider uploads the non-sensitive data to the blockchain platform, and shares the non-sensitive data stored on the blockchain platform with the data demander through the blockchain platform, including: the data provider encrypts the non-sensitive data; the data provider uploads the encrypted result of the non-sensitive data to the blockchain platform; the data provider creates a smart contract for sharing non-sensitive data, so that the data demander can access the encrypted result of the non-sensitive data stored on the blockchain platform based on the smart contract.
[0012] In some embodiments, the smart contract includes at least one of the following information: authorized data objects, authorized data scope, authorized data usage, and authorized data time limit.
[0013] In some embodiments, the data provider stores sensitive data in the data provider's local database, and records the sensitive data stored in its own local database shared by the data demander through the blockchain platform and generates credentials, including: the data provider encrypts the sensitive data to generate an identification and encryption result of the sensitive data; the data provider queries the user identity and user public key of the target data demander from the blockchain platform; the data provider generates a data sharing request message based on the identification and encryption result of the sensitive data and the user identity and user public key of the target data demander; the data provider pushes the data sharing request message to one or more data demanders through the blockchain platform, so that the data demander who receives the data sharing request message and the data sharing request message contains its own user public key uses its own user public key to decrypt the encryption result of the sensitive data; the data provider records the sensitive data stored in its own local database shared by the data demander through the blockchain platform and generates credentials.
[0014] In some embodiments, the encryption result of the sensitive data includes: an encrypted file and a hash value of the sensitive data; the hash value is used by the data demander to verify whether the encrypted file of the sensitive data has been tampered with; wherein the data provider encrypts the sensitive data to generate an identification and an encryption result of the sensitive data, including: the data provider uses a symmetric encryption algorithm to encrypt the sensitive data to obtain an encrypted file of the sensitive data; the data provider uses a hash algorithm to generate a hash value of the encrypted file; wherein, after the data provider encrypts the sensitive data to generate the identification and encryption result of the sensitive data, the method also includes: the data provider uploads the identification of the sensitive data and the hash value of the encrypted file to the blockchain platform.
[0015] In some embodiments, the non-sensitive data is unstructured data, and the sensitive data is structured data.
[0016] According to another aspect of the present disclosure, a multimedia data sharing method based on blockchain is also provided, including: a data demander accesses sensitive data and / or non-sensitive data shared by a data provider based on a blockchain platform, wherein the sensitive data is stored in a local database of the data provider, and the non-sensitive data is stored on the blockchain platform, and the blockchain platform is used to verify user identity information and / or device identity information of the data provider and / or data demander.
[0017] In some embodiments, before the data demander accesses the sensitive data and / or non-sensitive data shared by the data provider based on the blockchain platform, the method also includes: the data demander registers its identity on the blockchain platform to generate the data demander's user identity, user public key and user private key; the data demander registers its device on the blockchain platform to generate the data demander's device identity, device public key and device private key.
[0018] In some embodiments, before the data demander accesses the sensitive data and / or non-sensitive data shared by the data provider based on the blockchain platform, the method also includes: the data demander uses the data provider's device public key to encrypt the data demander's device identity, device public key and private key signature to obtain an encrypted authorization request message; the data demander sends the encrypted authorization request message to the data provider, so that the data provider uses the data provider's device private key to decrypt the encrypted authorization request message to obtain the data demander's device identity and device public key, authenticates the data demander through the blockchain platform, and when the blockchain platform returns an authentication result of passing the authentication, sends its own device public key and device private key to the data demander; the data demander accesses the data provider's local device based on the data provider's device public key and device private key.
[0019] In some embodiments, the data demander accesses sensitive data and / or non-sensitive data shared by the data provider based on the blockchain platform, including: the data demander accesses the non-sensitive data uploaded to the blockchain platform by the data provider through the blockchain platform; the data demander obtains the sensitive data stored in the local database of the data provider through the blockchain platform.
[0020] In some embodiments, the data demander accesses the non-sensitive data uploaded to the blockchain platform by the data provider through the blockchain platform, including: the data demander accesses the encryption result of the non-sensitive data stored on the blockchain platform based on the smart contract stored by the data provider on the blockchain platform, wherein the smart contract is created when the data provider encrypts the non-sensitive data and uploads the encrypted result of the non-sensitive data to the blockchain platform.
[0021] In some embodiments, the data demander obtains sensitive data stored in the local database of the data provider through the blockchain platform, including: the data demander receives a data sharing request message from the data provider through the blockchain platform, wherein the data sharing request message is generated by the data provider according to the identification and encryption result of the sensitive data and the user identity and user public key of the target data demander queried through the blockchain platform; the data demander determines whether the data sharing request message contains its own user public key; if so, the data demander uses its own user public key to decrypt the encryption result of the sensitive data.
[0022] In some embodiments, the encryption result of the sensitive data includes: an encrypted file obtained by the data provider using a symmetric encryption algorithm to encrypt the sensitive data and a hash value of the encrypted file generated by the data provider using a hash algorithm; wherein, before the data demander uses its own user public key to decrypt the encryption result of the sensitive data, the method also includes: the data demander queries the corresponding hash value from the blockchain platform according to the identification of the sensitive data; and verifies whether the encrypted file of the sensitive data has been tampered with based on the queried hash value.
[0023] In some embodiments, the non-sensitive data is unstructured data, and the sensitive data is structured data.
[0024] According to another aspect of the present disclosure, a multimedia data sharing system based on blockchain is also provided, including: a blockchain platform, a data provider and a data demander; wherein the data provider divides the multimedia data to be shared into sensitive data and non-sensitive data, and shares the sensitive data and / or non-sensitive data with the data demander based on the blockchain platform; the data demander is used to access the sensitive data and / or non-sensitive data shared by the data provider based on the blockchain platform; wherein the sensitive data is stored in the local database of the data provider, and the non-sensitive data is stored in the blockchain platform, and the blockchain platform is used to verify the user identity information and / or device identity information of the data provider and / or the data demander.
[0025] According to another aspect of the present disclosure, a data sharing device is also provided, including: a data sharing module, used to divide the multimedia data to be shared into sensitive data and non-sensitive data, and share the sensitive data and / or non-sensitive data to the data demander based on a blockchain platform, wherein the sensitive data is stored in the local database of the data provider, and the non-sensitive data is stored in the blockchain platform, and the blockchain platform is used to verify the user identity information and / or device identity information of the data provider and / or the data demander.
[0026] According to another aspect of the present disclosure, a user device is also provided, including: a data access module for accessing sensitive data and / or non-sensitive data shared by a data provider based on a blockchain platform, wherein the sensitive data is stored in a local database of the data provider, and the non-sensitive data is stored in the blockchain platform, and the blockchain platform is used to verify user identity information and / or device identity information of the data provider and / or data demander.
[0027] According to another aspect of the present disclosure, an electronic device is also provided, comprising: a processor; and a memory for storing executable instructions of the processor; wherein the processor is configured to execute any one of the above-mentioned blockchain-based multimedia data sharing methods by executing the executable instructions.
[0028] According to another aspect of the present disclosure, a computer-readable storage medium is also provided, on which a computer program is stored. When the computer program is executed by a processor, the blockchain-based multimedia data sharing method described in any one of the above is implemented.
[0029] According to another aspect of the present disclosure, a computer program product is also provided, including a computer program, which, when executed by a processor, implements any of the above-mentioned blockchain-based multimedia data sharing methods.
[0030] The blockchain-based multimedia data sharing method, system and related equipment provided in the embodiments of the present disclosure are as follows: the data provider divides the multimedia data to be shared into sensitive data and non-sensitive data, and stores the sensitive data in the local database of the data provider, and stores the non-sensitive data in the blockchain platform; the sensitive data and / or non-sensitive data are shared with the data demander based on the blockchain platform; in the process of sharing data, the user identity information and / or device identity information of the data provider and / or the data demander can be verified through the blockchain platform.
[0031] The embodiments of the present invention provide different data storage and sharing paths for sensitive data and non-sensitive data based on the blockchain platform, which can meet the diverse storage needs of multimedia data.
[0032] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0033] The accompanying drawings herein are incorporated into the specification and constitute a part of the specification, illustrate embodiments consistent with the present disclosure, and together with the specification are used to explain the principles of the present disclosure. Obviously, the accompanying drawings described below are only some embodiments of the present disclosure, and for ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without creative work.
[0034] Figure 1 A schematic diagram of a multimedia data sharing system architecture based on blockchain in an embodiment of the present disclosure is shown;
[0035] Figure 2 A flowchart of non-sensitive data sharing based on blockchain in an embodiment of the present disclosure is shown;
[0036] Figure 3 A flowchart of sensitive data sharing based on blockchain in an embodiment of the present disclosure is shown;
[0037] Figure 4 A flowchart of a multimedia data sharing method based on blockchain in an embodiment of the present disclosure is shown;
[0038] Figure 5 A data sharing verification flow chart according to an embodiment of the present disclosure is shown;
[0039] Figure 6 An optional flowchart of a multimedia data sharing method based on blockchain in an embodiment of the present disclosure is shown;
[0040] Figure 7 An optional non-sensitive multimedia data sharing flow chart according to an embodiment of the present disclosure is shown;
[0041] Figure 8 An optional sensitive multimedia data sharing flow chart in an embodiment of the present disclosure is shown;
[0042] Fig. 9 A flowchart of another method for sharing multimedia data based on blockchain in an embodiment of the present disclosure is shown;
[0043] Fig.10 Another data sharing verification flow chart in an embodiment of the present disclosure is shown;
[0044] Fig.11 A flowchart of another optional blockchain-based multimedia data sharing method in an embodiment of the present disclosure is shown;
[0045] Fig.12 An optional data tamper-proof verification flow chart according to an embodiment of the present disclosure is shown;
[0046] Fig.13 A schematic diagram of a data sharing device in an embodiment of the present disclosure is shown;
[0047] Fig.14 A schematic diagram of a user equipment in an embodiment of the present disclosure is shown;
[0048] Fig.15 A structural block diagram of an electronic device according to an embodiment of the present disclosure is shown;
[0049] Fig.16 A schematic diagram of a computer-readable storage medium in an embodiment of the present disclosure is shown. DETAILED DESCRIPTION
[0050] Example embodiments will now be described more fully with reference to the accompanying drawings. However, example embodiments can be implemented in a variety of forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that the disclosure will be more comprehensive and complete and to fully convey the concepts of the example embodiments to those skilled in the art. The described features, structures, or characteristics may be combined in any suitable manner in one or more embodiments.
[0051] In addition, the accompanying drawings are only schematic illustrations of the present disclosure and are not necessarily drawn to scale. The same reference numerals in the figures represent the same or similar parts, and their repeated description will be omitted. Some of the block diagrams shown in the accompanying drawings are functional entities and do not necessarily correspond to physically or logically independent entities. These functional entities can be implemented in software form, or implemented in one or more hardware modules or integrated circuits, or implemented in different networks and / or processor devices and / or microcontroller devices.
[0052] For ease of understanding, before introducing the embodiments of the present disclosure, several terms involved in the embodiments of the present disclosure are first explained as follows:
[0053] DLP: Distributed Ledger Technology, distributed ledger technology;
[0054] PU: Prefocus Unit, front-end unit, as the front-end device of the monitoring system, is used to collect video streams using cameras, audio streams using microphones, alarm information using control ports, and control the camera pan / tilt lens under the control of CMU (Clock Management Unit);
[0055] CU: Client Unit, as the client device of the monitoring system, is used to submit the video stream, audio stream, alarm information, etc. collected by the PU device to the monitoring user, and operate the PU device, such as the pan / tilt, lens, etc. according to the requirements of the monitoring user.
[0056] The specific implementation of the embodiment of the present disclosure is described in detail below with reference to the accompanying drawings.
[0057] Figure 1 FIG. 1 shows a schematic diagram of a multimedia data sharing system architecture based on blockchain in an embodiment of the present disclosure. Figure 1 As shown, the system architecture may include: a blockchain platform 10, a data provider 20 and a data demander 30.
[0058] Among them, the data provider 20 divides the multimedia data to be shared into sensitive data and non-sensitive data, and shares the sensitive data and / or non-sensitive data with the data demander based on the blockchain platform; the data demander 30 is used to access the sensitive data and / or non-sensitive data shared by the data provider based on the blockchain platform; wherein, the sensitive data is stored in the local database of the data provider, and the non-sensitive data is stored in the blockchain platform, and the blockchain platform 10 is used to verify the user identity information and / or device identity information of the data provider and / or the data demander.
[0059] In the embodiments of the present disclosure, a data provider refers to a party that provides data resources when data is shared, and is also referred to as a data owner, a resource provider, a resource owner, etc.; a data demander refers to a party that requests access to data resources when data is shared, and is also referred to as a data requester, a resource demander, a resource requester, etc.; it is usually the user side that requests access to data resources, and thus, the data demander in the embodiments of the present disclosure may also be referred to as a user. In some scenarios, a data provider may also serve as a data demander; in other scenarios, a data demander may also serve as a data provider. The present disclosure does not specifically limit this.
[0060] The multimedia data sharing system provided in the embodiments of the present disclosure can be applied to, but not limited to, the sharing of multimedia data (e.g., video data). As long as data of different sensitivities are stored on a blockchain platform, the multimedia data sharing system based on blockchain provided in the embodiments of the present disclosure can be applied to achieve this.
[0061] It should be noted that the sensitive data and non-sensitive data in the embodiments of the present disclosure are intended to represent two types of data with different sensitivities, and the data storage paths and sharing methods required for data with different sensitivities are different. In some embodiments, the non-sensitive data in the embodiments of the present disclosure may be low-sensitivity multimedia data (i.e., data that is insensitive or has a sensitivity lower than a first preset threshold), and the sensitive data may be high-sensitivity multimedia data (i.e., data that is sensitive or has a sensitivity higher than a second preset threshold). Optionally, the first preset threshold and the second preset threshold may be the same or different.
[0062] The multimedia data sharing system provided in the embodiments of the present disclosure can be implemented by, but not limited to, the following steps when implementing multimedia data sharing:
[0063] (1) Data demanders and data providers register on the chain.
[0064] First, data demanders and data providers register their identities on the blockchain and obtain their own public and private key pairs and user identity IDs. A ,K' A ,ID A ]; Secondly, the data demander uses ID A Log in to your own device platform to associate, register on the chain, generate the public and private key pair and device ID of the device [K pu ,K' pu ,ID pu ].
[0065] (II) After the devices of the data demander and the data provider are registered on the chain, the data demander wants to obtain the data of the data provider first through the device ID (ID pu ) Search for the specified device public key K pu .
[0066] When the data demander receives the data, it sends an encrypted authorization request message M1 to the data provider's device, which contains the data demander's own device ID. cu 、Public key K cu , and private key signature K' cu ; Data provider device public key K pu The encrypted M1 is sent to the data provider's device.
[0067] The data provider device uses the private key K' cu Decryption obtains the device ID and public key of the data demander and performs identity authentication through the blockchain. The identity authentication method is that the data provider device sends the device ID and public key of the data demander to the blockchain to verify the authenticity. After receiving the request, the blockchain queries its public key through the device ID and returns the verification result.
[0068] When the identity authentication is passed, the data provider will receive a public-private key pair [K pu ,K' pu ] to authorize the data requester to access the owner's device.
[0069] (III) The data demander sends a request to the data provider. The data demander searches for the data provider's device public key K on the blockchain. pu The encrypted identity authentication information is sent to the data provider, who verifies and sends the cloud database authorization code, including the device ID (ID cu ), data provider device ID (ID pu ) and scope of authorization, etc.
[0070] (IV) Low-sensitivity multimedia data is uploaded to the cloud, and resource information is uploaded to the chain and authenticated.
[0071] The data provider first encrypts the original video file and generates a hash value (Hash), generates a video resource ID and uploads it to the blockchain. To ensure the query security of video resources, the method for generating video resource ID is as follows: after generating multiple hash codes (device identification, hash algorithm type, hash length byte number, hash value), the final video resource ID is generated through hash mapping. Due to multiple hash encryption, this ID can be used to confirm whether the video resource has been tampered with.
[0072] (V) Multimedia data sharing includes the following two modes:
[0073] Mode 1: The sharing process of non-sensitive data is as follows Figure 2 As shown, specifically including:
[0074] ① Sign a smart contract between the data demander and the data provider through blockchain. The contract content may include: authorized object, scope, purpose, time limit, etc.
[0075] ②After signing, the data demander can automatically obtain the data resource directory and location, and send a message to the blockchain. The message content includes: data demander ID A , Resource ID pu and device number.
[0076] ③ The resource party uses the public key K of the data demander A Encrypt data resources and send them through smart contracts. The data demander uses the private key K' A Decrypt and retrieve the resource.
[0077] ④The entire process is recorded in the blockchain by the smart contract.
[0078] Mode 2: The sharing process of sensitive data is as follows Figure 3 As shown in the figure, for sensitive data, the above sharing method is not enough to protect the security of data during the flow process. The data provider will save the data with high sensitivity (sensitivity level) in its own private database instead of uploading it to the cloud. When sharing is needed, a privacy sharing request will be initiated to the target user group (including multiple data demanders). Only this group can receive the consensus information, and it will be transmitted through a single encrypted communication channel. The specific process is as follows:
[0079] ① The data provider's device obtains the multimedia data that needs to be shared and is stored in the privacy database, and generates an encrypted privacy video file through a symmetric key. After encryption, the SHA series hash algorithm is used to obtain the hash value.
[0080] ② The resource party queries the data demander (i.e. the target sharing user) on the blockchain for the ID of the data to be shared. A ) and public key K' A , send a sharing request. The request contains: ID A , encrypted data information, hash value, shared transaction parameters, etc. The shared transaction parameters are used to identify the shared transaction as a private transaction, and include the public key K' of the target user. A If there are multiple data demanders, all of them need to indicate their IDs in the request information, and only the nodes with the identification parameters can participate in this sharing.
[0081] ③After receiving the private data sharing information, the target user compares his public key K A If the information is in the set requested, then the user has the right to participate. Otherwise, the user does not participate.
[0082] ④The target user obtains the public key of the data provider on the blockchain, parses the encrypted data, obtains the private shared multimedia data, and stores it in his own privacy database. At the same time, the hash value of the shared data is calculated and written into the blockchain.
[0083] ⑤ The data provider can compare and calculate the hash value of the multimedia data to determine whether the shared multimedia data has been tampered with.
[0084] The above steps (i) to (ii) are the registration and authentication stage of users and / or devices; the above steps (iii) to (v) are the sharing stage of multi-sensitivity multimedia data.
[0085] Those skilled in the art will know that Figure 1 The number of blockchain platforms, data providers, and data demanders in the example is only illustrative, and any number of blockchain platforms, data providers, and data demanders may be provided according to actual needs. This disclosure embodiment does not limit this.
[0086] Under the above system architecture, a method for sharing multimedia data based on blockchain is provided in the embodiments of the present disclosure. In principle, the method can be executed by any electronic device with computing and processing capabilities. In some embodiments, the method for sharing multimedia data based on blockchain provided in the embodiments of the present disclosure can be executed by the data provider of the above system architecture; in other embodiments, the method for sharing multimedia data based on blockchain provided in the embodiments of the present disclosure can be implemented by the data provider in the above system architecture and the blockchain platform and the data demander through interaction.
[0087] Figure 4 A flowchart of a multimedia data sharing method based on blockchain in an embodiment of the present disclosure is shown as follows: Figure 4As shown, the blockchain-based multimedia data sharing method provided in the embodiment of the present disclosure includes the following steps:
[0088] S402, the data provider divides the multimedia data to be shared into sensitive data and non-sensitive data, and shares the sensitive data and / or non-sensitive data with the data demander based on the blockchain platform, wherein the sensitive data is stored in the local database of the data provider, and the non-sensitive data is stored in the blockchain platform. The blockchain platform is used to verify the user identity information and / or device identity information of the data provider and / or the data demander.
[0089] In some embodiments, before executing the above S402, Figure 5 As shown, the blockchain-based multimedia data sharing method provided in the embodiment of the present disclosure may also include the following steps:
[0090] S502, the data provider registers its identity on the blockchain platform and generates a user identity, a user public key and a user private key of the data provider;
[0091] S504, the data provider registers the device on the blockchain platform and generates the data provider's device identity, device public key and device private key.
[0092] Furthermore, in some embodiments, Figure 5 As shown, the blockchain-based multimedia data sharing method provided in the embodiment of the present disclosure may also include the following steps:
[0093] S506, the data provider receives the encrypted authorization request message sent by the data demander, wherein the encrypted authorization request message is a message obtained by the data demander using the data provider's device public key to encrypt the data demander's device identity, device public key and private key signature;
[0094] S508, the data provider uses the data provider's device private key to decrypt the encrypted authorization request message, obtains the data requester's device identity and device public key, and authenticates the data requester through the blockchain platform;
[0095] S510, when the blockchain platform returns the authenticated identity authentication result, the data provider sends its own device public key and device private key to the data demander, so that the data demander can access the local device of the data provider based on the device public key and device private key of the data provider.
[0096] In some embodiments, Figure 6 As shown, the above S402 can be implemented specifically through the following steps:
[0097] S602, the data provider divides the multimedia data to be shared into sensitive data and non-sensitive data;
[0098] S604, the data provider uploads the non-sensitive data to the blockchain platform, and shares the non-sensitive data stored on the blockchain platform with the data demander through the blockchain platform;
[0099] S606, the data provider stores the sensitive data in the local database of the data provider, and records the sensitive data stored in the local database shared by the data demander through the blockchain platform and generates a credential;
[0100] S608, the data provider records the sensitive data stored in its own local database shared by the data demander through the blockchain platform and generates credentials.
[0101] It should be noted that for the sharing of sensitive data, the blockchain platform only records the sharing credentials, which can protect sensitive data from being leaked.
[0102] In some embodiments, Figure 7 As shown, the blockchain-based multimedia data sharing method provided in the embodiment of the present disclosure can realize the sharing of non-sensitive data through the following steps:
[0103] S702, the data provider encrypts the non-sensitive data;
[0104] S704, the data provider uploads the encryption result of the non-sensitive data to the blockchain platform;
[0105] S706, the data provider creates a smart contract for sharing non-sensitive data, so that the data demander can access the encryption results of the non-sensitive data stored on the blockchain platform based on the smart contract.
[0106] In some embodiments, the smart contract includes at least one of the following information: authorized data objects, authorized data scope, authorized data usage, and authorized data time limit.
[0107] In some embodiments, Figure 8 As shown, the blockchain-based multimedia data sharing method provided in the embodiment of the present disclosure can realize the sharing of sensitive data through the following steps:
[0108] S802, the data provider encrypts the sensitive data and generates an identifier of the sensitive data and an encryption result;
[0109] S804, the data provider queries the user identity and user public key of the target data demander from the blockchain platform;
[0110] S806, the data provider generates a data sharing request message according to the identification and encryption result of the sensitive data and the user identification and public key of the target data demander;
[0111] S808, the data provider pushes the data sharing request message to one or more data demanders through the blockchain platform, so that the data demanders who receive the data sharing request message and the data sharing request message contains their own user public keys can use their own user public keys to decrypt the encrypted results of the sensitive data.
[0112] In one embodiment, the encryption result of sensitive data includes: an encrypted file and a hash value of the sensitive data; the hash value is used by the data demander to verify whether the encrypted file of the sensitive data has been tampered with; in this embodiment, the above S802 may specifically include the following steps: the data provider uses a symmetric encryption algorithm to encrypt the sensitive data to obtain an encrypted file of the sensitive data; the data provider uses a hash algorithm to generate a hash value of the encrypted file; further, after executing the above S802, the blockchain-based multimedia data sharing method provided in the embodiment of the present disclosure may also include the following steps: the data provider uploads the identifier of the sensitive data and the hash value of the encrypted file to the blockchain platform.
[0113] In some embodiments, the non-sensitive data is unstructured data and the sensitive data is structured data.
[0114] Based on the same inventive concept, a method for sharing multimedia data based on blockchain is also provided in the embodiments of the present disclosure. In principle, the method can be executed by any electronic device with computing and processing capabilities. In some embodiments, the method for sharing multimedia data based on blockchain provided in the embodiments of the present disclosure can be executed by the data demander of the above system architecture; in other embodiments, the method for sharing multimedia data based on blockchain provided in the embodiments of the present disclosure can be implemented by the data demander in the above system architecture and the blockchain platform and data provider through interaction.
[0115] Fig. 9 A flowchart of a multimedia data sharing method based on blockchain in an embodiment of the present disclosure is shown as follows: Fig. 9 As shown, the blockchain-based multimedia data sharing method provided in the embodiment of the present disclosure includes the following steps:
[0116] S902, the data demander accesses the sensitive data and / or non-sensitive data shared by the data provider based on the blockchain platform, wherein the sensitive data is stored in the local database of the data provider, and the non-sensitive data is stored in the blockchain platform. The blockchain platform is used to verify the user identity information and / or device identity information of the data provider and / or the data demander.
[0117] In some embodiments, Fig.10 As shown, before executing S902, the blockchain-based multimedia data sharing method provided in the embodiment of the present disclosure may also include the following steps:
[0118] S102, the data demander registers his / her identity on the blockchain platform and generates the user identity, user public key and user private key of the data demander;
[0119] S104, the data demander registers the device on the blockchain platform to generate the device identity, device public key and device private key of the data demander.
[0120] Furthermore, if Fig.10 As shown, in some embodiments, the blockchain-based multimedia data sharing method provided in the embodiments of the present disclosure may also include the following steps:
[0121] S106, the data requester uses the data provider's device public key to encrypt the data requester's device identity, device public key and private key signature to obtain an encrypted authorization request message;
[0122] S108, the data demander sends an encrypted authorization request message to the data provider, so that the data provider uses the data provider's device private key to decrypt the encrypted authorization request message, obtains the data demander's device identity and device public key, authenticates the data demander through the blockchain platform, and when the blockchain platform returns an authentication result, sends its own device public key and device private key to the data demander;
[0123] S110, the data demander accesses the local device of the data provider based on the device public key and device private key of the data provider.
[0124] In some embodiments, Fig.11 As shown, the above S902 can be implemented specifically through the following steps:
[0125] S112, the data demander accesses the non-sensitive data uploaded to the blockchain platform by the data provider through the blockchain platform;
[0126] S114, the data demander obtains the sensitive data stored in the local database of the data provider through the blockchain platform.
[0127] In some embodiments, the blockchain-based multimedia data sharing method provided in the embodiments of the present disclosure can achieve access to non-sensitive data through the following steps: the data demander can access the encryption results of non-sensitive data stored on the blockchain platform based on the smart contract stored by the data provider on the blockchain platform, wherein the smart contract is created when the data provider encrypts the non-sensitive data and uploads the encrypted results of the non-sensitive data to the blockchain platform.
[0128] In some embodiments, the blockchain-based multimedia data sharing method provided in the embodiments of the present disclosure can achieve access to sensitive data through the following steps: the data demander receives a data sharing request message from the data provider through the blockchain platform, wherein the data sharing request message is generated by the data provider based on the identification and encryption result of the sensitive data and the user identity and user public key of the target data demander queried through the blockchain platform; the data demander determines whether the data sharing request message contains its own user public key; if so, the data demander uses its own user public key to decrypt the encryption result of the sensitive data.
[0129] In some embodiments, the encryption result of the sensitive data includes: an encrypted file obtained by encrypting the sensitive data by the data provider using a symmetric encryption algorithm and a hash value of the encrypted file generated by the data provider using a hash algorithm; wherein, before the data demander uses its own user public key to decrypt the encryption result of the sensitive data, Fig.12 As shown, the blockchain-based multimedia data sharing method provided in the embodiment of the present disclosure can also verify whether the encrypted file of the acquired sensitive data has been tampered with by the following steps:
[0130] S122, the data demander queries the corresponding hash value from the blockchain platform according to the identification of the sensitive data;
[0131] S124, verifying whether the encrypted file of the sensitive data has been tampered with based on the queried hash value.
[0132] In some embodiments, non-sensitive data may be unstructured data (eg, various government affairs data), and sensitive data may be structured data (eg, video data).
[0133] The blockchain-based multimedia data sharing method provided in the embodiments of the present disclosure can not only realize the authentication of user identity but also the authentication of device identity during the multimedia data sharing process. Different data storage and sharing paths can also be provided for data of different sensitivities, which greatly improves the universality of data storage on the blockchain platform.
[0134] Based on the same inventive concept, the present disclosure also provides a data sharing device in the following embodiments. Since the principle of solving the problem in the data sharing device embodiment is similar to that in the above method embodiment, the implementation of the data sharing device embodiment can refer to the implementation of the above method embodiment, and the repeated parts will not be repeated.
[0135] Fig.13 A schematic diagram of a data sharing device in an embodiment of the present disclosure is shown. Figure 6 As shown, the device includes: a data sharing module 131.
[0136] Among them, the data sharing module 131 is used to divide the multimedia data to be shared into sensitive data and non-sensitive data, and share sensitive data and / or non-sensitive data with data demanders based on the blockchain platform, wherein the sensitive data is stored in the local database of the data provider, and the non-sensitive data is stored on the blockchain platform. The blockchain platform is used to verify the user identity information and / or device identity information of the data provider and / or data demander.
[0137] In some embodiments, the data sharing device provided in the embodiments of the present disclosure may include: a first identity registration module 132, which is used for the data provider to register its identity on the blockchain platform and generate the user identity, user public key and user private key of the data provider; a first device registration module 133, which is used for the data provider to register its device on the blockchain platform and generate the device identity, device public key and device private key of the data provider.
[0138] In some embodiments, the above-mentioned data sharing module 131 is also used for: the data provider receives the encrypted authorization request message sent by the data demander, wherein the encrypted authorization request message is a message obtained by the data demander using the data provider's device public key to encrypt the data demander's device identity, device public key and private key signature; the data provider uses the data provider's device private key to decrypt the encrypted authorization request message, obtain the data demander's device identity and device public key, and authenticate the data demander through the blockchain platform; when the blockchain platform returns an authentication result of passing the authentication, the data provider sends its own device public key and device private key to the data demander, so that the data demander can access the data provider's local device based on the data provider's device public key and device private key.
[0139] In some embodiments, the above-mentioned data sharing module 131 is also used for: the data provider divides the multimedia data to be shared into sensitive data and non-sensitive data; the data provider uploads the non-sensitive data to the blockchain platform, and shares the non-sensitive data stored on the blockchain platform with the data demander through the blockchain platform; the data provider stores the sensitive data in the local database of the data provider, and records the sensitive data stored in its own local database shared by the data demander through the blockchain platform and generates credentials; the data provider records the sensitive data stored in its own local database shared by the data demander through the blockchain platform and generates credentials.
[0140] In some embodiments, the above-mentioned data sharing module 131 is also used for: the data provider encrypts the non-sensitive data; the data provider uploads the encrypted results of the non-sensitive data to the blockchain platform; the data provider creates a smart contract for sharing non-sensitive data, so that the data demander can access the encrypted results of the non-sensitive data stored on the blockchain platform based on the smart contract.
[0141] In some embodiments, the smart contract includes at least one of the following information: authorized data objects, authorized data scope, authorized data usage, and authorized data time limit.
[0142] In some embodiments, the above-mentioned data sharing module 131 is also used to: encrypt sensitive data to generate an identification and encryption result of sensitive data; query the user identity and user public key of the target data demander from the blockchain platform; generate a data sharing request message based on the identification and encryption result of sensitive data and the user identity and user public key of the target data demander; push the data sharing request message to one or more data demanders through the blockchain platform, so that the data demander who receives the data sharing request message and the data sharing request message contains its own user public key can use its own user public key to decrypt the encryption result of the sensitive data.
[0143] In some embodiments, the encryption result of sensitive data includes: an encrypted file and a hash value of the sensitive data; the hash value is used by the data demander to verify whether the encrypted file of the sensitive data has been tampered with; wherein, the data provider encrypts the sensitive data to generate an identification and encryption result of the sensitive data, including: the data provider uses a symmetric encryption algorithm to encrypt the sensitive data to obtain an encrypted file of the sensitive data; the data provider uses a hash algorithm to generate a hash value of the encrypted file; the above-mentioned data sharing module 131 is also used to: upload the identification of the sensitive data and the hash value of the encrypted file to the blockchain platform.
[0144] In some embodiments, the non-sensitive data is unstructured data and the sensitive data is structured data.
[0145] It should be noted that the examples and application scenarios implemented by the modules and corresponding steps in the above data sharing device are the same, but are not limited to the contents disclosed in the above method embodiments. It should be noted that the above modules as part of the device can be executed in a computer system such as a set of computer executable instructions.
[0146] Based on the same inventive concept, the present disclosure also provides a user equipment in the following embodiments. Since the principle of solving the problem in the user equipment embodiment is similar to that in the above method embodiment, the implementation of the user equipment embodiment can refer to the implementation of the above method embodiment, and the repeated parts will not be repeated.
[0147] Fig.14 A schematic diagram of a user equipment in an embodiment of the present disclosure is shown as follows: Fig.14 As shown, the user equipment includes: a data access module 141.
[0148] Among them, the data access module 141 is used to access sensitive data and / or non-sensitive data shared by the data provider based on the blockchain platform, wherein the sensitive data is stored in the local database of the data provider, and the non-sensitive data is stored in the blockchain platform. The blockchain platform is used to verify the user identity information and / or device identity information of the data provider and / or data demander.
[0149] In some embodiments, the user device provided in the embodiments of the present disclosure may also include: a second identity registration module 142, which is used to perform identity registration on the blockchain platform and generate a user identity, a user public key and a user private key of the data demander; a second device registration module 143, which is used to perform device registration on the blockchain platform and generate a device identity, a device public key and a device private key of the data demander.
[0150] In some embodiments, the above-mentioned data access module 141 is also used to: use the data provider's device public key to encrypt the data demander's device identity, device public key and private key signature to obtain an encrypted authorization request message; send an encrypted authorization request message to the data provider, so that the data provider uses the data provider's device private key to decrypt the encrypted authorization request message to obtain the data demander's device identity and device public key, authenticate the data demander through the blockchain platform, and when the blockchain platform returns an authentication result of passing the authentication, send its own device public key and device private key to the data demander; access the data provider's local device based on the data provider's device public key and device private key.
[0151] In some embodiments, the above-mentioned data access module 141 is also used to: access non-sensitive data uploaded to the blockchain platform by the data provider through the blockchain platform; obtain sensitive data stored in the local database of the data provider through the blockchain platform.
[0152] In some embodiments, the above-mentioned data access module 141 is also used to: access the encryption results of non-sensitive data stored on the blockchain platform based on the smart contract stored by the data provider on the blockchain platform, wherein the smart contract is created when the data provider encrypts the non-sensitive data and uploads the encrypted results of the non-sensitive data to the blockchain platform.
[0153] In some embodiments, the above-mentioned data access module 141 is also used for: the data demander receives a data sharing request message from the data provider through the blockchain platform, wherein the data sharing request message is generated by the data provider based on the identification and encryption result of the sensitive data and the user identity identification and user public key of the target data demander queried through the blockchain platform; the data demander determines whether the data sharing request message contains its own user public key; if so, the data demander uses its own user public key to decrypt the encryption result of the sensitive data.
[0154] In some embodiments, the encryption result of sensitive data includes: an encrypted file obtained by the data provider using a symmetric encryption algorithm to encrypt the sensitive data and a hash value of the encrypted file generated by the data provider using a hash algorithm; the above-mentioned data access module 141 is also used to: query the corresponding hash value from the blockchain platform according to the identification of the sensitive data; and verify whether the encrypted file of the sensitive data has been tampered with based on the queried hash value.
[0155] In some embodiments, the non-sensitive data may be unstructured data, and the sensitive data may be structured data.
[0156] It should be noted that the examples and application scenarios implemented by the modules and corresponding steps in the above user equipment are the same, but are not limited to the contents disclosed in the above method embodiments. It should be noted that the above modules as part of the device can be executed in a computer system such as a set of computer executable instructions.
[0157] It should be noted that the acquisition, storage, use, and processing of data in the technical solution disclosed in this disclosure are in compliance with the relevant provisions of national laws and regulations, and the various types of data such as identity data, operation data, and behavior data obtained in the embodiments of this disclosure have all been authorized.
[0158] Those skilled in the art will appreciate that various aspects of the present disclosure may be implemented as systems, methods or program products. Therefore, various aspects of the present disclosure may be specifically implemented in the following forms, namely: complete hardware implementation, complete software implementation (including firmware, microcode, etc.), or a combination of hardware and software, which may be collectively referred to herein as "circuits", "modules" or "systems".
[0159] Refer to the following Fig.15 15 to describe the electronic device 1500 according to this embodiment of the present disclosure. Fig.15 The electronic device 1500 shown is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.
[0160] like Fig.15 As shown, the electronic device 1500 is in the form of a general computing device. The components of the electronic device 1500 may include but are not limited to: at least one processing unit 1510, at least one storage unit 1520, and a bus 1530 connecting different system components (including the storage unit 1520 and the processing unit 1510).
[0161] The storage unit stores a program code, and the program code can be executed by the processing unit 1510, so that the processing unit 1510 performs the steps described in the "Exemplary Method" section of this specification according to various exemplary embodiments of the present disclosure. For example, the processing unit 1510 can perform the following steps of the above method embodiment: the data provider divides the multimedia data to be shared into sensitive data and non-sensitive data, and shares the sensitive data and / or non-sensitive data with the data demander based on the blockchain platform, wherein the sensitive data is stored in the local database of the data provider, and the non-sensitive data is stored in the blockchain platform, and the blockchain platform is used to verify the user identity information and / or device identity information of the data provider and / or the data demander.
[0162] The storage unit 1520 may include a readable medium in the form of a volatile storage unit, such as a random access storage unit (RAM) 15201 and / or a cache storage unit 15202 , and may further include a read-only storage unit (ROM) 15203 .
[0163] The storage unit 1520 may also include a program / utility 15204 having a set (at least one) of program modules 15205, such program modules 15205 including but not limited to: an operating system, one or more application programs, other program modules, and program data, each of which or some combination may include an implementation of a network environment.
[0164] Bus 1530 may represent one or more of several types of bus structures, including a memory unit bus or memory unit controller, a peripheral bus, an accelerated graphics port, a processing unit, or a local bus using any of a variety of bus architectures.
[0165] The electronic device 1500 may also communicate with one or more external devices 1540 (e.g., keyboards, pointing devices, Bluetooth devices, etc.), may also communicate with one or more devices that enable a user to interact with the electronic device 1500, and / or communicate with any device that enables the electronic device 1500 to communicate with one or more other computing devices (e.g., routers, modems, etc.). Such communication may be performed via an input / output (I / O) interface 1550. Furthermore, the electronic device 1500 may also communicate with one or more networks (e.g., a local area network (LAN), a wide area network (WAN), and / or a public network, such as the Internet) via a network adapter 1560. As shown, the network adapter 1560 communicates with other modules of the electronic device 1500 via a bus 1530. It should be understood that, although not shown in the figure, other hardware and / or software modules may be used in conjunction with the electronic device 1500, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems.
[0166] Through the description of the above implementation, it is easy for those skilled in the art to understand that the example implementation described here can be implemented by software, or by software combined with necessary hardware. Therefore, the technical solution according to the implementation of the present disclosure can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a USB flash drive, a mobile hard disk, etc.) or on a network, including several instructions to enable a computing device (which can be a personal computer, a server, a terminal device, or a network device, etc.) to execute the method according to the implementation of the present disclosure.
[0167] In particular, according to an embodiment of the present disclosure, the process described with reference to the flowchart above can be implemented as a computer program product, which includes: a computer program, which implements the above-mentioned blockchain-based multimedia data sharing method when executed by a processor.
[0168] In an exemplary embodiment of the present disclosure, a computer-readable storage medium is further provided, which may be a readable signal medium or a readable storage medium. Fig.16 A schematic diagram of a computer-readable storage medium in an embodiment of the present disclosure is shown. Fig.16As shown, a program product capable of implementing the above method of the present disclosure is stored on the computer-readable storage medium 160. In some possible implementations, various aspects of the present disclosure may also be implemented in the form of a program product, which includes a program code. When the program product is run on a terminal device, the program code is used to enable the terminal device to execute the steps according to various exemplary implementations of the present disclosure described in the above “Exemplary Method” section of this specification.
[0169] More specific examples of computer-readable storage media in the present disclosure may include, but are not limited to, an electrical connection having one or more conductors, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0170] In the present disclosure, a computer readable storage medium may include a data signal propagated in baseband or as part of a carrier wave, wherein a readable program code is carried. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. A readable signal medium may also be any readable medium other than a readable storage medium, which may send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device.
[0171] Alternatively, the program code contained on the computer-readable storage medium may be transmitted using any appropriate medium, including but not limited to wireless, wired, optical cable, RF, etc., or any suitable combination of the foregoing.
[0172] In a specific implementation, the program code for performing the operations of the present disclosure may be written in any combination of one or more programming languages, including object-oriented programming languages such as Java, C++, etc., and conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user computing device, partially on the user device, as a separate software package, partially on the user computing device and partially on a remote computing device, or entirely on a 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 type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computing device (e.g., using an Internet service provider to connect through the Internet).
[0173] It should be noted that, although several modules or units of the device for action execution are mentioned in the above detailed description, this division is not mandatory. In fact, according to the embodiments of the present disclosure, the features and functions of two or more modules or units described above can be embodied in one module or unit. On the contrary, the features and functions of one module or unit described above can be further divided into multiple modules or units to be embodied.
[0174] In addition, although the steps of the method in the present disclosure are described in a specific order in the drawings, this does not require or imply that the steps must be performed in this specific order, or that all the steps shown must be performed to achieve the desired results. Additionally or alternatively, some steps may be omitted, multiple steps may be combined into one step, and / or one step may be decomposed into multiple steps, etc.
[0175] Through the description of the above implementation, it is easy for those skilled in the art to understand that the example implementation described here can be implemented by software, or by software combined with necessary hardware. Therefore, the technical solution according to the implementation of the present disclosure can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a USB flash drive, a mobile hard disk, etc.) or on a network, including several instructions to enable a computing device (which can be a personal computer, a server, a mobile terminal, or a network device, etc.) to execute the method according to the implementation of the present disclosure.
[0176] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the invention disclosed herein. The present disclosure is intended to cover any variations, uses or adaptations of the present disclosure, which follow the general principles of the present disclosure and include common knowledge or customary techniques in the art that are not disclosed in the present disclosure. The description and examples are intended to be exemplary only, and the true scope and spirit of the present disclosure are indicated by the appended claims.
Claims
1. A multimedia data sharing method based on blockchain, characterized in that: include: The data provider divides the multimedia data to be shared into sensitive data and non-sensitive data, and shares the sensitive data and / or non-sensitive data with the data demander based on the blockchain platform, wherein the sensitive data is stored in the local database of the data provider, and the non-sensitive data is stored in the blockchain platform, and the blockchain platform is used to verify the user identity information and / or device identity information of the data provider and / or the data demander; Among them, the sensitive data shared by the data provider to the data demander is the encryption result of the sensitive data, and the encryption result of the sensitive data includes: the encrypted file and hash value of the sensitive data; the hash value is used by the data demander to verify whether the encrypted file of the sensitive data has been tampered with.
2. The method for sharing multimedia data based on blockchain according to claim 1, characterized in that: Before the data provider divides the multimedia data to be shared into sensitive data and non-sensitive data, and shares the sensitive data and / or non-sensitive data with the data demander based on the blockchain platform, the method further includes: The data provider registers its identity on the blockchain platform to generate the data provider's user identity, user public key and user private key; The data provider registers the device on the blockchain platform to generate the data provider's device identity, device public key and device private key.
3. The method for sharing multimedia data based on blockchain according to claim 2, characterized in that: The method further comprises: The data provider receives the encrypted authorization request message sent by the data demander, wherein the encrypted authorization request message is a message obtained by the data demander using the data provider's device public key to encrypt the data demander's device identity, device public key and private key signature; The data provider uses the data provider's device private key to decrypt the encrypted authorization request message, obtains the data requester's device identity and device public key, and authenticates the data requester through the blockchain platform; When the blockchain platform returns an authenticated identity authentication result, the data provider sends its own device public key and device private key to the data demander, so that the data demander can access the local device of the data provider based on the device public key and device private key of the data provider.
4. The method for sharing multimedia data based on blockchain according to claim 1, characterized in that: The data provider divides the multimedia data to be shared into sensitive data and non-sensitive data, and shares the sensitive data and / or non-sensitive data with the data demander based on the blockchain platform, including: The data provider divides the multimedia data to be shared into sensitive data and non-sensitive data; The data provider uploads the non-sensitive data to the blockchain platform, and shares the non-sensitive data stored on the blockchain platform with the data demander through the blockchain platform; The data provider stores the sensitive data in the data provider's local database, and records the sensitive data stored in the data demander's local database through the blockchain platform and generates credentials.
5. The method for sharing multimedia data based on blockchain according to claim 4 is characterized in that: The data provider uploads the non-sensitive data to the blockchain platform, and shares the non-sensitive data stored on the blockchain platform with the data demander through the blockchain platform, including: The data provider encrypts non-sensitive data; The data provider uploads the encrypted result of the non-sensitive data to the blockchain platform; The data provider creates a smart contract for sharing non-sensitive data so that the data demander can access the encryption results of the non-sensitive data stored on the blockchain platform based on the smart contract.
6. The method for sharing multimedia data based on blockchain according to claim 5, characterized in that: The smart contract includes at least one of the following information: authorized data object, authorized data scope, authorized data usage, and authorized data time limit.
7. The method for sharing multimedia data based on blockchain according to claim 4, characterized in that: The data provider stores the sensitive data in the data provider's local database, and records the sensitive data stored in the data demander's local database through the blockchain platform and generates credentials, including: The data provider encrypts the sensitive data and generates an identifier and an encryption result of the sensitive data; The data provider queries the user identity and public key of the target data demander from the blockchain platform; The data provider generates a data sharing request message according to the identification and encryption result of the sensitive data and the user identity and user public key of the target data demander; The data provider pushes the data sharing request message to one or more data demanders through the blockchain platform, so that the data demanders who receive the data sharing request message and whose user public keys are included in the data sharing request message can use their user public keys to decrypt the encryption results of the sensitive data; The data provider records the sensitive data stored in its own local database shared by the data demander through the blockchain platform and generates credentials.
8. The method for sharing multimedia data based on blockchain according to claim 7, characterized in that: The encryption result of the sensitive data includes: the encrypted file of the sensitive data and the hash value; the hash value is used by the data demander to verify whether the encrypted file of the sensitive data has been tampered with; The data provider encrypts the sensitive data to generate an identifier and an encryption result of the sensitive data, including: the data provider uses a symmetric encryption algorithm to encrypt the sensitive data to obtain an encrypted file of the sensitive data; the data provider uses a hash algorithm to generate a hash value of the encrypted file; Among them, after the data provider encrypts the sensitive data and generates the identification of the sensitive data and the encryption result, the method also includes: the data provider uploads the identification of the sensitive data and the hash value of the encrypted file to the blockchain platform.
9. The method for sharing multimedia data based on blockchain according to any one of claims 1 to 8, characterized in that: The non-sensitive data is unstructured data, and the sensitive data is structured data.
10. A multimedia data sharing method based on blockchain, characterized in that: include: The data demander accesses the sensitive data and / or non-sensitive data shared by the data provider based on the blockchain platform, wherein the sensitive data is stored in the local database of the data provider, and the non-sensitive data is stored in the blockchain platform, and the blockchain platform is used to verify the user identity information and / or device identity information of the data provider and / or the data demander; Among them, the sensitive data shared by the data provider to the data demander is the encryption result of the sensitive data, and the encryption result of the sensitive data includes: the encrypted file and hash value of the sensitive data; the hash value is used by the data demander to verify whether the encrypted file of the sensitive data has been tampered with.
11. The method for sharing multimedia data based on blockchain according to claim 10, characterized in that: Before the data demander accesses the sensitive data and / or non-sensitive data shared by the data provider based on the blockchain platform, the method further includes: The data demander registers his / her identity on the blockchain platform to generate the data demander's user identity, user public key and user private key; The data demander registers the device on the blockchain platform to generate the data demander's device identity, device public key and device private key.
12. The method for sharing multimedia data based on blockchain according to claim 11, characterized in that: Before the data demander accesses the sensitive data and / or non-sensitive data shared by the data provider based on the blockchain platform, the method further includes: The data demander uses the data provider's device public key to encrypt the data demander's device identity, device public key and private key signature to obtain an encrypted authorization request message; The data demander sends the encrypted authorization request message to the data provider, so that the data provider uses the data provider's device private key to decrypt the encrypted authorization request message, obtains the data demander's device identity and device public key, authenticates the data demander through the blockchain platform, and when the blockchain platform returns an authentication result of passing the authentication, sends its own device public key and device private key to the data demander; The data demander accesses the local device of the data provider based on the device public key and the device private key of the data provider.
13. The method for sharing multimedia data based on blockchain according to claim 10, characterized in that: Data demanders access sensitive data and / or non-sensitive data shared by data providers based on the blockchain platform, including: The data demander accesses the non-sensitive data uploaded to the blockchain platform by the data provider through the blockchain platform; The data demander obtains the sensitive data stored in the local database of the data provider through the blockchain platform.
14. The method for sharing multimedia data based on blockchain according to claim 13, characterized in that: The data demander accesses the non-sensitive data uploaded to the blockchain platform by the data provider through the blockchain platform, including: The data demander accesses the encryption result of the non-sensitive data stored on the blockchain platform based on the smart contract stored by the data provider on the blockchain platform, wherein the smart contract is created when the data provider encrypts the non-sensitive data and uploads the encryption result of the non-sensitive data to the blockchain platform.
15. The method for sharing multimedia data based on blockchain according to claim 13, characterized in that: The data demander obtains the sensitive data stored in the local database of the data provider through the blockchain platform, including: The data demander receives a data sharing request message from the data provider through the blockchain platform, wherein the data sharing request message is generated by the data provider according to the identification and encryption result of the sensitive data and the user identity and user public key of the target data demander queried through the blockchain platform; The data demander determines whether the data sharing request message contains its own user public key; If so, the data demander uses its own user public key to decrypt the encryption result of the sensitive data.
16. The method for sharing multimedia data based on blockchain according to claim 15, characterized in that: The encryption result of the sensitive data includes: an encrypted file obtained by encrypting the sensitive data by the data provider using a symmetric encryption algorithm and a hash value of the encrypted file generated by the data provider using a hash algorithm; Among them, before the data demander uses its own user public key to decrypt the encryption result of the sensitive data, the method also includes: the data demander queries the corresponding hash value from the blockchain platform according to the identification of the sensitive data; and verifies whether the encrypted file of the sensitive data has been tampered with based on the queried hash value.
17. The method for sharing multimedia data based on blockchain according to any one of claims 10 to 16, characterized in that: The non-sensitive data is unstructured data, and the sensitive data is structured data.
18. A multimedia data sharing system based on blockchain, characterized in that: include: Blockchain platforms, data providers and data demanders; The data provider divides the multimedia data to be shared into sensitive data and non-sensitive data, and shares the sensitive data and / or non-sensitive data with the data demander based on the blockchain platform; the data demander is used to access the sensitive data and / or non-sensitive data shared by the data provider based on the blockchain platform; The sensitive data is stored in a local database of the data provider, and the non-sensitive data is stored in the blockchain platform. The blockchain platform is used to verify the user identity information and / or device identity information of the data provider and / or the data demander; Among them, the sensitive data shared by the data provider to the data demander is the encryption result of the sensitive data, and the encryption result of the sensitive data includes: the encrypted file and hash value of the sensitive data; the hash value is used by the data demander to verify whether the encrypted file of the sensitive data has been tampered with.
19. A data sharing device, characterized in that: include: A data sharing module, used to divide the multimedia data to be shared into sensitive data and non-sensitive data, and share the sensitive data and / or non-sensitive data with the data demander based on the blockchain platform, wherein the sensitive data is stored in the local database of the data provider, and the non-sensitive data is stored in the blockchain platform, and the blockchain platform is used to verify the user identity information and / or device identity information of the data provider and / or the data demander; Among them, the sensitive data shared by the data provider to the data demander is the encryption result of the sensitive data, and the encryption result of the sensitive data includes: the encrypted file and hash value of the sensitive data; the hash value is used by the data demander to verify whether the encrypted file of the sensitive data has been tampered with.
20. A user equipment, characterized in that: include: A data access module, used to access sensitive data and / or non-sensitive data shared by a data provider based on a blockchain platform, wherein the sensitive data is stored in a local database of the data provider, and the non-sensitive data is stored in the blockchain platform, and the blockchain platform is used to verify the user identity information and / or device identity information of the data provider and / or the data demander; Among them, the sensitive data shared by the data provider to the data demander is the encryption result of the sensitive data, and the encryption result of the sensitive data includes: the encrypted file and hash value of the sensitive data; the hash value is used by the data demander to verify whether the encrypted file of the sensitive data has been tampered with.
21. An electronic device, characterized in that: include: processor; as well as A memory, configured to store executable instructions of the processor; The processor is configured to execute the blockchain-based multimedia data sharing method described in any one of claims 1 to 17 by executing the executable instructions.
22. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the blockchain-based multimedia data sharing method described in any one of claims 1 to 17 is implemented.
