Blockchain data providing method, device, system and storage medium

By randomly selecting multiple evaluation nodes to obtain data and adjusting the weights, the problem of insufficient external information credibility in blockchain technology is solved, and the credibility of the data before it is uploaded to the chain and the reliability of the blockchain data are improved.

CN114143017BActive Publication Date: 2024-10-29CHINA TELECOM CORP LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202010825346.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-08-17
Publication Date
2024-10-29
Estimated Expiration
2040-08-17

AI Technical Summary

Technical Problem

The lack of guarantee of the credibility of external information in blockchain technology leads to irreversible contamination of data on the chain after erroneous data is uploaded to the chain, reducing the reliability of blockchain data.

Method used

By randomly selecting multiple evaluation nodes, obtain the data to be uploaded from their respective data sources, generate output values, determine the credibility value and credibility based on the output values, and adjust the weight of the evaluation nodes to improve the credibility and reliability of the data. .

Benefits of technology

Evaluate the credibility of external information before data is put on the chain, reduce the probability of irreversible contamination of blockchain data caused by erroneous data, and improve the reliability of blockchain data from the perspective of data sources.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114143017B_ABST
    Figure CN114143017B_ABST
Patent Text Reader

Abstract

The present disclosure proposes a blockchain data providing method, device, network system and storage medium, which relates to the field of blockchain technology. A blockchain data providing method disclosed in the present disclosure includes: when it is necessary to upload data to the blockchain, randomly select a predetermined number of evaluation nodes, and the selected evaluation nodes respectively obtain the data to be uploaded from their respective predetermined sources; obtain the output value of each evaluation node; determine the credible value according to the output value of each evaluation node, and determine the credibility of the credible value according to the weight of the evaluation node whose output value meets the credible value; provide the credible value and credibility to the blockchain node for uploading. Through such a method, before the data is stored on the chain, it is possible to randomly select multiple nodes for data generation and credible evaluation, improve the credibility of the data on the chain, reduce the probability of irreversible contamination of blockchain data by erroneous data, and improve the reliability of blockchain data from the perspective of data source.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of blockchain technology, and in particular to a blockchain data providing method, device, network system and storage medium. Background Art

[0002] Blockchain technology has been increasingly widely used due to its characteristics of "unforgeable data", "full traceability", "traceability", "openness and transparency", and "collective maintenance". Based on these characteristics, blockchain technology has laid a solid "trust" foundation, created a reliable "cooperation" mechanism, and has broad application prospects. Summary of the invention

[0003] One purpose of the present disclosure is to improve the reliability of blockchain data.

[0004] According to one aspect of some embodiments of the present disclosure, a blockchain data providing method is proposed, including: when it is necessary to upload data to the blockchain, randomly selecting a predetermined number of evaluation nodes, and having the selected evaluation nodes obtain the data to be uploaded from their respective predetermined sources; obtaining the output value of each evaluation node; determining a trusted value based on the output value of each evaluation node, and determining the credibility of the trusted value based on the weight of the evaluation node whose output value meets the trusted value; and providing the trusted value and the credibility to the blockchain node for upload.

[0005] In some embodiments, the blockchain data providing method further includes: adjusting the weight of the evaluation node according to the output value of each evaluation node and the determined trust value.

[0006] In some embodiments, determining the credible value according to the output value of each evaluation node includes: when the credible value to be generated is a fixed value, determining the data with the largest number of occurrences in the output value of the evaluation node as the credible value.

[0007] In some embodiments, determining a credible value based on the output values ​​of each evaluation node includes: when the credible value to be generated is a fluctuating value, removing the minimum and maximum values ​​from the output values, and determining the average value of the remaining output values ​​as the credible value.

[0008] In some embodiments, determining the credibility of a credible value based on the weights of evaluation nodes whose output values ​​conform to credible values ​​includes: determining the credibility of the credible value as the ratio of the sum of the weights of evaluation nodes whose output values ​​conform to credible values ​​to the sum of the weights of the selected evaluation nodes.

[0009] In some embodiments, adjusting the weight of the evaluation node includes: when the trusted value to be generated is a fixed value, increasing the weight of the evaluation node whose output value is equal to the trusted value by a predetermined first value, and updating the weight of the evaluation node whose output value is not equal to the trusted value to a predetermined minimum value, and the predetermined first value and the predetermined minimum value are greater than 0.

[0010] In some embodiments, adjusting the weight of the evaluation node includes: when the credible value to be generated is a fluctuating value, determining the error ratio between the output value and the credible value of each evaluation node; increasing the weight of the evaluation node whose output value error ratio is less than a predetermined first ratio by a predetermined second value; maintaining the weight of the evaluation node whose output value error ratio is greater than or equal to the predetermined first ratio and less than the second predetermined ratio unchanged; reducing the weight of the evaluation node whose output value error ratio is greater than or equal to the predetermined second ratio and less than a predetermined third ratio by a predetermined third value; updating the weight of the evaluation node whose output value error ratio is greater than or equal to a predetermined fourth ratio to a predetermined minimum value; wherein, the predetermined first ratio < the second predetermined ratio < the predetermined third ratio < the predetermined fourth ratio, and the predetermined second value, the predetermined third value and the predetermined minimum value are greater than 0.

[0011] In some embodiments, the error ratio is a ratio of an absolute value of a difference between an output value and a credible value to the credible value.

[0012] Through this method, before the data is stored on the chain, multiple nodes can be randomly selected for data generation and trust evaluation, thereby improving the credibility of the data on the chain, reducing the probability of erroneous data causing irreversible contamination of blockchain data, and improving the reliability of blockchain data from the perspective of the data source.

[0013] According to one aspect of some embodiments of the present disclosure, a blockchain data providing device is proposed, including: an evaluation node selection unit, configured to randomly select a predetermined number of evaluation nodes when data needs to be uploaded to the blockchain; multiple evaluation nodes, configured to obtain the data to be uploaded from their own predetermined sources when selected; an evaluation node output value acquisition unit, configured to obtain the output value of each evaluation node; a trusted value and credibility determination unit, configured to determine a trusted value according to the output value of each evaluation node, and determine the credibility of the trusted value according to the weight of the evaluation node whose output value meets the trusted value; a data uploading unit, configured to provide the trusted value and credibility to the blockchain node for upload.

[0014] In some embodiments, the blockchain data providing device also includes: a weight updating unit, configured to adjust the weight of the evaluation node according to the output value of each evaluation node and the determined trust value.

[0015] According to one aspect of some embodiments of the present disclosure, a blockchain data providing device is proposed, comprising: a memory; and a processor coupled to the memory, wherein the processor is configured to execute any one of the blockchain data providing methods mentioned above based on instructions stored in the memory.

[0016] Such a device can generate data and conduct trustworthy assessment by randomly selecting multiple nodes before storing the data on the chain, thereby improving the credibility of the data on the chain, reducing the probability of erroneous data causing irreversible contamination of blockchain data, and improving the reliability of blockchain data from the perspective of the data source.

[0017] According to one aspect of some embodiments of the present disclosure, a computer-readable storage medium is provided, on which computer program instructions are stored, and when the instructions are executed by a processor, the steps of any one of the blockchain data providing methods mentioned above are implemented.

[0018] By executing instructions on such storage media, it is possible to randomly select multiple nodes to generate data and conduct trustworthy assessments before storing the data on the chain, thereby improving the credibility of the data on the chain, reducing the probability of erroneous data causing irreversible contamination of blockchain data, and improving the reliability of blockchain data from the perspective of the data source.

[0019] According to one aspect of some embodiments of the present disclosure, a blockchain system is proposed, comprising: any one of the blockchain data providing devices described above; and a blockchain, configured to activate the blockchain data providing device to generate a trusted value and credibility when data needs to be uploaded; and to obtain the trusted value and credibility and store them on the chain.

[0020] Such a blockchain system can generate data and conduct trustworthy assessment by randomly selecting multiple nodes before storing the data on the chain, thereby improving the credibility of the data on the chain, reducing the probability of erroneous data causing irreversible contamination of blockchain data, and improving the reliability of blockchain data from the perspective of the data source. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] The drawings described herein are used to provide a further understanding of the present disclosure and constitute a part of the present disclosure. The illustrative embodiments of the present disclosure and their descriptions are used to explain the present disclosure and do not constitute an improper limitation on the present disclosure. In the drawings:

[0022] Figure 1 Flowcharts of some embodiments of the blockchain data providing method of the present disclosure.

[0023] Figure 2 Flowcharts of other embodiments of the blockchain data providing method of the present disclosure.

[0024] Figure 3 Schematic diagrams of some embodiments of the blockchain data providing apparatus of the present disclosure.

[0025] Figure 4 Schematic diagrams of other embodiments of the blockchain data providing device of the present disclosure.

[0026] Figure 5 Schematic diagrams of some further embodiments of the blockchain data providing apparatus of the present disclosure.

[0027] Figure 6 Schematic diagram of some embodiments of the blockchain system of the present disclosure. DETAILED DESCRIPTION

[0028] The technical solution of the present disclosure is further described in detail below through the accompanying drawings and embodiments.

[0029] The inventor discovered that the blockchain is a closed system that cannot actively obtain external data on the chain. An intermediary system is required to write external information into the blockchain to complete the intercommunication between the blockchain and the outside world. In blockchain technology, compared with the trusted environment on the chain, the credibility of external information is not guaranteed, and the uploading of external erroneous data to the chain will pollute the data on the chain.

[0030] The flowcharts of some embodiments of the blockchain data providing method disclosed in the present invention are as follows Figure 1 shown.

[0031] In step 101, when data needs to be uploaded to the blockchain, a predetermined number of evaluation nodes are randomly selected, and the selected evaluation nodes obtain the data to be uploaded from their respective predetermined sources. In some embodiments, the operation of selecting a predetermined number of evaluation nodes can be triggered when the blockchain issues a data request or when the blockchain receives an external on-chain request. In some embodiments, the selected evaluation nodes constitute a working group for this data upload operation.

[0032] In some embodiments, the evaluation nodes are independent of each other and do not affect each other. The evaluation nodes may have different data sources, thereby obtaining data of the same event from their respective data sources. The obtained data may be the same or different.

[0033] In step 102, the output value of each evaluation node is obtained. In some embodiments, the evaluation node has a pre-stored data processing algorithm, and generates an output value based on the data to be uploaded obtained from the external data source based on the predetermined algorithm.

[0034] In step 103, a credible value is determined based on the output value of each evaluation node, and the credibility of the credible value is determined based on the weight of the evaluation node whose output value meets the credible value. In some embodiments, an initial weight can be set for each evaluation node first, and its weight can be modified during operation according to the performance of each evaluation node. The weight represents the excellence of each node in data acquisition. The higher the weight, the better the historical performance. In some embodiments, the initial weight of all nodes can be set to W=5, and the maximum and minimum weights are W and W, respectively. max =10,W min =1.

[0035] In step 104, the trust value and the trustworthiness are provided to the blockchain node for uploading.

[0036] Through this method, the credibility of external information can be evaluated before the data is uploaded to the chain. A decentralized intermediary system can be used to obtain several copies of external information, evaluate and compare them, and finally give credibility and trust value after algorithm processing, thereby improving the credibility of the uploaded data, reducing the probability of erroneous data causing irreversible contamination of blockchain data, and improving the reliability of blockchain data from the perspective of data source.

[0037] In some embodiments, Figure 1 As shown, the blockchain data providing method may further include step 105: adjusting the weight of the evaluation node according to the output value of each evaluation node and the determined trust value.

[0038] Through this method, the weight of the evaluation node can be adjusted based on the reliability of the output value of the evaluation node. While improving the evaluation accuracy, it is also possible to track the changes in the status of the evaluation node itself in a timely manner, update the evaluation of the evaluation node in a timely manner, and improve timeliness.

[0039] Flow charts of other embodiments of the blockchain data providing method disclosed in the present invention are as follows Figure 2 shown.

[0040] In step 201, when data needs to be uploaded to the blockchain, a predetermined number of evaluation nodes are randomly selected, and the selected evaluation nodes obtain the data to be uploaded from their respective predetermined sources. In some embodiments, the predetermined number is not less than 10, and the node selection can be performed by a predetermined random algorithm.

[0041] In step 202, the output value of each evaluation node is obtained. In some embodiments, the evaluation node has a pre-stored data processing algorithm, and generates an output value according to the to-be-uploaded data obtained from the external data source based on the predetermined algorithm.

[0042] In step 203, it is determined whether the credible value to be generated is a fixed value. If it is a fixed value, step 204 is executed; otherwise, if the credible value to be generated is a fluctuating value, such as data that fluctuates over time, step 205 is executed. In some embodiments, it is also possible to determine whether the credible value to be generated is a fluctuating value. Similarly, if yes, step 205 is executed, otherwise step 204 is executed.

[0043] In some embodiments, a fixed value is an unchanging value, such as the value of a certain formula, the time when an event occurs, etc.; a time-fluctuating value is a value that varies at different times, such as a stock price, etc. The type of credible value that needs to be generated can be determined based on the blockchain application scenario, the application scenario and attributes of the data currently to be uploaded, etc.

[0044] In step 204, the data with the most occurrences in the output value of the evaluation node is determined as a credible value, and then step 206 is executed.

[0045] For example, for a work group of n evaluation nodes, each evaluation node outputs an output value R i (i is the evaluation node identifier), thereby obtaining the output value sequence R1, R2...R n From R1 to R n The value with the largest number of occurrences is selected, which is the determined reliable value R.

[0046] Find the ratio P of the sum of the weights of the evaluation nodes with an output value of R to the overall weight of the work group w :

[0047]

[0048] Where G is the set of evaluation nodes whose output value is R, n(G) is the number of evaluation nodes whose output value is R, and P a To evaluate the weight of node a, the credibility T = P w .

[0049] In step 205, the minimum value and the maximum value are removed from the output values, and the average value of the remaining output values ​​is determined as a credible value. Then, step 206 is executed.

[0050] For example, for a work group of n evaluation nodes, each evaluation node outputs an output value R i , thereby obtaining the output value sequence R1, R2...R n .

[0051] Remove the maximum value R in the sequence max and the minimum value R min , get the set G{R a ,R b ...}. Find the average value of the elements in the set G as the credible value R.

[0052] Find the ratio P of the sum of the weights of the evaluation nodes corresponding to the output values ​​in the set G to the overall weight value of the working group w :

[0053]

[0054] Where n(G) is the number of output values ​​in set G (when different nodes output the same value, they are counted separately), P a To evaluate the weight of node a, the credibility T = P w .

[0055] In step 206 , the ratio of the sum of the weights of the evaluation nodes whose output values ​​meet the credible value to the sum of the weights of the selected evaluation nodes is determined as the credibility of the credible value, and then steps 207 and 208 are executed.

[0056] In step 207, the trust value and the trustworthiness are provided to the blockchain node for uploading.

[0057] In step 208 , if the credible value to be generated is a fixed value, the operation in step 209 is performed; if the credible value to be generated is a fluctuating value, step 210 is performed.

[0058] In step 209, the weight of the evaluation node whose output value is equal to the credible value is increased by a predetermined first value, and the weight of the evaluation node whose output value is not equal to the credible value is updated to a predetermined minimum value. In some embodiments, the predetermined first value is 1 and the predetermined minimum value is 1.

[0059] In step 210, the weight of the evaluation node is adjusted according to the weight adjustment strategy for the fluctuation value, which may specifically include: determining the error ratio between the output value and the credible value of each evaluation node, in some embodiments, the error ratio is the ratio of the absolute value of the difference between the output value and the credible value to the credible value. The weight of the evaluation node whose output value error ratio is less than the predetermined first ratio is increased by a predetermined second value; the weight of the evaluation node whose output value error ratio is greater than or equal to the predetermined first ratio and less than the second predetermined ratio is maintained unchanged; the weight of the evaluation node whose output value error ratio is greater than or equal to the predetermined second ratio and less than the predetermined third ratio is reduced by a predetermined third value; the weight of the evaluation node whose output value error ratio is greater than or equal to the predetermined fourth ratio is updated to a predetermined minimum value; wherein the predetermined first ratio < the second predetermined ratio < the predetermined third ratio < the predetermined fourth ratio.

[0060] In some embodiments, for evaluation node i, the error ratio E = |RR i | / R.

[0061] If the error is less than 10%, the weight is increased by 1, W = W + 1;

[0062] If the error is between 10% and 30%, the weight remains unchanged, W = W;

[0063] If the error is between 30% and 50%, the weight is reduced by 3, W = W-3;

[0064] If the error is greater than 50%, the weight is adjusted to the minimum value 1, W=1.

[0065] Through this method, evaluation nodes can be randomly selected to ensure the randomness and verifiability of the nodes, which is conducive to resisting external attacks; using a group of decentralized evaluation nodes to obtain data can resist Byzantine behavior, which is more credible than the traditional centralized form; the credibility is based on the weighted feedback algorithm and can be updated in real time, which can accurately reflect the credibility of the currently uploaded data and facilitate credibility considerations when using blockchain data later.

[0066] In some embodiments, the blockchain data providing method described above can be applied to various blockchain scenarios. For example, China Telecom's blockchain platform is a closed blockchain. However, due to business relationships, it often needs to access external data, such as clearing and settlement bills, roaming data, etc. The above method can provide data credibility assessment for the telecommunications blockchain platform.

[0067] Schematic diagrams of some embodiments of the blockchain data providing device disclosed in the present invention are as follows Figure 3 shown.

[0068] The evaluation node selection unit 301 can randomly select a predetermined number of evaluation nodes when data needs to be uploaded to the blockchain. In some embodiments, the operation of selecting a predetermined number of evaluation nodes can be triggered when the blockchain issues a data request or the blockchain receives an external on-chain request. In some embodiments, the selected evaluation nodes constitute a working group for this data upload operation.

[0069] Multiple evaluation nodes 3021-302n, each evaluation node can obtain the data to be uploaded from its own predetermined source when selected. In some embodiments, n is a positive integer greater than 10. The evaluation nodes are independent of each other and do not affect each other. The evaluation nodes can have different data sources, so as to obtain data on the same event from their respective data sources, and the obtained data can be the same or different. In some embodiments, the evaluation node pre-stores a data processing algorithm, and generates an output value based on the data to be uploaded obtained from the external data source based on the predetermined algorithm.

[0070] The evaluation node output value acquisition unit 303 can acquire the output value of each evaluation node.

[0071] The credible value and credibility determination unit 304 can determine the credible value according to the output value of each evaluation node, and determine the credibility of the credible value according to the weight of the evaluation node whose output value meets the credible value. In some embodiments, an initial weight can be set for each evaluation node, and its weight can be modified during operation according to the performance of each evaluation node.

[0072] The data uploading unit 305 can provide the credibility and credibility determined by the credibility determination unit 304 to the blockchain node for uploading.

[0073] Such a device can generate data and conduct trustworthy assessment by randomly selecting multiple nodes before storing the data on the chain, thereby improving the credibility of the data on the chain, reducing the probability of erroneous data causing irreversible contamination of blockchain data, and improving the reliability of blockchain data from the perspective of the data source.

[0074] In some embodiments, Figure 3 As shown, the blockchain data providing device may further include a weight updating unit 306, which is capable of adjusting the weight of the evaluation node according to the output value of each evaluation node and the determined trust value.

[0075] Such a device can adjust the weight of the evaluation node based on the reliability of the output value of the evaluation node. While improving the evaluation accuracy, it can also timely track the changes in the status of the evaluation node itself, timely update the evaluation of the evaluation node, and improve timeliness.

[0076] In some embodiments, the data uploaded to the blockchain can be divided into two types: fixed values ​​and fluctuating values. The credible value and credibility determination unit 304 can determine the credible value in different ways according to the type of data. For example, if the credible value to be generated is a fixed value, the data with the most occurrences in the output value of the evaluation node is determined as the credible value; if the credible value to be generated is a fluctuating value, the minimum and maximum values ​​are removed from the output value, and the average value of the remaining output values ​​is determined as the credible value.

[0077] Such a device can differentiate processing methods according to different data types, thereby improving the rationality and reliability of data selection and evaluation.

[0078] In some embodiments, the weight updating unit 306 may also adopt different adjustment methods for the weights of each evaluation node according to different data types. For example, if the trust value to be generated is a fixed value, the weight of the evaluation node whose output value is equal to the trust value is increased by a predetermined first value, and the weight of the evaluation node whose output value is not equal to the trust value is updated to a predetermined minimum value; if the trust value to be generated is a fluctuating value, the error ratio between the output value and the trust value of each evaluation node can be determined, and the error ratio is divided into intervals, and the weight of the evaluation node is processed differently according to the size of the error ratio. The specific processing method can be as shown in the above step 210.

[0079] Such a device can process the weights of evaluation nodes differently according to different data types, thereby improving the rationality and reliability of node evaluation.

[0080] A structural diagram of an embodiment of the blockchain data providing device disclosed in the present invention is as follows: Figure 4 As shown. The blockchain data providing device includes a memory 401 and a processor 402. Among them: the memory 401 can be a disk, a flash memory or any other non-volatile storage medium. The memory is used to store the instructions in the corresponding embodiment of the blockchain data providing method above. The processor 402 is coupled to the memory 401 and can be implemented as one or more integrated circuits, such as a microprocessor or a microcontroller. The processor 402 is used to execute the instructions stored in the memory, which can improve the credibility of the on-chain data and the reliability of the blockchain data.

[0081] In one embodiment, it is also possible to Figure 5 As shown, the blockchain data providing device 500 includes a memory 501 and a processor 502. The processor 502 is coupled to the memory 501 via a BUS bus 503. The blockchain data providing device 500 can also be connected to an external storage device 505 via a storage interface 504 to call external data, and can also be connected to a network or another computer system (not shown) via a network interface 506. No further detailed description will be given here.

[0082] In this embodiment, by storing data instructions in a memory and then processing the instructions through a processor, the credibility of the data on the chain can be improved and the reliability of the blockchain data can be improved.

[0083] In another embodiment, a computer-readable storage medium stores computer program instructions, which, when executed by a processor, implement the steps of the method in the corresponding embodiment of the blockchain data providing method. It should be understood by those skilled in the art that the embodiments of the present disclosure may be provided as methods, devices, or computer program products. Therefore, the present disclosure may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware aspects. Moreover, the present disclosure may take the form of a computer program product implemented on one or more computer-usable non-transient storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0084] Schematic diagrams of some embodiments of the blockchain system disclosed in the present invention are as follows Figure 6 shown.

[0085] The blockchain 61 can be any blockchain in the relevant technology, and one or more nodes in the blockchain can be connected to the blockchain data providing device 62.

[0086] The blockchain data providing device 62 may be any of the above mentioned ones. In some embodiments, the blockchain data providing device 62 may include multiple evaluation nodes (nodes in the figure), each of which has its own weight (such as W1~W n ). Each evaluation node is connected to one or more external data sources, and the external data sources of the evaluation nodes are not all the same.

[0087] Such a blockchain system can generate data and conduct trustworthy assessment by randomly selecting multiple nodes before storing the data on the chain, thereby improving the credibility of the data on the chain, reducing the irreversible contamination of blockchain data caused by erroneous data, and improving the reliability of blockchain data from the perspective of the data source.

[0088] In some embodiments, the blockchain system can be a decentralized points exchange system. Taking the operator system as an example, the points are large in volume and have strong credibility in society. In order to promote the value circulation of points, a decentralized trading system is designed to exchange multiple points. In the points exchange system, it is necessary to continuously obtain information such as the number of various points and the exchange ratio from the outside. The blockchain system mentioned above can perform a credible evaluation of the latest data obtained, which plays a key guiding role in the system.

[0089] In some embodiments, the blockchain system can be a decentralized finance project (DeFi). Decentralized finance projects will issue stablecoins in blockchain projects to exchange or trade other types of currencies. The price of stablecoins against other currencies needs to be obtained from the outside and converted. The blockchain system mentioned above can obtain price information from external exchanges and conduct feasibility assessments, which plays a key guiding role in the system.

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

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

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

[0093] So far, the present disclosure has been described in detail. In order to avoid obscuring the concept of the present disclosure, some details known in the art are not described. Based on the above description, those skilled in the art can fully understand how to implement the technical solution disclosed here.

[0094] The method and apparatus of the present disclosure may be implemented in many ways. For example, the method and apparatus of the present disclosure may be implemented by software, hardware, firmware, or any combination of software, hardware, and firmware. The above order of steps for the method is for illustration only, and the steps of the method of the present disclosure are not limited to the order specifically described above, unless otherwise specifically stated. In addition, in some embodiments, the present disclosure may also be implemented as a program recorded in a recording medium, which includes machine-readable instructions for implementing the method according to the present disclosure. Therefore, the present disclosure also covers a recording medium storing a program for executing the method according to the present disclosure.

[0095] Finally, it should be noted that the above embodiments are only used to illustrate the technical solution of the present disclosure rather than to limit it. Although the present disclosure has been described in detail with reference to the preferred embodiments, ordinary technicians in the relevant field should understand that the specific implementation methods of the present disclosure can still be modified or some technical features can be replaced by equivalents without departing from the spirit of the technical solution of the present disclosure, which should be included in the scope of the technical solution for protection of the present disclosure.

Claims

1. A method for providing blockchain data, comprising: When data needs to be uploaded to the blockchain, a predetermined number of evaluation nodes are randomly selected, and the selected evaluation nodes obtain the data to be uploaded from their respective predetermined sources; Get the output value of each evaluation node; Determine a credible value based on the output value of each evaluation node; Determining the credibility of the credible value according to the weights of the evaluation nodes whose output values ​​conform to the credible value, including: determining the ratio of the sum of the weights of the evaluation nodes whose output values ​​conform to the credible value to the sum of the weights of the selected evaluation nodes as the credibility of the credible value; The trust value and the trustworthiness are provided to a blockchain node for uploading.

2. The method according to claim 1, further comprising: The weights of the evaluation nodes are adjusted according to the output values ​​of the evaluation nodes and the determined trust values.

3. The method according to claim 1, wherein: Determining the credible value according to the output value of each evaluation node includes: In the case where the credible value to be generated is a fixed value, the data with the largest number of occurrences in the output value of the evaluation node is determined as the credible value.

4. The method according to claim 1, wherein: Determining the credible value according to the output value of each evaluation node includes: In the case where the credible value to be generated is a fluctuating value, the minimum value and the maximum value are removed from the output values, and the average value of the remaining output values ​​is determined as the credible value.

5. The method according to claim 2, wherein: The adjusting the weight of the evaluation node comprises: When the credible value to be generated is a fixed value, the weight of the evaluation node whose output value is equal to the credible value is increased by a predetermined first value, and the weight of the evaluation node whose output value is not equal to the credible value is updated to a predetermined minimum value, and the predetermined first value and the predetermined minimum value are greater than 0.

6. The method according to claim 2, wherein: The adjusting the weight of the evaluation node comprises: In the case where the credible value to be generated is a fluctuating value, determining the error ratio between the output value of each evaluation node and the credible value; Increase the weight of the evaluation node whose output value error ratio is less than the predetermined first ratio by a predetermined second value; Maintaining the weights of evaluation nodes whose error ratios of output values ​​are greater than or equal to a predetermined first ratio and less than a second predetermined ratio unchanged; Reduce the weight of the evaluation node whose error ratio of the output value is greater than or equal to the predetermined second ratio and less than the predetermined third ratio by a predetermined third value; updating the weights of the evaluation nodes whose error ratio of the output values ​​is greater than or equal to a predetermined fourth ratio to a predetermined minimum value; Among them, the predetermined first ratio<the second predetermined ratio<the predetermined third ratio<the predetermined fourth ratio, and the predetermined second value, the predetermined third value and the predetermined minimum value are greater than 0.

7. The method according to claim 6, wherein: The error ratio is the ratio of the absolute value of the difference between the output value and the credible value to the credible value.

8. A blockchain data providing device, comprising: An evaluation node selection unit, configured to randomly select a predetermined number of evaluation nodes when data needs to be uploaded to the blockchain; A plurality of evaluation nodes are configured to obtain data to be uploaded from their own predetermined sources when selected; An evaluation node output value acquisition unit, configured to acquire the output value of each evaluation node; The trust value and trustworthiness determination unit is configured to: Determine a credible value based on the output value of each evaluation node; Determining the credibility of the credible value according to the weights of the evaluation nodes whose output values ​​conform to the credible value, including: determining the ratio of the sum of the weights of the evaluation nodes whose output values ​​conform to the credible value to the sum of the weights of the selected evaluation nodes as the credibility of the credible value; The data uploading unit is configured to provide the trust value and the trustworthiness to the blockchain node for uploading.

9. The apparatus according to claim 8, further comprising: The weight updating unit is configured to adjust the weight of the evaluation node according to the output value of each evaluation node and the determined trust value.

10. A blockchain data providing device, comprising: Memory; as well as A processor coupled to the memory, the processor being configured to execute the method according to any one of claims 1 to 7 based on instructions stored in the memory.

11. A computer-readable storage medium having computer program instructions stored thereon, which, when executed by a processor, implement the steps of the method according to any one of claims 1 to 7.

12. A blockchain network system, comprising: The blockchain data providing device according to any one of claims 8 to 10; and The blockchain is configured to activate the blockchain data providing device to generate a trustworthy value and a credibility when data needs to be uploaded; obtain the trustworthy value and the credibility and store them on the chain.

Citation Information

Patent Citations

  • Enterprise credibility evaluation method based on block chain

    CN110826903A