Computing power sharing method, device, system, electronic device and storage medium

By managing the key information of computing power instances on the blockchain and performing encryption operations in a trusted execution environment, the problem of algorithms and data leakage in data sharing is solved, and the confidentiality of data sharing and the enthusiasm of cooperation among enterprises is improved. .

CN114021162BActive Publication Date: 2024-12-03CHINA UNITED NETWORK COMM GRP CO LTD
View PDF 7 Cites 0 Cited by

Patent Information

Application Number
CN202111250789.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-10-26
Publication Date
2024-12-03
Estimated Expiration
2041-10-26

AI Technical Summary

Technical Problem

During the data sharing process, algorithm models and related data may be leaked, affecting the enthusiasm for data sharing among enterprises.

Method used

By generating and managing the key information of computing power instances on the blockchain, ensure that algorithms and data are encrypted in a trusted execution environment to avoid leakage. Data encryption and decryption are used between the algorithm terminal and the computing power instance server to ensure data confidentiality.

Benefits of technology

It realizes confidentiality in the process of algorithm and data sharing, improves the enthusiasm for data sharing among enterprises, and prevents the leakage of algorithms or data.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114021162B_ABST
    Figure CN114021162B_ABST
Patent Text Reader

Abstract

The present application provides a computing power sharing method, device, system, electronic device and storage medium, which relates to the field of data sharing technology and can provide confidentiality of algorithms and data through a secure computing power computing environment. The method includes: the algorithm terminal obtains a computing power instance list from a computing power instance scheduling server; determines a target computing power instance according to service information corresponding to multiple computing power instances; obtains key information corresponding to the target computing power instance from the blockchain according to the target identity; sends a computing power request to the target computing power instance; the computing power request includes computing power request data encrypted according to a first symmetric key; the computing power instance server receives the computing power request; the computing power request data includes a preset algorithm and a shared data link; if the fourth hash value determined according to the computing power request data is consistent with the third hash value, the shared data is obtained from the data server through a shared data request; and the target operation result is determined according to the preset algorithm and the shared data.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of data sharing technology, and in particular to a computing power sharing method, device, system, electronic device and storage medium. Background Art

[0002] With the development of digital technology, data has become a new type of production factor, providing data support for the healthy operation of all industries. In the analysis of operational strategies based on big data technology, relevant enterprises can include data providers and algorithm providers. Algorithm providers can provide algorithm models for the enterprise's operational strategy analysis, and data providers can provide the required raw data for the algorithm model.

[0003] However, since the algorithm model and related data may belong to different companies, when using the algorithm model and related data to determine the corresponding calculation results (such as operation strategies, etc.), the algorithm provider is required to provide the algorithm model to the data provider, or the data provider is required to provide the data to the algorithm provider, which may lead to the leakage of relevant algorithms or data, thereby affecting the enthusiasm of relevant companies to share data. Summary of the invention

[0004] The present application provides a computing power sharing method, device, system, electronic device and storage medium, which can provide confidentiality of algorithms and data through a secure computing power operation environment, thereby increasing the enthusiasm of related enterprises to share data.

[0005] In order to achieve the above objectives, this application adopts the following technical solutions:

[0006] In a first aspect, a computing power sharing method is provided, including: an algorithm terminal obtains a computing power instance list from a computing power instance scheduling server; the computing power instance list includes identity identifiers and service information corresponding to multiple computing power instances; the algorithm terminal determines a target computing power instance and a target identity identifier of the target computing power instance based on the service information corresponding to the multiple computing power instances; the algorithm terminal obtains key information corresponding to the target computing power instance from a blockchain based on the target identity identifier; the key information includes an encrypted public key; the algorithm terminal sends a computing power request to the target computing power instance; the computing power request includes computing power request data encrypted according to a first symmetric key, a third hash value of the computing power request data, and a first symmetric key encrypted according to the encrypted public key.

[0007] Optionally, after the algorithm terminal determines the target computing power instance and the target identity of the target computing power instance according to the service information corresponding to the multiple computing power instances, the method further includes: the algorithm terminal obtains authentication information corresponding to the target computing power instance from the blockchain according to the target identity;

[0008] If the authentication information includes a trusted execution identifier, the algorithm terminal determines that the target computing power instance is created in a trusted execution environment.

[0009] Optionally, the above-mentioned key information also includes a first hash value of the encrypted public key; the above-mentioned method also includes: if the second hash value determined according to the encrypted public key obtained from the blockchain is consistent with the first hash value, the algorithm terminal determines that the encrypted public key is complete.

[0010] Optionally, the above method also includes: the algorithm terminal receives the target calculation result sent by the target computing power instance.

[0011] In a second aspect, a computing power sharing method is provided, including: a computing power instance server receives a computing power request sent by an algorithm terminal; the computing power request includes computing power request data encrypted according to a first symmetric key, a third hash value of the computing power request data, and the first symmetric key encrypted according to an encrypted public key, and the computing power request data includes a preset algorithm and a shared data link; the computing power instance server decrypts the computing power request according to the encrypted private key to obtain the computing power request data; if the fourth hash value determined according to the decrypted computing power request data is consistent with the third hash value, the computing power instance server obtains the shared data from the data server through a shared data request; the computing power instance server determines the target calculation result according to the preset algorithm and the shared data.

[0012] Optionally, the computing power instance server decrypts the computing power request according to the encrypted private key to obtain computing power request data, including: the computing power instance server decrypts the encrypted first symmetric key according to the encrypted private key to obtain the first symmetric key; the computing power instance server decrypts the encrypted computing power request data according to the first symmetric key to obtain the computing power request data.

[0013] Optionally, the above-mentioned shared data request includes a shared data link and an encrypted public key; the above-mentioned computing power instance server obtains shared data from the data server through the shared data request, including: the computing power instance server sends a shared data request to the data server; the computing power instance server receives a shared data response returned by the data server; the shared data response includes shared data encrypted according to the second symmetric key and the second symmetric key encrypted according to the encrypted public key; the computing power instance server decrypts the encrypted second symmetric key according to the encrypted private key to obtain the second symmetric key; the computing power instance server decrypts the encrypted shared data according to the second symmetric key to obtain the shared data.

[0014] Optionally, the above method also includes: returning the target operation result to the algorithm terminal.

[0015] According to a third aspect, a computing power sharing device is provided, comprising: an acquisition module for acquiring a computing power instance list from a computing power instance scheduling server; the computing power instance list includes identity identifiers and service information corresponding to multiple computing power instances; a selection module for determining a target computing power instance and a target identity identifier of the target computing power instance based on the service information corresponding to the multiple computing power instances acquired by the acquisition module; a blockchain module for acquiring key information corresponding to the target computing power instance from the blockchain based on the target identity identifier determined by the selection module; the key information includes an encrypted public key; a sending module for sending a computing power request to the target computing power instance determined by the selection module; the computing power request includes computing power request data encrypted according to a first symmetric key, a third hash value of the computing power request data, and a first symmetric key encrypted according to the encrypted public key determined by the blockchain module.

[0016] Optionally, the above-mentioned device also includes: a security verification module; a blockchain module, which is also used to obtain authentication information corresponding to the target computing power instance from the blockchain according to the target identity identifier; when the authentication information includes a trusted execution identifier, the security verification module determines that the target computing power instance is created in a trusted execution environment.

[0017] Optionally, the key information also includes a first hash value of the encrypted public key; the device also includes: a key verification module; when the second hash value determined based on the encrypted public key obtained from the blockchain is consistent with the first hash value, the key verification module determines that the encrypted public key is complete.

[0018] Optionally, the above-mentioned device also includes: a receiving module; a receiving module, used to receive the target calculation result sent by the target computing power instance.

[0019] In a fourth aspect, a computing power sharing device is provided, including: a receiving module, used to receive a computing power request sent by an algorithm terminal; the computing power request includes computing power request data encrypted according to a first symmetric key, a third hash value of the computing power request data, and the first symmetric key encrypted according to an encrypted public key, and the computing power request data includes a preset algorithm and a shared data link; a decryption module, used to decrypt the computing power request received by the receiving module according to the encrypted private key to obtain the computing power request data; when the fourth hash value determined according to the computing power request data decrypted by the decryption module is consistent with the third hash value, the acquisition module obtains the shared data from the data server through a shared data request; a calculation module, used to determine the target calculation result according to the preset algorithm and the shared data.

[0020] Optionally, the decryption module is specifically used to: decrypt the encrypted first symmetric key according to the encryption private key to obtain the first symmetric key; decrypt the encrypted computing power request data according to the first symmetric key to obtain the computing power request data.

[0021] Optionally, the shared data request includes a shared data link and an encrypted public key; the acquisition module includes a sending submodule, a receiving submodule and a decryption submodule; the sending submodule is used to send a shared data request to the data server; the receiving submodule is used to receive a shared data response returned by the data server; the shared data response includes shared data encrypted according to the second symmetric key and the second symmetric key encrypted according to the encrypted public key; the decryption submodule is used to decrypt the encrypted second symmetric key received by the receiving submodule according to the encrypted private key to obtain the second symmetric key; the decryption submodule is also used to decrypt the encrypted shared data according to the second symmetric key to obtain the shared data.

[0022] Optionally, the above-mentioned device also includes a sending module; the sending module is also used to return the target operation result to the algorithm terminal.

[0023] In a fifth aspect, a computing power sharing system is provided, including: a computing power instance server, a computing power instance scheduling server, an algorithm terminal and a data server; the computing power instance server is used to create a computing power instance and generate authentication information and key information corresponding to the computing power instance; the key information includes a signature public key, an encryption public key and a hash value of the encryption public key; the computing power instance server is also used to register the computing power instance to the computing power instance scheduling server; the computing power instance scheduling server is used to manage the service information of the computing power instance; the algorithm terminal is used to call the corresponding target computing power instance to the computing power instance scheduling server according to the service information of the computing power instance, and request computing power from the computing power instance server; the computing power instance server is also used to request shared data from the data server according to the computing power request of the algorithm terminal; the computing power instance server is also used to determine the target calculation result according to the preset algorithm provided by the algorithm terminal and the shared data provided by the data server, and return the target calculation result to the algorithm terminal.

[0024] Optionally, the computing power sharing system also includes a blockchain; the computing power instance server is also used to determine the computing power information consumed by the target computing result and store the computing power information in the blockchain; the computing power information includes computing power consumption, billing information and consumption amount; the algorithm terminal is also used to obtain the computing power information corresponding to the target computing result from the blockchain.

[0025] In a sixth aspect, an electronic device is provided, comprising: a memory, a processor, a bus and a communication interface; the memory is used to store computer execution instructions, and the processor is connected to the memory through a bus; when the electronic device is running, the processor executes the computer execution instructions stored in the memory, so that the electronic device executes the computing power sharing method provided in the first aspect, or the computing power sharing method provided in the second aspect.

[0026] In the seventh aspect, a computer-readable storage medium is provided, the computer-readable storage medium comprising computer execution instructions, which, when executed on a computer, enable the computer to execute the computing power sharing method provided in the first aspect or the computing power sharing method provided in the second aspect.

[0027] The present application provides a computing power sharing method, which is applied to a computing power sharing system, in which an algorithm terminal provides a preset algorithm, a data server provides shared data, and a third-party computing power instance server provides a trusted computing power instance; when the algorithm terminal needs to share data to run a corresponding strategy, the target computing power instance can be called through the computing power instance scheduling server, and the preset algorithm and shared data can be obtained through the computing power instance server, and the target calculation result can be obtained by performing calculations; since the computing power instance server in the present application is provided by a trusted third party, there is no situation in which the provider of shared data obtains the preset algorithm, or the provider of the preset algorithm obtains the shared data, resulting in the leakage of related algorithms or data, thereby ensuring the confidentiality of related algorithms and data. BRIEF DESCRIPTION OF THE DRAWINGS

[0028] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0029] Figure 1 A schematic diagram of the architecture of a computing power sharing system provided in an embodiment of the present application;

[0030] Figure 2 One of the flowcharts of a computing power sharing method provided in an embodiment of the present application;

[0031] Figure 3 A second flowchart of a computing power sharing method provided in an embodiment of the present application;

[0032] Figure 4 A third flowchart of a computing power sharing method provided in an embodiment of the present application;

[0033] Figure 5 A fourth flowchart of a computing power sharing method provided in an embodiment of the present application;

[0034] Figure 6 A fifth flowchart of a computing power sharing method provided in an embodiment of the present application;

[0035] Figure 7 A sixth flowchart of a computing power sharing method provided in an embodiment of the present application;

[0036] Figure 8 A flowchart of a computing power sharing method provided in an embodiment of the present application is shown in FIG7;

[0037] Fig. 9 A schematic diagram of the structure of a computing power sharing device provided in an embodiment of the present application;

[0038] Fig.10 A schematic diagram of the structure of another computing power sharing device provided in an embodiment of the present application;

[0039] Fig.11 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0040] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0041] It should be noted that, in the embodiments of the present application, words such as "exemplary" or "for example" are used to indicate examples, illustrations or descriptions. Any embodiment or design described as "exemplary" or "for example" in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a specific way.

[0042] In order to facilitate the clear description of the technical solutions of the embodiments of the present application, in the embodiments of the present application, the words "first", "second", etc. are used to distinguish the same items or similar items with basically the same functions and effects. Those skilled in the art can understand that the words "first", "second", etc. are not limiting the quantity and execution order.

[0043] With the development of big data technology, there will be more and more cases where operational strategies and other results are calculated based on big data and various algorithm models. Since the algorithm models and various types of data involved may need to be provided by different service providers, related algorithms or data leakage may occur in the process of sharing algorithm models or various types of data, which will affect the enthusiasm of relevant service providers to share data.

[0044] In response to the above problems, Figure 1 As shown, an embodiment of the present application provides a computing power sharing system, including: a computing power instance server 01, a computing power instance scheduling server 02, an algorithm terminal 03 and a data server 04.

[0045] Among them, the computing power instance server 01 is used to create a computing power instance and generate authentication information and key information corresponding to the computing power instance; the key information includes a signature public key, an encryption public key, and a hash value of the encryption public key. Of course, the key information can also include a signature private key and an encryption private key.

[0046] The computing power instance server 01 is also used to register the computing power instance with the computing power instance scheduling server 02.

[0047] Specifically, the computing power instance server 01 has a trusted execution environment (TEE), which can be a physical host or a cloud server. The creation of a computing power instance can be initiated autonomously by the computing power instance server 01, or it can be created by the computing power instance scheduling platform 02 based on the request of the algorithm terminal 03. For example, when a user needs shared data in the data server 04, he can apply for an available computing power instance from the computing power instance scheduling platform 02. When there is no available computing power instance in the computing power instance scheduling platform 02, a computing power instance creation request can be sent to the computing power instance server 01, and the computing power instance server 01 will create the corresponding computing power instance and return the identity of the computing power instance to the algorithm terminal 03 through the computing power instance scheduling server 02, so that the algorithm terminal 03 can use the newly created computing power instance to perform corresponding operations.

[0048] When creating a computing instance, the computing instance server 01 can generate corresponding authentication information for the computing instance to indicate that the computing instance is created in a TEE environment, which can ensure the confidentiality of related algorithms and data. At the same time, the computing instance server 01 can also generate corresponding key information for the computing instance. The key information may include a first asymmetric key and a second asymmetric key. The first asymmetric key is used to sign the data transmitted by the computing instance server 01, including a signature private key and a signature public key; the second asymmetric key is used to encrypt the data transmitted by the computing instance server 01, including an encryption private key and an encryption public key. Of course, the key information may also include a hash value of the encryption public key.

[0049] In some possible implementations, the authentication information may include a trusted execution identifier, and when the computing instance is created in a TEE environment, the trusted execution identifier may be added to the authentication information. Of course, the authentication information may also include the hash value of the signature public key and the hash value of the encryption public key.

[0050] It should be noted that the above-mentioned computing power instance is actually a trusted execution environment instance created by the computing power instance server 01, which is used to provide an isolated operating environment for the corresponding algorithm and data execution.

[0051] When creating a computing instance, the computing instance server 01 can mark the computing instance with an identity and its corresponding service information, such as status information, price information, and performance information (such as space size). After the computing instance is created, the computing instance server 01 can link the identity, authentication information, and key information corresponding to the computing instance to the blockchain, which will be saved by the blockchain. At the same time, the computing instance server 01 also needs to register the identity and server information corresponding to the computing instance with the computing instance scheduling server 02, so that the computing instance scheduling server 02 can determine the computing instance list according to the identity of the computing instance for use by the algorithm terminal 03.

[0052] The registration process of the computing power instance can refer to the registration process commonly used in the field, which will not be repeated here.

[0053] The computing power instance scheduling server 02 is used to manage the service information of the computing power instances.

[0054] Specifically, the computing instance scheduling server 02 stores a computing instance list, which includes the identity identifiers, service information, etc. of all registered computing instances. The computing instance scheduling server 02 can update the status information in the corresponding computing instance in real time according to the scheduling status of the computing instance, such as updating it to available or unavailable.

[0055] The algorithm terminal 03 is used to call the corresponding target computing instance from the computing instance scheduling server 02 according to the service information of the computing instance, and request computing power from the computing instance server 01.

[0056] The computing power instance server 01 is also used to request shared data from the data server 04 according to the computing power request of the algorithm terminal 03.

[0057] The computing power instance server 01 is also used to determine the target calculation result according to the preset algorithm provided by the algorithm terminal 03 and the shared data provided by the data server 04, and return the target calculation result to the algorithm terminal 03.

[0058] Specifically, after the algorithm terminal 03 determines the target computing instance according to the service information of the computing instance, the computing request can be sent to the computing instance server 01, so that the target computing instance in the computing instance server 01 executes the computing request. Here, the computing request carries a shared data link and a preset algorithm. After receiving the computing request, the computing instance server 01 can obtain the corresponding shared data from the data server 04 according to the shared data link, and then determine the target operation result according to the preset algorithm and the shared data, and return the target operation result to the algorithm terminal 03.

[0059] Optionally, the computing power sharing system also includes blockchain 05.

[0060] The computing power instance server 01 is also used to determine the computing power information consumed by the computing target computing result and store the computing power information in the blockchain 05; the computing power information includes computing power consumption, billing information and consumption amount.

[0061] The algorithm terminal 03 is also used to obtain the computing power information corresponding to the target operation result from the blockchain 05.

[0062] Specifically, after the computing power instance server determines the target computing result, it can determine the computing power (resource consumption) consumed when computing the target computing result, and determine the consumption amount in combination with the billing information corresponding to the target computing power instance. For example, the billing information is used to indicate the unit price of the consumed computing power, and the product of the consumed computing power and the billing information is the consumption amount.

[0063] After the computing power instance server 01 determines the consumption amount, it can upload relevant computing power consumption and other information to the blockchain 05 for the algorithm terminal 03 to determine.

[0064] It should be noted that in the computing power sharing system provided in this application, the request messages sent between various devices can be signed by a signature public key and encrypted by an encryption public key as needed to ensure the confidentiality and integrity of the relevant data. The specific process can refer to the computing power sharing method provided in this application.

[0065] Based on the above computing power sharing system, the present application provides a computing power sharing system, such as Figure 2 As shown, including:

[0066] S11. The algorithm terminal obtains a list of computing instances from the computing instance scheduling server.

[0067] The computing power instance list includes the identity identifiers and service information corresponding to multiple computing power instances.

[0068] As a possible implementation method, since the computing power instance scheduling server is used to manage the computing power instances, when the algorithm terminal needs a computing power instance, the computing power instance list can be obtained from the computing power instance scheduling server.

[0069] Exemplarily, the computing power instance list is shown in Table 1 below, including the identity of the computing power instance, and service information, such as status information, billing information, etc.

[0070] Table 1

[0071] Compute instance identity Status Information Billing Information Available computing power … 000001 Available a A … 000002 Available a B … 000003 Unavailable b C … … … … … …

[0072] The identity of the computing instance can be composed of numbers and / or uppercase and lowercase letters, and the number of digits can be unlimited, such as 6 digits or 8 digits. The status information is used to indicate whether the corresponding computing instance is available. For example, when the computing instance is called by other algorithm terminals and the available computing power is zero, its status information can be unavailable; if the computing instance is not called by other algorithm terminals, or is called by other algorithm terminals, but the available computing power is not zero, the status information of the computing instance is available. The billing information can be set by the creator of the computing instance, such as the computing instance server, or the algorithm terminal, and the available computing power can be determined based on the remaining computing power of the computing instance.

[0073] S12. The algorithm terminal determines the target computing power instance and the target identity of the target computing power instance according to the service information corresponding to the multiple computing power instances.

[0074] As a possible implementation method, as shown in Table 1 above, the computing power instance list includes the corresponding service information, so the algorithm terminal can determine the appropriate target computing power instance based on the status information, billing information, available computing power and other information of these computing power instances.

[0075] For example, when requesting computing power, the algorithm terminal can estimate the required computing power. At this time, the available computing power instances, such as the first computing power instance and the second computing power instance, can be determined based on the available computing power of the computing power instances in the computing power instance list, and then the target computing power instance can be determined based on the billing information of these computing power instances. If it is determined that the first computing power instance has the lowest unit price based on the billing information of these computing power instances, the first computing power instance can be determined as the target computing power instance. At this time, the identity of the first computing power instance can be determined based on the computing power instance list, that is, the identity of the target computing power instance can be determined.

[0076] S13. The algorithm terminal obtains the key information corresponding to the target computing power instance from the blockchain according to the target identity.

[0077] Among them, the key information includes the encrypted public key.

[0078] As a possible implementation method, the key information of the computing power instance in the present application can be stored in the blockchain. After the algorithm terminal determines the target computing power instance, the corresponding key information can be obtained from the blockchain according to the identity of the target computing power instance, such as the encrypted public key for data transmission.

[0079] It should be noted that the above key information is generated by the computing instance server when creating the computing instance and uploaded to the blockchain.

[0080] S14. The algorithm terminal sends a computing power request to the target computing power instance.

[0081] The computing power request includes computing power request data encrypted according to the first symmetric key, a third hash value of the computing power request data, and the first symmetric key encrypted according to the encryption public key.

[0082] As a possible implementation method, sending a computing power request to the target computing power instance here actually sends the computing power request to the computing power instance server, and the computing power request is executed by the target computing power instance in the computing power instance server.

[0083] The computing power request includes computing power request data, and the computing power request data includes information such as a preset algorithm, a shared data link, and a hash algorithm. After determining the computing power request data, the algorithm terminal can use the first symmetric key to encrypt the computing power request data, and use the encrypted public key obtained from the blockchain to encrypt the first symmetric key, and calculate the hash value of the computing power request data according to the above-mentioned hash algorithm. The algorithm terminal can add the encrypted computing power request data, the encrypted first symmetric key, and the hash value of the computing power request data to the computing power request to use the target computing power instance to calculate the related results. Of course, since the target computing power instance is used here for calculation results, the computing power request also includes the identity of the target computing power instance.

[0084] The above-mentioned first symmetric key is generated by the algorithm terminal when sending a computing power request, and is used to encrypt the computing power request data. Different computing power requests can have different first symmetric keys; the hash value of the computing power request data is used to verify the integrity of the relevant request.

[0085] S15. The computing power instance server receives the computing power request sent by the algorithm terminal.

[0086] The computing power request includes computing power request data encrypted according to the first symmetric key, a third hash value of the computing power request data, and the first symmetric key encrypted according to the encrypted public key. The computing power request data includes a preset algorithm and a shared data link.

[0087] S16. The computing power instance server decrypts the computing power request according to the encrypted private key to obtain the computing power request data.

[0088] As a possible implementation method, since the asymmetric key in the key information is generated by the computing power instance server, after the computing power instance server receives the computing power request, it can decrypt the computing power request according to the encrypted private key to obtain the computing power request data.

[0089] S17. If the fourth hash value determined based on the decrypted computing power request data is consistent with the third hash value, the computing power instance server obtains the shared data from the data server through a shared data request.

[0090] As a possible implementation method, in order to prevent the computing power request from being tampered with by a third party, the integrity of the computing power request data can be verified based on the hash value corresponding to the computing power request data.

[0091] For example, the computing power request includes a third hash value of the computing power request data, and the computing power request data includes a hash algorithm for calculating the third hash value. Therefore, after the computing power instance server decrypts the computing power request, it can calculate the fourth hash value of the computing power request data according to the hash algorithm.

[0092] If the third hash value and the fourth hash value are the same, it can be determined that the computing power request is complete. At this time, the corresponding shared data can be requested from the data server according to the shared data link in the computing power request data.

[0093] S18. The computing instance server determines the target computing result based on the preset algorithm and shared data.

[0094] As a possible implementation method, after the computing power instance server obtains the shared data from the data server, it can perform calculations in combination with the preset algorithm provided by the algorithm terminal to determine the target calculation result.

[0095] It should be noted that the preset algorithm here can be a machine learning model or other algorithm models, and there is no limitation here.

[0096] In some possible embodiments, combined with Figure 2 ,like Figure 3 As shown, after step S12, steps S21-S22 are also included.

[0097] S21. The algorithm terminal obtains the authentication information corresponding to the target computing power instance from the blockchain according to the target identity identifier.

[0098] S22. If the authentication information includes a trusted execution identifier, the algorithm terminal determines that the target computing power instance is created in a trusted execution environment.

[0099] As a possible implementation method, since the preset algorithm provided by the algorithm terminal and the shared data provided by the data server need to be provided to the computing power instance server, and the computing power instance server determines the target calculation result, the algorithm terminal is required to determine the security performance of the computing power instance server to avoid algorithm leakage.

[0100] Here, the security performance of the relevant computing instance can be determined through the authentication information of the computing instance uploaded to the blockchain by the computing instance server. If the authentication information of the target computing instance includes a trusted execution identifier, it is determined that the security performance of the target computing instance is good, that is, the target computing instance is created by a secure operating environment (trusted execution environment), which can avoid the leakage of relevant information.

[0101] The above-mentioned trusted execution identifier may refer to an identifier in the authentication information, such as the first information; or may refer to at least one of a plurality of identifiers, such as at least one of the first information, the second information and the third information.

[0102] In some possible embodiments, the key information also includes a first hash value of the encrypted public key. Figure 3 ,like Figure 4 As shown, after step S13, step S23 is also included.

[0103] S23. If the second hash value determined based on the encrypted public key obtained from the blockchain is consistent with the first hash value, the algorithm terminal determines that the encrypted public key is complete.

[0104] As a possible implementation method, after the algorithm terminal obtains the key information from the blockchain, the integrity of the relevant key can be verified by the first hash value of the encrypted public key in the key information. For example, the second hash value of the encrypted public key obtained from the blockchain is calculated. If the second hash value is the same as the first hash value of the encrypted public key obtained from the blockchain, it can be determined that the encrypted public key has not been tampered with, that is, the encrypted public key is complete.

[0105] In some possible embodiments, combined with Figure 4 ,like Figure 5 As shown, step S16 includes S161-S162.

[0106] S161. The computing power instance server decrypts the encrypted first symmetric key according to the encrypted private key to obtain the first symmetric key.

[0107] S162. The computing power instance server decrypts the encrypted computing power request data according to the first symmetric key to obtain the computing power request data.

[0108] As a possible implementation method, since the computing power request data is encrypted by the first symmetric key, and the first symmetric key is encrypted by the encrypted public key, the encrypted private key can be used here to decrypt the encrypted first symmetric key to obtain the first symmetric key.

[0109] Furthermore, the encrypted computing power request data is decrypted according to the first symmetric key to obtain the computing power request data.

[0110] In some possible embodiments, the shared data request includes a shared data link and an encrypted public key. Figure 5 ,like Figure 6 As shown, step S17 includes S171-S174.

[0111] S171. The computing power instance server sends a shared data request to the data server.

[0112] S172. The computing power instance server receives a shared data response returned by the data server.

[0113] The shared data response includes the shared data encrypted according to the second symmetric key and the second symmetric key encrypted according to the encryption public key.

[0114] As a possible implementation method, the computing power instance server can send a shared data request to the data server. The shared data request includes the identity of the target computing power instance, the encrypted public key and the shared data link. After the data server receives the shared data request, it can return a shared data response to the computing power instance server according to the shared data link.

[0115] Furthermore, the shared data response includes the shared data encrypted by the second symmetric key and the second symmetric key encrypted by the encrypted public key, and the second symmetric key is generated by the data server.

[0116] S173. The computing power instance server decrypts the encrypted second symmetric key according to the encrypted private key to obtain the second symmetric key.

[0117] S174. The computing power instance server decrypts the encrypted shared data according to the second symmetric key to obtain the shared data.

[0118] As a possible implementation method, the computing power instance server can use the encrypted private key to decrypt the encrypted second symmetric key to obtain the second symmetric key, and then decrypt the encrypted shared data according to the second symmetric key to obtain the shared data.

[0119] In some possible embodiments, combined with Figure 6 ,like Figure 7 As shown, after step S18, steps S30-S31 are also included.

[0120] S30. The computing power instance server returns the target calculation result to the algorithm terminal.

[0121] S31. The algorithm terminal receives the target calculation result sent by the target computing power instance.

[0122] As a possible implementation method, the computing power instance server obtains a preset algorithm and shared data, calculates the shared data according to the preset algorithm, and after obtaining a target calculation result, the target calculation result can be returned to the algorithm terminal.

[0123] It should be noted that, since the key information generated by the computing instance server in this application also includes a signature public key and a signature private key, when transmitting data between the algorithm terminal, the computing instance server and the data server, the signature public key can also be used to sign the transmitted data, and then the encryption public key can be used to encrypt the signed data. The key information can be obtained from the blockchain by the algorithm terminal and the data server, or provided by the computing instance server.

[0124] After receiving the corresponding encrypted data, the computing power instance server can use the encryption private key to decrypt it and use the signature private key to decrypt the signed data to determine the corresponding data.

[0125] In some possible embodiments, before the algorithm terminal and the computing power instance server execute the above computing power sharing method, the computing power instance server may generate a computing power instance, register the computing power instance, and upload the authentication information and key information of the computing power instance to the chain. Based on the above computing power sharing system, the computing power sharing method may be as follows: Figure 8 shown.

[0126] S41. The computing instance server creates a computing instance and generates authentication information and key information corresponding to the computing instance.

[0127] Specifically, the creation of a computing instance is actually the allocation of computing resources to a computing instance server. It can be created autonomously by the computing instance server, or it can be created based on a request from an algorithm terminal on a computing instance scheduling platform. The created computing instance also includes corresponding service information.

[0128] After creating a computing instance, you can generate corresponding authentication information and key information for the computing instance.

[0129] It should be noted that the status information of the initially created computing instance is set to available, and different computing instances can generate authentication information and key information respectively, that is, different computing instances have different authentication information and key information.

[0130] S42. The computing instance server uploads the computing instance's identity, authentication information, and key information to the chain.

[0131] S43. The computing instance server registers with the computing instance scheduling server according to the computing instance's identity and service information.

[0132] Specifically, the computing power instance server can upload the relevant information of the computing power instance to the blockchain to ensure the security of the relevant information of the relevant computing power instance and complete the verification of the computing power instance.

[0133] At the same time, the computing instance server registers the computing instance with the computing instance scheduling server so that the algorithm terminal can call the registered computing instance.

[0134] S44. The algorithm terminal sends a computing power instance list request to the computing power instance scheduling server to obtain the computing power instance list.

[0135] S45. The algorithm terminal determines the target computing power instance and its corresponding target identity according to the service information corresponding to the computing power instance.

[0136] S46. The algorithm terminal obtains the authentication information and key information of the target computing power instance from the blockchain according to the target identity identifier.

[0137] S47. The algorithm terminal verifies the security of the target computing power instance.

[0138] Specifically, the algorithm terminal can obtain a list of computing instances from the computing instance server, and then determine the target computing instance based on actual needs and the server information of each computing instance in the computing instance list, and the target computing instance provides computing services.

[0139] After the algorithm terminal determines the target computing power instance, it can obtain the corresponding authentication information and key information from the blockchain based on the identity of the target computing power instance.

[0140] The security verification of the target computing instance is completed based on the authentication information to determine whether the target computing instance is created by a trusted execution environment. The computing request data of the algorithm terminal can be encrypted based on the key information.

[0141] The specific process of the above S44-S47 can refer to the above steps S12-S13, S21-S22, which will not be repeated here.

[0142] S48. The algorithm terminal determines the computing power request.

[0143] Specifically, the computing power request includes computing power request data, and the computing power request data includes a preset algorithm, a shared data link, a hash algorithm, etc. When the computing power request data is added to the computing power request, the computing power request data can be encrypted using a first symmetric key.

[0144] Furthermore, the computing power request also includes a hash value of the computing power request data and a first symmetric key. The hash value can be calculated from the computing power request data according to the above-mentioned hash algorithm. When the first symmetric key is added to the computing power request, the first symmetric key can be encrypted using the encrypted public key, that is, the computing power request includes the encrypted computing power request data, the encrypted first symmetric key and the hash value of the computing power request data.

[0145] S49. The algorithm terminal sends a computing power request to the computing power instance server.

[0146] S410. The computing power instance server verifies the integrity of the computing power request and determines a preset algorithm and a shared data link according to the computing power request.

[0147] Specifically, since the encryption key is determined by the computing power instance server, the encrypted first symmetric key can be decrypted according to the encryption private key to obtain the first symmetric key, and then the encrypted computing power request data can be decrypted using the first symmetric key to obtain the computing power request data.

[0148] After obtaining the computing power request data, the hash value of the computing power request data can be determined according to the hash algorithm carried in the computing power request data. If the hash value is consistent with the hash value carried in the computing power request, it is determined that the computing power request is complete. At this time, the corresponding shared data can be requested from the data server according to the shared data link in the computing power request data.

[0149] It should be noted that when the algorithm terminal calls the target computing instance through the computing instance server, the computing instance server can also send a status update request to the computing instance scheduling server, instructing the computing instance scheduling server to update the status information of the target computing instance to unavailable.

[0150] S411. The computing power instance server sends a shared data request to the data server according to the shared data link.

[0151] S412: The data server encrypts the shared data request.

[0152] S413. The data server returns the encrypted shared data to the computing power instance server.

[0153] Specifically, the shared data request carries the identity of the target computing instance, the encryption public key and the shared data link. After the data server receives the shared data request, it can obtain the corresponding shared data according to the shared data link, and then encrypt the shared data using the second symmetric key, and encrypt the second symmetric key using the encryption public key, and add the encrypted shared data and the encrypted second symmetric key to the shared data response, which returns the shared data to the computing instance server.

[0154] S414. The computing instance server obtains the target computing result according to the preset algorithm and shared data computing.

[0155] Specifically, after receiving the shared data response, the computing power instance server can decrypt the encrypted second symmetric key according to the encryption private key to obtain the second symmetric key, and then decrypt the encrypted shared data according to the second symmetric key to obtain the shared data.

[0156] The target calculation result can be obtained based on the preset algorithm and shared data.

[0157] S415. The computing power instance server returns the target calculation result to the algorithm terminal.

[0158] Specifically, after the computing power instance server determines the target operation result, it can use the first symmetric key obtained in step S410 to encrypt the target operation result; at the same time, calculate the hash value of the target operation result according to the hash algorithm obtained in S410, and use the signature private key to sign the hash value of the target operation result.

[0159] At this time, the computing power instance server can add the hash value of the encrypted target operation result and the signed target operation result to the operation response, and return it to the algorithm terminal through the operation response.

[0160] S416: The algorithm terminal verifies the integrity of the target operation result.

[0161] Specifically, after receiving the operation response, the algorithm terminal can use the first symmetric key to decrypt the encrypted target operation result to obtain the target operation result, and calculate the hash value of the target operation result according to the above hash algorithm.

[0162] At the same time, the algorithm terminal can use the signature public key to decrypt the hash value of the signed target operation result to obtain the hash value of the target operation result carried by the operation response.

[0163] If the hash value of the target operation result calculated in this step is the same as the hash value of the target operation result carried by the operation response, then the target operation result is determined to be complete.

[0164] S417. The computing power instance server sends a status update request to the computing power instance scheduling server.

[0165] Specifically, after the target computing instance obtains the target computing result, the computing instance server can release the computing power of the occupied target computing instance. At the same time, a status update request is sent to the computing instance scheduling server, instructing the computing instance scheduling server to update the status information of the target computing instance to available.

[0166] S418. The computing power instance server will determine the computing power consumption, billing information and amount information corresponding to the target calculation result and upload it to the blockchain.

[0167] S419. The algorithm terminal queries the computing power consumption, billing information and amount information corresponding to the corresponding target operation result through the blockchain.

[0168] Specifically, after the computing power instance server returns the target operation result to the algorithm terminal, it can also upload the relevant computing power consumption, billing information, and amount information to the blockchain, and the algorithm terminal obtains the corresponding computing power consumption, billing information, and amount information through the blockchain. Here, the blockchain is used to store relevant computing power consumption, billing information, and amount information, providing a data storage method for query only, avoiding the possibility of data tampering, and providing a reliable data storage method for the algorithm terminal and computing power instance server.

[0169] The present application provides a computing power sharing method, which is applied to a computing power sharing system, in which an algorithm terminal provides a preset algorithm, a data server provides shared data, and a third-party computing power instance server provides a trusted computing power instance; when the algorithm terminal needs to share data to run a corresponding strategy, the target computing power instance can be called through the computing power instance scheduling server, and the preset algorithm and shared data can be obtained through the computing power instance server, and the target calculation result can be obtained by performing calculations; since the computing power instance server in the present application is provided by a trusted third party, there is no situation in which the provider of shared data obtains the preset algorithm, or the provider of the preset algorithm obtains the shared data, resulting in the leakage of related algorithms or data, thereby ensuring the confidentiality of related algorithms and data.

[0170] like Fig. 9 As shown, a computing power sharing device 50 is provided, including: an acquisition module 501, a selection module 502, a blockchain module 503, a sending module 504, a security verification module 505, a key verification module 506 and a receiving module 507.

[0171] The acquisition module 501 is used to obtain a computing power instance list from a computing power instance scheduling server; the computing power instance list includes identity identifiers and service information corresponding to multiple computing power instances.

[0172] The selection module 502 is used to determine the target computing power instance and the target identity of the target computing power instance according to the service information corresponding to the multiple computing power instances obtained by the acquisition module 501.

[0173] The blockchain module 503 is used to obtain the key information corresponding to the target computing power instance from the blockchain according to the target identity determined by the selection module 502; the key information includes an encrypted public key.

[0174] The sending module 504 is used to send a computing power request to the target computing power instance determined by the selection module 502; the computing power request includes computing power request data encrypted according to the first symmetric key, a third hash value of the computing power request data, and the first symmetric key encrypted according to the encryption public key determined by the blockchain module 503.

[0175] Optionally, the above device also includes: a safety verification module 505.

[0176] The blockchain module 503 is also used to obtain authentication information corresponding to the target computing power instance from the blockchain according to the target identity identifier.

[0177] When the trusted execution identifier is included in the authentication information, the security verification module 505 determines that the target computing power instance is created in a trusted execution environment.

[0178] Optionally, the key information also includes a first hash value of the encrypted public key. The above device also includes: a key verification module 506.

[0179] When the second hash value determined based on the encrypted public key obtained from the blockchain is consistent with the first hash value, the key verification module 506 determines that the encrypted public key is complete.

[0180] Optionally, the above device further includes: a receiving module 507.

[0181] The receiving module 507 is used to receive the target computing result sent by the target computing power instance.

[0182] like Fig.10 As shown, a computing power sharing device 60 is provided, including: a receiving module 601, a decryption module 602, an acquisition module 603, a calculation module 604 and a sending module 605.

[0183] Receiving module 601 is used to receive a computing power request sent by an algorithm terminal; the computing power request includes computing power request data encrypted according to a first symmetric key, a third hash value of the computing power request data, and a first symmetric key encrypted according to an encrypted public key, and the computing power request data includes a preset algorithm and a shared data link.

[0184] The decryption module 602 is used to decrypt the computing power request received by the receiving module 601 according to the encryption private key to obtain computing power request data.

[0185] When the fourth hash value determined according to the computing power request data decrypted by the decryption module 602 is consistent with the third hash value, the acquisition module 603 acquires the shared data from the data server through a shared data request.

[0186] The calculation module 604 is used to determine the target calculation result according to the preset algorithm and the shared data.

[0187] Optionally, the decryption module 602 is specifically used to: decrypt the encrypted first symmetric key according to the encryption private key to obtain the first symmetric key; decrypt the encrypted computing power request data according to the first symmetric key to obtain the computing power request data.

[0188] Optionally, the shared data request includes a shared data link and an encrypted public key.

[0189] The acquisition module 603 includes a sending submodule 6031 , a receiving submodule 6032 and a decryption submodule 6033 .

[0190] The sending submodule 6031 is used to send a shared data request to the data server.

[0191] The receiving submodule 6032 is used to receive a shared data response returned by the data server; the shared data response includes the shared data encrypted according to the second symmetric key and the second symmetric key encrypted according to the encryption public key.

[0192] The decryption submodule 6033 is used to decrypt the encrypted second symmetric key received by the receiving submodule 6032 according to the encryption private key to obtain the second symmetric key.

[0193] The decryption submodule 6033 is further used to decrypt the encrypted shared data according to the second symmetric key to obtain the shared data.

[0194] Optionally, the above device also includes a sending module 605.

[0195] The sending module 605 is also used to return the target operation result to the algorithm terminal.

[0196] Regarding the device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.

[0197] Reference Fig.11 As shown, an embodiment of the present invention also provides an electronic device, including a memory 71, a processor 72, a bus 73 and a communication interface 74; the memory 71 is used to store computer execution instructions, and the processor 72 is connected to the memory 71 through the bus 73; when the electronic device is running, the processor 72 executes the computer execution instructions stored in the memory 71, so that the electronic device executes the computing power sharing method provided in the above embodiment.

[0198] In a specific implementation, as an embodiment, the processor 72 (72-1 and 72-2) may include one or more CPUs, such as Fig.11 As an embodiment, the electronic device may include multiple processors 72, such as CPU0 and CPU1. Fig.11 1 and 2. Each of the processors 72 may be a single-CPU or a multi-CPU. The processor 72 may refer to one or more devices, circuits, and / or processing cores for processing data (e.g., computer program instructions).

[0199] The memory 71 may be a read-only memory (ROM) or other types of static storage devices that can store static information and instructions, a random access memory (RAM) or other types of dynamic storage devices that can store information and instructions, or an electrically erasable programmable read-only memory (EEPROM), a compact disc read-only memory (CD-ROM) or other optical disc storage, optical disc storage (including compressed optical disc, laser disc, optical disc, digital versatile disc, Blu-ray disc, etc.), a magnetic disk storage medium or other magnetic storage device, or any other medium that can be used to carry or store the desired program code in the form of instructions or data structures and can be accessed by a computer, but is not limited thereto. The memory 71 may exist independently and be connected to the processor 72 via a bus 73. The memory 71 may also be integrated with the processor 72.

[0200] In a specific implementation, the memory 71 is used to store the data in this application and the computer execution instructions corresponding to the software program for executing this application. The processor 72 can run or execute the software program stored in the memory 71, and call the data stored in the memory 71, and various functions of the electronic device.

[0201] The communication interface 74 uses any transceiver or other device for communicating with other devices or communication networks, such as control systems, radio access networks (RAN), wireless local area networks (WLAN), etc. The communication interface 74 may include a receiving unit to implement a receiving function, and a sending unit to implement a sending function.

[0202] The bus 73 may be an industry standard architecture (ISA) bus, a peripheral component interconnect (PCI) bus, or an extended industry standard architecture (EISA) bus. The bus 73 may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Fig.11 Only one thick line is used in the diagram, but this does not mean that there is only one bus or only one type of bus.

[0203] An embodiment of the present invention also provides a computer-readable storage medium, which includes computer execution instructions. When the computer execution instructions are executed on a computer, the computer executes the computing power sharing method provided in the above embodiment.

[0204] An embodiment of the present invention also provides a computer program, which can be directly loaded into a memory and contains software code. After being loaded and executed by a computer, the computer program can implement the computing power sharing method provided in the above embodiment.

[0205] Those skilled in the art will appreciate that in one or more of the above examples, the functions described in the present invention may be implemented in hardware, software, firmware, or any combination thereof. When implemented using software, the functions may be stored in a computer-readable medium or transmitted as one or more instructions or codes on a computer-readable medium. Computer-readable media include computer storage media and communication media, wherein communication media include any media that facilitates the transmission of a computer program from one place to another. The storage medium may be any available medium that a general or special-purpose computer can access.

[0206] Through the description of the above implementation methods, technical personnel in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional modules is used as an example. In actual applications, the above-mentioned functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above.

[0207] In several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic, for example, the division of the modules or units is only a logical function division, and there may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another device, or some features can be ignored or not executed. Another point is that the coupling or direct coupling or communication connection between each other shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms. The unit described as a separate component may or may not be physically separated, and the component displayed as a unit may be a physical unit or multiple physical units, that is, it may be located in one place, or it may be distributed in multiple different places. Some or all of the units can be selected according to actual needs to achieve the purpose of the scheme of this embodiment.

[0208] In addition, each functional unit in each embodiment of the present invention can be integrated into a processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of a software functional unit. If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a readable storage medium. Based on this understanding, the technical solution of the embodiment of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium, including several instructions to enable a device (which can be a single-chip microcomputer, chip, etc.) or a processor (processor) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: various media that can store program codes, such as a U disk, a mobile hard disk, a ROM, a RAM, a disk, or an optical disk.

[0209] The above is only a specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any changes or substitutions that can be easily thought of by a person skilled in the art within the technical scope disclosed by the present invention should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims

1. A computing power sharing method, characterized in that: include: The algorithm terminal obtains a computing power instance list from the computing power instance scheduling server; the computing power instance list includes identity identifiers and service information corresponding to multiple computing power instances; The algorithm terminal determines a target computing power instance and a target identity of the target computing power instance according to the service information corresponding to the multiple computing power instances; The algorithm terminal obtains key information corresponding to the target computing power instance from the blockchain according to the target identity; the key information includes an encrypted public key; The algorithm terminal sends a computing power request to the target computing power instance; the computing power request includes computing power request data encrypted according to the first symmetric key, a third hash value of the computing power request data, and the first symmetric key encrypted according to the encryption public key; The target computing power instance server receives the computing power request sent by the algorithm terminal; the computing power request data includes a preset algorithm and a shared data link; The target computing power instance server decrypts the computing power request according to the encryption private key to obtain the computing power request data; If the fourth hash value determined according to the decrypted computing power request data is consistent with the third hash value, the target computing power instance server obtains the shared data from the data server through a shared data request; The target computing power instance server determines the target computing result according to the preset algorithm and the shared data.

2. The computing power sharing method according to claim 1, characterized in that: After the algorithm terminal determines the target computing instance and the target identity of the target computing instance according to the service information corresponding to the multiple computing instances, the method further includes: The algorithm terminal obtains authentication information corresponding to the target computing power instance from the blockchain according to the target identity identifier; If the authentication information includes a trusted execution identifier, the algorithm terminal determines that the target computing power instance is created in a trusted execution environment.

3. The computing power sharing method according to claim 2, characterized in that: The key information also includes a first hash value of the encrypted public key; the method also includes: If the second hash value determined based on the encrypted public key obtained from the blockchain is consistent with the first hash value, the algorithm terminal determines that the encrypted public key is complete.

4. The computing power sharing method according to claim 3, characterized in that: Also includes: The algorithm terminal receives the target calculation result sent by the target computing power instance.

5. The computing power sharing method according to claim 1, characterized in that: The target computing power instance server decrypts the computing power request according to the encrypted private key to obtain the computing power request data, including: The target computing power instance server decrypts the encrypted first symmetric key according to the encryption private key to obtain the first symmetric key; The target computing power instance server decrypts the encrypted computing power request data according to the first symmetric key to obtain the computing power request data.

6. The computing power sharing method according to claim 5, characterized in that: The shared data request includes a shared data link and the encrypted public key; the target computing power instance server obtains shared data from the data server through the shared data request, including: The target computing power instance server sends a shared data request to the data server; The target computing power instance server receives a shared data response returned by the data server; the shared data response includes the shared data encrypted according to the second symmetric key and the second symmetric key encrypted according to the encryption public key; The target computing power instance server decrypts the encrypted second symmetric key according to the encryption private key to obtain the second symmetric key; The target computing power instance server decrypts the encrypted shared data according to the second symmetric key to obtain the shared data.

7. The computing power sharing method according to claim 6, characterized in that: Also includes: The target computing power instance server returns the target computing result to the algorithm terminal.

8. A computing power sharing device, characterized in that: include: An acquisition module is used to obtain a list of computing instances from a computing instance scheduling server; The computing power instance list includes identity identifiers and service information corresponding to multiple computing power instances; A selection module, configured to determine a target computing power instance and a target identity of the target computing power instance according to the service information corresponding to the multiple computing power instances acquired by the acquisition module; A blockchain module, configured to obtain key information corresponding to the target computing power instance from a blockchain according to the target identity determined by the selection module; the key information includes an encrypted public key; A sending module, configured to send a computing power request to the target computing power instance determined by the selection module; the computing power request includes computing power request data encrypted according to the first symmetric key, a third hash value of the computing power request data, and a first symmetric key encrypted according to the encryption public key determined by the blockchain module; A receiving module, used to receive a computing power request sent by an algorithm terminal; the computing power request data includes a preset algorithm and a shared data link; A decryption module, used to decrypt the computing power request received by the receiving module according to the encryption private key to obtain the computing power request data; When the fourth hash value determined according to the computing power request data decrypted by the decryption module is consistent with the third hash value, the acquisition module acquires the shared data from the data server through a shared data request; A calculation module is used to determine a target calculation result according to the preset algorithm and the shared data.

9. The computing power sharing device according to claim 8, characterized in that: The device also includes: a safety verification module; The blockchain module is further used to obtain authentication information corresponding to the target computing power instance from the blockchain according to the target identity identifier; When the authentication information includes a trusted execution identifier, the security verification module determines that the target computing power instance is created in a trusted execution environment.

10. The computing power sharing device according to claim 9, characterized in that: The key information also includes a first hash value of the encrypted public key; the device also includes: a key verification module; When a second hash value determined based on the encrypted public key obtained from the blockchain is consistent with the first hash value, the key verification module determines that the encrypted public key is complete.

11. The computing power sharing device according to claim 10, characterized in that: The device further comprises: a receiving module; The receiving module is used to receive the target calculation result sent by the target computing power instance.

12. The computing power sharing device according to claim 8, characterized in that: The decryption module is specifically used for: Decrypting the encrypted first symmetric key according to the encryption private key to obtain the first symmetric key; The encrypted computing power request data is decrypted according to the first symmetric key to obtain the computing power request data.

13. The computing power sharing device according to claim 12, characterized in that: The shared data request includes a shared data link and the encrypted public key; the acquisition module includes a sending submodule, a receiving submodule and a decryption submodule; The sending submodule is used to send a shared data request to the data server; The receiving submodule is configured to receive a shared data response returned by the data server; the shared data response includes the shared data encrypted according to the second symmetric key and the second symmetric key encrypted according to the encryption public key; The decryption submodule is used to decrypt the encrypted second symmetric key received by the receiving submodule according to the encryption private key to obtain the second symmetric key; The decryption submodule is further used to decrypt the encrypted shared data according to the second symmetric key to obtain the shared data.

14. The computing power sharing device according to claim 13, characterized in that: The device also includes a sending module; The sending module is also used to return the target operation result to the algorithm terminal.

15. A computing power sharing system, characterized in that: include: Computing instance server, computing instance scheduling server, algorithm terminal and data server; The computing power instance server is used to create a computing power instance and generate authentication information and key information corresponding to the computing power instance; the key information includes a signature public key, an encryption public key and a hash value of the encryption public key; The computing power instance server is further used to register the computing power instance with the computing power instance scheduling server; The computing power instance scheduling server is used to manage the service information of the computing power instance; The algorithm terminal is used to call the corresponding target computing instance from the computing instance scheduling server according to the service information of the computing instance, and request computing power from the computing instance server; The computing power instance server is further used to request shared data from the data server according to the computing power request of the algorithm terminal; The computing power instance server is also used to determine the target computing result according to the preset algorithm provided by the algorithm terminal and the shared data provided by the data server, and return the target computing result to the algorithm terminal.

16. The computing power sharing system according to claim 15, characterized in that: The computing power sharing system also includes a blockchain; The computing power instance server is further used to determine the computing power information consumed by computing the target computing result, and store the computing power information in the blockchain; the computing power information includes computing power consumption, billing information and consumption amount; The algorithm terminal is also used to obtain computing power information corresponding to the target operation result from the blockchain.

17. An electronic device, characterized in that: It includes a memory, a processor, a bus and a communication interface; the memory is used to store computer execution instructions, and the processor is connected to the memory through the bus; when the electronic device is running, the processor executes the computer execution instructions stored in the memory, so that the electronic device executes the computing power sharing method as described in any one of claims 1-7.

18. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes computer execution instructions, and when the computer execution instructions are executed on a computer, the computer executes the computing power sharing method as described in any one of claims 1 to 7.

Citation Information

Patent Citations

  • Providing security services on the cloud

    CN102546607A

  • Key exchange through partially trusted third party

    CN108476133A

  • UPF determination method and device

    CN113115332A

  • Computing power service authentication method and device and readable storage medium

    CN113157444A

  • Block chain and quantum key distribution method and device

    CN113315630A