Method, device and system for blockchain data chaining and storage medium

By using distributed oracles to assess the credibility of blockchain data sources and trigger smart contracts, combined with artificial intelligence and security mechanisms, the problem of low credibility of blockchain data is solved, and the trusted verification of data sources and the authenticity of on-chain data are guaranteed.

CN120821760APending Publication Date: 2025-10-21QINGDAO HAIER SPECIAL REFRIGERATION ELECTRIC APPLIANCE CO LTD +2
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410441508.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-04-12
Publication Date
2025-10-21

AI Technical Summary

Technical Problem

During the process of blockchain data uploading, the credibility of data needs to be improved, which may lead to business confusion and compliance risks.

Method used

The credibility of data sources is assessed through distributed oracles, the credibility of data sources is ensured by smart contracts, artificial intelligence and machine learning models are used for scoring, and the security of data transmission is ensured by combining threshold signature algorithms and zero-knowledge proofs.

Benefits of technology

It improves the credibility and validity of blockchain data, ensures the authenticity of on-chain data, reduces the risk of data tampering, and ensures the healthy development of the business chain.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120821760A_ABST
    Figure CN120821760A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of computers, and discloses a method, device and system for blockchain data chaining and a storage medium. The method comprises the steps that under the condition that a current data uplink request is received, a distributed oracle machine carries out credibility evaluation on a current data source of current to-be-uplink data; and when it is determined that the credibility evaluation is passed, the distributed oracle machine triggers an intelligent contract on the block chain, so that the block chain performs uplink storage corresponding to the current service application on the current to-be-uplink data. Therefore, the credibility verification of the off-chain data is realized by means of the oracle machine, and the data uplink is carried out, so that the credibility of the uplink data source is ensured, the authenticity of the uplink data is also ensured, and the credibility and validity of the block chain data are improved, thereby ensuring the healthy development of the service chain.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and more particularly to methods, devices, systems, and storage media for uploading blockchain data. Background Art

[0002] Blockchain technology, also known as distributed ledger technology, is an emerging technology that enables multiple computing devices to jointly maintain a complete distributed database. Blockchain technology is decentralized, transparent, and allows each computing device to participate in the database record, while also enabling rapid data synchronization between devices.

[0003] Data is the foundation of social development and the basis for decision-making. The degree to which data reflects objective facts is a key indicator of business quality. The immutability and traceability of blockchain technology can, to a certain extent, help ensure the security and integrity of data during its circulation. This ensures that data is permanently stored and tamper-proof once it is uploaded to the blockchain. However, the authenticity of the uploaded data itself cannot be verified. In actual application scenarios, uploaded data may come from multiple different data sources, including internal databases, sensors, and third-party data services. The credibility of these data sources varies. Unreliable data sources can lead to confusion in business and transaction information, misjudgment of data decisions, and even compliance risks.

[0004] It should be noted that the information disclosed in the above background technology section is only used to enhance the understanding of the background of this application, and therefore may include information that does not constitute prior art known to ordinary technicians in this field. Summary of the Invention

[0005] In order to provide a basic understanding of some aspects of the disclosed embodiments, a brief summary is given below. The summary is not an extensive review, nor is it intended to identify key / critical elements or delineate the scope of protection of these embodiments, but rather serves as a prelude to the detailed description that follows.

[0006] The embodiments of the present disclosure provide a method, device, system, and storage medium for uploading blockchain data to a blockchain, so as to solve the technical problem of improving the credibility of blockchain data.

[0007] In some embodiments, the method comprises:

[0008] Upon receiving a request to upload current data to the chain, the distributed oracle will conduct a credibility assessment on the current data source of the data to be uploaded to the chain.

[0009] When the credibility assessment is confirmed to be passed, the distributed oracle triggers the smart contract on the blockchain, causing the blockchain to store the current data to be uploaded on the chain corresponding to the current business application.

[0010] In some embodiments, further comprising:

[0011] After the IoT device is bound to the data source, it sends a data source registration request to the business application. The first oracle in the distributed oracle runs on the IoT device.

[0012] Upon receiving the digital identity registration information sent by the business application, a registration success notification is sent to the data source, wherein the digital identity registration information is generated after the business application verifies the data source registration request information.

[0013] In some embodiments, the distributed oracle performs credibility assessment on the current data source of the data to be uploaded to the chain, including:

[0014] Each current verification oracle in the distributed oracle machine uses the corresponding credibility scoring model to score the credibility of the current data source and publishes the corresponding scoring data, wherein the current verification oracle is determined from the first oracle that has the ability to verify the current data source, and the first oracle runs in the IoT device;

[0015] The second oracle in the distributed oracle aggregates and counts the scoring data through a threshold signature algorithm, wherein the second oracle runs on a blockchain business application.

[0016] In some embodiments, further comprising:

[0017] Based on artificial intelligence or machine learning, the first oracle performs model training on the input parameters to obtain a corresponding credibility scoring model, where the input parameters include: data source category, time when the data source registers with the business system, number of times the data source uploads data to the chain, success rate of the data source uploading data to the chain, etc. One or more of the following.

[0018] In some embodiments, the current verification oracle is determined from a first oracle having the capability to verify the current data source, including:

[0019] The first oracle capable of verifying the current data source receives the encrypted information carrying the zero-knowledge proof from the current first oracle corresponding to the area where the current data source is located. The zero-knowledge proof is generated by the current IoT device in the area where the current data source is located based on the current data source and sent to the current first oracle together with the current data to be uploaded to the chain.

[0020] After decrypting the ciphertext information and confirming that the zero-knowledge proof has not been tampered with, the first oracle that has the ability to verify the current data source is determined as the current verification oracle.

[0021] In some embodiments, the distributed oracle triggering a smart contract on a blockchain includes:

[0022] When the number of scoring data greater than or equal to the set value reaches the set threshold, the current first oracle receives the evaluation pass message sent by the second oracle;

[0023] The current first oracle signs the data to be uploaded to the chain and uploads it to the smart contract, so that the smart contract allows the data to be uploaded to the chain after the signature verification is passed.

[0024] In some embodiments, further comprising:

[0025] If it is determined that the credibility assessment fails, the distributed oracle will return the current data on-chain request.

[0026] In some embodiments, the system includes: an IoT device and a blockchain running a distributed oracle; wherein,

[0027] The distributed oracle is configured to perform a credibility assessment on the current data source of the data to be uploaded to the chain upon receiving a request to upload the current data to the chain, and trigger the smart contract on the blockchain if it is determined that the credibility assessment passes, so that the blockchain can store the current data to be uploaded to the chain corresponding to the current business application.

[0028] In some embodiments, the device for putting blockchain data on the chain includes a processor and a memory storing program instructions, and the processor is configured to execute the above-mentioned method for putting blockchain data on the chain when executing the program instructions.

[0029] In some embodiments, the storage medium stores program instructions, and when the program instructions are run, they execute the above-mentioned method for uploading blockchain data to the chain.

[0030] The method, device, and system for blockchain data on-chain provided by the embodiments of the present disclosure can achieve the following technical effects:

[0031] A distributed oracle is a data service mechanism that connects off-chain data sources and on-chain blockchains. Upon receiving a request to upload current data to the chain, it can conduct a credibility assessment on the current data source of the data to be uploaded to the chain. If the credibility assessment is determined to be passed, it will trigger the smart contract on the blockchain, allowing the blockchain to store the current data to be uploaded on the chain corresponding to the current business application. In this way, with the help of oracles, the trusted verification of off-chain data is achieved and the data is uploaded to the chain, which ensures the credibility of the source of the uploaded data and the authenticity of the uploaded data itself, thereby improving the credibility and effectiveness of the blockchain data, and thus ensuring the healthy development of the business chain.

[0032] The above general description and the following description are exemplary and explanatory only and are not intended to limit the present application. BRIEF DESCRIPTION OF THE DRAWINGS

[0033] One or more embodiments are exemplarily described by corresponding drawings. These exemplary descriptions and drawings do not limit the embodiments. Elements with the same reference numerals in the drawings are shown as similar elements. The drawings do not constitute a scale limitation. In addition,

[0034] Figure 1 This is a schematic diagram of the structure of a system for uploading blockchain data to a blockchain provided by an embodiment of the present disclosure;

[0035] Figure 2 This is a schematic diagram of an architecture for blockchain data on-chain provided by an embodiment of the present disclosure;

[0036] Figure 3 This is a flowchart of a method for uploading blockchain data to a blockchain provided by an embodiment of the present disclosure;

[0037] Figure 4 This is a signaling interaction diagram for a method for uploading blockchain data to a blockchain provided by an embodiment of the present disclosure;

[0038] Figure 5 This is a schematic diagram of the structure of a device for uploading blockchain data to a blockchain provided by an embodiment of the present disclosure;

[0039] Figure 6 This is a schematic diagram of the structure of a device for uploading blockchain data to a blockchain provided by an embodiment of the present disclosure;

[0040] Figure 7 This is a structural diagram of a system for uploading blockchain data to a blockchain provided by an embodiment of the present disclosure. DETAILED DESCRIPTION

[0041] In order to be able to understand the features and technical content of the embodiments of the present disclosure in more detail, the implementation of the embodiments of the present disclosure is described in detail below in conjunction with the accompanying drawings. The accompanying drawings are for reference only and are not used to limit the embodiments of the present disclosure. In the following technical description, for the sake of convenience of explanation, a full understanding of the disclosed embodiments is provided through multiple details. However, one or more embodiments can still be implemented without these details. In other cases, to simplify the drawings, well-known structures and devices can be simplified for display.

[0042] In the description and claims of the embodiments of the present disclosure, as well as in the accompanying drawings, the terms "first," "second," and the like are used to distinguish similar items and are not necessarily used to describe a particular order or precedence. It should be understood that the terms used in this manner are interchangeable where appropriate to describe the embodiments of the present disclosure herein. In addition, the terms "including," "having," and any variations thereof are intended to cover non-exclusive inclusions.

[0043] Unless otherwise stated, the term "plurality" means two or more.

[0044] In the embodiment of the present disclosure, the character " / " indicates that the preceding and following objects are in an "or" relationship. For example, A / B means: A or B.

[0045] The term "and / or" describes an association between objects, indicating that three relationships can exist. For example, A and / or B means: A or B, or A and B.

[0046] Blockchain technology is a new distributed infrastructure and computing paradigm that uses blockchain-style data structures to verify and store data, distributed node consensus algorithms to generate and update ledger data, cryptography to ensure data transmission and access security, and smart contracts to program and operate data. In the disclosed embodiment, a distributed oracle can, upon receiving a request to upload current data to the chain, conduct a credibility assessment on the current data source of the data to be uploaded to the chain. Upon determining that the credibility assessment passes, it triggers the smart contract on the blockchain, causing the blockchain to store the current data to be uploaded on the chain corresponding to the current business application. In this way, with the help of the oracle, the trusted verification of off-chain data and the upload of data to the chain are achieved, ensuring the credibility of the source of the uploaded data and the authenticity of the uploaded data itself, improving the credibility and validity of the blockchain data, and thus ensuring the healthy development of the business chain.

[0047] Figure 1 This is a schematic diagram of the structure of a system for blockchain data on-chain provided by an embodiment of the present disclosure. Figure 1 As shown, the system for blockchain data on-chain includes: a blockchain 100, a data source 200, and a distributed oracle 300 connecting the data source 200 and the blockchain 100.

[0048] Blockchain Oracle is a data service mechanism that connects off-chain data sources and on-chain blockchain systems. Data from external data sources must first be submitted to the Oracle for aggregation and summary, and then the Oracle triggers the user's smart contract to upload the data to the chain. Figure 1 As shown, the blockchain oracle includes functions such as interface management, contract management, authentication services, encryption algorithms, and data format conversion. Furthermore, in the disclosed embodiments, the blockchain oracle can be a distributed oracle, comprising multiple nodes. That is, both the data source side and the blockchain business application side have corresponding oracles running. This allows data to be acquired simultaneously through multiple nodes and multiple data sources.

[0049] like Figure 1As shown, the process of data on-chain based on the distributed oracle is as follows: the user initiates a data request to the distributed oracle 300 through the smart contract of the business application of the blockchain 100, and the distributed oracle 300 obtains data from the external data source 200 according to the request and feeds back to the smart contract. In addition, in the embodiment of the present disclosure, the distributed oracle 300 can perform a credibility assessment on the data source 200. Only when it is determined that the credibility assessment is passed, the smart contract on the blockchain is triggered, so that the blockchain can store the current data to be on-chain corresponding to the current business application.

[0050] It can be seen that the distributed oracle 300 is configured to perform a credibility assessment on the current data source of the data to be uploaded to the chain upon receiving a request to upload the current data to the chain, and trigger the smart contract on the blockchain when it is determined that the credibility assessment passes, so that the blockchain can store the current data to be uploaded to the chain corresponding to the current business application.

[0051] The distributed oracle 300 includes multiple nodes, which can run on the blockchain 100 side and the data source 200 side respectively. For example, a corresponding oracle node can be configured on the device hosting the data source 200, and a corresponding oracle node can also be configured on the business application device on the blockchain 100 side. Since there are many types of data sources, in some embodiments, multiple data sources can be bound through IoT devices. Therefore, communication between the oracle 300 and the data source 200 can be completed through the corresponding IoT devices. That is, the distributed oracle 300 includes multiple nodes, wherein a first oracle runs on the IoT device on the data source side, and a second oracle runs on the business application on the blockchain side.

[0052] Figure 2 This is a schematic diagram of an architecture for blockchain data on-chain provided by an embodiment of the present disclosure. Figure 2 As shown in Figure 1, the blockchain corresponds to multiple areas, such as Area 1, Area 2, Area 3, etc., and of course, there are business applications, i.e., upper-layer applications. Each area has multiple data sources, which can be terminals, systems, or applications that generate data. The data structure and communication protocol of each data source are not exactly the same. Therefore, each area corresponds to an IoT device, such as Figure 2 The edge IoT agent in the IoT can aggregate data from data sources within the region through internal communication protocols.

[0053] In this embodiment, the blockchain oracle can be an oracle based on a communication network and a distributed architecture, that is, an oracle runs on each IoT device, which can be the first oracle, and an oracle also runs on the blockchain business application, that is, the second oracle runs on the upper-layer business, and the first oracle and the second oracle can communicate through the communication network.

[0054] In this way, after the current business application initiates a data request through the business smart contract of the blockchain, the oracle in the corresponding area can obtain data from the data source through the edge IoT agent, and the distributed oracle performs a credibility assessment on the data source. Only when it is determined that the credibility assessment is passed can the oracle in the corresponding area trigger the smart contract on the blockchain, so that the blockchain can store the current data to be uploaded on the chain corresponding to the current business application.

[0055] Figure 3 This is a flowchart of a method for uploading blockchain data to a blockchain provided by an embodiment of the present disclosure. Figure 1 、 Figure 2 , Figure 3 The process of blockchain data on-chain includes:

[0056] Step 301: Upon receiving a request to upload current data to the chain, the distributed oracle performs a credibility assessment on the current data source of the data to be uploaded to the chain.

[0057] In the disclosed embodiments, upper-level business applications, such as finance, taxation, supply chain traceability, healthcare, etc., all need to obtain data from the off-chain, that is, they need the corresponding data source through data services. To ensure the security and reliability of the data source, the data source needs to be registered with the corresponding business application before the data obtained from the data source is uploaded to the chain.

[0058] In some embodiments, after the IoT device is bound to the data source, it initiates a data source registration request message to the business application, wherein the first oracle in the distributed oracle runs on the IoT device; upon receiving the digital identity registration information sent by the business application, a registration success notification is sent to the data source, wherein the digital identity registration information is generated after the business application verifies the data source registration request message.

[0059] like Figure 2 As shown, the IoT devices in each area, namely the edge IoT agent, can be connected to one, two, or more data sources. Therefore, before accessing business applications, various types of data sources (including IoT devices, information systems, etc.) need to register with the edge IoT agent. The purpose is to achieve the binding between a certain data source and the edge IoT agent. The relationship between the data source and the edge IoT agent is N to 1. In this way, after the edge IoT agent is bound to the data source, the edge IoT agent initiates a data source registration request message to the business application. The business application verifies the data source registration request message of the edge IoT agent. After the verification is passed, it sends a data identity identifier, that is, a digital identity registration information, to the edge IoT agent. Therefore, after obtaining the data identity identifier, the edge IoT agent sends a registration success notification to the corresponding data source.

[0060] Each data source can be registered with the business application through the above process. As a result, the data in the registered data source can be uploaded to the chain and become blockchain data.

[0061] Among them, when the current data source has data that needs to be uploaded to the chain, the data can be the current data to be uploaded to the chain. The current data source can send the current data to be uploaded to the chain to the current IoT device in the area where the current data source is located. Thus, the current IoT device can send a request to upload the current data to the distributed oracle. In this way, the distributed oracle can perform a credibility assessment on the current data source of the current data to be uploaded to the chain.

[0062] In the disclosed embodiment, the distributed oracle includes multiple oracle nodes, some of which run in physical devices and some run in blockchain business applications. That is, an oracle runs on each IoT device, which can be the first oracle, and an oracle also runs on the blockchain business application, which can be the second oracle. Of course, the first oracle and the second oracle can communicate through the communication network.

[0063] In some embodiments, only the current first oracle corresponding to the region where the current data source is located may perform a credibility assessment on the current data source. This means that the current first oracle is the current verification oracle. The current first oracle uses a corresponding credibility scoring model to assess the credibility of the current data source.

[0064] In some embodiments, the oracle can obtain and save the corresponding credibility scoring model based on artificial intelligence or machine learning, which may include: based on artificial intelligence or machine learning, the first oracle performs model training on the input parameters to obtain the corresponding credibility scoring model, wherein the input parameters include: data source category, time when the data source registers the business system, number of times the data source uploads data to the chain, success rate of the data source uploading data to the chain, etc. One or more.

[0065] Therefore, the current first oracle uses the corresponding credibility scoring model to perform credibility scoring on the current data source and obtains corresponding scoring data, such as: 40 points, 65 points, or 80 points, etc.

[0066] In the disclosed embodiment, the distributed oracle includes multiple oracle nodes. The first oracle on the IoT devices distributed in other areas may also be able to perform credibility scoring on the current data source. Therefore, the first oracle with the ability to verify the current data source can also participate, perform credibility scoring on the current data source, and publish corresponding scoring data. Thus, the second oracle can summarize and count the scoring data.

[0067] In some embodiments, the distributed oracle performs a credibility assessment on the current data source of the data to be uploaded to the chain, including: each current verification oracle in the distributed oracle performs a credibility score on the current data source through a corresponding credibility scoring model, and publishes the corresponding scoring data, wherein the current verification oracle is determined from a first oracle that has the ability to verify the current data source, and the first oracle runs in an Internet of Things device; the second oracle in the distributed oracle summarizes and counts the scoring data through a threshold signature algorithm, wherein the second oracle runs on a blockchain business application.

[0068] Similarly, each current verification oracle can obtain and save a corresponding credibility scoring model based on artificial intelligence or machine learning. In this way, each current verification oracle can use the corresponding credibility scoring model to score the credibility of the current data source. For example, the scoring data can be 20, 40, 60, 70, 72, 79, 80, etc.

[0069] In addition, each current verification oracle can publish the corresponding scoring data, so that the second oracle in the distributed oracle can obtain each scoring data, so that summary statistics can be performed, for example: the number of scoring data greater than or equal to 60 can be counted.

[0070] The current verification oracle is determined from the first oracle that has the ability to verify the current data source, wherein the current first oracle can be the current verification oracle, and one, two or more first oracles can also be randomly determined from the first oracle that has the ability to verify the current data source as the current verification oracle.

[0071] In some embodiments, to further enhance the security of data communication, communication between distributed oracles is based on a threshold signature algorithm. The threshold signature algorithm can be used to determine the current verifying oracle.

[0072] When the current IoT device sends a request to upload current data to the distributed oracle, it can generate a corresponding zero-knowledge proof based on the current data source. Then, it can send the current data to be uploaded and the zero-knowledge proof to the current first oracle running on the current IoT device. To further protect the data to be uploaded from being tampered with, the current IoT device can encrypt the current data to be uploaded using the public key corresponding to the current first oracle. Then, it can send the encrypted data to be uploaded and the zero-knowledge proof to the current first oracle. The current first oracle decrypts with the private key and determines that the zero-knowledge proof has not been tampered with. It can not only be determined as the current verification oracle, but also can use the zero-knowledge proof to determine the current verification oracle from other first oracles with the ability to verify the current data source. It may include: the first oracle with the ability to verify the current data source receives the ciphertext information carrying the zero-knowledge proof sent by the current first oracle corresponding to the area where the current data source is located, wherein the zero-knowledge proof is generated by the current IoT device in the area where the current data source is located based on the current data source, and is sent to the current first oracle together with the current data to be uploaded to the chain; after decrypting the ciphertext information and determining that the zero-knowledge proof has not been tampered with, the first oracle with the ability to verify the current data source is determined as the current verification oracle.

[0073] For example, let's assume Oracle A is the current first oracle. Oracles capable of verifying the current data source can be Oracle B, Oracle C, Oracle D, and so on. Let's use the example of determining whether Oracle B is the current verifying oracle. Oracle A can encrypt the zero-knowledge proof using its public key with Oracle B, obtaining a ciphertext message containing the zero-knowledge proof. This message is then sent to Oracle B, which then decrypts the ciphertext using its private key to obtain the decrypted zero-knowledge proof. If the decrypted zero-knowledge proof is confirmed to be intact, Oracle B can be determined to be the current verifying oracle. This means Oracle B can then assign a credibility score to the current data source using the corresponding credibility scoring model and publish the corresponding score data. Of course, if the decrypted zero-knowledge proof is confirmed to have been tampered with, Oracle B cannot assign a credibility score to the current data source. Similarly, Oracles C, D, and so on can all use the same process to determine whether they are the current verifying oracle and whether to assign a credibility score to the current data source.

[0074] Of course, the current first oracle is also the current validating oracle. After each validating oracle obtains the corresponding scoring data, it publishes it using a verifiable random function. This allows the second oracle running on the current business application to obtain the scoring data published by each validating oracle. This allows the scoring data to be aggregated and statistically analyzed using a threshold signature algorithm.

[0075] Step 302: When it is determined that the credibility assessment has passed, the distributed oracle triggers the smart contract on the blockchain, causing the blockchain to store the current data to be uploaded on the chain corresponding to the current business application.

[0076] The second oracle in the distributed oracle uses a threshold signature algorithm to summarize and count the scoring data. In this way, a threshold value can be set. When the number of scoring data greater than or equal to the set value reaches the set threshold value, the current first oracle receives the evaluation pass message sent by the second oracle; the current first oracle signs the current data to be uploaded to the chain and uploads it to the smart contract, so that the smart contract allows the current data to be uploaded to the chain after the signature verification is passed. That is, through the smart contract, the blockchain stores the current data to be uploaded to the chain corresponding to the current business application.

[0077] Of course, in some implementations, if it is determined that the credibility assessment fails, the distributed oracle returns the current data on-chain request.

[0078] As can be seen, in this embodiment, the distributed oracle can, upon receiving a request to upload current data to the chain, conduct a credibility assessment on the current data source of the data to be uploaded. If it is determined that the credibility assessment passes, it triggers the smart contract on the blockchain, causing the blockchain to store the current data to be uploaded on the chain corresponding to the current business application. In this way, with the help of the oracle, the trustworthy verification of off-chain data and the upload of data are achieved, which ensures the credibility of the source of the uploaded data and the authenticity of the uploaded data itself, improves the credibility and validity of the blockchain data, and thus ensures the healthy development of the business chain. In addition, the data transmission in the distributed oracle also uses encrypted information, which further improves the security of data transmission and further reduces the risk of data tampering.

[0079] The following operational procedures are summarized into specific embodiments to illustrate the process for uploading blockchain data provided by the embodiments of the present invention.

[0080] In one embodiment of the present disclosure, Figure 2 As shown, in the distributed oracles, each first oracle has saved the corresponding credibility scoring model, and the second oracle corresponding to the current business application has saved the corresponding set value and set threshold value.

[0081] Figure 4 This is a signaling interaction diagram for a blockchain data on-chain method provided by an embodiment of the present disclosure. Figure 2 、 Figure 4 The process for uploading blockchain data includes:

[0082] Step 401: Data source A sends an identity registration request to edge IoT agent A in the area to achieve binding with edge IoT agent A.

[0083] Step 402: Edge IoT agent A sends data source registration request information to the corresponding current business application.

[0084] Step 403: When the data source registration request information is verified, the current business application generates digital identity registration information and sends it to the edge IoT agent A.

[0085] Step 404: Edge IoT agent A sends a registration success notification to data source A.

[0086] Steps 401-404 are the registration process of data source A. That is, before the blockchain data is uploaded, the data source must register with the corresponding business application.

[0087] Step 405: Data source A uploads the current data to be uploaded to the edge IoT agent A in the area.

[0088] Step 406: Edge IoT agent A sends a request to upload the current data to the second oracle in the distributed oracle, and generates a zero-knowledge proof based on data source A.

[0089] Step 407: Edge IoT agent A encrypts the current data to be uploaded and the zero-knowledge proof according to the public key corresponding to the first oracle A, and sends them to the first oracle A.

[0090] The first oracle A runs on the edge IoT agent A in the area where the data source is located.

[0091] Step 408: After decrypting with the private key and confirming that the zero-knowledge proof has not been tampered with, the first oracle A is determined to be the current verification oracle, and the zero-knowledge proof is encrypted according to the public key corresponding to each first oracle with the ability to verify the data source, to obtain the corresponding ciphertext information, and send it to the corresponding first oracle B, C, D...

[0092] The first oracle B, C, D... is a node in the distributed oracle, corresponding to other areas.

[0093] Step 409: After decrypting the ciphertext information and confirming that the zero-knowledge proof has not been tampered with, the first oracle B, C, D, etc. is determined as the current verification oracle.

[0094] Step 410: Each current verification oracle performs a credibility score on data source A using the corresponding credibility score model, and signs the corresponding score data using the corresponding private key and sends it to the second oracle in the distributed oracle.

[0095] The second language machine runs on blockchain business applications.

[0096] Step 411: The second oracle aggregates the scoring data using a threshold signature algorithm and counts the number of scoring data that is greater than or equal to a set value.

[0097] The second oracle can decrypt the encrypted scoring data through the corresponding public key to obtain the corresponding scoring data, and then summarize the statistics.

[0098] Steps 405 - 411 are the data source A evaluation process.

[0099] Step 412: When the statistical number reaches the set threshold, the second oracle sends an evaluation pass message to the first oracle A.

[0100] Step 413: The first oracle A signs the data to be uploaded to the chain and uploads it to the smart contract.

[0101] Step 414: After the signature verification is passed, the smart contract allows the current data to be uploaded to the chain, so that the blockchain can store the current data to be uploaded on the chain corresponding to the current business application.

[0102] Steps 412-414 are the process of uploading data to the chain.

[0103] Of course, when the statistical number reaches the set threshold, the second oracle returns the current data chain request to the edge IoT agent A.

[0104] It can be seen that in this embodiment, multiple nodes in the distributed oracle can perform credibility assessment on the data source and perform summary statistics, which further improves the reliability of data source credibility verification, further ensures the authenticity of the on-chain data itself, and further improves the credibility and validity of blockchain data.

[0105] According to the above-mentioned process for uploading blockchain data to the chain, a device for uploading blockchain data to the chain can be constructed.

[0106] Figure 5 This is a schematic diagram of the structure of a device for blockchain data on-chain provided by an embodiment of the present disclosure. The device for blockchain data on-chain can be applied to a node of a distributed oracle, such as Figure 5 As shown, the device 500 for uploading blockchain data to the chain includes: an evaluation module 510 and a trigger module 520.

[0107] The evaluation module 510 is configured to, upon receiving a request to upload current data to the chain, perform a credibility evaluation on the current data source of the current data to be uploaded;

[0108] The trigger module 520 is configured to trigger the smart contract on the blockchain when it is determined that the credibility assessment has passed, so that the blockchain stores the current data to be uploaded on the chain corresponding to the current business application.

[0109] In some embodiments, the assessment module 510 includes:

[0110] The evaluation unit is configured to perform a credibility score on the current data source through a corresponding credibility score model and publish the corresponding score data.

[0111] The threshold statistics unit is configured to perform summary statistics on the scoring data through a threshold signature algorithm.

[0112] In some embodiments, further comprising:

[0113] The training module is configured to perform model training on input parameters based on artificial intelligence or machine learning to obtain a corresponding credibility scoring model, where the input parameters include: data source category, time when the data source is registered with the business system, number of times the data source has uploaded data to the chain, success rate of data source uploading data to the chain, etc. One or more.

[0114] In some embodiments, the assessment module 510 further includes:

[0115] The verification and determination unit is configured to receive ciphertext information carrying a zero-knowledge proof, wherein the zero-knowledge proof is generated by a current IoT device in the area where the current data source is located based on the current data source; and to decrypt the ciphertext information and determine that the zero-knowledge proof has not been tampered with, thereby determining it as the current verification oracle.

[0116] In some embodiments, the trigger module 520 is specifically configured to sign the current data to be uploaded to the chain and upload it to the smart contract when the number of scoring data greater than or equal to the set value reaches a set threshold value, so that the smart contract allows the current data to be uploaded to the chain to be uploaded after the signature verification is passed.

[0117] In some embodiments, further comprising:

[0118] The return module is configured to return the current data upload request if it is determined that the credibility assessment fails.

[0119] As can be seen, in this embodiment, the device for blockchain data on-chain can, upon receiving a request to on-chain the current data, conduct a credibility assessment on the current data source of the data to be on-chain, and upon determining that the credibility assessment passes, trigger the smart contract on the blockchain, causing the blockchain to store the current data to be on-chain corresponding to the current business application. In this way, with the help of the oracle, the trusted verification of off-chain data and the data on-chain are achieved, ensuring the credibility of the source of the on-chain data and the authenticity of the on-chain data itself, improving the credibility and validity of the blockchain data, and thus ensuring the healthy development of the business chain. In addition, the data transmission in the distributed oracle also uses encrypted information, further improving the security of data transmission and further reducing the risk of data tampering.

[0120] Combine Figure 6 , the embodiment of the present disclosure provides a device 600 for uploading blockchain data to a blockchain, comprising:

[0121] The processor 1000 and memory 1001 may also include a communication interface 1002 and a bus 1003. The processor 1000, communication interface 1002, and memory 1001 may communicate with each other via bus 1003. The communication interface 1002 may be used for information transmission. The processor 1000 may call the logic instructions in the memory 1001 to execute the method for blockchain data on-chain according to the above embodiment.

[0122] In addition, the logic instructions in the memory 1001 can be implemented in the form of software functional units and can be stored in a computer-readable storage medium when sold or used as an independent product.

[0123] Memory 1001, as a computer-readable storage medium, can be used to store software programs and computer-executable programs, such as the program instructions / modules corresponding to the methods in the embodiments of the present disclosure. Processor 1000 executes the program instructions / modules stored in memory 1001 to perform functional applications and data processing, thereby implementing the method for blockchain data on-chain in the above-mentioned method embodiments.

[0124] The memory 1001 may include a program storage area and a data storage area. The program storage area may store an operating system and at least one application required for a function; the data storage area may store data generated based on the use of the terminal device. Furthermore, the memory 1001 may include high-speed random access memory and non-volatile memory.

[0125] An embodiment of the present disclosure provides a device for putting blockchain data on the chain, comprising: a processor and a memory storing program instructions, wherein the processor is configured to execute a method for putting blockchain data on the chain when executing the program instructions.

[0126] The embodiment of the present disclosure provides a device for carrying a distributed oracle, which can be a database side device used in a blockchain data on-chain system, or an IoT device, or a blockchain side device, etc., including a device body, such as Figure 7 As shown, the above-mentioned device 500 (600) for blockchain data on-chain is installed in the device body (700). The installation relationship described here is not limited to placement inside the product, but also includes installation connections with other components of the product, including but not limited to physical connections, electrical connections or signal transmission connections. It can be understood by those skilled in the art that the device 500 (600) for blockchain data on-chain can be adapted to a feasible corresponding device body, thereby realizing other feasible embodiments.

[0127] An embodiment of the present disclosure provides a storage medium storing program instructions, which, when run, execute the above-mentioned method for uploading blockchain data to the chain.

[0128] An embodiment of the present disclosure provides a computer program product, which includes a computer program stored on a storage medium, and the computer program includes program instructions. When the program instructions are executed by a computer, the computer executes the above-mentioned method for blockchain data on-chain.

[0129] The aforementioned storage medium may be a transient computer-readable storage medium or a non-transitory computer-readable storage medium.

[0130] The technical solution of the embodiments of the present disclosure may be embodied in the form of a software product, which is stored in a storage medium and includes one or more instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the method described in the embodiments of the present disclosure. The aforementioned storage medium may be a non-transitory storage medium, including: a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, and other media that can store program code, or a transient storage medium.

[0131] The above description and accompanying drawings sufficiently illustrate the embodiments of the present disclosure to enable those skilled in the art to practice them. Other embodiments may include structural, logical, electrical, process, and other changes. The embodiments represent only possible variations. Unless expressly required, individual components and functions are optional, and the order of operations may vary. Portions and features of some embodiments may be included in or substituted for portions and features of other embodiments. The scope of the embodiments of the present disclosure includes the entire scope of the claims and all available equivalents thereof. When used in this application, although the terms "first," "second," etc. may be used in this application to describe various elements, these elements should not be limited by these terms. These terms are only used to distinguish one element from another. For example, a first element can be called a second element, and similarly, a second element can be called a first element, without changing the meaning of the description, as long as all occurrences of "first element" are consistently renamed and all occurrences of "second element" are consistently renamed. The first element and the second element are both elements, but they may not be the same element. Furthermore, the terms used in this application are only used to describe the embodiments and are not intended to limit the claims. As used in the description of the embodiments and claims, unless the context clearly indicates otherwise, the singular forms "a", "an" and "the" are intended to include the plural forms as well. Similarly, the term "and / or" as used in this application refers to any and all possible combinations of one or more of the associated listings. In addition, when used in this application, the term "comprise" and its variations "comprises" and / or comprising refer to the presence of stated features, wholes, steps, operations, elements, and / or components, but do not exclude the presence or addition of one or more other features, wholes, steps, operations, elements, components and / or groups of these. Without further limitation, an element defined by the phrase "comprising a..." does not exclude the presence of other identical elements in the process, method or apparatus comprising the element. In this article, each embodiment may focus on the differences from other embodiments, and the same and similar parts between the embodiments can be referred to each other. For the methods, products, etc. disclosed in the embodiments, if they correspond to the method part disclosed in the embodiments, then the relevant parts can be referred to the description of the method part.

[0132] Those skilled in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software may depend on the specific application and design constraints of the technical solution. The technicians may use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the embodiments of the present disclosure. The technicians will clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0133] In the embodiments disclosed herein, the disclosed methods and products (including but not limited to devices, equipment, etc.) can be implemented in other ways. For example, the device embodiments described above are merely illustrative. For example, the division of the units can be merely a logical functional division. In actual implementation, there may be other division methods, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. In addition, the coupling or direct coupling or communication connection between each other shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, and can be electrical, mechanical or other forms. The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the units may be selected to implement this embodiment according to actual needs. In addition, the functional units in the embodiments of the present disclosure may be integrated into a processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.

[0134] The flowcharts and block diagrams in the accompanying drawings show the possible implementation architectures, functions and operations of the systems, methods and computer program products according to the embodiments of the present disclosure. In this regard, each box in the flowchart or block diagram can represent a module, program segment or part of the code, and the module, program segment or part of the code contains one or more executable instructions for implementing the specified logical functions. In some alternative implementations, the functions marked in the box can also occur in an order different from that marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, or they can sometimes be executed in the opposite order, which can depend on the functions involved. In the descriptions corresponding to the flowcharts and block diagrams in the accompanying drawings, the operations or steps corresponding to different boxes can also occur in an order different from that disclosed in the description, and sometimes there is no specific order between different operations or steps. For example, two consecutive operations or steps can actually be executed substantially in parallel, or they can sometimes be executed in the opposite order, which can depend on the functions involved. Each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, may be implemented by a dedicated hardware-based system that performs the specified function or action, or may be implemented by a combination of dedicated hardware and computer instructions.

Claims

1. A method for blockchain data on-chain, characterized in that: include: Upon receiving a request to upload current data to the chain, the distributed oracle will conduct a credibility assessment on the current data source of the data to be uploaded to the chain. When the credibility assessment is confirmed to be passed, the distributed oracle triggers the smart contract on the blockchain, causing the blockchain to store the current data to be uploaded on the chain corresponding to the current business application.

2. The method according to claim 1, characterized in that Also includes: After the IoT device is bound to the data source, it sends a data source registration request to the business application. The first oracle in the distributed oracle runs on the IoT device. Upon receiving the digital identity registration information sent by the business application, a registration success notification is sent to the data source, wherein the digital identity registration information is generated after the business application verifies the data source registration request information.

3. The method according to claim 1, characterized in that The distributed oracle machine evaluates the credibility of the current data source of the data to be uploaded to the chain, including: Each current verification oracle in the distributed oracle machine uses the corresponding credibility scoring model to score the credibility of the current data source and publishes the corresponding scoring data, wherein the current verification oracle is determined from the first oracle that has the ability to verify the current data source, and the first oracle runs in the IoT device; The second oracle in the distributed oracle aggregates and counts the scoring data through a threshold signature algorithm, wherein the second oracle runs on a blockchain business application.

4. The method according to claim 3, characterized in that Also includes: Based on artificial intelligence or machine learning, the first oracle performs model training on the input parameters to obtain a corresponding credibility scoring model, where the input parameters include: data source category, time when the data source registers with the business system, number of times the data source uploads data to the chain, success rate of the data source uploading data to the chain, etc. One or more of the following.

5. The method according to claim 3, characterized in that The current verification oracle determines from a first oracle capable of verifying the current data source the following: The first oracle capable of verifying the current data source receives the encrypted information carrying the zero-knowledge proof from the current first oracle corresponding to the area where the current data source is located. The zero-knowledge proof is generated by the current IoT device in the area where the current data source is located based on the current data source and sent to the current first oracle together with the current data to be uploaded to the chain. After decrypting the ciphertext information and confirming that the zero-knowledge proof has not been tampered with, the first oracle that has the ability to verify the current data source is determined as the current verification oracle.

6. The method according to claim 5, characterized in that The distributed oracle triggers the smart contract on the blockchain including: When the number of scoring data greater than or equal to the set value reaches the set threshold, the current first oracle receives the evaluation pass message sent by the second oracle; The current first oracle signs the data to be uploaded to the chain and uploads it to the smart contract, so that the smart contract allows the data to be uploaded to the chain after the signature verification is passed.

7. The method according to any one of claims 1 to 6, characterized in that Also includes: If it is determined that the credibility assessment fails, the distributed oracle will return the current data on-chain request.

8. A system for blockchain data on-chain, characterized in that: include: Data source, blockchain, and distributed oracle connecting the data source and blockchain; The distributed oracle is configured to perform a credibility assessment on the current data source of the data to be uploaded to the chain upon receiving a request to upload the current data to the chain, and trigger the smart contract on the blockchain if it is determined that the credibility assessment passes, so that the blockchain can store the current data to be uploaded to the chain corresponding to the current business application.

9. A device for uploading blockchain data, comprising a processor and a memory storing program instructions, characterized in that: The processor is configured to perform the method for uploading blockchain data to the chain as described in any one of claims 1 to 7 when executing the program instructions.

10. A storage medium storing program instructions, characterized in that: When the program instructions are run, they execute the method for uploading blockchain data as described in any one of claims 1 to 7.