A method and device for providing service, equipment and storage medium

The edge server queries the service rating on the blockchain network between the IoT device and the cloud server, ensuring that the services obtained by the IoT device are trusted between the IoT device and the cloud server, solving the security of the IoT device service request. and reliability issues, achieving anonymity and privacy protection.

CN115706729BActive Publication Date: 2024-09-20CHINA MOBILE M2M +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110923603.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-08-12
Publication Date
2024-09-20
Estimated Expiration
2041-08-12

AI Technical Summary

Technical Problem

When IoT devices request services, their identity information is easily exposed, and the services obtained from the cloud server may be unreliable and security cannot be guaranteed.

Method used

Receive service requests from IoT devices through the edge server, send service information requests to the cloud server, and query service rating information in the blockchain network. If the rating meets the preset conditions, services will be provided to ensure the security and reliability of the service.

Benefits of technology

It improves the security and reliability of services obtained by IoT devices, reduces the probability of being infringed by unreliable services, and ensures the anonymity and privacy protection of services.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115706729B
    Figure CN115706729B
Patent Text Reader

Abstract

The embodiment of the present invention discloses a service providing method and apparatus, device, and storage medium. The method includes that an Internet of Things device sends a service request to an edge server to request a service from a cloud server through the edge server. After the edge server detects the service request, it sends a service message request to the cloud server to obtain a service message, and at the same time queries the service rating information of the cloud service terminal in the blockchain network to see whether it meets the preset conditions, so as to know the reliability and security of the cloud server; when the service rating information of the cloud server meets the preset conditions, the edge server executes the service message to provide services for the Internet of Things device, and the edge server obtains the corresponding service rating information of the cloud server to ensure the security and reliability of the cloud server, thereby ensuring the security and reliability of the service message obtained by the edge server, and reducing the threat to the Internet of Things device from unreliable or malicious services.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of Internet of Things security technology, and in particular to a service providing method and device, equipment, and storage medium. Background Art

[0002] IoT devices are computing devices that are connected to the internet through a network and can transfer and share data between the devices included in the network.

[0003] In the current technical solution, since most IoT devices are resource-constrained devices and cannot perform complex calculations, they need to request some services from the cloud server.

[0004] However, currently, when IoT devices are requesting services, the service requests of IoT devices correspond to the real device IDs of IoT devices, which easily exposes the identity information of IoT devices. In addition, the services obtained from the cloud servers may be malicious, and the security of the services obtained by IoT devices cannot be guaranteed. Summary of the invention

[0005] The embodiments of the present invention are intended to provide a service providing method and apparatus, equipment, and storage medium, which can improve the security of services obtained by IoT devices, reduce the probability of IoT devices being harmed by unreliable services, and improve the security and reliability of IoT devices.

[0006] The technical solution of the present invention is achieved in this way:

[0007] An embodiment of the present invention provides a service providing method, which is applied to an edge server, including:

[0008] Receive service requests from IoT devices;

[0009] In response to the service request, sending a service information request to a cloud server, and sending a service rating query request corresponding to the service request to a blockchain network;

[0010] Receiving service information sent by the cloud server in response to the service information request, and service rating information sent by the blockchain network in response to the service rating query request; the service rating information is stored in a preset smart contract; the service rating information corresponds to a group;

[0011] Based on the service rating information and the service information, a target service is generated and sent to the IoT device.

[0012] In the above solution, the method further includes:

[0013] Generate a group administrator public key and a group administrator private key of the group;

[0014] Receive a group joining request from the IoT device; the group joining request carries the identity information of the IoT device;

[0015] In response to the group joining request, if the identity information meets the preset authorization conditions, a group member private key is generated, and the group member private key and the group administrator public key are sent to the IoT device, so that the IoT device joins the group.

[0016] In the above solution, the method further includes:

[0017] Sending a service rating request corresponding to the target service to the Internet of Things device;

[0018] Receiving the latest service rating information and group member private key signature information sent by the IoT device in response to the service rating request; the group member private key signature information is calculated based on the preset function using the group member private key to obtain the latest service rating information;

[0019] Based on the latest service rating information and the group member private key signature information, generate corresponding group signature information;

[0020] Through a preset smart contract, the latest service rating information and the group signature information are stored in the preset smart contract of the blockchain network, so that the blockchain network can update the service rating information through the latest service rating information.

[0021] In the above solution, before generating the corresponding group signature information based on the latest service rating information and the group member private key signature information, the method further includes:

[0022] The group member public key is calculated based on the group administrator private key and the group member private key.

[0023] In the above solution, the generating of the corresponding group signature information based on the latest service rating information and the group member private key signature information includes:

[0024] Using the group member public key and a preset function, the latest service rating information is calculated to obtain group member public key signature information;

[0025] The group signature information is generated according to the group member public key signature information and the group member private key signature information.

[0026] In the above solution, in response to the group joining request, if the identity information meets the preset authorization condition, a group member private key is generated, including:

[0027] If the identity of the IoT device meets the preset authorization conditions, a random number is obtained as the group member private key.

[0028] In the above solution, generating a target service based on the service rating information and the service information and sending the target service to the IoT device includes:

[0029] If the service rating information is greater than or equal to a preset rating threshold, the target service is generated according to the service information, and the target service is sent to the Internet of Things device.

[0030] An embodiment of the present invention provides a service providing method, which is applied to an Internet of Things device, including:

[0031] Send service request to edge server;

[0032] A target service is received from the edge server in response to the service request; the target service is generated by the edge server based on service rating information and service information, the service rating information corresponds to a group; the service rating information is stored in a preset smart contract of the blockchain network; the service information is obtained from a cloud server.

[0033] In the above solution, the method further includes:

[0034] Sending a group joining request to the edge server; the group joining request carries the identity information of the IoT device;

[0035] The group member private key is received from the edge server in response to the group joining request and the group is joined.

[0036] In the above solution, the method further includes:

[0037] receiving a service rating request corresponding to the target service sent by the edge server;

[0038] In response to the service rating request, the latest service rating information and group member private key signature information are generated based on the target service and the group member private key, and sent to the edge server.

[0039] In the above scheme, the generating of the latest service rating information and group member private key signature information based on the target service and the group member private key includes:

[0040] Based on the target service, scoring the target service rating and generating the latest service rating information;

[0041] The latest service rating information is calculated using the group member private key and a preset function to obtain the group member private key signature information.

[0042] In the above scheme, applied to the blockchain network, including:

[0043] receiving a service rating query request corresponding to the service request sent by the edge server;

[0044] In response to the service rating query request, the corresponding service rating information in the preset smart contract is sent to the edge server; the service rating information corresponds to the group.

[0045] In the above solution, the method further includes:

[0046] Receiving the latest service rating information and group signature information sent by the edge server;

[0047] Through a preset smart contract, the latest service rating information and the group signature information are stored in the preset smart contract, so that the service rating information is updated through the latest service rating information.

[0048] An embodiment of the present invention provides a service providing device, the device comprising a first receiving unit, a first sending unit and a first generating unit; wherein,

[0049] The first receiving unit is used to receive a service request sent by an IoT device, receive service information sent by a cloud server, and receive service rating information sent by a blockchain network;

[0050] The first generating unit is used to generate a target service based on the service rating information and the service information;

[0051] The first sending unit is used to send the service information request to the cloud server, send the service rating query request to the blockchain network, and send the target service to the Internet of Things device.

[0052] In the above solution, the first receiving unit is further used to receive a group joining request from the IoT device; the group joining request carries the identity information of the IoT device;

[0053] The first generating unit is further configured to generate a group administrator public key and a group administrator private key of the group; in response to the group joining request, if the identity information meets a preset authorization condition, generate a group member private key;

[0054] The first sending unit is further used to send the group member's private key to the Internet of Things device, so that the Internet of Things device joins the group.

[0055] In the above scheme, the first receiving unit is further used to receive the latest service rating information and group member private key signature information sent by the IoT device in response to the service rating request; the group member private key signature information is calculated based on the preset function using the group member private key to obtain the latest service rating information;

[0056] The first generating unit is further used to generate corresponding group signature information based on the latest service rating information and the group member private key signature information;

[0057] The first sending unit is also used to send a service rating request corresponding to the target service to the Internet of Things device; through a preset smart contract, the latest service rating information and the group signature information are stored in the preset smart contract of the blockchain network, so that the blockchain network can update the service rating information through the latest service rating information.

[0058] In the above solution, the first generating unit is further used to calculate the group member public key based on the group administrator private key and the group member private key.

[0059] In the above scheme, the first generating unit is further used to calculate the latest service rating information using the group member public key and a preset function to obtain group member public key signature information; and generate the group signature information according to the group member public key signature information and the group member private key signature information.

[0060] In the above solution, the first generating unit is further used to obtain a random number as the group member private key if the identity of the IoT device meets the preset authorization conditions.

[0061] In the above scheme, the first generating unit is further used to generate the target service according to the service information if the service rating information is greater than or equal to a preset rating threshold, and send the target service to the Internet of Things device.

[0062] An embodiment of the present invention provides a service providing device, the device comprising a second receiving unit and a second sending unit; wherein,

[0063] The second receiving unit is used to receive the target service sent by the edge server;

[0064] The second sending unit is used to send the service request to the edge server.

[0065] In the above solution, the device further includes a second generating unit; wherein,

[0066] The second generating unit is used to generate the latest service rating information and group member private key signature information based on the target service and the group member private key.

[0067] In the above solution, the second receiving unit is further used to receive a service rating request corresponding to the target service sent by the edge server;

[0068] The second sending unit is further used to send the latest service rating information and group member private key signature information to the edge server;

[0069] The second generating unit is further configured to respond to the service rating request based on the target service and the group member private key.

[0070] In the above scheme, the second generating unit is further used to score the target service rating based on the target service to generate the latest service rating information; use the group member private key and a preset function to calculate the latest service rating information to obtain the group member private key signature information.

[0071] An embodiment of the present invention provides a service providing device, the device comprising a third receiving unit and a third sending unit; wherein,

[0072] The third receiving unit is used to receive a service rating query request sent by the edge server;

[0073] The third sending unit is used to send the service rating information corresponding to the preset smart contract to the edge server.

[0074] In the above solution, the device further includes a storage unit; wherein,

[0075] The third processing unit is used to store the latest service rating information and group signature information received by the third receiving unit into a preset smart contract through a preset smart contract.

[0076] In the above solution, the device further includes an updating unit; wherein,

[0077] The updating unit is configured to update the service rating information using the latest service rating information.

[0078] In the above solution, the third receiving unit is further used to receive the latest service rating information and group signature information sent by the edge server.

[0079] An embodiment of the present invention provides an edge server, the edge server comprising:

[0080] A first memory, used to store executable instructions;

[0081] A first communication bus, used to implement communication between the first memory and the first processor;

[0082] The first processor is used to execute the executable instructions stored in the first memory to implement the service providing method described in the embodiment of the present invention.

[0083] An embodiment of the present invention provides an Internet of Things device, the Internet of Things device comprising:

[0084] A second memory, used for storing executable instructions;

[0085] A second communication bus, used to implement communication between the second memory and the second processor;

[0086] The second processor is used to execute the executable instructions stored in the second memory to implement the service providing method as described in the embodiment of the present invention.

[0087] An embodiment of the present invention provides a blockchain network, the blockchain network comprising:

[0088] A third memory, used to store executable instructions;

[0089] A third communication bus, used to implement communication between the third memory and the third processor;

[0090] The third processor is used to execute the executable instructions stored in the third storage to implement the service providing method as described in the embodiment of the present invention.

[0091] An embodiment of the present invention provides a storage medium, wherein the storage medium stores executable instructions, and when the executable instructions are executed, is used to cause a first processor to execute the service providing method as described in the embodiment of the present invention.

[0092] An embodiment of the present invention provides a storage medium, wherein the storage medium stores executable instructions, and when the executable instructions are executed, is used to cause a second processor to execute the service providing method as described in the embodiment of the present invention.

[0093] An embodiment of the present invention provides a storage medium, wherein the storage medium stores executable instructions, and when the executable instructions are executed, the third processor is used to execute the service providing method as described in the embodiment of the present invention.

[0094] The embodiment of the present invention provides a service providing method and apparatus, device, and storage medium. The method includes an Internet of Things device sending a service request to an edge server to request a service from a cloud server through the edge server. After the edge server detects the service request, it sends a service message request to the cloud server to obtain a service message, and at the same time queries the service rating information of the cloud service terminal in the blockchain network to see whether it meets the preset conditions, so as to know the reliability and security of the cloud server; when the service rating information of the cloud server meets the preset conditions, the edge server executes the service message to provide services for the Internet of Things device.

[0095] In the above technical solution, the edge server judges the security and reliability of the cloud server by obtaining the corresponding service rating information of the cloud server, thereby ensuring the security and reliability of the service messages obtained by the edge server and reducing the threats to IoT devices from unreliable or malicious services. BRIEF DESCRIPTION OF THE DRAWINGS

[0096] Figure 1 A schematic diagram of the functional architecture of a service providing device provided in an embodiment of the present invention Figure 1 ;

[0097] Figure 2 A schematic diagram of a service provision method applied to an edge server provided in an embodiment of the present invention Figure 1 ;

[0098] Figure 3 A schematic diagram of a service provision method applied to an edge server provided in an embodiment of the present invention Figure 2 ;

[0099] Figure 4 A schematic diagram of a service provision method applied to an edge server provided in an embodiment of the present invention Figure 3 ;

[0100] Figure 5 A schematic diagram of a service provision method applied to an edge server provided in an embodiment of the present invention Figure 4 ;

[0101] Figure 6 A schematic diagram of a service provision method applied to an edge server provided in an embodiment of the present invention Figure 5 ;

[0102] Figure 7 A schematic diagram of a service provision method for an Internet of Things device provided by an embodiment of the present invention Figure 1 ;

[0103] Figure 8A schematic diagram of a service provision method for an Internet of Things device provided by an embodiment of the present invention Figure 2 ;

[0104] Fig. 9 A schematic diagram of a service provision method applied to a blockchain network provided in an embodiment of the present invention Figure 1 ;

[0105] Fig.10 A schematic diagram of a service provision method applied to a blockchain network provided in an embodiment of the present invention Figure 2 ;

[0106] Fig.11 A schematic diagram of a service provision method applied to a cloud server provided in an embodiment of the present invention Figure 1 ;

[0107] Fig. 12A A schematic diagram of a service providing method provided in an embodiment of the present invention Figure 1 ;

[0108] Fig. 12B A schematic diagram of a service providing method provided in an embodiment of the present invention Figure 2

[0109] Fig.13A A schematic diagram of a service providing method provided in an embodiment of the present invention Figure 3 ;

[0110] Fig. 13B A schematic diagram of a service providing method provided in an embodiment of the present invention Figure 4 ;

[0111] Fig.14A A schematic diagram of a service providing method provided in an embodiment of the present invention Figure 5 ;

[0112] Fig. 14B A schematic diagram of a service providing method provided in an embodiment of the present invention Figure 6

[0113] Fig.15 A schematic diagram of the structure of a service providing device provided by an embodiment of the present invention;

[0114] Fig.16 A schematic diagram of the structure of another service providing device provided by an embodiment of the present invention;

[0115] Fig.17 A schematic diagram of the structure of another service providing device provided in an embodiment of the present invention;

[0116] Fig.18A schematic diagram of the structure of an edge server provided by an embodiment of the present invention;

[0117] Fig.19 A schematic diagram of the structure of an Internet of Things device provided by an embodiment of the present invention;

[0118] Fig. 20 A schematic diagram of the structure of a blockchain network provided in an embodiment of the present invention. DETAILED DESCRIPTION

[0119] The technical solutions in the embodiments of the present invention will be described clearly and completely below in conjunction with the accompanying drawings in the embodiments of the present invention.

[0120] Before further describing the embodiments of the present invention in detail, the nouns and terms involved in the embodiments of the present invention are described. The nouns and terms involved in the embodiments of the present invention are subject to the following interpretations.

[0121] 1) Internet of Things (IoT) devices refer to all devices connected to the Internet. IoT devices are low-resource and cannot perform complex calculations. They need to request services from cloud servers.

[0122] 2) Cloud Server (Elastic Compute Service, ECS), cloud server is an important part of cloud computing services, a simple, efficient, safe, reliable, and elastic computing service with scalable processing capabilities. Cloud server integrates the three core elements of traditional Internet applications: computing, storage, and network, and provides public Internet infrastructure services to users; it can independently provide computing, storage, online backup, hosting, bandwidth and other Internet infrastructure services.

[0123] 3) Block: A data structure that records the ledger data updated by the exchange within a period of time. It is marked with a timestamp and a unique mark of the previous block (such as a digital fingerprint). After the block is verified by the consensus of the nodes in the blockchain network, it will be appended to the end of the blockchain to become a new block.

[0124] 4) Blockchain: A chain data structure composed of blocks connected in sequence. Each block references the hash value of the previous block or its subset, thereby ensuring that the recorded transactions cannot be tampered with or forged in a cryptographic way.

[0125] 5) Blockchain network, a collection of decentralized nodes that incorporate new blocks into the blockchain through consensus.

[0126] 6) Smart Contracts, also known as chaincode, are programs deployed in the blockchain network that are triggered and executed according to conditions. They are used to operate the ledger by querying, adding, and modifying to query or update the ledger.

[0127] 7) In response, it is used to indicate the conditions or states on which the executed operations depend. When the dependent conditions or states are met, one or more operations executed may be in real time or have a set delay. Unless otherwise specified, there is no restriction on the order of execution of the multiple operations executed.

[0128] 8) Group signature, also known as digital signature; group signature means that in a group signature scheme, any member of a group can anonymously sign a message on behalf of the entire group. Like other digital signatures, group signatures are publicly verifiable and can be verified using only a single group public key.

[0129] The following describes the functional architecture of a service providing device provided by an embodiment of the present invention. Figure 1 As shown, Figure 1 This is a schematic diagram of the functional architecture of a service providing device provided by an embodiment of the present invention. Figure 1 , including an edge server 1, an IoT device 2, a blockchain network (blockchain) 3, and a cloud server (cloud service provider) 4. Each of them is described below.

[0130] In the embodiment of the present invention, the edge server 1 is responsible for receiving the service request initiated by the IoT device 2, and sending a service information request to the cloud server 4 according to the service request to obtain service information. Since the edge server 1 obtains service information to provide services, it is necessary to protect the IoT device 2 from unreliable and untrustworthy services. Therefore, the edge server 1 determines whether to execute the service information in response to the service request of the IoT device 2 by calling the smart contract to obtain the service rating information.

[0131] In the embodiment of the present invention, the IoT device 2 sends a service request to the edge server 1 to request a service. The IoT device 2 is a computing device connected to the Internet through a network. The IoT device 2 can transmit and share data between devices included in the network. For example, the IoT device 2 can be a sensor, a smart meter, a smart light, a smart air conditioner, a smart TV, a mobile phone, and a smart wearable device, etc., which is not limited in the embodiment of the present invention.

[0132] It is understandable that since most of the IoT devices 2 are resource-constrained devices, completing the entire process through the edge server 1 as an intermediary to expand the functions of the IoT device 2 will bring a better user experience.

[0133] In an embodiment of the present invention, the smart contract in the blockchain network 3 stores service rating information about the cloud server 4.

[0134] It is understandable that the service rating information of the cloud server 4 is stored in the blockchain network 3 through the smart contract, which will not be changed and has higher security. In addition, the edge server 1 queries the service rating information of the service in the blockchain network 3 by calling the smart contract. The edge server 1 can decide whether to execute the service information provided by the cloud server 4 to respond to the IoT device 2 based on its service rating information, so as to avoid the IoT device 2 from being threatened by the service provided by the unreliable cloud server 4.

[0135] In the embodiment of the present invention, the cloud server 4 provides services to customers, and the services may include different applications, such as voice calls, video calls, social applications, etc. The cloud server 4 may be Microsoft, Amazon or Google Cloud Platform.

[0136] In the embodiment of the present invention, although the transactions in the blockchain network 3 are transparent and tamper-proof, which is the advantage of the blockchain network 1, it may also cause privacy leakage. Therefore, the group signature technology is used to prevent other users from knowing which services the IoT device 2 specifically requested, so that the service rating information of the IoT device 2 for the service is anonymous, which can reduce the probability of privacy leakage of the IoT device 2.

[0137] In the embodiment of the present invention, after obtaining the service, the IoT device 2 uses the edge server 1 to feedback the service status to the blockchain network 3. In this way, each service will have a dynamically updated service rating information stored in the blockchain network 3, and other IoT devices 2 can avoid receiving threats from unreliable or even malicious services based on the latest service rating information. Therefore, the edge server 1 is also responsible for updating the service rating information about the service information provided by the cloud server 4 in the blockchain network 3 to ensure that the service received by the IoT device 2 from the cloud server 4 must be safe and reliable.

[0138] In the embodiment of the present invention, the edge server 1 as the group administrator is responsible for initializing the group administrator public key and the group administrator private key of the group signature and issuing the group certificate to invite members to join. The IoT device 2 generates the latest service rating information for the service rating using the obtained group certificate signing document and signs it, and submits the latest signed service rating information to the edge server 1; the edge server 1 updates the service rating information stored in the blockchain network 3 using the latest service rating information by calling the smart contract.

[0139] It should be noted that one service providing device in the embodiment of the present invention is a virtual device corresponding to the edge server 1; another service providing device is a virtual device corresponding to the Internet of Things device 2; and another service providing device is a virtual device corresponding to the blockchain network 3.

[0140] It is understandable that the edge server 1 as a group administrator can track the signature of the IoT device 2 through the group private key and obtain the identity of the IoT device 2, thereby preventing unauthorized IoT devices 2 from maliciously rating the service with a low score.

[0141] Figure 2 The following is a flow chart of a service provision method applied to an edge server provided by an embodiment of the present invention. Figure 1 ,like Figure 2 As shown, the method provided by the embodiment of the present invention is applied to an edge server, and the method includes:

[0142] S101. Receive a service request from an IoT device.

[0143] In the embodiment of the present invention, it is applicable to the scenario where the edge server requests services from the cloud server according to the service requests of the IoT device. Each edge server can be connected to at least one IoT device and establish communication with multiple cloud servers.

[0144] In an embodiment of the present invention, the edge server realizes communication with the IoT device and the cloud server through a device communication module disposed in the edge server. The device communication module is a printed circuit board (PCB), which communicates with the cloud server through an agreed relevant protocol. Exemplarily, the agreed relevant protocol may be a Hyper Text Transfer Protocol (HTTP) or a Transmission Control Protocol (TCP).

[0145] In an embodiment of the present invention, when multiple IoT devices are connected to each edge server, the edge server can simultaneously receive service requests from multiple IoT devices and obtain corresponding service information from multiple cloud servers according to the service requests.

[0146] In the embodiment of the present invention, the edge server receives a service request sent by an IoT device.

[0147] In the embodiment of the present invention, the edge server refers to a front-end server that is in direct contact with the user.

[0148] It should be noted that in actual use, the edge server is used to receive service requests from IoT devices, and obtain service information from the corresponding cloud server based on user needs and service requests.

[0149] In an embodiment of the present invention, a service request is used to request a target service from a cloud server. The target service refers to a service generated by an edge server for providing to an IoT device. Exemplarily, the target service may be a voice call, a video call, data migration, an application data update, etc. The embodiment of the present invention is not limited. It is understandable that each edge server can simultaneously receive service requests from multiple IoT devices, which increases the order of magnitude of the number of IoT devices supported and saves resources.

[0150] S102. In response to the service request, a service information request is sent to the cloud server, and a service rating query request corresponding to the service request is sent to the blockchain network.

[0151] In the embodiment of the present invention, the edge server executes the service request, sends a service information request to the cloud server to obtain service information, and sends a service rating query request to obtain a service rating query request corresponding to the service request.

[0152] In the embodiment of the present invention, the order of sending the service request and the service rating query request is not limited in the embodiment of the present invention, that is, the service information request and the service rating query request can be sent at the same time or one after another.

[0153] In the embodiment of the present invention, the service rating query request is used to obtain service rating information corresponding to the service request, and the edge server can determine whether the service information corresponding to the service rating information is reliable based on the service rating information.

[0154] In the embodiment of the present invention, each service rating request corresponds to a service rating information, and each service rating information corresponds to a service information. The service information comes from at least one cloud server, that is, each edge server can send multiple service requests for the same target service to multiple cloud servers, and send corresponding multiple service rating requests to the blockchain network according to the multiple service requests.

[0155] It is understandable that the edge server acts as an intermediary between the cloud server and the IoT devices, which can prevent direct communication between the IoT devices and the edge server, and reduce the probability of IoT devices being maliciously attacked by unreliable cloud servers; and the edge server adopts edge computing, and edge computing processes data in real time, that is, the edge server can increase the speed at which IoT devices obtain target services and the speed at which cloud servers provide target services.

[0156] S103: Receive service information sent by the cloud server in response to the service information request, and service rating information sent by the blockchain network in response to the service rating query request.

[0157] Among them, the service rating information is stored in a preset smart contract; the service rating information corresponds to the group.

[0158] In an embodiment of the present invention, the edge server receives service information sent by the cloud server in response to a service information request, and service rating information sent by the blockchain network through a preset smart contract in response to a service rating query request.

[0159] In an embodiment of the present invention, the edge server may receive multiple service rating information, wherein the multiple service rating information corresponds to multiple service information from different cloud servers, and the edge server may generate the same target service by executing each of the multiple service information.

[0160] In the embodiment of the present invention, the service information refers to a code that can be executed to obtain a corresponding service (target service).

[0161] In an embodiment of the present invention, the preset smart contract refers to a computer protocol pre-stored in the blockchain network, and the above-mentioned computer protocol is signed by the edge server and the blockchain network.

[0162] In the embodiment of the present invention, the group is a group in the group signature technology. The correspondence between the service rating information and the group means that each service rating information is encrypted by the group signature technology. Among them, each service rating information corresponds to a group, and everyone can query the reliability and validity of each corresponding service rating information through the above group, but cannot know the specific source of each service rating information, that is, each service rating information only corresponds to the group, not to the identity information of the IoT device.

[0163] It is understandable that the service rating information corresponds to the group. Avoiding the correspondence between the service rating information and the identity information of the IoT device can reduce the probability of exposure of the identity information of the IoT device and improve the security of the IoT device.

[0164] S104: Generate a target service based on the service rating information and the service information and send it to the IoT device.

[0165] In an embodiment of the present invention, after receiving the service rating information sent by the blockchain network and the service information sent by the cloud server, the edge server generates a target service based on the service rating information and the service information, and sends the target service to the Internet of Things device to provide the service.

[0166] In the embodiment of the present invention, after receiving multiple service rating information, the edge server may compare the multiple service rating information and select the service information corresponding to the optimal service rating information.

[0167] In an embodiment of the present invention, the optimal service rating information refers to the optimal choice among multiple service rating information. Exemplarily, the service rating information is A, B, C and D, where A>B>C>D is preset. If the multiple service rating information obtained by the edge server is four service rating information, and the four service rating information are A, B, B and D respectively; then the four service rating information are arranged in descending order, and the service request corresponding to the service rating information with service rating information A is selected to generate the corresponding target service.

[0168] In some embodiments of the present invention, if the service rating information is greater than or equal to a preset rating threshold, a target service is generated according to the service information, and the target service is sent to the IoT device.

[0169] In some embodiments of the present invention, after receiving the service rating information sent by the blockchain network, the edge server determines the service rating information. If the service rating information is greater than or equal to a preset rating threshold, it proves that the reliability and security of the service information corresponding to the service rating information meet the preset requirements; based on the service information, a target service is generated, and the target service is sent to the Internet of Things device.

[0170] In some embodiments of the present invention, if the service rating information is less than a preset rating threshold, it proves that the reliability and security of the service information corresponding to the service rating information do not meet the preset requirements; if a target service is generated based on the service information, the target service may be a malicious service. If the edge server sends the above target service to the IoT device, the IoT device will be threatened, affecting the security of the IoT device.

[0171] In some embodiments of the present invention, the service rating information may also be numerical information. Exemplarily, the rating information may be any numerical value from 0 to 100, and the preset rating threshold is 60. In actual use, if the service rating information is 69, the service rating information is greater than the preset rating threshold, and the reliability and security of the service information corresponding to the service rating information meet the preset requirements. The edge server may generate a target service based on the above service information and send the above target service to the IoT device. If the service rating information is 59, the service rating information is less than the preset rating threshold, and the reliability and security of the service information corresponding to the service rating information do not meet the preset requirements, and the edge server does not execute the above service information.

[0172] It can be understood that when the edge server receives a service request from an IoT device, it obtains the service rating information corresponding to the service request, and determines whether the cloud server that provides service information for receiving the service request meets the preset rating threshold based on the service rating information, thereby completing a review of the reliability and security of the cloud server and / or service information to ensure the security and reliability of the target service generated based on the service information provided by the cloud server, reduce the probability of IoT devices being threatened by malicious services, and improve the quality and reliability of the services obtained by IoT devices.

[0173] Figure 3 The following is a flow chart of a service provision method applied to an edge server provided by an embodiment of the present invention. Figure 2 ,like Figure 3 As shown, the method provided by the embodiment of the present invention is applied to an edge server, and the method further includes:

[0174] S201. Generate a group administrator public key and a group administrator private key.

[0175] In the embodiment of the present invention, the edge server generates a group administrator public key and a group administrator private key of the group according to a preset group, thereby completing the initialization of the group signature and establishing group resources.

[0176] In an embodiment of the present invention, the initialization of the group signature and the establishment of group resources also include: first, selecting a generator in the domain, and generating an additive cyclic group based on the generator, wherein the additive cyclic group is a cyclic group whose operation is addition; the elements in the group can be generated by the product of the minimum number of group elements, and this group of group elements is called a generator. Exemplarily, if each element of a group G is a power of a fixed element a of G, then G is called a cyclic group, and a is called a generator of G. Secondly, the order of the group is obtained, and a multiplication cyclic group is generated based on the order; wherein the order refers to the number of elements in the group; the multiplication cyclic group refers to a cyclic group whose operation is multiplication. Finally, a bilinear map and a hash function are constructed based on the additive cyclic group and the multiplication cyclic group. This is used to subsequently generate group member private keys and group member public keys based on group members.

[0177] In the embodiment of the present invention, the public key of the group administrator is open to all users, and the users can verify the correctness of the signature information based on the public key of the group administrator.

[0178] In the embodiment of the present invention, the edge server is a group owner or group administrator of the group.

[0179] In the embodiment of the present invention, the edge server selects a random number in the domain as the group administrator private key, and calculates the group administrator public key according to the group administrator private key. The group administrator public key can be calculated by substituting the group administrator private key into the mod function.

[0180] In the embodiment of the present invention, the domain may be determined according to user requirements, and is not limited in the embodiment of the present invention.

[0181] It is understandable that edge servers can help establish trust between IoT devices and cloud servers, preventing IoT devices from being affected by malicious services when obtaining target services, and preventing cloud servers from receiving malicious service ratings from IoT devices.

[0182] S202: Receive a group joining request from an IoT device, wherein the group joining request carries the identity information of the IoT device.

[0183] In the embodiment of the present invention, the edge server receives a group joining request sent by an IoT device, wherein the group joining request carries the identity information of the IoT device.

[0184] In the embodiment of the present invention, the identity information of the IoT device may be an identity document (ID) of the IoT device, i.e., an identity authentication ID. The identity authentication ID is a trusted identity identifier of an IoT device, which has security properties that cannot be tampered with or forged, and is unique, i.e., each IoT device corresponds to only one identity authentication ID.

[0185] In the embodiment of the present invention, when the edge server receives the group joining request, it will obtain the identity information of the IoT device, and can determine whether the IoT device meets the preset authorization conditions for joining the group based on the identity information of the IoT device.

[0186] It is understandable that the edge server verifies the identity information of the IoT device involved, thereby determining whether the IoT device meets the preset authorization conditions for joining the group. This can ensure that after the IoT device joins the group, it will not maliciously rate the service information provided by the cloud server. This is more conducive to the edge server helping the IoT device and the cloud server to establish trust.

[0187] S203. In response to the group joining request, if the identity information meets the preset authorization conditions, a group member private key is generated, and the group member private key and the group administrator public key are sent to the IoT device, so that the IoT device joins the group.

[0188] In an embodiment of the present invention, the edge server responds to a group joining request issued by an IoT device and determines whether the identity information of the IoT device meets the preset authorization conditions; if the identity information of the IoT device meets the preset authorization conditions, the edge server generates a group member private key and sends the group member private key to the IoT device, so that the IoT device joins the group.

[0189] In an embodiment of the present invention, after the edge server determines that the identity information of the IoT device meets the preset authorization conditions, the edge server generates a group certificate and sends the group certificate to the IoT device. In some embodiments of the present invention, if the identity of the IoT device meets the preset authorization conditions, a random number is obtained as a group member private key.

[0190] In some embodiments of the present invention, the edge server determines the identity of the IoT device. If the identity of the IoT device meets the preset authorization conditions, a random number is obtained as a group member private key and sent to the IoT device.

[0191] In some embodiments of the present invention, in actual use, according to user needs, the edge server randomly obtains a random number from the domain as a group member private key; wherein the group member private key is usually a string of hexadecimal characters, and the specific number of characters should be determined according to user needs, which is not limited in the embodiments of the present invention.

[0192] In some embodiments of the present invention, the edge server determines the identity information of the IoT device. If the identity of the IoT device does not meet the preset authorization conditions, the edge server does not respond to the IoT device's request to join the group, and the IoT device cannot join the group.

[0193] In some embodiments of the present invention, if the identity of the IoT device does not meet the preset authorization conditions, prompt information such as failure to join the group or rejection of the request to join the group may also be sent to the IoT device.

[0194] In some embodiments of the present invention, the preset authorization condition may be that the identity information of the IoT device is legal. Exemplarily, each IoT device corresponds to a device key, that is, the device key corresponds to the identity information of the IoT device; the edge server matches the identity information of the IoT device with the device key. If the identity information of the IoT device matches the device key, the identity information of the IoT device is legal and meets the preset authorization condition. Conversely, if the identity information of the IoT device does not match the device key, the identity information of the IoT device is illegal and does not meet the preset authorization condition. The device key may be stored in the edge server.

[0195] It is understandable that the edge server improves the reliability of the audit by reviewing the identity information of the IoT device to determine whether the IoT device meets the preset authorization conditions.

[0196] Figure 4 The following is a flow chart of a service provision method applied to an edge server provided by an embodiment of the present invention. Figure 3 ,like Figure 4 As shown, the method provided by the embodiment of the present invention is applied to an edge server, and the method further includes:

[0197] S301. Send a service rating request corresponding to a target service to an IoT device.

[0198] In the embodiment of the present invention, the edge server sends a service rating request corresponding to the target service to the IoT device, so as to obtain the latest service rating information of the IoT device for the target service.

[0199] In the embodiment of the present invention, the edge server may generate a service rating request corresponding to the target service while generating the target service, or may generate the corresponding service rating request after generating the target service; in addition, the edge server may send the service rating request to the IoT device after sending the target service, or may send the target service and the service rating request at the same time. In the embodiment of the present invention, no specific limitation is made.

[0200] It can be understood that the edge server obtains the service rating of the target service by the IoT device, which is used to update the service rating information in the blockchain network, thereby realizing the dynamic update of the service rating information. The subsequent edge server can determine whether to generate the target service according to the corresponding service information and send it to the IoT device based on the latest service rating information queried. This can ensure the timeliness of the service rating information and improve the reliability of the trust established by the edge server between the IoT device and the cloud server.

[0201] S302: Receive the latest service rating information and group member private key signature information sent by the IoT device in response to the service rating request.

[0202] The group member private key signature information is obtained by calculating the latest service rating information based on a preset function using the group member private key.

[0203] In an embodiment of the present invention, an edge server receives the latest service rating information and group member private key signature information sent by an Internet of Things device in response to a service rating request; wherein the latest service rating information is generated by the Internet of Things device by rating and scoring the target information, and the group member private key signature information is generated by the Internet of Things device signing the latest service rating information using the group member private key sent by the edge server; wherein the group member private key signature information is obtained by calculating the latest service rating information based on a preset function using the group member private key.

[0204] In an embodiment of the present invention, the group member private key signature information is generated based on the group signature private key. The group signature private key is a random number selected by the edge server in the domain. The group member private key and the latest service rating information are substituted into a preset function to generate the group member private key signature information.

[0205] In the embodiment of the present invention, the preset function is a hash function.

[0206] In the embodiment of the present invention, the IoT device calculates the group member private key signature information according to formula (1-1) based on the latest service rating information and the group member private key. Formula (1-1) is:

[0207]

[0208] in, Sign the information with the private key of the group member. is the private key of the group member, h is the hash function, and L is the latest service rating information.

[0209] It is understandable that after the edge server receives the latest service rating information and group member private key signature information, it can generate corresponding group signature information based on the latest service rating information and group member private key signature information. The process of the edge server generating group signature information is equivalent to encrypting the group member private key signature information, thereby avoiding the leakage of privacy information of IoT devices.

[0210] S303: Calculate the public key of the group member based on the group administrator's private key and the group member's private key.

[0211] In the embodiment of the present invention, after the edge server generates the group administrator private key and the group member private key, it calculates the group member public key based on the group administrator private key and the group member private key.

[0212] In the embodiment of the present invention, based on the group member private key and the group administrator private key, the group member public key is calculated according to formula (1-2); wherein formula (1-2) is:

[0213]

[0214] in, is the public key of the group member, x e Manage private keys for the group, It is the private key of group members.

[0215] It can be understood that by calculating the public key of the group member, it is convenient to subsequently process the private key signature information of the group member to obtain the group member signature information, that is, to complete the anonymity of the IoT device.

[0216] S304: Generate corresponding group signature information based on the latest service rating information and group member private key signature information.

[0217] In the embodiment of the present invention, after receiving the latest service rating information and group member private key signature information, the edge server generates corresponding group signature information according to the latest service rating information and group member private key signature.

[0218] In the embodiment of the present invention, the preset function may be a hash function.

[0219] It is understandable that the edge server establishes trust between the IoT device and the cloud server through group signature information. Users can verify the validity and reliability of the latest service rating information through group signature information, but cannot know which IoT device the latest service rating information comes from, thereby achieving protection of the privacy information of IoT devices.

[0220] Figure 5 The following is a flow chart of a service provision method applied to an edge server provided by an embodiment of the present invention. Figure 4 ,like Figure 5 As shown, step S304 may also include S3041-S3042, as follows:

[0221] S3041. Calculate the latest service rating information using the public key of the group member and a preset function to obtain information signed by the public key of the group member.

[0222] In some embodiments of the present invention, the edge server substitutes the group member public key and the latest service rating information into a preset function to calculate and obtain the group member public key signature information.

[0223] In some embodiments of the present invention, the edge server substitutes the latest service rating information into a hash function for hashing, and signs the hashed latest service rating information using the public key of the group member to obtain the group member public key signature information.

[0224] In some embodiments of the present invention, after receiving the latest service rating information and group member private key signature information, the edge server calculates the group member public key signature information according to formula (1-3) based on the latest service rating information and the group member public key calculated in S303. Wherein, formula (1-3) is:

[0225]

[0226] in, Sign the information for the group member's public key, is the public key of the group member, h is the hash function, and L is the latest service rating information.

[0227] S3042. Generate group signature information according to the group member public key signature information and the group member private key signature information.

[0228] In some embodiments of the present invention, after obtaining the group member public key signature information, the edge server generates group signature information according to the group member public key signature information and the group member private key signature information received in step S302.

[0229] In some embodiments of the present invention, the group signature information may be generated by adding the group member public key signature information and the group member private key signature information.

[0230] In some embodiments of the present invention, the group member public key signature information is open to all users. Users can learn from the group member public key signature information which group the group member public key signature information and the latest service rating information come from, and can also verify the validity of the latest service rating information. However, other users cannot obtain the identity information of the signer in the group signature information, that is, other users cannot obtain the identity information of the IoT device. It should be noted that the edge server can obtain the identity information of the IoT device corresponding to the group member private key signature information through the group member private key signature information to ensure the traceability of the group member private key signature information.

[0231] It can be understood that the group signature information is obtained by signing the latest service rating information based on the group signature technology between the IoT device and the edge server. The edge server hides the identity information of the IoT device through the group signature information, so that the IoT device is anonymous when rating and scoring the target service to generate the latest service rating information; it can also organize some IoT devices to maliciously rate the target service by verifying the correctness of the group signature information, that is, maliciously lowering the rating information of the target service. This can help establish trust between the IoT device and the cloud server, and protect the identity information of the IoT device.

[0232] S305. Through a preset smart contract, the latest service rating information and group signature information are stored in the preset smart contract of the blockchain network, so that the blockchain network can update the service rating information through the latest service rating information.

[0233] In the embodiment of the present invention, the edge server stores the latest service rating information and the group signature information generated by S304 in the preset smart contract of the blockchain network through the preset smart contract, so that the blockchain network updates the service rating information through the latest service rating information.

[0234] It is understandable that the edge server stores the latest service rating information in the preset smart contract of the blockchain network, so that the blockchain network updates the service rating information through the latest service rating information. It can ensure that when the edge server sends a service rating query request to the blockchain network to obtain service rating information, the service rating information obtained is the latest version. In this way, the dynamic update of service information is realized, which can improve the reliability and security of the target service obtained by the IoT device.

[0235] Figure 6 The following is a flow chart of a service provision method applied to an edge server provided by an embodiment of the present invention. Figure 5 ,like Figure 6 As shown, the method provided by the embodiment of the present invention is applied to an Internet of Things device, and the method includes:

[0236] S501: Send a service request to an edge server.

[0237] In the embodiment of the present invention, it is applicable to the scenario where the IoT device needs to obtain the target service and the reliability and security of the target service need to be guaranteed. Among them, the IoT device can be set as at least one IoT device, and at least one IoT device can send service requests to the same edge server or multiple edge servers at the same time. When the IoT device is set as multiple IoT devices, multiple service requests sent by multiple IoT devices can be used to request the same target service. The embodiment of the present invention is not limited.

[0238] In an embodiment of the present invention, an IoT device sends a service request to an edge server to obtain a target service.

[0239] In the embodiment of the present invention, the IoT device may be a mobile phone, a computer, a smart watch, etc. The IoT device may establish communication with the edge server via Wi-Fi (Wireless Fidelity) or an IoT card.

[0240] It is understandable that when an IoT device needs to obtain a target service, it sends a service request to the edge server and obtains the target service through the edge server, avoiding direct communication with the cloud server. In this way, if the cloud server providing the target service is unreliable, the IoT device can prevent it through the edge server, thereby ensuring the reliability of the target service obtained by the IoT device.

[0241] S502: Receive a target service sent by the edge server in response to a service request.

[0242] Among them, the target service is generated by the edge server based on the service rating information and service information, and the service rating information corresponds to the group; the service rating information is stored in the preset smart contract of the blockchain network; and the service information is obtained from the cloud server.

[0243] In the embodiment of the present invention, the Internet of Things device receives the target service sent by the edge server in response to the service request, thereby completing the acquisition of the target service.

[0244] In the embodiment of the present invention, the IoT device receives the target service and implements the service that the IoT device itself needs to implement. Each IoT device can receive multiple target services at the same time, provided that the IoT device supports multiple target services at the same time. For example, a mobile phone supports voice calls and text social networking at the same time.

[0245] It can be understood that the IoT device receives the target service through the edge server, which improves the speed at which the IoT device provides the target service to the user.

[0246] Figure 7 The following is a flow chart of a service provision method for an Internet of Things device provided by an embodiment of the present invention. Figure 1 ,like Figure 7 As shown, the method provided by the embodiment of the present invention is applied to an Internet of Things device, and the method also includes:

[0247] S601: Send a group joining request to an edge server.

[0248] Among them, the group joining request carries the identity information of the IoT device.

[0249] In the embodiment of the present invention, it is applicable to the scenario where the IoT device needs to join a group with an edge server as the group owner or group administrator to hide the privacy information of the IoT device itself through the group signature technology. Among them, each IoT device can join the groups of multiple edge servers at the same time, and multiple IoT devices can join the group of the same edge server. The embodiment of the present invention is not limited.

[0250] In an embodiment of the present invention, the IoT device sends a group joining request to the edge server to apply to join the group. The group joining request carries the identity information of the IoT device, so that the edge server can determine whether the IoT device can join the group based on the identity information.

[0251] In the embodiment of the present invention, the order of sending the group joining request and the service request can be to send the group joining request first and then send the service request; or to send the service request first and then send the group joining request; or to send the service request and the group joining request at the same time. This is not limited in the embodiment of the present invention.

[0252] In the embodiment of the present invention, it should be noted that the sending of the service request is performed according to demand, and the group joining request can be sent only once or multiple times.

[0253] In the embodiment of the present invention, each IoT device corresponds to multiple edge servers, and each edge server may correspond to multiple IoT devices.

[0254] It is understandable that the IoT device carries the identity information in the group joining request and sends it to the edge server, which makes it easier to determine the identity information of the IoT device. In this way, when joining the group of the edge server, there is no need to send the identity information to the edge server after sending the group joining request, which simplifies the steps and improves efficiency.

[0255] S602: Receive the group member private key and the group administrator public key sent by the edge server in response to the group joining request and join the group.

[0256] In the embodiment of the present invention, the IoT device receives the group member private key and the group administrator public key sent by the edge server in response to the group joining request, and joins the group.

[0257] In an embodiment of the present invention, when the IoT device receives a group member's private key, it can also receive the group administrator's public key sent by the edge server. The IoT device can join the group with the group member's private key and / or the group administrator's public key, and perform group signing with the group member's private key and / or the group administrator's public key.

[0258] In the embodiment of the present invention, after the IoT device receives the group administrator public key, the edge server can verify whether the IoT device belongs to the group for the edge server through the group administrator public key.

[0259] It is understandable that after the IoT device joins the group, it means that the IoT device is reliable, that is, the latest service rating information made by the IoT device for the target service is also valid. The edge server can track the identity information of the IoT device through the group administrator's public key, but the identity information of the IoT device is not disclosed to other users except the edge server, which ensures the privacy of the identity information of the IoT device and the traceability of the identity information of the IoT device.

[0260] Figure 8 This is a flow diagram of a service provision method applied to an Internet of Things device provided by an embodiment of the present invention. Figure 2 ,like Figure 8 As shown, the method provided by the embodiment of the present invention is applied to an Internet of Things device, and the method also includes:

[0261] S701: Receive a service rating request corresponding to a target service sent by an edge server.

[0262] In the embodiment of the present invention, it is applicable to the scenario where the IoT device rates the target service according to the target service, thereby ensuring the dynamic update of the service rating in the blockchain network. Among them, the IoT device can receive multiple service rating requests at the same time, each service rating request corresponds to a target service, and each service rating request can also correspond to the same target service provided by different cloud servers. When the IoT device receives multiple service rating requests at the same time, the multiple service rating requests can come from one edge server or from multiple edge servers. The embodiment of the present invention is not limited.

[0263] In the embodiment of the present invention, the Internet of Things device receives a service rating request sent by the edge server, and the service rating request corresponds to the target service.

[0264] In the embodiment of the present invention, the service rating request is used to request the IoT device to rate and score the target service, so as to serve as reference information for the cloud server that provides the target service.

[0265] It is understandable that the IoT device rates and scores the target service through the service rating request, which can ensure that subsequent IoT devices can obtain the latest information of the above-mentioned target service or the cloud server that provides the above-mentioned target service through the edge server, thereby ensuring the security and reliability of the target service obtained by the IoT device.

[0266] S702: In response to the service rating request, based on the target service and the group member's private key, generate the latest service rating information and group member's private key signature information, and send them to the edge server.

[0267] In an embodiment of the present invention, after receiving the service rating request, the IoT device responds to the service rating request and generates the latest service rating information and group member private key signature information corresponding to the target service based on the target service received in S502 and the group member private key received in S602.

[0268] It is understandable that the IoT device rates and scores the target service and generates the latest rating information, which can be used as reference information for the cloud server that provides the above target service. Other users can determine the reliability and security of the above cloud server through the latest rating information.

[0269] In some embodiments of the present invention, the target service rating is scored based on the target service to generate the latest service rating information.

[0270] In some embodiments of the present invention, the target service is rated and scored to generate the latest service rating information.

[0271] In some embodiments of the present invention, the latest service rating information is calculated using the group member's private key and a preset function to obtain the group member's private key signature information.

[0272] In some embodiments of the present invention, the group member private key obtained in S602 is used to sign the latest service rating information, thereby generating group member private key signature information.

[0273] It is understandable that the IoT device uses the group member private key to sign the latest service rating information group member private key signature information to generate group member private key signature information, which can ensure the reliability of the latest service rating information and prevent the IoT device from maliciously rating the target service, thereby affecting other IoT devices from obtaining the target service.

[0274] Fig. 9 This is a flow diagram of a service provision method applied to a blockchain network provided by an embodiment of the present invention. Figure 1 ,like Fig. 9 As shown, the embodiment of the present invention is applied to a blockchain network, and the method includes:

[0275] S801: Receive a service rating query request corresponding to a service request sent by an edge server.

[0276] In the embodiment of the present invention, it is applicable to the scenario of providing service rating information for edge servers, ensuring that the service rating information cannot be tampered with, and ensuring the reliability of the service rating information. Among them, the blockchain network can simultaneously receive multiple service rating query requests issued by multiple edge servers, and can also simultaneously receive multiple service rating query requests issued by each edge server, and send the corresponding service rating information to the edge server according to each service rating query request.

[0277] In an embodiment of the present invention, the blockchain network receives a service rating query rating request sent by an edge server; wherein the service rating query rating request corresponds to the service request.

[0278] In an embodiment of the present invention, the service query rating request is used to request the blockchain network to retrieve the service rating information of the cloud server corresponding to the service request, so as to determine the reliability and security of the above-mentioned cloud server based on the service rating information.

[0279] It is understandable that the service rating information is stored in the blockchain and cannot be tampered with or deleted, which improves the security and reliability of the service rating information.

[0280] S802. In response to the service rating query request, send the corresponding service rating information in the preset smart contract to the edge server.

[0281] Among them, the service rating information corresponds to the group.

[0282] The embodiment of the present invention is applicable to the scenario where a blockchain network and an edge server send and receive data without a third party.

[0283] In an embodiment of the present invention, the blockchain network responds to the service rating query request, retrieves the corresponding service rating information from the preset smart contract, and sends it to the edge server.

[0284] It is understandable that smart contracts allow trusted transactions without a third party, which are traceable and irreversible, ensuring the timeliness and security of service rating information provided by the blockchain network.

[0285] Fig.10 This is a flow diagram of a service provision method applied to a blockchain network provided by an embodiment of the present invention. Figure 2 ,like Fig.10 As shown, the method provided by the embodiment of the present invention is applied to a blockchain network, and the method further includes:

[0286] S901. Receive the latest service rating information and group signature information sent by the edge server.

[0287] In the embodiment of the present invention, it is applicable to the scenario where the blockchain network updates the service rating information in the preset smart contract.

[0288] In an embodiment of the present invention, the blockchain network receives the latest service rating information and group signature information sent by the edge server, wherein the group signature information corresponds to the latest service rating information.

[0289] It is understandable that after the blockchain network receives the latest service rating information and group signature information, the latest service rating information and group signature information will not be tampered with or deleted, thus ensuring the security and reliability of the latest service rating information and group signature information.

[0290] S902. Through a preset smart contract, the latest service rating information and group signature information are stored in the preset smart contract to update the service rating information with the latest service rating information.

[0291] In the embodiment of the present invention, it is applicable to the scenario where the blockchain network updates the service rating information to ensure the timeliness of the service rating information.

[0292] In an embodiment of the present invention, after receiving the latest service rating information and group signature information, the blockchain network stores the latest service rating information and group signature information in a preset smart contract through a preset smart contract, thereby updating the service rating information using the latest service rating information.

[0293] In the embodiment of the present invention, the updating can be completed by overwriting the service rating information with the latest service rating information.

[0294] It can be understood that by updating the service rating information in the reservation smart contract with the latest rating information, the reliability of the service rating information can be improved, so that the service rating information obtained by the edge server is the latest.

[0295] Fig.11 This is a flow diagram of a service provision method applied to a cloud server provided by an embodiment of the present invention. Figure 1 ,like Fig.11 As shown, the method provided by the embodiment of the present invention is applied to a cloud server, and the method includes:

[0296] S1001. Receive a service information request sent by an edge server.

[0297] The embodiment of the present invention is applicable to the scenario where a cloud server provides target services for an IoT device.

[0298] In the embodiment of the present invention, the cloud server receives a service information request sent by the edge server.

[0299] It can be understood that the cloud server does not communicate directly with the IoT devices, which can prevent the cloud server from being affected by malicious attacks or control.

[0300] S1002: In response to the service information request, send service information corresponding to the service information request to the edge server.

[0301] In the embodiment of the present invention, the cloud server responds to the service information request, retrieves the service information corresponding to the service information request, and sends the service information to the edge server.

[0302] In the embodiment of the present invention, the service information may be a service code, and the service code may be executed to generate a corresponding service (target service).

[0303] Fig. 12A A schematic diagram of a service providing method provided by an embodiment of the present invention Figure 1 , Fig. 12B A schematic diagram of a service providing method provided by an embodiment of the present invention Figure 2 ,like Fig. 12A and Fig. 12B As shown, an embodiment of the present invention provides a service providing method, the method comprising:

[0304] S1101. The edge server generates a group administrator public key and a group administrator private key.

[0305] S1102. The IoT device sends a group joining request and identity information to the edge server.

[0306] S1103: The edge server receives the group joining request and determines the identity information of the IoT device according to the identity information of the IoT device.

[0307] S1104: If the identity information of the IoT device meets the preset authorization conditions, the edge server generates a group member private key and a group certificate.

[0308] S1105. The edge server sends the group member private key and group certificate to the IoT device.

[0309] S1106. The edge server calculates the group member public key based on the group administrator private key and the group member private key.

[0310] S1107. The IoT device receives the group member private key and group certificate sent by the edge server and joins the group.

[0311] Fig.13A FIG. 3 is a flow chart of a service providing method provided by an embodiment of the present invention. Fig.13A As shown, the method also includes:

[0312] S1201. The IoT device sends a service request to the edge server.

[0313] S1202: The edge server receives a service request sent by an IoT device.

[0314] S1203. The edge server sends a service information request to the cloud server in response to the service request.

[0315] S1204. The edge server sends a service rating query request corresponding to the service request to the blockchain network.

[0316] S1205. The cloud server sends the service information to the edge server in response to the service information request.

[0317] S1206. The blockchain network receives a service rating query request corresponding to the service request issued by the edge server.

[0318] S1207. The blockchain network responds to the service rating query request and sends the corresponding service rating information in the preset smart contract to the edge server.

[0319] S1208. The edge server receives the service information sent by the cloud server.

[0320] S1209. The edge server receives the service rating information sent by the blockchain network.

[0321] S1210: The edge server generates a target service based on the service rating information and the service information and sends the target service to the IoT device.

[0322] S1211. The IoT device receives the target service sent by the edge server.

[0323] based on Fig.13A , Fig. 13B FIG. 4 is a flow chart of a service providing method provided by an embodiment of the present invention. Fig. 13B As shown, the method also includes:

[0324] S1212. The edge server sends a service rating request corresponding to the target service to the IoT device.

[0325] S1213. The IoT device receives a service rating request corresponding to the target service sent by the edge server, and generates the latest service rating information and group member private key signature information based on the target service and the group member private key in response to the service rating request.

[0326] S1214. The IoT device sends the latest service rating information and group member private key signature information to the edge server.

[0327] S1215. The edge server receives the latest service rating information and group member private key signature information sent by the IoT device.

[0328] S1216. The edge server generates corresponding group signature information based on the latest service rating information and group member private key signature information.

[0329] S1217. The edge server sends the latest service rating information and group signature information to the blockchain network through a preset smart contract.

[0330] S1218. The blockchain network receives the latest service rating information and group signature information sent by the edge server and stores it in a preset smart contract.

[0331] It can be understood that the embodiments of the present invention can not only ensure the reliability and security of the target service obtained by the IoT device, and prevent the IoT device from being harassed by malicious services, but also ensure the reliability and fairness of the service rating information of the service information provided by the cloud server, and avoid malicious rating of the service information by the IoT device. It also ensures the timeliness and reliability of the service rating information in the blockchain network.

[0332] Fig.14A A schematic diagram of a service providing method provided by an embodiment of the present invention Figure 10 Five, such as Fig.14A As shown, an embodiment of the present invention provides a service providing method, which is applied to a cloud service provider (cloud server), a blockchain (blockchain network), an Internet of Things device, and an edge server; the method includes:

[0333] S1301. The IoT device initiates a service request to the edge server to request a service (target service) from the cloud service provider.

[0334] S1302: After receiving the service request initiated by the IoT device, the edge server requests a service code (service information) from the cloud service provider.

[0335] S1303: The cloud service provider returns a corresponding service code to the edge server.

[0336] S1304. After receiving the service code, the edge server calls the smart contract to query the rating information (service rating information) corresponding to the service code in the blockchain.

[0337] In some embodiments of the present invention, the edge server may decide whether to execute the service code provided by the cloud service provider in response to the IoT device based on the rating information queried in the blockchain.

[0338] Understandably, this can protect IoT devices from threats posed by services generated by service codes provided by unreliable cloud service providers.

[0339] S1305: When the rating information is greater than or equal to a preset threshold, the edge server executes the service code to respond to the service request initiated by the IoT device, generates the service requested by the IoT device to the cloud service provider, and sends it to the IoT device.

[0340] In some embodiments of the present invention, the service rating information is greater than or equal to a preset threshold, which means that the trust value or level of the cloud service provider is greater than or equal to the preset threshold, which means that the service provider is highly reliable and the services they provide are guaranteed.

[0341] S1306. After obtaining the service, the IoT device sends the service rating (the latest service rating information) to the blockchain with the help of the edge server to provide feedback on the service status.

[0342] It is understandable that in this way, each service will have a dynamically updated rating information stored in the blockchain, and other IoT devices can avoid threats from unreliable or even malicious services based on the latest rating information of each service.

[0343] In some embodiments of the present invention, Fig. 14B A schematic diagram of a service providing method provided by an embodiment of the present invention Figure 10 Six, such as Fig. 14B As shown, S1306 also includes S13061-S13064, as follows:

[0344] S13061. The edge server initializes the group signature, establishes group resources (group), generates a group public key (group administrator public key) and a group private key (group administrator private key).

[0345] In some embodiments of the invention, the group public key is made public to all users.

[0346] In some embodiments of the present invention, the initialization of the edge server includes: first assuming that the group G0 is an additive cyclic group with a generator g, denoted by G= <g>; Let group G1 be a multiplication cyclic group of order p. According to the above additive cyclic group G0 and multiplication cyclic group G1, let the bilinear map e be G0×G0→G1. Finally, according to the above additive cyclic group G0, let the hash function h be Z. p →G0.

[0347] In some embodiments of the present invention, the edge server randomly selects x e ∈Z p As the group private key, the group public key is calculated based on the group private key, denoted as pk. Where pk = x g ∈G0, the user can verify whether the IoT device belongs to the group through the group public key pk, thereby determining the validity of the IoT device signature.

[0348] In some embodiments of the present invention, it should be noted that Z p The domain is determined according to user needs and is not limited in the embodiment of the present invention.

[0349] S13062. The edge server issues a group certificate (group public key) to the IoT device to invite it to join the group, and sends the group member private key to the IoT device.

[0350] In some embodiments of the present invention, let the IoT device be i, that is, the identity information of the IoT device is i. When the IoT device i wants to join a group, it first sends an application (group joining request) to the edge server; wherein the application should carry the identity of the IoT device (identity information i). When the edge server confirms the identity of the IoT device and determines that the authorization conditions are met, the edge server randomly selects As the private key of the group member and calculate the public key of the group member according to formula (1-2); send The IoT device is given the group certificate (group public key) so that the IoT device becomes a member of the group.

[0351] In some embodiments of the present invention, it should be noted that: The domain is determined according to user needs and is not limited in the embodiment of the present invention.

[0352] S13063. The IoT device signs the service rating using the acquired group member private key, generates a preliminary signed service rating and submits it to the edge server.

[0353] In some embodiments of the present invention, the service rating is L. For the service rating L, the IoT device calculates the group member private key signature information according to formula (1-1): This generates a preliminary signed service rating And the service rating after the initial signature Submit to the edge server, including the service rating L, the IoT device identity information i and the group member private key signature information Submit to the edge server.

[0354] In some embodiments of the present invention, the IoT device sends The premise is that the edge server is trustworthy. Since IoT devices are limited by their own hardware resources, when IoT devices request services from cloud servers, they need to trust the edge server to expand their own functions.

[0355] S13064. The IoT device submits the service rating after preliminary signing to the edge server through a secure channel. The edge server calculates the group member public key signature information and the group signature information, generates the signed service rating, and sends it to the blockchain with the help of the edge server. The signed service rating is the service rating.

[0356] In some embodiments of the present invention, the IoT device submits the service rating after preliminary signing to the edge server through a secure channel, and then signs the information based on the private key of the group member. And service rating L, calculate the group member public key signature information according to formula (1-3). Add the group member private key signature information to the group public key signature information to generate the group signature information, and record the group signature information as σ i , then the group signature information Based on the group signature information, the signed service rating (L, σ i ).

[0357] It can be understood that since the signed service rating information only contains the service rating L and the group signature information σ i , and will not disclose the identity information of IoT devices. Users can verify whether the group signature information in the signed service rating belongs to the group through the group public key pk, but they cannot know which IoT device group member private key signature information the above group signature information is based on to calculate. This can protect the privacy of IoT devices and prevent unauthorized IoT devices from disrupting normal services.

[0358] S1307. After receiving the service rating sent by the IoT device, the edge server updates the rating information stored in the blockchain by calling the smart contract.

[0359] In some embodiments of the present invention, the edge server as a group administrator can track the group signature (group member private key signature information) generated by the IoT device through the group private key and obtain the identity of the IoT device.

[0360] It is understandable that when the IoT device requests services from the cloud service provider through the edge server, the edge server prevents the IoT device from being threatened by malicious services by querying the rating information in the blockchain. In addition, after obtaining services from the cloud service provider, the IoT device can rate the service, and the service rating is anonymous, which can not only help build trust between the IoT device and the cloud service provider, but also will not expose the identity information of the IoT device. It solves the technical problem of how to know whether the service requested by the physical device is reliable and the reliability level of the requested service when the lightweight client of the IoT device requests services from the cloud service provider. At the same time, it achieves anonymous service rating after requesting the service, and sends it to the blockchain with the help of the edge server to realize the dynamic update of the rating information in the blockchain, which can help subsequent IoT devices obtain better and more reliable services.

[0361] The embodiment of the present invention provides a service providing device, which corresponds to a virtual device of an edge server, and corresponds to a service providing method applied to the edge server. Fig.15 is a schematic diagram of the structure of a service providing device provided by an embodiment of the present invention, such as Fig.15 As shown, the service providing device 14 includes a first receiving unit 1401, a first sending unit 1403 and a first generating unit 1402; wherein,

[0362] The first receiving unit 1401 is used to receive a service request sent by an IoT device, receive service information sent by a cloud server, and receive service rating information sent by a blockchain network;

[0363] The first generating unit 1402 is used to generate a target service based on the service rating information and the service information;

[0364] The first sending unit 1403 is used to send the service information request to the cloud server, send the service rating query request to the blockchain network, and send the target service to the Internet of Things device.

[0365] In some embodiments of the present invention, the first receiving unit 1401 is further used to receive a group joining request of the IoT device; the group joining request carries the identity information of the IoT device;

[0366] The first generating unit 1402 is further configured to generate a group administrator public key and a group administrator private key of the group; in response to the group joining request, if the identity information meets the preset authorization condition, generate a group member private key;

[0367] The first sending unit 1403 is further configured to send a group member private key to the IoT device, so that the IoT device joins the group.

[0368] In some embodiments of the present invention, the first receiving unit 1401 is further used to receive the latest service rating information and group member private key signature information sent by the IoT device in response to the service rating request; the group member private key signature information is calculated based on the preset function using the group member private key to obtain the latest service rating information;

[0369] The first generating unit 1402 is further configured to generate corresponding group signature information based on the latest service rating information and the group member private key signature information;

[0370] The first sending unit 1403 is also used to send a service rating request corresponding to the target service to the Internet of Things device; through a preset smart contract, the latest service rating information and the group signature information are stored in the preset smart contract of the blockchain network, so that the blockchain network can update the service rating information through the latest service rating information.

[0371] In some embodiments of the present invention, the first generating unit 1402 is further configured to calculate a group member public key based on the group administrator private key and the group member private key.

[0372] In some embodiments of the present invention, the first generating unit 1402 is further used to calculate the latest service rating information using the group member public key and a preset function to obtain group member public key signature information; and generate the group signature information according to the group member public key signature information and the group member private key signature information.

[0373] In some embodiments of the present invention, the first generating unit 1402 is further configured to obtain a random number as the group member private key if the identity of the IoT device meets a preset authorization condition.

[0374] In some embodiments of the present invention, the first generating unit 1402 is further configured to generate the target service according to the service information if the service rating information is greater than or equal to a preset rating threshold, and send the target service to the IoT device.

[0375] An embodiment of the present invention provides a service providing device, which corresponds to a virtual device of an Internet of Things device and corresponds to a service providing method applied to the Internet of Things device. Fig.16 A schematic diagram of the structure of another service providing device provided by an embodiment of the present invention, such as Fig.16 As shown, the service providing device 16 includes a second receiving unit 1601 and a second sending unit 1603; wherein,

[0376] The second receiving unit 1601 is used to receive a target service sent by the edge server;

[0377] The second sending unit 1603 is configured to send a service request to the edge server.

[0378] In some embodiments of the present invention, the service provider 16 further includes a second generating unit 1602, wherein the second generating unit 1602 is used to generate the latest service rating information and group member private key signature information based on the target service and the group member private key.

[0379] In some embodiments of the present invention, the second receiving unit 1601 is further configured to receive a service rating request corresponding to the target service sent by the edge server;

[0380] The second sending unit 1603 is further used to send the latest service rating information and group member private key signature information to the edge server;

[0381] The second generating unit 1602 is further configured to respond to the service rating request based on the target service and the group member private key.

[0382] In some embodiments of the present invention, the second generating unit 1602 is further used to score the target service rating based on the target service to generate the latest service rating information; use the group member private key and a preset function to calculate the latest service rating information to obtain the group member private key signature information.

[0383] An embodiment of the present invention provides a service providing device, which corresponds to a virtual device of a blockchain network and corresponds to a service providing method applied to a blockchain network. Fig.17 A schematic diagram of the structure of a service providing device provided by an embodiment of the present invention is shown in FIG. Fig.17 As shown, the service providing device 18 includes a third receiving unit 1801 and a third sending unit 1803; wherein,

[0384] The third receiving unit 1801 is used to receive a service rating query request sent by the edge server;

[0385] The third sending unit 1803 is used to send the corresponding service rating information in the preset smart contract to the edge server.

[0386] In some embodiments of the present invention, the service providing device 18 also includes a storage unit 1802; the storage unit 1802 is used to store the latest service rating information and group signature information received by the third receiving unit 1801 into a preset smart contract through a preset smart contract.

[0387] In some embodiments of the present invention, the service providing device 18 further includes an updating unit 1804, which is used to update the service rating information using the latest service rating information.

[0388] In some embodiments of the present invention, the third receiving unit 1801 is further configured to receive the latest service rating information and group signature information sent by the edge server.

[0389] The embodiment of the present invention also provides an edge server, and corresponds to a service providing method applied to the edge server. Fig.18 A schematic diagram of the structure of an edge server provided by an embodiment of the present invention is shown in FIG. Fig.18 As shown, the edge server 15 includes a first processor 151, a first memory 152 and a first communication bus 154. The first memory 152 communicates with the first processor 151 through the first communication bus 154. The first memory 152 stores one or more programs executable by the first processor 151. When the one or more programs are executed, the first processor 151 executes the service providing method as in the embodiment of the present invention. Specifically, the service providing device 15 also includes a first communication component 153 for data transmission, wherein the first processor 51 is provided with at least one.

[0390] In the embodiment of the present invention, the components in the service provider 15 are coupled together via the bus 154. It is understood that the bus 154 is used to realize the connection and communication between these components. In addition to the data bus, the bus 154 also includes a power bus, a control bus, and a status signal bus. However, for the sake of clarity, Fig.18 Various buses are labeled as passing through bus 154.

[0391] The embodiment of the present invention also provides an Internet of Things device, and corresponds to a service providing method applied to the Internet of Things device. Fig.19 A schematic diagram of the structure of an Internet of Things device provided by an embodiment of the present invention is shown in FIG. Fig.19 As shown, the Internet of Things device 17 includes a second processor 171, a second memory 172 and a second communication bus 174. The second memory 172 communicates with the second processor 171 via the second communication bus 174. The second memory 172 stores one or more programs executable by the second processor 171. When the one or more programs are executed, the second processor 171 executes the service providing method as in the embodiment of the present invention. Specifically, the service providing device 17 also includes a second communication component 173 for data transmission, wherein the second processor 51 is provided with at least one.

[0392] In the embodiment of the present invention, the components in the service provider 17 are coupled together via the bus 174. It is understood that the bus 174 is used to realize the connection and communication between these components. In addition to the data bus, the bus 174 also includes a power bus, a control bus, and a status signal bus. However, for the sake of clarity, Fig.19 Various buses are labeled as passing through bus 174.

[0393] An embodiment of the present invention also provides a blockchain network, and corresponds to a service providing method applied to the blockchain network. Fig. 20 A schematic diagram of the structure of a blockchain network provided by an embodiment of the present invention is shown in FIG. Fig. 20 As shown, the blockchain network 19 includes a third processor 191, a third memory 192 and a third communication bus 194. The third memory 192 communicates with the third processor 191 via the third communication bus 194. The third memory 192 stores one or more programs executable by the third processor 191. When the one or more programs are executed, the third processor 191 executes the service providing method as in the embodiment of the present invention. Specifically, the service providing device 19 also includes a third communication component 193 for data transmission, wherein the third processor 51 is provided with at least one.

[0394] In the embodiment of the present invention, the components in the service provider 19 are coupled together via a bus 194. It is understood that the bus 194 is used to realize the connection and communication between these components. In addition to the data bus, the bus 194 also includes a power bus, a control bus, and a status signal bus. However, for the sake of clarity, Fig. 20 Various buses are labeled as passing through bus 194.

[0395] An embodiment of the present invention provides a storage medium, wherein the storage medium stores executable instructions, and when the executable instructions are executed, is used to cause a first processor to execute the service providing method applied to an edge server as described in the embodiment of the present invention.

[0396] An embodiment of the present invention provides a storage medium, which stores executable instructions. When the executable instructions are executed, the second processor is used to execute the service providing method applied to the Internet of Things device as described in the embodiment of the present invention.

[0397] An embodiment of the present invention provides a storage medium, which stores executable instructions. When the executable instructions are executed, they are used to cause a third processor to execute the service providing method applied to a blockchain network as described in an embodiment of the present invention.

[0398] Those skilled in the art will appreciate that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of hardware embodiments, software embodiments, or embodiments combining software and hardware. Furthermore, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage and optical storage, etc.) containing computer-usable program code.

[0399] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0400] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0401] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0402] The above description is only a preferred embodiment of the present invention and is not intended to limit the protection scope of the present invention.< / g>

Claims

1. A service providing method, characterized in that: Applied to edge servers, including: Receive service requests from IoT devices; In response to the service request, sending a service information request to a cloud server, and sending a service rating query request corresponding to the service request to a blockchain network; Receive the service information sent by the cloud server in response to the service information request, and the service rating information sent by the blockchain network in response to the service rating query request; the service rating information is stored in a preset smart contract of the blockchain network; the service rating information corresponds to a group; the group refers to the group where the IoT device is located; Based on the service rating information and the service information, a target service is generated and sent to the IoT device.

2. The method according to claim 1, characterized in that: The method further comprises: Generate a group administrator public key and a group administrator private key of the group; Receive a group joining request from the IoT device; the group joining request carries the identity information of the IoT device; In response to the group joining request, if the identity information meets the preset authorization conditions, a group member private key is generated, and the group member private key and the group administrator public key are sent to the IoT device, so that the IoT device joins the group.

3. The method according to claim 2, characterized in that The method further comprises: Sending a service rating request corresponding to the target service to the Internet of Things device; Receiving the latest service rating information and group member private key signature information sent by the IoT device in response to the service rating request; the group member private key signature information is calculated based on the preset function using the group member private key to obtain the latest service rating information; Based on the latest service rating information and the group member private key signature information, generate corresponding group signature information; Through a preset smart contract, the latest service rating information and the group signature information are stored in the preset smart contract of the blockchain network, so that the blockchain network can update the service rating information through the latest service rating information.

4. The method according to claim 3, characterized in that Before generating the corresponding group signature information based on the latest service rating information and the group member private key signature information, the method further includes: The group member public key is calculated based on the group administrator private key and the group member private key.

5. The method according to claim 4, characterized in that The generating the corresponding group signature information based on the latest service rating information and the group member private key signature information includes: Using the group member public key and a preset function, the latest service rating information is calculated to obtain group member public key signature information; The group signature information is generated according to the group member public key signature information and the group member private key signature information.

6. The method according to claim 2, characterized in that The step of generating a group member private key in response to the group joining request if the identity information meets a preset authorization condition includes: If the identity of the IoT device meets the preset authorization conditions, a random number is obtained as the group member private key.

7. The method according to claim 1, characterized in that The generating a target service based on the service rating information and the service information and sending the target service to the IoT device comprises: If the service rating information is greater than or equal to a preset rating threshold, the target service is generated according to the service information, and the target service is sent to the Internet of Things device.

8. A service providing method, characterized in that: Applied to IoT devices, including: Send service request to edge server; Receive a target service sent by the edge server in response to the service request; the target service is generated by the edge server based on service rating information and service information, the service rating information corresponds to a group; the group refers to the group where the IoT device is located; the service rating information is stored in a preset smart contract of the blockchain network, so that the edge server obtains the service rating information from the preset smart contract; the service information is obtained from a cloud server.

9. The method according to claim 8, characterized in that The method further comprises: Sending a group joining request to the edge server; the group joining request carries the identity information of the IoT device; The group member private key is received from the edge server in response to the group joining request and the group is joined.

10. The method according to claim 9, characterized in that The method further comprises: receiving a service rating request corresponding to the target service sent by the edge server; In response to the service rating request, the latest service rating information and group member private key signature information are generated based on the target service and the group member private key, and sent to the edge server.

11. The method according to claim 10, characterized in that The generating the latest service rating information and group member private key signature information based on the target service and the group member private key includes: Based on the target service, scoring the target service rating and generating the latest service rating information; The latest service rating information is calculated using the group member private key and a preset function to obtain the group member private key signature information.

12. A service providing method, characterized in that: Applied to blockchain networks, including: receiving a service rating query request corresponding to the service request sent by the edge server; In response to the service rating query request, the corresponding service rating information in the preset smart contract is sent to the edge server, so that the edge server generates a target service based on the service rating information and service information and sends it to the Internet of Things device, and the service information is obtained from the cloud server; the service rating information corresponds to a group, and the group refers to the group where the Internet of Things device is located.

13. The method according to claim 12, characterized in that The method further comprises: Receiving the latest service rating information and group signature information sent by the edge server; Through a preset smart contract, the latest service rating information and the group signature information are stored in the preset smart contract, so that the service rating information is updated through the latest service rating information.

14. A service providing device, characterized in that: The device comprises a first receiving unit, a first sending unit and a first generating unit; wherein, The first receiving unit is used to receive a service request sent by an Internet of Things device; The first sending unit is used to send a service information request to the cloud server in response to the service request, and send a service rating query request corresponding to the service request to the blockchain network; The first receiving unit is further used to receive the service information sent by the cloud server in response to the service information request, and the service rating information sent by the blockchain network in response to the service rating query request; the service rating information is stored in a preset smart contract of the blockchain network; the service rating information corresponds to a group; the group refers to the group where the IoT device is located; The first generating unit is used to generate a target service based on the service rating information and the service information; The first sending unit is further used to send the target service to the Internet of Things device.

15. A service providing device, characterized in that: The device comprises a second receiving unit and a second sending unit; wherein, The second sending unit is used to send the service request to the edge server; The second receiving unit is used to receive the target service sent by the edge server in response to the service request; the target service is generated by the edge server based on service rating information and service information, and the service rating information corresponds to a group; the group refers to the group where the Internet of Things device is located; the service rating information is stored in a preset smart contract of the blockchain network, so that the edge server obtains the service rating information from the preset smart contract; the service information is obtained from the cloud server.

16. A service providing device, characterized in that: The device comprises a third receiving unit and a third sending unit; wherein, The third receiving unit is used to receive a service rating query request corresponding to the service request sent by the edge server; The third sending unit is used to respond to the service rating query request and send the corresponding service rating information in the preset smart contract to the edge server, so that the edge server generates a target service based on the service rating information and service information and sends it to the Internet of Things device, and the service information is obtained from the cloud server; the service rating information corresponds to a group, and the group refers to the group where the Internet of Things device is located.

17. An edge server, characterized in that: The edge server comprises: A first memory, used to store executable instructions; A first communication bus, used to implement communication between the first memory and the first processor; The first processor is used to execute the executable instructions stored in the first memory to implement the service providing method according to any one of claims 1 to 7.

18. An Internet of Things device, characterized in that: The IoT devices include: A second memory, used for storing executable instructions; A second communication bus, used to implement communication between the second memory and the second processor; The second processor is used to execute the executable instructions stored in the second memory to implement the service providing method as described in any one of claims 8-11.

19. A blockchain network, characterized in that: The blockchain network includes: A third memory, used to store executable instructions; A third communication bus, used to implement communication between the third memory and the third processor; The third processor is used to execute the executable instructions stored in the third memory to implement the service providing method as claimed in claim 12 or 13.

20. A storage medium, characterized in that: The storage medium stores executable instructions, which, when executed, are used to cause the first processor to execute the service providing method as described in any one of claims 1-7; or, to cause the second processor to execute the service providing method as described in any one of claims 8-11; or, to cause the third processor to execute the service providing method as described in claim 12 or 13.