A consortium chain edge data-aware oracle and a construction method thereof

CN117725053BActive Publication Date: 2026-08-11YANGTZE DELTA REGION INST OF UNIV OF ELECTRONICS SCI & TECH OF CHINE (HUZHOU)
View PDF 3 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-09-11
Publication Date
2026-08-11

AI Technical Summary

Benefits of technology

[0029]本发明采用分布式哈希表承载海量边缘数据,并对边缘数据进行负载均衡,可以使得联盟链系统可以采集到海量边缘数据;并采用基于分布式事务的任务守护进程用于保证边缘数据感知任务会被精准执行一次,从而保证数据采集的精准执行,并且不会造成数据竞争,确保数据安全性以及幂等性;同时利用联盟链需求响应智能合约提供边缘数据感知与区块链的交互桥梁。因此本发明能够使联盟链获得对海量边缘数据的感知能力,并且不对联盟链性能造成明显影响。

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117725053B_ABST
    Figure CN117725053B_ABST
Patent Text Reader

Abstract

This invention discloses an edge data awareness oracle for consortium blockchains and its construction method, comprising a consortium blockchain, an oracle, and a database. The consortium blockchain uses a data request smart contract to issue data requests and register these requests; it monitors the call status of the data request smart contract, performs a hash operation on the data request based on queried consortium blockchain information to obtain data sharding information, and uses a data response smart contract to receive collected edge data. The oracle receives the data requests and their metadata, and uses a distributed transaction-based edge data collection daemon to perform edge data awareness tasks on the edge data stored in the database. The database uses a distributed hash table to store the edge data. This invention enables the consortium blockchain to acquire the ability to perceive massive amounts of edge data without significantly impacting its performance.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the fields of edge computing and blockchain technology, specifically to a consortium blockchain edge data-aware oracle and its construction method. Background Technology

[0002] KademliaDHT is a distributed hash table algorithm widely used in P2P file transfer systems and distributed content routing systems. This algorithm employs the concept of content routing, where the stored content itself represents routing information, making it easier for users to find the data resources they want in large-scale distributed network environments.

[0003] A consortium blockchain is a partially decentralized blockchain where the right to record transactions is held by only a select group of people, and the authority to participate in transaction recording is determined internally by the organization. Because fewer nodes participate in transaction recording, private blockchains offer advantages such as fast transaction recording speed, no transaction recording costs, and high privacy.

[0004] Oracles provide blockchains with the ability to interact with the outside world. Edge data-aware oracles for consortium blockchains enable smart contract applications on the consortium blockchain to access massive amounts of edge data, thereby achieving edge data awareness for blockchain applications. Summary of the Invention

[0005] To address the aforementioned shortcomings in existing technologies, this invention provides a consortium blockchain edge data-aware oracle and its construction method.

[0006] To achieve the above-mentioned objectives, the technical solution adopted by this invention is as follows:

[0007] In a first aspect, this invention proposes a consortium blockchain edge data-aware oracle, comprising:

[0008] The consortium blockchain is used to issue data requests using data request smart contracts and register data requests; monitor the calling status of data request smart contracts; perform hash calculations on data requests based on the queried consortium blockchain information to obtain data sharding information; and receive collected edge data using data response smart contracts.

[0009] The oracle is used to receive data requests and their metadata, and to perform edge data perception tasks on the edge data stored in the database using an edge data acquisition daemon based on distributed transactions.

[0010] A database used to store edge data using a distributed hash table.

[0011] Furthermore, the oracle employs a distributed transaction-based edge data acquisition daemon to perform edge data awareness tasks on the edge data stored in the database, specifically including:

[0012] Identify the target cluster being monitored, detect the release of the distributed lock, determine whether the task information has been successfully executed, and determine whether the data request and response process has been successfully executed.

[0013] Secondly, this invention proposes a method for constructing a consortium blockchain edge data-aware oracle, comprising the following steps:

[0014] The data request smart contract of the consortium blockchain is invoked to issue a data request and register the data request.

[0015] Monitor the call status of the smart contract requesting data, perform a hash operation on the data request based on the queried consortium blockchain information, and obtain data sharding information;

[0016] Write the data request and its metadata into the oracle;

[0017] An edge data acquisition daemon based on distributed transactions is used to perform edge data perception tasks on edge data stored in a distributed hash table.

[0018] The data response smart contract that invokes the consortium blockchain returns the collected edge data to the consortium blockchain.

[0019] Furthermore, the step of employing a distributed transaction-based edge data acquisition daemon to perform edge data awareness tasks on edge data stored in a distributed hash table specifically includes the following steps:

[0020] Confirm the target cluster to monitor;

[0021] Monitor the release of distributed locks;

[0022] Monitor whether the task information has been successfully executed;

[0023] If so, proceed to the next step;

[0024] Otherwise, the task will be rewritten to the cluster, and the distributed lock will be re-listened for release.

[0025] Does the monitoring task metadata exist?

[0026] If so, the data request-response process is deemed to have been successfully executed, and the system will begin listening for the release of the distributed lock again.

[0027] Otherwise, the task will be rewritten to the cluster, and the distributed lock will be re-listened for release.

[0028] The present invention has the following beneficial effects:

[0029] This invention employs a distributed hash table to carry massive amounts of edge data and performs load balancing, enabling consortium blockchain systems to collect such data. A task daemon based on distributed transactions ensures that edge data sensing tasks are executed precisely once, guaranteeing accurate data collection and preventing data contention, thus ensuring data security and idempotency. Furthermore, a consortium blockchain demand-response smart contract provides a bridge for interaction between edge data sensing and the blockchain. Therefore, this invention enables consortium blockchains to acquire the ability to sense massive amounts of edge data without significantly impacting their performance. Attached Figure Description

[0030] Figure 1 This is a schematic diagram of the structure of a consortium blockchain edge data sensing oracle in Embodiment 1 of the present invention;

[0031] Figure 2 This is a schematic diagram of the edge data acquisition daemon process based on distributed transactions in Embodiment 1 of the present invention;

[0032] Figure 3 This is a schematic diagram of the construction method of a consortium blockchain edge data-aware oracle in Embodiment 2 of the present invention;

[0033] Figure 4 This is a flowchart illustrating the edge data acquisition daemon process based on distributed transactions in Embodiment 2 of the present invention. Detailed Implementation

[0034] The specific embodiments of the present invention are described below to enable those skilled in the art to understand the present invention. However, it should be understood that the present invention is not limited to the scope of the specific embodiments. For those skilled in the art, various changes are obvious as long as they are within the spirit and scope of the present invention as defined and determined by the appended claims. All inventions utilizing the concept of the present invention are protected.

[0035] Example 1

[0036] like Figure 1 As shown in the figure, this embodiment of the invention proposes a consortium blockchain edge data-aware oracle, which includes a consortium blockchain, an oracle, and a database.

[0037] The consortium blockchain is used to issue data requests using data request smart contracts and register data requests; monitor the call status of data request smart contracts, perform hash operations on data requests based on the queried consortium blockchain information to obtain data sharding information; and use data response smart contracts to receive collected edge data.

[0038] The oracle is used to receive data requests and their metadata, and the edge data acquisition daemon based on distributed transactions is used to perform edge data perception tasks on the edge data stored in the database.

[0039] The database is used to store edge data using a distributed hash table.

[0040] This invention employs a distributed hash table to carry massive amounts of edge data and performs load balancing, enabling consortium blockchain systems to collect such data. A task daemon based on distributed transactions ensures that edge data sensing tasks are executed precisely once, guaranteeing accurate data collection and preventing data contention, thus ensuring data security and idempotency. Furthermore, a consortium blockchain demand-response smart contract provides a bridge for interaction between edge data sensing and the blockchain. Therefore, this invention enables consortium blockchains to acquire the ability to sense massive amounts of edge data without significantly impacting their performance.

[0041] In an optional embodiment of the present invention, such as Figure 2 As shown, a distributed hash table can be used to divide the data space into a binary tree structure to distinguish different consensus groups. The oracle employs a distributed transaction-based edge data acquisition daemon to perform edge data awareness tasks on the edge data stored in the database, specifically including:

[0042] Identify the target cluster being monitored, detect the release of the distributed lock, determine whether the task information has been successfully executed, and determine whether the data request and response process has been successfully executed.

[0043] Example 2

[0044] like Figure 3 As shown, this embodiment of the invention proposes a method for constructing a consortium blockchain edge data-aware oracle based on embodiment 1, including the following steps S1 to S5:

[0045] S1. Call the data request smart contract of the consortium blockchain to issue a data request and register the data request;

[0046] S2. Monitor the call status of the smart contract requesting data, perform a hash operation on the data request based on the queried consortium blockchain information, and obtain the data sharding information;

[0047] S3. Write the data request and its metadata into the oracle;

[0048] S4. Use a distributed transaction-based edge data acquisition daemon to perform edge data perception tasks on edge data stored in a distributed hash table.

[0049] S5. The data response smart contract of the consortium blockchain calls the data of the consortium blockchain and returns the collected edge data to the consortium blockchain.

[0050] In an optional embodiment of the present invention, such as Figure 4 As shown, step S4, which employs a distributed transaction-based edge data acquisition daemon to perform edge data awareness tasks on edge data stored in a distributed hash table, specifically includes the following steps:

[0051] S41. When the edge data acquisition node starts up, it determines the target cluster to be monitored based on the cluster load.

[0052] S42. Monitor the release of distributed locks by querying the distributed coordination service;

[0053] S43. Check whether the task has been successfully executed by querying the storage status of the metadata of the distributed coordination service;

[0054] If so, proceed to the next step S44;

[0055] Otherwise, rewrite the task to the cluster and return to step S42 to listen for the release of the distributed lock again;

[0056] S44. Monitor the existence of task metadata by querying the distributed coordination service;

[0057] If so, the data request response process is deemed to have been executed successfully, and the process returns to step S42 to re-listen for the release of the distributed lock;

[0058] Otherwise, rewrite the task to the cluster and return to step S42 to listen for the release of the distributed lock again.

[0059] This invention is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, generate instructions for implementing the flowchart illustrations and / or block diagrams. Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.

[0060] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.

[0061] These computer program instructions may also be loaded onto a computer or other programmable data processing equipment to cause a series of operational steps to be performed on the computer or other programmable equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.

[0062] Specific embodiments have been used to illustrate the principles and implementation methods of this invention. The descriptions of the embodiments above are only for the purpose of helping to understand the method and core ideas of this invention. At the same time, for those skilled in the art, there will be changes in the specific implementation methods and application scope based on the ideas of this invention. Therefore, the content of this specification should not be construed as a limitation of this invention.

[0063] Those skilled in the art will recognize that the embodiments described herein are intended to help the reader understand the principles of the invention, and should be understood that the scope of protection of the invention is not limited to such specific statements and embodiments. Those skilled in the art can make various other specific modifications and combinations based on the technical teachings disclosed in this invention without departing from the spirit of the invention, and these modifications and combinations are still within the scope of protection of this invention.

Claims

1. A consortium blockchain edge data-aware oracle, characterized in that, include: Consortium blockchains are used to issue data requests using data request smart contracts and to register data requests. Monitor the call status of the smart contract requesting data, perform a hash operation on the data request based on the queried consortium blockchain information, and obtain data sharding information; It also uses data response smart contracts to receive the collected edge data; The oracle is used to receive data requests and their metadata, and to perform edge data collection tasks on the edge data using an edge data collection daemon based on distributed transactions. The data request smart contract of the consortium blockchain is invoked to issue a data request and register the data request. Monitor the call status of the smart contract requesting data, perform a hash operation on the data request based on the queried consortium blockchain information, and obtain data sharding information; Write the data request and its metadata into the oracle; An edge data acquisition daemon based on distributed transactions is used to perform edge data perception tasks on edge data stored in a distributed hash table. The data response smart contract that invokes the consortium blockchain returns the collected edge data to the consortium blockchain.

2. The method for constructing a consortium blockchain edge data-aware oracle according to claim 1, characterized in that, The oracle employs a distributed transaction-based edge data acquisition daemon to perform edge data acquisition tasks, specifically including: Identify the target cluster being monitored, detect the release of the distributed lock, determine whether the task information has been successfully executed, and determine whether the data request and response process has been successfully executed.

3. The method for constructing a consortium blockchain edge data-aware oracle according to claim 1, characterized in that, The process of using a distributed transaction-based edge data acquisition daemon to perform edge data awareness tasks on edge data stored in a distributed hash table includes the following steps: Confirm the target cluster to monitor; Monitor the release of distributed locks; Monitor whether the task information has been successfully executed; If so, proceed to the next step; Otherwise, the task will be rewritten to the cluster, and the distributed lock will be re-listened for release. Does the monitoring task metadata exist? If so, the data request-response process is deemed to have been successfully executed, and the system will begin listening for the release of the distributed lock again. Otherwise, the task will be rewritten to the cluster, and the distributed lock will be monitored again for release.

Citation Information

Patent Citations

  • Distributed lock implementation method and system

    CN111190913A

  • Blockchain monitoring system

    CN112787890A

  • External data access method, device and system of block chain, equipment and medium

    CN113987035A