技术问题technical problem
本发明实施例提供了一种基于雾计算和区块链的大数据计算方法及系统,可防止数据节点的资源数据通过大数据计算需求节点发生泄漏。Embodiments of the present invention provide a big data calculation method and system based on fog calculation and blockchain, which can prevent resource data of a data node from leaking through a big data calculation demand node.
技术解决方案Technical solution
第一方面,本发明提供了一种基于区块链和雾计算的大数据计算方法,包括:In a first aspect, the present invention provides a big data calculation method based on blockchain and fog calculation, comprising:
通过信息发布节点确定数据资源目录,根据所述数据资源目录形成智能合约,并将所述智能合约发布至区块链网络;Determining a data resource directory by the information publishing node, forming a smart contract according to the data resource directory, and publishing the smart contract to the blockchain network;
通过至少一个数据节点根据所述智能合约携带的所述数据资源目录,将当前所述数据节点拥有的资源数据的数据信息发布至所述区块链网络;And releasing, by the at least one data node, the data information of the resource data owned by the current data node to the blockchain network according to the data resource directory carried by the smart contract;
通过大数据计算需求节点根据各个所述数据信息及所述智能合约携带的所述数据资源目录,生成大数据计算智能合约并发布至所述区块链网络,其中,所述大数据计算智能合约携带需求信息及存储位置;Generating a smart data contract by the big data computing demand node according to each of the data information and the data resource directory carried by the smart contract, and publishing the smart contract to the blockchain network, wherein the big data computing smart contract Carrying demand information and storage location;
通过雾计算资源节点从雾计算网络中选择至少一个资源节点,根据选择的所述至少一个资源节点及所述大数据计算智能合约携带的所述需求信息生成任务智能合约,并将所述任务智能合约发布至所述区块链网络;Selecting at least one resource node from the fog computing network by using the fog computing resource node, generating a task smart contract according to the selected at least one resource node and the big data computing the demand information carried by the smart contract, and generating the task intelligence The contract is posted to the blockchain network;
通过验证节点根据所述任务智能合约及各个所述数据信息触发至少一个目标数据节点;At least one target data node is triggered by the verification node according to the task smart contract and each of the data information;
通过所述至少一个目标数据节点在所述验证节点的触发下向选择的所述至少一个资源节点发送对应于所述需求信息的目标资源数据;Transmitting, by the at least one target data node, target resource data corresponding to the demand information to the selected at least one resource node, triggered by the verification node;
通过选择的所述至少一个资源节点根据所述需求信息对各个所述目标资源数据进行计算以生成计算结果,并将生成的计算结果存储至所述存储位置。Each of the target resource data is calculated according to the demand information by the selected at least one resource node to generate a calculation result, and the generated calculation result is stored to the storage location.
优选地,Preferably,
所述需求信息,包括:目标数据类型、目标数据标识及计算方法。The demand information includes: a target data type, a target data identifier, and a calculation method.
优选地,Preferably,
所述通过雾计算资源节点从雾计算网络中选择至少一个资源节点,根据选择的所述至少一个资源节点及所述大数据计算智能合约携带的所述需求信息生成任务智能合约,并将所述任务智能合约发布至所述区块链网络,包括:The at least one resource node is selected from the fog computing network by the fog computing resource node, and the task intelligence contract is generated according to the selected at least one resource node and the demand information carried by the smart data computing smart contract, and the A mission intelligence contract is posted to the blockchain network, including:
通过雾计算资源节点从所述雾计算网络中选择一个空闲存储节点和一个空闲计算节点;Selecting, by the fog computing resource node, a free storage node and an idle computing node from the fog computing network;
通过所述雾计算资源节点根据所述空闲存储节点的第一节点标识、所述大数据计算智能合约携带的所述目标数据类型及所述目标数据标识生成存储任务智能合约;Generating, by the fog computing resource node, a storage task smart contract according to the first node identifier of the idle storage node, the target data type carried by the big data computing smart contract, and the target data identifier;
通过所述雾计算资源节点根据所述空闲计算节点的第二节点标识、所述大数据计算智能合约携带的所述计算方法生成计算任务智能合约;Generating, by the fog computing resource node, a computing task smart contract according to the second node identifier of the idle computing node and the computing method carried by the big data computing smart contract;
则,then,
所述通过验证节点根据所述任务智能合约及各个所述数据信息触发至少一个目标数据节点,包括:通过验证节点根据所述存储任务智能合约,从所述至少一个数据节点中选择至少一个目标数据节点,并触发所述至少一个目标数据节点;And the at least one target data node is triggered by the verification node according to the task smart contract and each of the data information, including: selecting, by the verification node, at least one target data from the at least one data node according to the storage task smart contract a node, and triggering the at least one target data node;
所述通过所述至少一个目标数据节点在所述验证节点的触发下向选择的所述至少一个资源节点发送对应于所述需求信息的目标资源数据,包括:通过所述至少一个目标数据节点在所述验证节点的触发下根据所述存储任务智能合约携带的所述目标数据类型及所述目标数据标识向所述空闲存储节点存储目标资源数据。Transmitting, by the at least one target data node, target resource data corresponding to the requirement information to the selected at least one resource node, triggered by the verification node, including: by the at least one target data node The triggering of the verification node stores the target resource data to the idle storage node according to the target data type carried by the storage task smart contract and the target data identifier.
优选地,Preferably,
所述通过选择的所述至少一个资源节点根据所述需求信息对各个所述目标资源数据进行计算以生成计算结果,并将生成的计算结果存储至所述存储位置,包括:And calculating, by the selected at least one resource node, each of the target resource data according to the requirement information to generate a calculation result, and storing the generated calculation result to the storage location, including:
通过所述空闲计算节点读取所述空闲存储节点中存储的各个所述目标资源数据,并根据所述计算任务智能合约携带的所述计算方法对各个所述目标资源数据进行计算以生成计算结果,并将生成的计算结果存储至所述存储位置。Reading, by the idle computing node, each of the target resource data stored in the idle storage node, and calculating, according to the calculation method carried in the computing task smart contract, each target resource data to generate a calculation result And storing the generated calculation result to the storage location.
优选地,Preferably,
所述通过雾计算资源节点从所述雾计算网络中选择一个空闲存储节点和一个空闲计算节点,进一步包括:生成所述空闲存储节点所对应的私钥及公钥;The selecting a free storage node and an idle computing node from the fog computing network by the fog computing resource node further includes: generating a private key and a public key corresponding to the idle storage node;
则,所述通过所述雾计算资源节点根据所述空闲存储节点的第一节点标识、所述大数据计算智能合约携带的所述目标数据类型及所述目标数据标识生成存储任务智能合约,包括:通过所述雾计算资源节点根据所述空闲存储节点的第一节点标识、所述大数据计算智能合约携带的所述目标数据类型、所述公钥及所述目标数据标识生成存储任务智能合约;And generating, by the fog computing resource node, a storage task smart contract according to the first node identifier of the idle storage node, the target data type carried by the big data computing smart contract, and the target data identifier, including Generating, by the fog computing resource node, a storage task smart contract according to the first node identifier of the idle storage node, the target data type carried by the big data computing smart contract, the public key, and the target data identifier ;
所述通过所述至少一个目标数据节点在所述验证节点的触发下根据所述存储任务智能合约携带的所述目标数据类型及所述目标数据标识向所述空闲存储节点存储目标资源数据,包括:通过所述至少一个目标数据节点在所述验证节点的触发下根据所述存储任务智能合约携带的所述目标数据类型及所述目标数据标识确定目标资源数据,并根据所述存储任务智能合约携带的所述公钥对所述目标资源数据进行加密以形成对应于所述目标资源数据的密文,将对应于所述目标资源数据的密文发送至所述空闲存储节点。Transmitting, by the at least one target data node, the target resource data to the idle storage node according to the target data type and the target data identifier carried by the storage task smart contract, including triggering by the verification node, including Determining target resource data according to the target data type and the target data identifier carried by the storage task smart contract by the at least one target data node under the trigger of the verification node, and according to the storage task smart contract The carried public key encrypts the target resource data to form a ciphertext corresponding to the target resource data, and sends a ciphertext corresponding to the target resource data to the idle storage node.
第二方面,本发明实施例提供了一种基于区块链和雾计算的大数据计算系统,包括:In a second aspect, an embodiment of the present invention provides a big data computing system based on blockchain and fog calculation, including:
信息发布节点、至少一个数据节点、大数据计算需求节点、雾计算资源节点、验证节点、区块链网络及包括有至少一个资源节点的雾计算网络;其中,An information publishing node, at least one data node, a big data computing demand node, a fog computing resource node, a verification node, a blockchain network, and a fog computing network including at least one resource node; wherein
所述信息发布节点,用于确定数据资源目录,根据所述数据资源目录形成智能合约,并将所述智能合约发布至区块链网络;The information publishing node is configured to determine a data resource directory, form a smart contract according to the data resource directory, and publish the smart contract to a blockchain network;
所述至少一个数据节点,用于根据所述智能合约携带的所述数据资源目录,将当前所述数据节点拥有的资源数据的数据信息发布至所述区块链网络;在作为目标数据节点被所述验证节点触发时,向选择的所述至少一个资源节点发送对应于所述需求信息的目标资源数据;And the at least one data node is configured to: publish, according to the data resource directory carried by the smart contract, data information of resource data owned by the current data node to the blockchain network; When the verification node is triggered, the target resource data corresponding to the requirement information is sent to the selected at least one resource node;
所述大数据计算需求节点,用于根据各个所述数据信息及所述智能合约携带的所述数据资源目录,生成大数据计算智能合约并发布至所述区块链网络,其中,所述大数据计算智能合约携带需求信息及存储位置;The big data computing demand node is configured to generate a big data computing smart contract according to each of the data information and the data resource directory carried by the smart contract, and publish the smart contract to the blockchain network, where the large The data computing smart contract carries the demand information and the storage location;
所述雾计算资源节点,用于从雾计算网络中选择至少一个资源节点,根据选择的所述至少一个资源节点及所述大数据计算智能合约携带的所述需求信息生成任务智能合约,并将所述任务智能合约发布至所述区块链网络;The fog computing resource node is configured to select at least one resource node from the fog computing network, generate a task smart contract according to the selected at least one resource node and the big data computing the demand information carried by the smart contract, and The task smart contract is issued to the blockchain network;
所述验证节点,用于根据所述任务智能合约及各个所述数据信息触发至少一个目标数据节点;The verification node is configured to trigger at least one target data node according to the task smart contract and each of the data information;
所述至少一个资源节点,用于在被所述雾计算资源节点选择后,根据所述需求信息对各个所述目标资源数据进行计算以生成计算结果,并将生成的计算结果存储至所述存储位置。The at least one resource node, after being selected by the fog computing resource node, calculates each target resource data according to the demand information to generate a calculation result, and stores the generated calculation result to the storage position.
优选地,Preferably,
所述需求信息,包括:目标数据类型、目标数据标识及计算方法。The demand information includes: a target data type, a target data identifier, and a calculation method.
优选地,Preferably,
所述雾计算资源节点,用于从所述雾计算网络中选择一个空闲存储节点和一个空闲计算节点;根据根据所述空闲存储节点的第一节点标识、所述大数据计算智能合约携带的所述目标数据类型及所述目标数据标识生成存储任务智能合约;根据所述空闲计算节点的第二节点标识、所述大数据计算智能合约携带的所述计算方法生成计算任务智能合约;The fog computing resource node is configured to select one idle storage node and one idle computing node from the fog computing network; and calculate, according to the first node identifier of the idle storage node, the big data, the smart contract carrying Generating a storage task smart contract according to the target data type and the target data identifier; generating a computing task smart contract according to the second node identifier of the idle computing node and the computing method carried by the big data computing smart contract;
则,then,
所述验证节点,用于根据所述存储任务智能合约,从所述至少一个数据节点中选择至少一个目标数据节点,并触发所述至少一个目标数据节点;The verification node is configured to select at least one target data node from the at least one data node according to the storage task smart contract, and trigger the at least one target data node;
所述数据节点,用于在作为目标数据节点被所述验证节点触发时根据所述存储任务智能合约携带的所述目标数据类型及所述目标数据标识向所述空闲存储节点存储目标资源数据。The data node is configured to store target resource data to the idle storage node according to the target data type and the target data identifier carried by the storage task smart contract when the target data node is triggered by the verification node.
优选地,Preferably,
所述资源节点,用于在被所述雾计算资源节点选择为空闲计算节点时,读取所述空闲存储节点中存储的各个所述目标资源数据,并根据所述计算任务智能合约携带的所述计算方法对各个所述目标资源数据进行计算以生成计算结果,并将生成的计算结果存储至所述存储位置。And the resource node is configured to: when the selected one of the target storage resource data stored in the idle storage node is selected as the idle computing node, and according to the computing task smart contract The calculation method calculates each of the target resource data to generate a calculation result, and stores the generated calculation result to the storage location.
优选地,Preferably,
所述雾计算资源节点,包括:秘钥生成模块和合约处理模块;其中,The fog computing resource node includes: a secret key generating module and a contract processing module; wherein
所述秘钥生成模块,用于生成所述空闲存储节点所对应的私钥及公钥;The secret key generating module is configured to generate a private key and a public key corresponding to the idle storage node;
所述合约处理模块,用于根据所述空闲存储节点的第一节点标识、所述大数据计算智能合约携带的所述目标数据类型、所述公钥及所述目标数据标识生成存储任务智能合约;The contract processing module is configured to generate a storage task smart contract according to the first node identifier of the idle storage node, the target data type carried by the big data computing smart contract, the public key, and the target data identifier ;
所述数据节点,用于在作为目标数据节点被所述验证节点触发时根据所述存储任务智能合约携带的所述目标数据类型及所述目标数据标识确定目标资源数据,并根据所述存储任务智能合约携带的所述公钥对所述目标资源数据进行加密以形成对应于所述目标资源数据的密文,将对应于所述目标资源数据的密文发送至所述空闲存储节点。The data node is configured to determine target resource data according to the target data type and the target data identifier carried by the storage task smart contract when the target data node is triggered by the verification node, and according to the storage task The public key carried by the smart contract encrypts the target resource data to form a ciphertext corresponding to the target resource data, and sends a ciphertext corresponding to the target resource data to the idle storage node.
有益效果Beneficial effect
本发明实施例提供了一种基于雾计算和区块链的大数据计算方法,该方法中,通过信息发布节点向区块链发布携带数据资源目录的智能合约,各个数据节点则可根据区块链网络中的智能合约所携带的资源目录,将其可以用于大数据计算的资源数据的数据信息发布至区块链网络,大数据计算需求节点则可根据智能合约所携带的数据资源目录以及区块链网络中的各个数据信息,向区块链网络发布携带需求信息及存储位置的大数据计算智能合约,后续的,雾计算资源节点则可从雾计算网络中选择一个或多个资源节点,并根据选择的各个资源节点生成任务智能合约后发布至区块链网络,由验证节点根据任务智能合约及各个数据信息触发符合需求信息的一个或多个目标数据节点,各个目标数据节点则可在验证节点的触发下向雾计算网络中被选择的资源节点发送符合需求信息的目标资源数据,进而由雾计算网络中被选择的资源节点对各个目标资源数据进行计算以生成计算结果,然后将计算结果发送至大数据计算智能合约所携带的存储位置。综上可见,通过本发明的技术方案实现大数据计算时,大数据计算需求节点无需访问数据节点,大数据计算的计算过程仅在雾计算网络中的一个或多个资源节点上进行,各个数据节点的资源数据不会直接共享给大数据计算需求节点,可防止数据节点的资源数据通过大数据计算需求节点发生泄漏。The embodiment of the invention provides a big data calculation method based on fog calculation and blockchain. In this method, a smart contract carrying a data resource directory is issued to a blockchain through an information publishing node, and each data node can be based on a block. The resource catalog carried by the smart contract in the chain network publishes the data information of the resource data that can be used for big data calculation to the blockchain network, and the big data computing demand node can be based on the data resource catalog carried by the smart contract and Each piece of data information in the blockchain network issues a big data computing smart contract carrying the demand information and the storage location to the blockchain network, and subsequent, the fog computing resource node may select one or more resource nodes from the fog computing network. And generating a task smart contract according to each selected resource node, and then publishing to the blockchain network, and the verification node triggers one or more target data nodes that meet the demand information according to the task smart contract and each data information, and each target data node may The selected resource node in the fog computing network is triggered by the verification node. Meet the needs of the target resource information data, and further calculating by the mist of the selected network resource node for each target resource data to produce calculated results, and then send the calculation result is calculated to large data storage location intelligence carried contract. In summary, when the big data calculation is implemented by the technical solution of the present invention, the big data calculation requirement node does not need to access the data node, and the calculation process of the big data calculation is performed only on one or more resource nodes in the fog calculation network, and each data is performed. The resource data of the node is not directly shared to the big data computing demand node, which can prevent the resource data of the data node from leaking through the big data computing demand node.
本发明的实施方式Embodiments of the invention
为使本发明实施例的目的、技术方案和优点更加清楚,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例,基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动的前提下所获得的所有其他实施例,都属于本发明保护的范围。The technical solutions in the embodiments of the present invention will be clearly and completely described in conjunction with the drawings in the embodiments of the present invention. It is a part of the embodiments of the present invention, and not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative efforts are protected by the present invention. range.
如图1所示,本发明实施例提供了一种基于区块链和雾计算的大数据计算方法,包括:As shown in FIG. 1 , an embodiment of the present invention provides a big data calculation method based on blockchain and fog calculation, including:
步骤101,通过信息发布节点确定数据资源目录,根据所述数据资源目录形成智能合约,并将所述智能合约发布至区块链网络;Step 101: Determine a data resource directory by using an information publishing node, form a smart contract according to the data resource directory, and publish the smart contract to a blockchain network;
步骤102,通过至少一个数据节点根据所述智能合约携带的所述数据资源目录,将当前所述数据节点拥有的资源数据的数据信息发布至所述区块链网络;Step 102: The data information of the resource data owned by the current data node is released to the blockchain network by the at least one data node according to the data resource directory carried by the smart contract.
步骤103,通过大数据计算需求节点根据各个所述数据信息及所述智能合约携带的所述数据资源目录,生成大数据计算智能合约并发布至所述区块链网络,其中,所述大数据计算智能合约携带需求信息及存储位置;Step 103: Generate, by the big data computing requirement node, a big data computing smart contract according to each of the data information and the data resource directory carried by the smart contract, and publish the smart contract to the blockchain network, where the big data is Calculate the smart contract carrying demand information and storage location;
步骤104,通过雾计算资源节点从雾计算网络中选择至少一个资源节点,根据选择的所述至少一个资源节点及所述大数据计算智能合约携带的所述需求信息生成任务智能合约,并将所述任务智能合约发布至所述区块链网络;Step 104: Select, by the fog computing resource node, at least one resource node from the fog computing network, and generate a task smart contract according to the selected at least one resource node and the big data computing the demand information carried by the smart contract, and The task smart contract is posted to the blockchain network;
步骤105,通过验证节点根据所述任务智能合约及各个所述数据信息触发至少一个目标数据节点;Step 105: The at least one target data node is triggered by the verification node according to the task smart contract and each of the data information.
步骤106,通过所述至少一个目标数据节点在所述验证节点的触发下向选择的所述至少一个资源节点发送对应于所述需求信息的目标资源数据;Step 106: Send, by the at least one target data node, target resource data corresponding to the requirement information to the selected at least one resource node, triggered by the verification node;
步骤107,通过选择的所述至少一个资源节点根据所述需求信息对各个所述目标资源数据进行计算以生成计算结果,并将生成的计算结果存储至所述存储位置。Step 107: Calculate each target resource data according to the requirement information by the selected at least one resource node to generate a calculation result, and store the generated calculation result to the storage location.
如图1所示的实施例,通过信息发布节点向区块链发布携带数据资源目录的智能合约,各个数据节点则可根据区块链网络中的智能合约所携带的资源目录,将其可以用于大数据计算的资源数据的数据信息发布至区块链网络,大数据计算需求节点则可根据智能合约所携带的数据资源目录以及区块链网络中的各个数据信息,向区块链网络发布携带需求信息及存储位置的大数据计算智能合约,后续的,雾计算资源节点则可从雾计算网络中选择一个或多个资源节点,并根据选择的各个资源节点生成任务智能合约后发布至区块链网络,由验证节点根据任务智能合约及各个数据信息触发符合需求信息的一个或多个目标数据节点,各个目标数据节点则可在验证节点的触发下向雾计算网络中被选择的资源节点发送符合需求信息的目标资源数据,进而由雾计算网络中被选择的资源节点对各个目标资源数据进行计算以生成计算结果,然后将计算结果发送至大数据计算智能合约所携带的存储位置。综上可见,通过本发明的技术方案实现大数据计算时,大数据计算需求节点无需访问数据节点,大数据计算的计算过程仅在雾计算网络中的一个或多个资源节点上进行,各个数据节点的资源数据不会直接共享给大数据计算需求节点,可防止数据节点的资源数据通过大数据计算需求节点发生泄漏。In the embodiment shown in FIG. 1, the smart contract carrying the data resource directory is issued to the blockchain through the information publishing node, and each data node can be used according to the resource directory carried by the smart contract in the blockchain network. The data information of the resource data calculated by the big data is released to the blockchain network, and the big data computing demand node can be released to the blockchain network according to the data resource directory carried by the smart contract and each data information in the blockchain network. The big data computing smart contract carrying the demand information and the storage location, and subsequent, the fog computing resource node may select one or more resource nodes from the fog computing network, and generate a task smart contract according to the selected resource nodes and then publish to the zone. In the blockchain network, the verification node triggers one or more target data nodes that meet the demand information according to the task smart contract and each data information, and each target data node can trigger the selected resource node in the network under the trigger of the verification node. Send target resource data that meets the demand information, and then be The selected resource node calculates each target resource data to generate a calculation result, and then sends the calculation result to the storage location carried by the big data calculation smart contract. In summary, when the big data calculation is implemented by the technical solution of the present invention, the big data calculation requirement node does not need to access the data node, and the calculation process of the big data calculation is performed only on one or more resource nodes in the fog calculation network, and each data is performed. The resource data of the node is not directly shared to the big data computing demand node, which can prevent the resource data of the data node from leaking through the big data computing demand node.
上述实施例中,为了实现对各个节点的身份进行标识,信息发布节点还可以标识出所有的参与节点,包括对数据节点、大数据计算需求节点、验证节点及雾计算资源节点等的身份进行标识,利用各个参与节点身份标识形成标识智能合约,然后发布到区块链网络中,如此,所有的参与节点均可通过查看标识智能合约对各个参与节点的身份进料了解。In the above embodiment, in order to identify the identity of each node, the information publishing node may also identify all participating nodes, including identifying the identity of the data node, the big data computing demand node, the verification node, and the fog computing resource node. The identification smart contract is formed by using each participating node identity, and then posted to the blockchain network, so that all participating nodes can understand the identity of each participating node by viewing the identification smart contract.
具体地,所述需求信息,包括:目标数据类型、目标数据标识及计算方法。不难理解的,一个需求信息可以包括多个分解任务,每一个分解任务可分别对应相应的目标数据类型、目标数据标识及计算方法。Specifically, the requirement information includes: a target data type, a target data identifier, and a calculation method. It is not difficult to understand that a requirement information may include multiple decomposition tasks, and each decomposition task may correspond to a corresponding target data type, target data identifier, and calculation method, respectively.
本发明一个实施例中,所述通过雾计算资源节点从雾计算网络中选择至少一个资源节点,根据选择的所述至少一个资源节点及所述大数据计算智能合约携带的所述需求信息生成任务智能合约,并将所述任务智能合约发布至所述区块链网络,包括:In an embodiment of the present invention, the cloud computing resource node selects at least one resource node from the fog computing network, and generates the task according to the selected at least one resource node and the big data computing the demand information carried by the smart contract. Smart contracting and publishing the task smart contract to the blockchain network, including:
通过雾计算资源节点从所述雾计算网络中选择一个空闲存储节点和一个空闲计算节点;Selecting, by the fog computing resource node, a free storage node and an idle computing node from the fog computing network;
通过所述雾计算资源节点根据所述空闲存储节点的第一节点标识、所述大数据计算智能合约携带的所述目标数据类型及所述目标数据标识生成存储任务智能合约;Generating, by the fog computing resource node, a storage task smart contract according to the first node identifier of the idle storage node, the target data type carried by the big data computing smart contract, and the target data identifier;
通过所述雾计算资源节点根据所述空闲计算节点的第二节点标识、所述大数据计算智能合约携带的所述计算方法生成计算任务智能合约;Generating, by the fog computing resource node, a computing task smart contract according to the second node identifier of the idle computing node and the computing method carried by the big data computing smart contract;
则,then,
所述通过验证节点根据所述任务智能合约及各个所述数据信息触发至少一个目标数据节点,包括:通过验证节点根据所述存储任务智能合约,从所述至少一个数据节点中选择至少一个目标数据节点,并触发所述至少一个目标数据节点;And the at least one target data node is triggered by the verification node according to the task smart contract and each of the data information, including: selecting, by the verification node, at least one target data from the at least one data node according to the storage task smart contract a node, and triggering the at least one target data node;
所述通过所述至少一个目标数据节点在所述验证节点的触发下向选择的所述至少一个资源节点发送对应于所述需求信息的目标资源数据,包括:通过所述至少一个目标数据节点在所述验证节点的触发下根据所述存储任务智能合约携带的所述目标数据类型及所述目标数据标识向所述空闲存储节点存储目标资源数据。Transmitting, by the at least one target data node, target resource data corresponding to the requirement information to the selected at least one resource node, triggered by the verification node, including: by the at least one target data node The triggering of the verification node stores the target resource data to the idle storage node according to the target data type carried by the storage task smart contract and the target data identifier.
上述实施例中,雾计算资源节点可从雾计算网络中选择出相对空闲的空闲存储节点和空闲计算节点,根据空闲存储节点的第一节点标识、需求信息中携带的目标数据类型及目标数据标识生成存储任务智能合约,并根据空闲计算节点的第二节点标识、需求信息中携带的计算方法生成计算任务智能合约;后续过程中,验证节点则可根据存储任务智能合约,从至少一个数据节点中选择至少一个目标数据节点(各个目标数据节点应当能够提供具有目标数据标识且其数据格式为目标数据类型的资源数据),并触发各个目标数据节点,使得各个目标数据节点根据存储任务智能合约中携带的第一节点标识向空闲存储节点存储目标资源数据。如此,则可实现将大数据计算过程中需要用到的资源数据存储到雾计算网络中相对较为空闲的存储节点,雾计算网络中较为空闲的存储节点能够更加高效的完成目标资源数据的存取,提高大数据计算效率。In the foregoing embodiment, the fog computing resource node may select a relatively idle idle storage node and an idle computing node from the fog computing network, according to the first node identifier of the idle storage node, the target data type carried in the demand information, and the target data identifier. Generating a storage task smart contract, and generating a computing task smart contract according to the second node identifier of the idle computing node and the calculation method carried in the demand information; in the subsequent process, the verification node may be from the at least one data node according to the storage task smart contract Selecting at least one target data node (each target data node should be able to provide resource data with a target data identifier and a data format of the target data type), and trigger each target data node, so that each target data node is carried according to the storage task smart contract The first node identifier stores target resource data to the idle storage node. In this way, the resource data that needs to be used in the big data calculation process can be stored in the relatively idle storage node in the fog computing network, and the idle storage node in the fog computing network can more efficiently complete the access of the target resource data. Improve the efficiency of big data calculations.
相应的,本发明一个实施例中,所述通过选择的所述至少一个资源节点根据所述需求信息对各个所述目标资源数据进行计算以生成计算结果,并将生成的计算结果存储至所述存储位置,包括:通过所述空闲计算节点读取所述空闲存储节点中存储的各个所述目标资源数据,并根据所述计算任务智能合约携带的所述计算方法对各个所述目标资源数据进行计算以生成计算结果,并将生成的计算结果存储至所述存储位置。Correspondingly, in an embodiment of the present invention, the selected at least one resource node calculates each target resource data according to the demand information to generate a calculation result, and stores the generated calculation result into the The storage location includes: reading, by the idle computing node, each of the target resource data stored in the idle storage node, and performing, according to the calculation method carried in the computing task smart contract, each target resource data The calculation is performed to generate a calculation result, and the generated calculation result is stored to the storage location.
上述实施例中,验证节点可在各个目标数据节点将相应的目标资源数据存储至选择的空闲存储节点之后,根据计算任务智能合约汇总携带的第二节点标识触发选择的空闲计算节点,使得空闲计算节点读取空闲存储节点中存储的各个目标资源数据,并根据计算任务智能合约中携带的计算方法对各个目标资源数据进行计算以生成计算结果,然后将生成的计算结果存储至存储位置。如此,则可实现通过雾计算网络中较为空闲的计算节点执行大数据计算过程中的计算任务,空闲计算节点能够更加高效的完成大数据计算过程的计算任务,提高大数据计算效率。In the above embodiment, after the respective target data nodes store the corresponding target resource data to the selected idle storage node, the verification node may trigger the selected idle computing node according to the second node identifier carried in the computing task smart contract summary, so that the idle computing is performed. The node reads each target resource data stored in the idle storage node, and calculates each target resource data according to a calculation method carried in the computing task smart contract to generate a calculation result, and then stores the generated calculation result to the storage location. In this way, the calculation task in the process of performing big data calculation by the relatively idle computing nodes in the fog computing network can be realized, and the idle computing node can more efficiently complete the computing task of the big data computing process and improve the computing efficiency of the big data.
应当理解的是,当需求信息中携带多个分解任务时,空闲计算节点应当针对于每一个分解任务,根据该分解任务所对应的计算方法对相应的目标资源数据进行计算,得到的中间结果可暂时存储到空闲存储节点,存储到空闲存储节点的中间结果可继续用于后续的分解任务,直到完成每一个分解任务之后即可得到一个符合大数据计算需求的计算结果,只有得到的计算结果可以被存储至大数据计算智能合约中携带的存储位置下,以便大数据计算需求节点从该存储位置读取该计算结果。It should be understood that when the requirement information carries multiple decomposition tasks, the idle calculation node should calculate the corresponding target resource data according to the calculation method corresponding to the decomposition task for each decomposition task, and the obtained intermediate result may be obtained. Temporarily stored to the idle storage node, the intermediate result stored to the idle storage node can continue to be used for subsequent decomposition tasks, until after each decomposition task is completed, a calculation result that meets the requirements of big data calculation can be obtained, and only the obtained calculation result can be obtained. It is stored under the storage location carried in the big data computing smart contract, so that the big data computing demand node reads the calculation result from the storage location.
本发明一个实施例中,所述通过雾计算资源节点从所述雾计算网络中选择一个空闲存储节点和一个空闲计算节点,进一步包括:生成所述空闲存储节点所对应的私钥及公钥;In an embodiment of the present invention, the selecting a free storage node and an idle computing node from the fog computing network by the fog computing resource node further includes: generating a private key and a public key corresponding to the idle storage node;
则,所述通过所述雾计算资源节点根据所述空闲存储节点的第一节点标识、所述大数据计算智能合约携带的所述目标数据类型及所述目标数据标识生成存储任务智能合约,包括:通过所述雾计算资源节点根据所述空闲存储节点的第一节点标识、所述大数据计算智能合约携带的所述目标数据类型、所述公钥及所述目标数据标识生成存储任务智能合约;And generating, by the fog computing resource node, a storage task smart contract according to the first node identifier of the idle storage node, the target data type carried by the big data computing smart contract, and the target data identifier, including Generating, by the fog computing resource node, a storage task smart contract according to the first node identifier of the idle storage node, the target data type carried by the big data computing smart contract, the public key, and the target data identifier ;
所述通过所述至少一个目标数据节点在所述验证节点的触发下根据所述存储任务智能合约携带的所述目标数据类型及所述目标数据标识向所述空闲存储节点存储目标资源数据,包括:通过所述至少一个目标数据节点在所述验证节点的触发下根据所述存储任务智能合约携带的所述目标数据类型及所述目标数据标识确定目标资源数据,并根据所述存储任务智能合约携带的所述公钥对所述目标资源数据进行加密以形成对应于所述目标资源数据的密文,将对应于所述目标资源数据的密文发送至所述空闲存储节点。Transmitting, by the at least one target data node, the target resource data to the idle storage node according to the target data type and the target data identifier carried by the storage task smart contract, including triggering by the verification node, including Determining target resource data according to the target data type and the target data identifier carried by the storage task smart contract by the at least one target data node under the trigger of the verification node, and according to the storage task smart contract The carried public key encrypts the target resource data to form a ciphertext corresponding to the target resource data, and sends a ciphertext corresponding to the target resource data to the idle storage node.
上述实施例中,雾计算资源节点从雾计算网络中选择相应的空闲存储节点时,可生成空闲存储节点所对应的私钥及公钥,后续过程中,各个被验证节点触发的目标数据节点则可根据存储任务智能合约中携带的公钥对目标资源数据进行加密以形成对应于目标资源数据的密文,密文被存储至空闲存储节点后,空闲存储节点可根据对应的私钥进行解密以得到相应的目标资源数据,如此,可防止目标资源数据从数据节点传输至空闲存储节点的过程中被恶意窃取。In the above embodiment, when the fog computing resource node selects the corresponding free storage node from the fog computing network, the private key and the public key corresponding to the idle storage node may be generated, and in the subsequent process, the target data node triggered by each verified node is The target resource data may be encrypted according to the public key carried in the storage task smart contract to form a ciphertext corresponding to the target resource data. After the ciphertext is stored to the idle storage node, the idle storage node may decrypt according to the corresponding private key. The corresponding target resource data is obtained, and thus, the target resource data can be prevented from being maliciously stolen from the data node to the idle storage node.
在另一种可能实现的方式中,还可以生成空闲计算节点所对应的公钥及私钥,通过与上述实施例相似的方法防止目标资源数据从空闲存储节点传输至空闲计算节点的过程中被恶意窃取。In another possible implementation manner, the public key and the private key corresponding to the idle computing node may also be generated, and the method for preventing the target resource data from being transmitted from the idle storage node to the idle computing node is prevented by a method similar to the above embodiment. Malicious stealing.
本领域技术人员应当理解的,前述各个实施例中所述的智能合约均为相应的计算机程序,这些计算机程序可被发布至区块链网络,与区块链网络相连的各个参与节点则可读取到这些计算机程序中携带的信息。It should be understood by those skilled in the art that the smart contracts described in the foregoing various embodiments are corresponding computer programs, which can be published to a blockchain network, and the participating nodes connected to the blockchain network can be read. Get the information carried in these computer programs.
如图2所示,本发明实施例提供了一种基于区块链和雾计算的大数据计算系统,包括:As shown in FIG. 2, an embodiment of the present invention provides a big data computing system based on blockchain and fog calculation, including:
信息发布节点201、至少一个数据节点202、大数据计算需求节点203、雾计算资源节点204、验证节点205、区块链网络206及包括有至少一个资源节点2071的雾计算网络207;其中,An information publishing node 201, at least one data node 202, a big data computing demand node 203, a fog computing resource node 204, a verification node 205, a blockchain network 206, and a fog computing network 207 including at least one resource node 2071;
所述信息发布节点201,用于确定数据资源目录,根据所述数据资源目录形成智能合约,并将所述智能合约发布至区块链网络206;The information publishing node 201 is configured to determine a data resource directory, form a smart contract according to the data resource directory, and publish the smart contract to the blockchain network 206;
所述至少一个数据节点202,用于根据所述智能合约携带的所述数据资源目录,将当前所述数据节点202拥有的资源数据的数据信息发布至所述区块链网络206;在作为目标数据节点被所述验证节点205触发时,向选择的至少一个资源节点2071发送对应于所述需求信息的目标资源数据;The at least one data node 202 is configured to publish, according to the data resource directory carried by the smart contract, data information of resource data currently owned by the data node 202 to the blockchain network 206; When the data node is triggered by the verification node 205, the target resource data corresponding to the demand information is sent to the selected at least one resource node 2071;
所述大数据计算需求节点203,用于根据各个所述数据信息及所述智能合约携带的所述数据资源目录,生成大数据计算智能合约并发布至所述区块链网络206,其中,所述大数据计算智能合约携带需求信息及存储位置;The big data calculation requirement node 203 is configured to generate a big data calculation smart contract according to each of the data information and the data resource directory carried by the smart contract, and distribute the smart contract to the blockchain network 206, where The big data computing smart contract carries demand information and storage location;
所述雾计算资源节点204,用于从雾计算网络207中选择至少一个资源节点2071,根据选择的所述至少一个资源节点2071及所述大数据计算智能合约携带的所述需求信息生成任务智能合约,并将所述任务智能合约发布至所述区块链网络206;The fog computing resource node 204 is configured to select at least one resource node 2071 from the fog computing network 207, and generate task intelligence according to the selected at least one resource node 2071 and the big data computing the demand information carried by the smart contract. Contracting, and publishing the task smart contract to the blockchain network 206;
所述验证节点205,用于根据所述任务智能合约及各个所述数据信息触发至少一个目标数据节点;The verification node 205 is configured to trigger at least one target data node according to the task smart contract and each of the data information;
所述至少一个资源节点2071,用于在被所述雾计算资源节点204选择后,根据所述需求信息对各个所述目标资源数据进行计算以生成计算结果,并将生成的计算结果存储至所述存储位置。The at least one resource node 2071 is configured to, after being selected by the fog computing resource node 204, calculate each target resource data according to the demand information to generate a calculation result, and store the generated calculation result to the Store the location.
本发明一个实施例中,所述需求信息,包括:目标数据类型、目标数据标识及计算方法。In an embodiment of the present invention, the demand information includes: a target data type, a target data identifier, and a calculation method.
本发明一个实施例中,所述雾计算资源节点204,用于从所述雾计算网络206中选择一个空闲存储节点和一个空闲计算节点;根据根据所述空闲存储节点的第一节点标识、所述大数据计算智能合约携带的所述目标数据类型及所述目标数据标识生成存储任务智能合约;根据所述空闲计算节点的第二节点标识、所述大数据计算智能合约携带的所述计算方法生成计算任务智能合约;In an embodiment of the present invention, the fog computing resource node 204 is configured to select one idle storage node and one idle computing node from the fog computing network 206; according to the first node identifier according to the idle storage node, Generating a storage task smart contract according to the target data type carried by the big data computing smart contract and the target data identifier; calculating the computing method carried by the smart contract according to the second node identifier of the idle computing node Generate a computing task smart contract;
则,then,
所述验证节点205,用于根据所述存储任务智能合约,从所述至少一个数据节点202中选择至少一个目标数据节点,并触发所述至少一个目标数据节点;The verification node 205 is configured to select at least one target data node from the at least one data node 202 according to the storage task smart contract, and trigger the at least one target data node;
所述数据节点202,用于在作为目标数据节点被所述验证节点触发时根据所述存储任务智能合约携带的所述目标数据类型及所述目标数据标识向所述空闲存储节点存储目标资源数据。The data node 202 is configured to store target resource data to the idle storage node according to the target data type and the target data identifier carried by the storage task smart contract when the target data node is triggered by the verification node. .
本发明一个实施例中,所述资源节点2071,用于在被所述雾计算资源节点204选择为空闲计算节点时,读取所述空闲存储节点中存储的各个所述目标资源数据,并根据所述计算任务智能合约携带的所述计算方法对各个所述目标资源数据进行计算以生成计算结果,并将生成的计算结果存储至所述存储位置。In an embodiment of the present invention, the resource node 2071 is configured to read, when the floating computing resource node 204 is selected as an idle computing node, each target resource data stored in the idle storage node, and according to The calculation method carried by the calculation task smart contract calculates each of the target resource data to generate a calculation result, and stores the generated calculation result to the storage location.
本发明一个实施例中,所述雾计算资源节点204,包括:秘钥生成模块(附图中未示出)和合约处理模块(附图中未示出);其中,In an embodiment of the present invention, the fog computing resource node 204 includes: a secret key generating module (not shown in the drawing) and a contract processing module (not shown in the drawing);
所述秘钥生成模块,用于生成所述空闲存储节点所对应的私钥及公钥;The secret key generating module is configured to generate a private key and a public key corresponding to the idle storage node;
所述合约处理模块,用于根据所述空闲存储节点的第一节点标识、所述大数据计算智能合约携带的所述目标数据类型、所述公钥及所述目标数据标识生成存储任务智能合约;The contract processing module is configured to generate a storage task smart contract according to the first node identifier of the idle storage node, the target data type carried by the big data computing smart contract, the public key, and the target data identifier ;
所述数据节点202,用于在作为目标数据节点被所述验证节点205触发时根据所述存储任务智能合约携带的所述目标数据类型及所述目标数据标识确定目标资源数据,并根据所述存储任务智能合约携带的所述公钥对所述目标资源数据进行加密以形成对应于所述目标资源数据的密文,将对应于所述目标资源数据的密文发送至所述空闲存储节点。The data node 202 is configured to determine target resource data according to the target data type and the target data identifier carried by the storage task smart contract when the target data node is triggered by the verification node 205, and according to the The public key carried by the storage task smart contract encrypts the target resource data to form a ciphertext corresponding to the target resource data, and sends a ciphertext corresponding to the target resource data to the idle storage node.
应当理解的,本发明各个实施例中各个节点具体可以为个人计算机或服务器。It should be understood that each node in various embodiments of the present invention may specifically be a personal computer or a server.
上述装置内的各单元之间的信息交互、执行过程等内容,由于与本发明方法实施例基于同一构思,具体内容可参见本发明方法实施例中的叙述,此处不再赘述。The content of the information exchange, the execution process, and the like in the above-mentioned devices are based on the same concept as the method embodiment of the present invention. For details, refer to the description in the method embodiment of the present invention, and details are not described herein again.
综上所述,本发明各个实施例至少具有如下有益效果:In summary, the various embodiments of the present invention have at least the following beneficial effects:
1、本发明一实施例中,通过信息发布节点向区块链发布携带数据资源目录的智能合约,各个数据节点则可根据区块链网络中的智能合约所携带的资源目录,将其可以用于大数据计算的资源数据的数据信息发布至区块链网络,大数据计算需求节点则可根据智能合约所携带的数据资源目录以及区块链网络中的各个数据信息,向区块链网络发布携带需求信息及存储位置的大数据计算智能合约,后续的,雾计算资源节点则可从雾计算网络中选择一个或多个资源节点,并根据选择的各个资源节点生成任务智能合约后发布至区块链网络,由验证节点根据任务智能合约及各个数据信息触发符合需求信息的一个或多个目标数据节点,各个目标数据节点则可在验证节点的触发下向雾计算网络中被选择的资源节点发送符合需求信息的目标资源数据,进而由雾计算网络中被选择的资源节点对各个目标资源数据进行计算以生成计算结果,然后将计算结果发送至大数据计算智能合约所携带的存储位置。综上可见,通过本发明的技术方案实现大数据计算时,大数据计算需求节点无需访问数据节点,大数据计算的计算过程仅在雾计算网络中的一个或多个资源节点上进行,各个数据节点的资源数据不会直接共享给大数据计算需求节点,可防止数据节点的资源数据通过大数据计算需求节点发生泄漏。In an embodiment of the present invention, a smart contract carrying a data resource directory is issued to a blockchain by an information publishing node, and each data node can be used according to a resource directory carried by a smart contract in a blockchain network. The data information of the resource data calculated by the big data is released to the blockchain network, and the big data computing demand node can be released to the blockchain network according to the data resource directory carried by the smart contract and each data information in the blockchain network. The big data computing smart contract carrying the demand information and the storage location, and subsequent, the fog computing resource node may select one or more resource nodes from the fog computing network, and generate a task smart contract according to the selected resource nodes and then publish to the zone. In the blockchain network, the verification node triggers one or more target data nodes that meet the demand information according to the task smart contract and each data information, and each target data node can trigger the selected resource node in the network under the trigger of the verification node. Send target resource data that meets the demand information, and then from the fog computing network The selected resource node calculates each target resource data to generate a calculation result, and then sends the calculation result to the storage location carried by the big data calculation smart contract. In summary, when the big data calculation is implemented by the technical solution of the present invention, the big data calculation requirement node does not need to access the data node, and the calculation process of the big data calculation is performed only on one or more resource nodes in the fog calculation network, and each data is performed. The resource data of the node is not directly shared to the big data computing demand node, which can prevent the resource data of the data node from leaking through the big data computing demand node.
2、本发明一实施例中,雾计算资源节点可从雾计算网络中选择出相对空闲的空闲存储节点和空闲计算节点,根据空闲存储节点的第一节点标识、需求信息中携带的目标数据类型及目标数据标识生成存储任务智能合约,并根据空闲计算节点的第二节点标识、需求信息中携带的计算方法生成计算任务智能合约;后续过程中,验证节点则可根据存储任务智能合约,从至少一个数据节点中选择至少一个目标数据节点(各个目标数据节点应当能够提供具有目标数据标识且其数据格式为目标数据类型的资源数据),并触发各个目标数据节点,使得各个目标数据节点根据存储任务智能合约中携带的第一节点标识向空闲存储节点存储目标资源数据。如此,则可实现将大数据计算过程中需要用到的资源数据存储到雾计算网络中相对较为空闲的存储节点,雾计算网络中较为空闲的存储节点能够更加高效的完成目标资源数据的存取,提高大数据计算效率。In an embodiment of the present invention, the fog computing resource node may select a relatively idle idle storage node and an idle computing node from the fog computing network, according to the first node identifier of the idle storage node, and the target data type carried in the demand information. And the target data identifier generates a storage task intelligent contract, and generates a computing task smart contract according to the second node identifier of the idle computing node and the calculation method carried in the demand information; in the subsequent process, the verification node may be at least according to the storage task smart contract, from at least Selecting at least one target data node in a data node (each target data node should be able to provide resource data having a target data identifier and a data format of the target data type), and trigger each target data node, so that each target data node is based on the storage task The first node identifier carried in the smart contract stores the target resource data to the idle storage node. In this way, the resource data that needs to be used in the big data calculation process can be stored in the relatively idle storage node in the fog computing network, and the idle storage node in the fog computing network can more efficiently complete the access of the target resource data. Improve the efficiency of big data calculations.
3、本发明一实施例中,验证节点可在各个目标数据节点将相应的目标资源数据存储至选择的空闲存储节点之后,根据计算任务智能合约汇总携带的第二节点标识触发选择的空闲计算节点,使得空闲计算节点读取空闲存储节点中存储的各个目标资源数据,并根据计算任务智能合约中携带的计算方法对各个目标资源数据进行计算以生成计算结果,然后将生成的计算结果存储至存储位置。如此,则可实现通过雾计算网络中较为空闲的计算节点执行大数据计算过程中的计算任务,空闲计算节点能够更加高效的完成大数据计算过程的计算任务,提高大数据计算效率。In an embodiment of the present invention, the verification node may trigger the selected idle computing node according to the second node identifier carried in the summary of the computing task smart contract after each target data node stores the corresponding target resource data to the selected idle storage node. So that the idle computing node reads each target resource data stored in the idle storage node, and calculates each target resource data according to a calculation method carried in the computing task smart contract to generate a calculation result, and then stores the generated calculation result to the storage. position. In this way, the calculation task in the process of performing big data calculation by the relatively idle computing nodes in the fog computing network can be realized, and the idle computing node can more efficiently complete the computing task of the big data computing process and improve the computing efficiency of the big data.
4、本发明一实施例中,雾计算资源节点从雾计算网络中选择相应的空闲存储节点时,可生成空闲存储节点所对应的私钥及公钥,后续过程中,各个被验证节点触发的目标数据节点则可根据存储任务智能合约中携带的公钥对目标资源数据进行加密以形成对应于目标资源数据的密文,密文被存储至空闲存储节点后,空闲存储节点可根据对应的私钥进行解密以得到相应的目标资源数据,如此,可防止目标资源数据从数据节点传输至空闲存储节点的过程中被恶意窃取。In an embodiment of the present invention, when the fog computing resource node selects the corresponding free storage node from the fog computing network, the private key and the public key corresponding to the idle storage node may be generated, and in the subsequent process, each verified node triggers. The target data node may encrypt the target resource data according to the public key carried in the storage task smart contract to form a ciphertext corresponding to the target resource data. After the ciphertext is stored to the idle storage node, the idle storage node may be based on the corresponding private The key is decrypted to obtain corresponding target resource data, and thus, the target resource data can be prevented from being maliciously stolen from the data node to the idle storage node.
需要说明的是,在本文中,诸如第一和第二之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个······”限定的要素,并不排除在包括所述要素的过程、方法、物品或者设备中还存在另外的相同因素。It should be noted that, in this context, relational terms such as first and second are used merely to distinguish one entity or operation from another entity or operation, without necessarily requiring or implying between these entities or operations. There are any such actual relationships or sequences. Furthermore, the term "comprises" or "comprises" or "comprises" or any other variations thereof is intended to encompass a non-exclusive inclusion, such that a process, method, article, or device that comprises a plurality of elements includes not only those elements but also Other elements, or elements that are inherent to such a process, method, item, or device. An element defined by the phrase "comprising a singularity", without further limitation, does not exclude the presence of additional equivalents in the process, method, article, or device that comprises the element.
最后需要说明的是:以上所述仅为本发明的较佳实施例,仅用于说明本发明的技术方案,并非用于限定本发明的保护范围。凡在本发明的精神和原则之内所做的任何修改、等同替换、改进等,均包含在本发明的保护范围内。It should be noted that the above description is only a preferred embodiment of the present invention, and is only for explaining the technical solutions of the present invention, and is not intended to limit the scope of the present invention. Any modifications, equivalents, improvements, etc. made within the spirit and scope of the invention are intended to be included within the scope of the invention.