Validation of measurement datasets in distributed databases
By comparing the measurement data set and the reference data set at the mining node of the distributed database, the problem of the validity and integrity of the measurement data set being compromised in the distributed database is solved, and the verification and trust level improvement of the measurement data set are achieved. , ensuring data security.
Patent Information
- Application Number
- CN202010439704.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Priority Date
- 2019-05-22
- Filing Date
- 2020-05-22
- Publication Date
- 2024-10-25
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
Measurement data sets can be affected by failures or fraud in distributed databases, causing their validity and integrity to be compromised, thereby compromising the integrity of the data stored in the distributed database.
At the mining node of the distributed database, the measurement data set is obtained through the control circuit and compared with the reference data set. Verification measures are selectively triggered based on the comparison results to ensure the validity of the measurement data set. The reference data set can include predefined constraints associated with the event or another measurement data set, in this way implementing verification measures in the distributed database.
It improves the trust level of measurement data sets, can identify and respond to failures or fraud, ensures data integrity and security, and enhances data verification capabilities in distributed databases.
Smart Images

Figure CN111984725B_ABST
Abstract
Description
Technical Field
[0001] Various examples of the present invention generally relate to techniques for validating measurement data sets. Various examples of the present invention particularly relate to validating measurement data sets using one or more validation measures implemented at a distributed database such as a blockchain. Background Art
[0002] Distributed databases, such as blockchain, provide increased security against manipulation of data. Therefore, various functions, such as sensing and control functions in industrial environments, control of power grids, transportation systems, etc., rely on data stored in distributed databases.
[0003] Various functions that rely on data stored in a distributed database may be event-driven. That is, one or more functions may be triggered by and / or based on events external to the distributed database, i.e., based on external data. For this purpose, measurement nodes are known, which are sometimes also referred to as oracles. An oracle may provide a measurement data set of one or more observable quantities indicative of an event. The measurement data sets may then be stored in a distributed database. Logical functions may be associated with these measurement data sets.
[0004] The validity / integrity of the measurement data set may sometimes be compromised. This may be due to a faulty oracle or fraud, for example. This limited validity of the measurement data set may also compromise the integrity of the data stored in the distributed database or any functions related to the measurement data set. Summary of the invention
[0005] Accordingly, techniques for validating measurement data sets are needed. In particular, techniques are needed that overcome or mitigate at least some of the limitations and disadvantages mentioned above.
[0006] This need is met by the features of the present invention.The following description defines the embodiments.
[0007] A mining node of the infrastructure of a distributed database includes a control circuit. The control circuit is configured to obtain a measurement data set, which indicates one or more observables of an event. The measurement data set includes processed raw data samples. The control circuit is also configured to compare the measurement data set with a reference data set. The reference data set includes one or more predefined constraints. One or more predefined constraints are associated with the event. As a replacement or in addition to the reference data set including one or more predefined constraints, the reference data set may also include another measurement data set. The other measurement data set indicates one or more additional observables of the event. The control circuit is also configured to selectively trigger one or more verification measures for the measurement data set based on the result of the comparison. The one or more verification measures are implemented at the distributed database.
[0008] A method implemented by a computer at a mining node of an infrastructure of a distributed database includes: obtaining a measurement data set, the measurement data set indicating one or more observables of an event. The measurement data set includes processed raw data samples. The method also includes: comparing the measurement data set with a reference data set. The reference data set includes at least one of the following: one or more predefined constraints associated with the event; or another measurement data set, the other measurement data set indicating one or more additional observables of the event. The method also includes: selectively triggering one or more validation measures for the measurement data set based on the results of the comparison. The one or more validation measures are implemented at the distributed database.
[0009] The computer program product or computer program or computer readable storage medium comprises program code. The program code can be loaded and executed by a processor. When executing the program code, the processor performs a method. The method comprises: obtaining a measurement data set, the measurement data set indicating one or more observables of an event, the measurement data set comprising processed raw data samples; and comparing between the measurement data set and a reference data set, the reference data set comprising at least one of the following: one or more predefined constraints associated with the event, or another measurement data set, the other measurement data set indicating one or more other observables of the event; and selectively triggering one or more verification measures for the measurement data set based on the result of the comparison, and implementing the one or more verification measures at a distributed database.
[0010] Unless expressly stated otherwise, the terms "execute", "compute", "computer-implemented", "calculate", "establish", "generate", "configure", "reconstruct", etc., preferably relate to actions and / or processes and / or processing steps that modify data and / or generate data and / or transform data into other data. Data may be represented by physical quantities or may exist as physical quantities, for example as electrical impulses. In particular, the term "computer" should be interpreted broadly to cover all electronic devices with data processing capabilities. Thus, a computer may be implemented by a personal computer, a server, a memory programmable controller, a handheld computer system, a palmtop PC device, a wireless communication device and other communication devices that can process data, a processor and other electronic devices for processing data.
[0011] In the context of the present disclosure, "computer-implemented" may relate to an implementation of a method where a processor performs at least one method step.
[0012] The processor in the context of the present disclosure can be a machine or an electronic circuit. The processor can be specifically implemented by a central processing unit (CPU) or a microprocessor or a microcontroller, such as an application-specific integrated circuit (ASIC) or a digital signal processor, which may be combined with a storage unit for storing program code, etc. Alternatively or additionally, the processor can be implemented by an integrated circuit (IC), especially a field programmable gate array (FPGA), an ASIC or a digital signal processor (DSP) or a graphics processing unit (GPU). Alternatively or additionally, the processor can be implemented by a virtual processor or a virtual machine or a soft CPU. The processor can be implemented by a programmable processor with a configuration interface that facilitates the configuration of the various technologies described herein. The programmable processor can be configured to implement the method steps, components, modules or other aspects of the technology described herein.
[0013] The “memory” or “storage unit” or “storage module” etc. may be implemented by a volatile memory in the form of a random access memory (RAM) or a non-volatile memory such as a hard disk or a data carrier.
[0014] In the context of the present disclosure, the term "comprising" (especially with respect to data and / or information) may relate to the (computer-implemented) storage of the corresponding information or the corresponding data in a data structure / data set (which in turn is also stored in a storage unit, for example).
[0015] The term "providing" (particularly with respect to data and / or information) may relate to a computer-implemented provision in conjunction with the present disclosure. The provision may be implemented via an interface, such as a database interface, a network interface, an interface to a storage unit. When provided via an interface, the corresponding data and / or information may be transmitted and / or transferred and / or retrieved and / or received.
[0016] In the context of the present disclosure, the term "providing" may also relate to loading or saving, for example, a transaction together with corresponding data. For example, this may be implemented on or by a storage module.
[0017] In the context of the present disclosure, the term "providing" may also relate to the transmission (or transmission or reception or transfer) of the corresponding data from one node to another node of the distributed database infrastructure (of the corresponding infrastructure respectively).
[0018] “Smart contract” or “smart contract process” or “smart contract function” may refer to the execution of program code, such as control instructions, in the process with the help of a distributed database or corresponding infrastructure.
[0019] In the context of the present disclosure, a "checksum", such as a data block checksum, a data checksum, a node checksum, a transaction checksum, a link checksum, etc., may involve a cryptographic checksum or a cryptographic hash or a hash value. In particular, such a checksum can be determined on a data set and / or a sub-part of a data and / or one or more transactions and / or a data block, such as a block header of a block of a blockchain or a data block header of a data block or only a part of a data block transaction. The checksum can specifically be implemented by a checksum or multiple checksums or a hash value or multiple hash values of a hash tree (such as a Merkle tree, a Patricia tree). In addition, the "checksum" can also be implemented by a digital signature or an encrypted message authentication code. With the help of the checksum, cryptographic protection / protection against manipulation of transactions and associated data and data sets at various levels of a distributed database can be achieved. For example, if the security level needs to be increased, a checksum can be created and verified at the transaction level. For example, if the security level needs to be reduced, a checksum can be created and verified at the block level, such as on the entire block, or only on a portion of a data block and / or a portion of a transaction.
[0020] In the context of the present disclosure, a "data block checksum" may relate to a checksum calculated over some or all transactions of a data block. A node may verify / determine the integrity / authenticity of the corresponding part of a data block with the help of the data block checksum. Alternatively or additionally, the data block checksum may also be formed over the transactions of the previous data block / previous data block. In particular, the data block checksum may be implemented with the help of a hash tree, such as a Merkle tree [1] or a Patricia tree. Here, the data block checksum may be the root checksum of a Merkle tree, a Patricia tree or another binary hash tree. Transactions may be saved with the help of other checksums from a Merkle tree or a Patricia tree, for example by using a transaction checksum, wherein in particular the other checksums may relate to the leaves of a Merkle tree or a Patricia tree, respectively. Thus, the data block checksum may protect transactions by forming a root checksum from other checksums. In particular, the data block checksum may be calculated for transactions of a specific data block in a data block. In particular, such a data block checksum may be included in a subsequent data block of a given data block, e.g. for linking the subsequent data block with a previous data block, in particular for making the integrity of the distributed database infrastructure testable. Thereby, the data block checksum may implement a link checksum, or at least enter a link checksum. The header of a data block (e.g. a new data block or a data block determining a data block checksum) may include a data block checksum.
[0021] A "transaction checksum" may relate to a checksum determined on a transaction of a data block in conjunction with the present disclosure. In addition, the calculation of a data block checksum of a corresponding data block may be accelerated, since for this, the already calculated transaction checksum may be easily used as a leaf of a Merkle tree.
[0022] A “link checksum” in the context of the present disclosure may relate to a checksum which, for a corresponding data block of the blockchain, indicates or refers to a previous data block of the blockchain, which is often referred to as a “previous block hash” in the literature [1]. For this purpose, a corresponding link checksum is determined in particular for the previous data block. The link checksum can be implemented, for example, by a transaction checksum or a data block checksum of a data block of the blockchain, i.e. an existing data block; in order to thereby link the new data block of the blockchain with the (existing) data block. For example, a checksum can also be determined at the header of the previous data block or over the entire previous data block to serve as a link checksum. This can also be calculated, for example, for a plurality of or all previous data blocks. For example, the link checksum can also be implemented by a checksum of the data block checksum that is determined at the header of the data block. However, the corresponding data block of the blockchain preferably comprises an already calculated link checksum or a link checksum that relates to a previous data block, in particular an immediately preceding data block that is directly adjacent to the corresponding data block. For example, the respective link checksum may also be determined only on a part of the respective data block, for example the previous data block. Thus, a data block having an integrity protected part and a non-protected part may be realized. Thus, a data block having an integrity protected part that cannot be changed and having a non-protected part that may be modified later may be realized. Integrity protection may mean that changes to the integrity protected data may be detected with the aid of the checksum.
[0023] Next, an example implementation of a transaction is described.
[0024] The data may be provided in various ways, i.e. data stored in or written to a transaction of a data block, for example. Instead of data (e.g. user data such as measurement data or data about the ASIC / ownership structure), a transaction of a data block may include a checksum of such data. The corresponding checksum may be implemented in various ways. For example, a corresponding data block checksum of, for example, a data block of another database or a distributed database including the corresponding data, such as a transaction checksum of a data block of the corresponding data of a distributed database or another database, or a data checksum determined on the data may be used.
[0025] Furthermore, the corresponding transaction may optionally include a link to a storage location or an indication of a storage location (e.g. an address of a file server and an indication of where the corresponding data can be found on the file server, i.e. an indication relating to off-chain storage); or an address of another distributed database comprising the data. The corresponding data may also be provided, for example, in another transaction in another data block of the blockchain, for example if the corresponding data and the associated checksum are contained in different data blocks. These data may also be provided via another communication channel, for example via another database and / or a cryptographically protected communication channel.
[0026] In this regard, reading a data set from a distributed database may generally correspond to reading the entire data set from the distributed database, or reading a checksum of the data set from the distributed database, and reading payload data of the data set from a non-distributed database.
[0027] In addition to the checksum, additional data sets, such as links or instructions to storage locations, can also be provided in the corresponding transaction. The additional data sets can in particular indicate where the data can be retrieved. This can help limit the amount of data in the blockchain.
[0028] The term "security protection" may specifically relate to protection that can be achieved by cryptographic methods. For example, this can be achieved by using a distributed database infrastructure to provide or transmit or transfer the corresponding data / transactions. This can be achieved by appropriate collaborative interactions between checksums, by combinations of various checksums (e.g. encryption), so as to, for example, improve the security of transaction data or the encryption security. In other words, "security protection" in the context of the present disclosure may also relate to "encryption protection" and / or "protection against manipulation", where "protection against manipulation" may also be referred to as "integrity protection".
[0029] Inserting a transaction into a distributed database infrastructure may include linking a data block of a blockchain. The term "linked data block" in connection with the present disclosure may relate to a data block that includes information (e.g., a link checksum) linking to another data block or multiple other data blocks, respectively [1], [4], [5].
[0030] Inserting the transaction into the distributed database may include saving the transaction in one or more data blocks of the blockchain.
[0031] Insertion of a transaction may include verifying and / or confirming the transaction.
[0032] The terms "inserting transactions into a distributed database" or "writing data into a distributed database" etc. may involve transmitting one or more transactions or data blocks comprising transactions to one or more nodes of a distributed database infrastructure. If those transactions are successfully verified, for example by means of the one or more nodes, these transactions can be linked as new data blocks to at least one existing data block [1], [4], [5]. For this purpose, the corresponding transactions are stored in the new data block. In particular, such verification and / or linking can be implemented by a trusted node, such as a mining node, a blockchain oracle or a blockchain platform.
[0033] In particular, the blockchain may involve a blockchain as a service (e.g. a service offered by Microsoft or IBM). In particular, the trusted node and / or other nodes may store a node checksum, e.g. a digital signature, in a data block, e.g. in a data block that has been verified by the respective node and then linked, in particular in order to facilitate identification of the creator of the data block and / or identification of the node. In this case, the node checksum indicates which node linked the respective data block to at least one other data block of the blockchain.
[0034] In connection with the present disclosure, a "transaction" or "transactions" may relate to a smart contract [4], [5], a data structure or a transaction data set, which in particular respectively comprises one transaction or multiple transactions. In connection with the present disclosure, the term "transaction" or "transactions" may also relate to data of transactions in a data block of a blockchain. A transaction may, for example, include program code for implementing a smart contract. For example, in the context of the present disclosure, a transaction may also relate to controlling a transaction and / or confirming a transaction. Alternatively, a transaction may also be implemented by a data structure storing data (e.g., control instructions and / or contract data and / or other data, such as video data, user data, measurement data, etc.).
[0035] In particular, the terms "saving or writing or storing a transaction in a data block", "saving a transaction", etc., may relate to direct saving or indirect saving. Direct saving may relate to a corresponding data block of a blockchain or a corresponding transaction of a blockchain, including the corresponding data. Indirect saving may relate to the corresponding data block or the corresponding transaction, including a checksum, and optionally to an additional data set, such as a link to the storage location of the corresponding data or an indication of the storage location of the corresponding data; thus, the corresponding data is not directly saved in the data block (or transaction). Instead, a checksum is provided for these data in the data block. In particular, when saving a transaction in a data block (e.g., "saving a transaction in a data block" as explained above with respect to "inserting into a distributed database"), these checksums may be verified.
[0036] In conjunction with the present disclosure, "program code" such as a smart contract may refer to a program instruction or multiple program instructions stored in one or more transactions. The program code may be executable and, for example, may be executed by a distributed database. This may be implemented, for example, by a runtime environment such as a virtual machine, wherein the runtime environment or the program code is preferably Turing complete. The program code is preferably executed by the infrastructure of the distributed database [4], [5]. Here, the virtual machine is implemented by the infrastructure of the distributed database. The program code may be executed when verifying the corresponding transaction.
[0037] In conjunction with the present disclosure [4], [5], a "smart contract" may refer to executable program code, in particular see the description of "program code" provided above. The smart contract is preferably stored in a transaction in a distributed database, such as a blockchain, such as a data block. For example, the smart contract can be executed in the same manner as described in conjunction with the definition of "program code", in particular in conjunction with the present disclosure.
[0038] In connection with the present disclosure [1], [4], [5], the term "proof of work" may refer to solving a computationally intensive task, particularly based on the contents of a block of data or the contents of a particular transaction. Such a computationally intensive task may also be referred to as a cryptographic puzzle.
[0039] In the context of the present disclosure, the term "distributed database" may generally relate to a decentralized distributed database, a blockchain, a distributed ledger, a distributed storage system, a distributed ledger technology (DLT) based system (DLTS), a redacted secure database system, a cloud, a cloud service, a blockchain in the cloud, or a peer-to-peer database system. In addition, various implementations of blockchains or DLTS may be used, such as blockchains or DLTS implemented with the aid of directed acyclic graphs (DAGs), cryptographic puzzles, hash graphs, or a combination of these variants [6], [7]. Different consensus algorithms may also be implemented. For example, a consensus algorithm may be implemented with the aid of cryptographic puzzles, gossip about gossip, virtual voting, or a combination of these techniques (e.g. gossip combined with virtual voting) [6], [7]. For example, if a blockchain is used, this may in particular be implemented with a Bitcoin-based implementation or an Ethereum-based implementation [1], [4], [5]. The term "distributed database" may also relate to a distributed database infrastructure having at least a part of its nodes and / or devices and / or infrastructure implemented by the cloud. For example, the corresponding components can be implemented as nodes / devices in the cloud (e.g. as virtual nodes in a virtual machine). This can be implemented by VMware, Amazon Web Services or Microsoft Azure. Due to the increased flexibility of the described implementation scenarios, it is possible to combine parts of the described implementation scenarios with one another, for example, by using a hash graph as a blockchain, wherein the blockchain itself can also be a block batch.
[0040] For example, if a directed acyclic graph (DAG) is used (e.g. IOTA or Tangle), the transactions or blocks or nodes of the graph are connected to each other via directed edges. That is, (all) edges (always) have the same direction, for example the same direction as the direction observed for time. In other words, in particular, transactions or blocks or nodes of the graph cannot be propagated backwards (i.e. opposite to the common unified direction) or accessed. Acyclic means in particular that there are no loops or closed loops when traversing the graph. For example, the distributed database infrastructure may involve a public distributed database infrastructure (e.g. a public blockchain) or a closed (private) distributed database system (e.g. a private blockchain).
[0041] For example, in the case of a public distributed database infrastructure, nodes and / or devices may join the distributed database infrastructure without proof of authorization or authentication or login credentials and accordingly be accepted by the distributed database infrastructure without such information. In particular, in this case, the operator of the node and / or device may remain anonymous.
[0042] For example, in the case where a distributed database infrastructure is implemented through a closed database system, new nodes and / or devices may require valid authorization proof and / or valid authentication information and / or valid credentials and / or valid login information to join the distributed database infrastructure or be accepted by the distributed database infrastructure.
[0043] A distributed database infrastructure can also be implemented by a distributed communication system for data exchange, which can be a network or a peer-to-peer network, for example.
[0044] In the context of the present disclosure, the term "data block" (which may also be referred to as "component" or "block" depending on the context and implementation) may relate to a data block of a distributed database, such as a blockchain or a peer-to-peer database, which is particularly implemented as a data structure and preferably includes one or more of a transaction. In one implementation, the database or database system may be a DLT-based system (DLTs) or a blockchain, and the data block may be a block of a blockchain or a DLTs.
[0045] As a general rule, a data block may include, for example, an indication of the size of the data block, for example the amount of data in bytes, a data block header (block header), a transaction counter and one or more transactions [1]. The data block header may include a version, a link checksum, a data block checksum, a timestamp, a proof of work, a Nonce (random number), i.e. a unique value, a random value or a counter for proof of work [1], [4], [5]. A data block may also simply refer to a corresponding storage range or address range of the entire data stored in a distributed database, for example. Blockless distributed database infrastructures, such as IOT Chain (ITCA), IOTA, Byteball, etc., can thus be implemented. In this case, the functions of blocks and transactions of the blockchain are combined with one another in such a way that, for example, the transaction itself ensures the security of the sequence or chain of transactions of the distributed database, so that it is stored in a particularly secure manner. For this purpose, transactions can be linked with the aid of a link checksum, for example by using a separate checksum or a transaction checksum of one or more transactions as a link checksum, and when the new transaction is stored in the distributed database, the link checksum is stored in the new transaction in the distributed database infrastructure. In this scenario, a data block may, for example, also include one or more transactions, wherein in a simple scenario a data block relates to a single transaction.
[0046] In conjunction with the present disclosure, the term "Nonce" may relate to a cryptographic nonce (nonce is an abbreviation of "used only once" [2] or "number used once" [3]). In particular, a nonce indicates an individual number or preferably a letter combination that is used only once in a corresponding context, such as a transaction, data communication.
[0047] In conjunction with the present disclosure, the term "previous data block of a (given) data block of a blockchain" may, for example, relate to a data block of the blockchain immediately preceding the (given) data block. Alternatively, the term "previous data block of a (given) data block of a distributed database" may also relate to all data blocks of the blockchain preceding the given data block. Thus, a link checksum or a transaction checksum may be determined on the immediately preceding data block (or its transaction) or all data blocks (or corresponding transactions) preceding the given data block.
[0048] In the context of the present disclosure, the terms "blockchain node", "node", "node of the infrastructure of a distributed database", "mining node", etc. may relate to a device, such as a mobile device, a wireless communication device, a computer, a smart phone, a client or a participant that performs operations associated with a distributed database, such as a blockchain [1], [4], [5]. Such a node may, for example, perform transactions of the distributed database or the corresponding data block, or may insert a new data block including a new transaction into the distributed database with the aid of a new data block. In particular, such verification and / or linking may be performed by a trusted node (such as a mining node) or only by a trusted node. A trusted node is a node that has additional security measures (such as firewalls, access restrictions to the node, etc.) to avoid manipulation of the node. Alternatively or additionally, when linking a new data block, the trusted node may, for example, save a node checksum (such as a digital signature or certificate) in the new data block. Thereby, a proof indicating that the corresponding data block was inserted by a specific node or indicating the initiator can be provided.
[0049] As a general rule, the device or devices may be implemented by devices of a technical system and / or an industrial plant and / or an automation network and / or a manufacturing plant, which may also be nodes of the infrastructure of a distributed database. Thus, the device may be a mobile device or a device of the Internet of Things, which may also be nodes of the infrastructure of a distributed database. A node may, for example, include at least one processor, for example, for executing its functions implemented by a computer.
[0050] In the context of the present disclosure, the term "blockchain oracle" or the like may relate to a node, device or computer comprising a security module having software protection mechanisms (e.g., cryptographic methods), mechanical protection mechanisms (e.g., lockable housings) or electrical protection measures, such as tamper protection or a protection system that deletes the data of the security module in the event of unauthorized use / modification of the blockchain oracle. The security module may, for example, include cryptographic keys required to calculate checksums, such as transaction checksums or node checksums.
[0051] The term "computer" or "device" may relate to a computer (system), a client, a smart phone, a device or a server, which is arranged outside the blockchain, or is not a participant of the distributed database infrastructure, i.e., does not perform operations of the distributed database, or simply retrieves these operations without performing transactions, inserting data blocks, or calculating proof of work. Alternatively, the term "computer" or "device" may also relate to a node of the infrastructure of a distributed database. In other words, the device can in particular implement a node of the distributed database infrastructure or a blockchain and a device outside the distributed database, respectively. Devices outside the distributed database infrastructure can, for example, access data of the distributed database, such as transactions or control transactions. Devices outside the distributed database infrastructure can be controlled by nodes, for example, with the aid of smart contracts and / or blockchain oracle. For example, if the control of a device, for example, a device implemented as a node or a device outside the distributed database infrastructure, is implemented by a node, this can be carried out via a smart contract, in particular, stored in a transaction of the distributed database.
[0052] Citation list
[0053] [1]Andreas M. Antonopoulos "Mastering Bitcoin: Unlocking Digital Cryptocurrencies", O'Reilly Media, December 2014
[0054] [2]Roger M.Needham, Michael D.Schroeder "Using encryption for authentication in large networks of computers" ACM: Communications of theACM.Vol 21, Nr.12Dec.1978,
[0055] [3]Ross Anderson "Security Engineering.A Guide to Building DependableDistributed Systems" Wiley, 2001
[0056] [4] Henning Diedrich, Ethereum: Blockchains, Digital Assets, SmartContracts, Decentralized Autonomous Organizations”, CreateSpace IndependentPublishing Platform, 2016
[0057] [5] "The Ethereum Book Project / Mastering Ethereum" https: / / github.com / ethereumbook / ethereumbook,5.10.2017
[0058] [6]Leemon Baird "The Swirlds Hashgraph Consensus Algorithm: Fair, Fast, Byzantine Fault Tolerance",
[0059] Swirlds Tech Report SWIRLDS-TR-2016-01,31.5.2016
[0060] [7]Leemon Baird "Overview of Swirlds Hashgraph", 31.5.2016
[0061] [8]Blockchain Oracles, https: / / blockchainhub.net / blockchain-oracles /
[0062] (Retrieved on July 12, 2018)
[0063] It is understood that the features mentioned above and the features still to be explained below can be used not only in the respective combination specified but also in other combinations or alone, without departing from the scope of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS
[0064] Figure 1 A system including a blockchain infrastructure and various nodes such as oracles according to various examples is schematically illustrated.
[0065] Figure 2 is a flow chart of a method according to various examples.
[0066] Figure 3 is a flow chart of a method according to various examples.
[0067] Figure 4 A comparison between a first geographic location and a second geographic location according to various examples is schematically illustrated.
[0068] Figure 5 A comparison between one or more time stamps and one or more timing constraints according to various examples is schematically illustrated.
[0069] Figure 6 Schematically illustrates a comparison between processed raw data samples of a plurality of measurement data sets according to various examples.
[0070] Figure 7 It is shown according to various examples Figure 1 Functional flow chart of the operation of the system.
[0071] Figure 8 is a flow chart of a method according to various examples. DETAILED DESCRIPTION
[0072] Some examples of the present disclosure generally provide multiple circuits or other electrical devices. All references to circuits and other electrical devices and the functions they each provide are not intended to be limited to only cover the content shown and described here. Although specific marks may be assigned to the various circuits or other electrical devices disclosed, these marks are not intended to limit the scope of operation of the circuits and other electrical devices. These circuits and other electrical devices can be combined and / or separated from each other in any manner based on the specific type of desired electrical implementation. It should be recognized that any circuit or other electrical device disclosed herein may include any number of microcontrollers, graphics processor units (graphics processor units, GPUs), integrated circuits, storage devices (such as flash memory (FLASH), random access memory (RAM), read only memory (read only memory, ROM)), electrically programmable read only memory (electrically programmable read only memory, EPROM), electrically erasable programmable read only memory (electrically erasable programmable read only memory, EEPROM) or other suitable variants thereof) and software that cooperates with each other to perform the operations disclosed herein. Furthermore, one or more of the electrical devices may be configured to execute program code embodied in a non-transitory computer readable medium programmed to perform any number of the functions disclosed.
[0073] Below, embodiments of the present invention will be described in detail with reference to the accompanying drawings. It should be understood that the following description of the embodiments should not be considered restrictive. The scope of the present invention is not intended to be limited by the embodiments described below or by the accompanying drawings, which should be considered merely illustrative.
[0074] The drawings should be considered as schematic representations, and the elements shown in the drawings are not necessarily shown to scale. Instead, the different elements are represented so that their functions and general purposes are apparent to those skilled in the art. Any connection or coupling between the functional blocks and / or frames, devices, components or other physical or functional units shown in the drawings or described herein may also be achieved through indirect connections or couplings. Coupling between components may also be established through wireless connections. Functional blocks and / or frames may be implemented in hardware, firmware, software or a combination thereof.
[0075] Below, techniques are described to facilitate validating measurement data sets provided by an oracle. As a general rule, an oracle can be implemented by a hardware oracle and / or a software oracle. A hardware oracle can measure (e.g., using a sensor) one or more physical observables of a physical event. Examples include: measuring electrical characteristics, such as current or voltage, fluid flow or fluid volume, pressure, temperature, operating activities of industrial machinery (e.g., oil change), operating mode, on / off, etc.; logistics, such as dispatch, waypoint passing, delivery, etc. A software oracle can provide measurement data indicative of software-defined events, such as website updates, data availability, service outages, etc.
[0076] As a general rule, a measurement data set can be associated with an industrial field device. More specifically, a measurement data set can be associated with an event (e.g., hardware and / or software event) of the operation of an industrial field device. Various types of industrial field devices can benefit from the technology described here. For example, industrial field devices such as vehicles, turbines, submarine equipment, medical equipment such as magnetic resonance imaging or computer tomography, robot assembly lines, robot manipulators, such as trains or airplanes or ships, can benefit from the technology described here. The specific types and types of industrial field devices are independent of the operation of the technology described here.
[0077] The various examples described herein help to verify a given measurement data set based on the consistency between (i) a given measurement data set associated with a given event and (ii) a reference data set. The reference data set can provide a cross-check for the measurement data set. As a general rule, there are various options for implementing the reference data set. The reference data set can be implemented as or include another measurement data set. For example, the reference data set can include one or more observables of one or more additional measurement data sets that are also associated with the same given event. Alternatively or additionally, the reference data set can include one or more predefined constraints. Thus, independent or largely independent information about the same event and / or the context of the event can be obtained, and corresponding comparisons can be triggered. Comparison between (i) the measurement data set and (ii) the reference data set is used to check the consistency of the observed event. Then, based on the results of the comparison, one or more verification measures for the measurement data set can be triggered or not (selectively triggered). The one or more verification measures can be implemented at a distributed database.
[0078] These techniques are based on the discovery that by using independent or largely independent measures for a given event, i.e., a measurement data set and a reference data set, it is possible to identify faults or fraud associated with an oracle. Thus, the level of trust in the measurement data set can be increased.
[0079] As a general rule, various options may be used to implement the verification measures. To name a few examples, the verification measures may include verifying or invalidating the measurement data set. For example, a variable may be stored in the distributed database, wherein the variable indicates a positive or negative result of the comparison. The variable may also indicate a base measurement data set, i.e., the measurement data set may be selectively stored in the distributed database depending on the result of the comparison. Furthermore, in the case of a lack of consistency, the stakeholders involved, i.e., one or more nodes that rely on the measurement data set, may be notified accordingly.
[0080] Various examples are based on the finding that if the comparison between (i) a given measurement data set and (ii) a reference data set is implemented at a mining node of a blockchain infrastructure, i.e., if the comparison logic resides at least partially at the blockchain infrastructure, the level of trust in the verification measure can be increased. In particular, the increase in the level of trust can be achieved compared to a reference implementation in which such consistency is checked at a node outside the blockchain infrastructure. In general, nodes of a distributed database infrastructure can have a higher level of security compared to nodes outside the distributed database infrastructure. Alternatively or additionally, the process implemented by the logic residing at the mining node of the distributed database structure can be securely tracked to facilitate later auditing. Manipulation of such logic may be difficult or difficult to conceal. For example, in the case of later checking the validity of the measurement data set, the validity of the metric that is the basis for the check on validity can be checked. According to various examples, it is also possible to consider the measurement data set that has been compared, or even the original data sample that is the basis when checking the validity of the comparison.
[0081] According to various examples, even if the comparison is performed at a mining node of the infrastructure of a distributed database, the measurement data set can be digitally signed near the origin of the underlying raw data sample, i.e., near or at the oracle. More specifically, in various examples, the measurement data set can include a digital signature determined based on the raw data sample (if compared to a digital signature determined based on the processed raw data sample). Thus, the validity of the underlying raw data sample is tracked. Subsequent manipulation of the measurement data set is prevented by means of a measurement data set including a digital signature. In order to provide a digital signature, private-public key material can be used. The validity of the digital signature can then be checked based on the public key in the private-public key material, while the digital signature is created using the private key in the public-private key material.
[0082] Various techniques are based on the discovery that for various kinds and types of raw data samples, performance indicators can be determined. Events can indicate operating characteristics of industrial field devices. Performance indicators can be determined, wherein the performance indicators specify one or more quality factors of the operating characteristics. Thus, the performance indicators can correspond to processed raw data samples. The quality factors can summarize the operation of the industrial field device. The quality factors can describe abnormalities in the operation. The quality factors can describe the average value of the operating characteristic.
[0083] As a general rule, the measurement data set may include or may be implemented by the performance indication. More specifically, the processed raw data samples contained in the measurement data set may correspond to the performance indication.
[0084] As a general rule, performance indicators can be determined based on raw data samples taking into account one or more operational constraints associated with the industrial field device. For example, depending on the specific type of industrial field device, different operational constraints can dictate what information is important for the performance of the industrial field device. For example: for a stereo camera, the dead time in the refresh rate of the image obtained from the image sensor can be an important performance indicator; on the other hand, for the disc brakes of a train car, the spectral power density within a specific part of the vibration spectrum can be an important performance indicator. In other words, more generally: the performance indicator can be unique to the type of industrial field device, and the performance indicator can be associated with the operating characteristics of the industrial field device.
[0085] The performance indication may generally include human-understandable application layer data about the operating characteristics of the industrial field device. That is, processed information that can be directly output via a human-machine interface may be included in the performance indication.
[0086] As a general rule, the performance indication may be smaller than the raw data sample. The performance indication may condense or summarize information typically contained in the raw data sample. For example, determining the performance indication may include applying a low pass filter, identifying a maximum or minimum value, detecting an event in the raw data sample, etc.
[0087] To name a few examples, the performance indication may include at least one of: a time-averaged data sample of a measurement data set; a peak data sample of a measurement data set; an event characteristic of a measurement data set; or a time-averaged usage characteristic of an industrial field device.
[0088] Various technologies use distributed databases to store data associated with industrial field devices. Generally speaking, the storage of data in a distributed database can be referred to as on-chain storage. In particular, various technologies use blockchain to implement a distributed database. Although various technologies will be described in conjunction with the scenario of implementing a distributed database by blockchain, similar technologies can be applied to other kinds and types of distributed databases, such as blockless databases, DLTS, etc. For simplicity, storage in all these kinds of distributed databases is referred to as on-chain storage (but this is not limited to blockchain).
[0089] According to various examples, it may be possible to facilitate on-chain storage of measurement data sets, i.e., storage on a blockchain or another distributed database. According to various examples, it may be possible to facilitate off-chain storage of raw data samples, i.e., storage on a non-distributed database. The measurement data sets and raw data samples may be stored in a cross-referenced manner. Since the size of raw data samples is generally relatively large, it is not necessary to store the raw data samples on the chain, which helps to relax the computational requirements imposed on the blockchain infrastructure. At the same time, by storing performance indications on the chain, high security against manipulation may be provided. For example, if the raw data samples are manipulated, such manipulation may also cause the measurement data set to change (otherwise the manipulation will be meaningless). This may help to identify manipulation by comparing the corresponding raw data samples with the measurement data set stored on the chain. In particular, the measurement data set may include performance indicators; the performance indicators may then be stored on the chain, while the raw data samples may be stored off the chain.
[0090] Figure 1 The system 70 is shown schematically. Figure 1 In the example of , the system 70 includes two oracles 101, 102, but in general may include only one oracle or include three or more oracles. Each of the oracles 101, 102 includes a corresponding control circuit 105. For example, the control circuit 105 may include a processor and a non-volatile memory. The processor may load program code from the non-volatile memory and execute the program code to perform various functions, such as: measuring data for a measurement data set, the measurement data set indicating one or more physical observables of an event; transmitting the measurement data set; processing the raw data of the measurement data set; triggering a comparison between the measurement data set and a reference data set so as to thereby verify the measurement data set; determining a digital signature of the measurement data set (e.g., a processed raw data sample, such as a performance indicator, or even a raw data sample), such as using public-private cryptographic key material; etc.
[0091] In more detail, Figure 1 As shown, each of the oracles 101, 102 includes an input interface 106, such as a sensor device for a hardware oracle or a communication interface for a software implemented input interface. The input interface 106 of the oracle 101, 102 is configured to measure or determine observables 85, 86 of the event 81.
[0092] As a general rule, event 81 may be a physical event and observables 85, 86 may be physical observables. Event 81 may also be a software event and observables 85, 86 will correspond to software observables 85, 86.
[0093] Oracles 101, 102 may provide respective measurement data sets 91, 92 to a network 71, such as the Internet. Measurement data set 91 provided by oracle 101 indicates observables 85 of event 81; and measurement data set 92 provided by oracle 102 indicates observables 86 of event 81. In particular, observables 85 may be different from observables 86. More generally, different oracles may provide measurement data sets indicating different observables. As just one example, a first oracle may provide a measurement data set indicating temperature; and a second oracle may provide a measurement data set indicating pressure. Thus, independent information and multiple measures of event 81 may be obtained. This facilitates reliable verification of measurement data sets 91, 92.
[0094] Sometimes, it is not feasible or desirable to include raw data samples in the measurement data sets 91, 92. Instead, some data compression or data preprocessing may be implemented at the oracles 101, 102, respectively, before the measurement data sets 91, 92 are transmitted to the communication network 71. Thus, the measurement data sets 91, 92 may include processed raw data samples. For example, the measurement data sets 91, 92 may include corresponding performance indicators that correspond to or indicate one or more quality factors of operational characteristics of the event 81.
[0095] The advantage of preprocessing the raw data samples (so that the measurement data sets 91, 92 output via the interface 107 include processed raw data samples) is that the computing resources required downstream in the data processing pipeline are reduced, such as the computing resources required at the mining nodes 151-153 of the blockchain infrastructure (architecture) 150, or the network resources required at the network 71. For example, fewer computing resources may be required to implement a comparison of the corresponding measurement data sets 91, 92 (including the processed raw data samples, such as performance indicators) with the corresponding reference data sets at one of the mining nodes 151-153. In particular, as mentioned above, preprocessing the raw data samples can reduce the data size of the measurement data sets 91, 92 if compared with the raw data samples, and preprocessing the raw data samples, for example, discards redundant or unnecessary information. Therefore, the amount of data that needs to be processed when implementing the comparison of the measurement data sets 91, 92 with the reference data sets is reduced.
[0096] As a general rule, raw data samples may correspond to low-level outputs of a sensor device (in a processing stack including multiple layers); raw data samples may correspond to outputs of an oracle or sensor device; and processed measurement data may correspond to raw data samples after some processing according to a processing algorithm. If compared to the raw data samples, there may be a trend that the processed raw data samples are smaller. For example: a 2D stereo camera may output a 2D image with pixels, each pixel having a specific color or brightness value. The raw data samples may then be processed to identify objects in the 2D image, for example using object recognition. Objects may be identified using bounding boxes or location labels and class labels indicating the type of object (e.g., vehicle, person, tree, etc.). This may implement the raw data samples. The processed raw data samples may also include the distance of the object obtained by comparing multiple 2D images of a given frame. In this scenario, the processed raw data samples may be significantly reduced if compared to the raw data samples. For example, the list of objects with associated categories and distances may be significantly reduced if compared to a collection of pixels (e.g., millions of pixels), each pixel having an n-bit value indicating its brightness, etc. Although the above example is described in conjunction with an implementation using a 2D stereo camera as a source of measurement data sets, the techniques described herein are not limited to such examples. Various other kinds and types of sources of measurement data sets are contemplated.
[0097] The measurement data sets 91, 92 output via the communication interface 107 of the oracle 101, 102 may be digitally signed. Thus, the measurement data sets 91, 92 may include a digital signature. In some examples, the digital signature may be determined based on the original data sample so that the measurement data set includes the digital signature of the original data sample. For example, the control circuit 105 of the oracle 101, 102 may be configured to determine the signature. By determining the signature near the origin of the original data sample and / or even based on the original data sample, for example next to the input interface 106, manipulation of the measurement data sets 91, 92 may be protected. Since the digital signature is determined near the origin of the original data sample, i.e., at a point very upstream of the data processing path, many attack vectors downstream of the data processing path may be mitigated.
[0098] exist Figure 1In the example of , the communication network 71 is also connected to the blockchain infrastructure 150. The blockchain infrastructure 150 includes a plurality of mining nodes 151-153, which hold and access a blockchain 159. Each of the mining nodes 151-153 can attempt to store a variable as a transaction in the blockchain 159, i.e., write to the blockchain 159. For example, a smart contract 90 can be implemented on the blockchain 159. The smart contract 90 can define a self-executable program code; to this end, the mining nodes 151-153 can provide a host environment to execute such program code.
[0099] Figure 1 The illustration also shows details about the mining nodes 151-153 of the blockchain infrastructure 150 ( Figure 1 15 . The illustration in FIG. 15 is shown with dashed lines). Each of the mining nodes 151-153 includes a processor 155. The processor 155 can load program code from the memory 157 and can execute the program code. The processor 155 can communicate with the network 71, for example, via the interface 156. Each of the mining nodes 151-153 can store a replica of the blockchain 159. For example, when loading the program code from the memory 157, the processor 155 can be configured to perform one or more of the following: for example, by comparing the measurement data set with the reference data set, to check the consistency between multiple data sets; for example, based on the result of the comparison, selectively trigger one or more verification measures; check the digital signature of the measurement data set; process the original data sample to obtain the measurement data set; etc.
[0100] The system 70 also includes stakeholder nodes 111, 112. Each stakeholder node 111, 112 includes a processor 115, which can load and execute program code stored by a corresponding non-volatile memory 117. The stakeholder nodes 111, 112 are connected to the network 71 via a corresponding interface 116. Each of the stakeholder nodes 111, 112 can be operated by a corresponding operator. The operator may rely on the functionality implemented by the smart contract 90 of the blockchain 159, for example. The operator may rely on the validity of the measurement data set 91 and / or the measurement data set 92. Therefore, each of the stakeholder nodes 111-112 is associated with an operator who is interested in the verification of the measurement data set 91 and / or the measurement data set 92.
[0101] The system 70 also includes a non-distributed database 72. The non-distributed database 72 is not replicated on multiple nodes. It is different from the blockchain 159. It can achieve off-chain storage.
[0102] Next, the details of the operation of the system 70 will be described in conjunction with the following drawings.
[0103] Figure 2 is a flow chart of a method according to various examples. For example, Figure 2 The method may be executed by oracle 101, for example, by loading corresponding program code from the memory of the control circuit by a processor of the control circuit 105. Figure 2 The method may also be performed by mining node 151 of blockchain infrastructure 150, for example, by processor 155 when loading program code from memory 157. In some examples, according to Figure 2 Part of the method may be performed by oracle 101, while other parts may be performed by mining node 151.
[0104] In block 5501, a raw data sample is obtained. The raw data sample indicates one or more operating characteristics of an industrial field device. For example, the raw data sample may be received from one or more sensor devices. At least a portion of the raw data sample may be obtained from a software oracle.
[0105] Next, at block 5502, the raw data samples are processed. As an output of block 5502, a measurement data set is obtained. As a general rule, various options can be used for processing. In some examples, performance indicators are determined based on the raw data samples. The performance indicators can correspond to one or more quality factors of one or more operating characteristics of the industrial field device.
[0106] As a general rule, in block 5502, various options may be used to determine the performance indication. For example, a performance metric algorithm may be used to determine the performance indication. The performance metric algorithm may transform the raw data samples into the performance indication. For example, the performance metric algorithm may be unique to a particular industrial field device or a particular type of industrial field device. The performance metric algorithm may reduce the amount of data such that the data size of the measurement data set including the performance indication is less than the data size of the raw measurement samples.
[0107] In block 5503, storage of a measurement data set including the processed raw data samples is triggered. The measurement data set may be stored in a distributed database, such as blockchain 159. Triggering storage in block 5503 may, for example, include transmitting the measurement data set to blockchain infrastructure 150, such as to an appropriate mining node, and requesting storage in blockchain 159.
[0108] Figure 3 is a flow chart of a method according to various examples. Figure 3 The method may be executed by the processor 155 of one of the mining nodes 151 - 153 when the corresponding program code is loaded from the memory 157 .
[0109] At block 5001 , a measurement data set is obtained. For example, the measurement data set may be obtained from an oracle such as oracle 101 .
[0110] According to some examples, block 5001 may include (pre)processing the raw data samples. This may correspond to or include the techniques described above with reference to block 5502 (see: Figure 2 ). The raw data sample may be received from an oracle, such as oracle 101. As a general rule, the processing at block 5001 may be implemented by a smart contract, such as smart contract 90.
[0111] According to various examples, such processing of the raw data sample at box 5001 can be based on a predefined algorithm. Sometimes, such an algorithm can have an associated validity period. For example, the algorithm can be agreed upon by the operators of the stakeholder nodes 111, 112. The corresponding protocol can define the validity period. In this scenario, if one or more timestamps of the raw data sample are consistent with the validity period of the predefined algorithm, the processing of the raw data sample can be selectively performed in box 5001. For example, it can be checked whether the timestamp of the raw data sample is within the validity period. This helps to avoid using an outdated algorithm for processing. This may be helpful in scenarios where stakeholders agree on different algorithms or different parameters of algorithms over time.
[0112] Then, at block 5001, the measurement data set may be associated with the timestamp of the processing. Alternatively or additionally, the measurement data set obtained from block 5001 may also be associated with an indication of the predefined algorithm and / or the validity period of the predefined algorithm. By these techniques, subsequent review / validity checks of the processing at block 5001 may be facilitated. In particular, it may be checked whether an appropriate algorithm was used. This may be helpful in scenarios where stakeholders agree on different algorithms or different parameters of an algorithm over time.
[0113] At block 5002, a reference data set is obtained. For example, another measurement data set may be obtained. The other measurement data set indicates one or more additional observables of an event, i.e., the same event for which the measurement data was obtained at block 5001. The other measurement data is provided by another oracle. For example, measurement data set 92 may be obtained from oracle 102, wherein measurement data set 92 indicates observables 86 of event 81 (see Figure 1 ).
[0114] Alternatively or in addition to the further measurement data set, one or more constraints associated with the event may also be obtained.
[0115] Next, at block 5003, a comparison is made between the measurement data set obtained at block 5001 and the reference data set obtained at block 5003. Block 5003 may include sending a trigger or request message to perform the comparison. Block 5003 may also include performing the comparison locally, for example, at the corresponding mining nodes 151-153. For example, block 5003 may include calling a corresponding function of a smart contract of a blockchain, for example, calling a corresponding function of a smart contract 90 of a blockchain 159 (see Figure 1 ). In other words, in this scenario, the comparison is provided by a smart contract. The comparison checks the consistency between the measurement data set of box 5001 and the reference data set of box 5002.
[0116] As a general rule, various options may be used to implement the comparison at box 5003. The comparison may vary with the type of measurement data set, and more specifically, may vary with the type of observable indicated by the measurement data set obtained in box 5001. For example, the comparison may be based on a predefined protocol that indicates a metric for the comparison. The metric may define a set of rules for the various data sets involved in the comparison. In particular, using appropriate metrics, even different observables may be compared, such as comparing temperature to pressure, or comparing operating statistics of field equipment to power consumption, to name a few examples. In some examples, the comparison may be implemented by a machine learning algorithm that is trained to detect anomalies in the behavior of multiple physical observables. In other examples, the predefined set of rules may be defined in an analytical manner.
[0117] For example, a tolerance range can be defined by a metric. A tolerance range can specify a specific acceptable range of deviations between a measured data set and a reference data set.
[0118] According to various examples, the metric used to implement the comparison at box 5003 may have an expiration date. The expiration date of the metric used for the comparison at box 5003 may be comparable to the expiration date of the processing algorithm for the processing at box 5001. For example, it may be once again checked whether one or more timestamps associated with the measurement data set and / or the reference data set to be compared are consistent with the expiration date of the metric. This prevents outdated metrics from being applied to the measurement data set and the reference data set for comparison. For example, stakeholders may (re)negotiate or change metrics from time to time. In particular, in the scenario where the comparison in box 5003 is implemented by a smart contract, it may then be helpful to check whether one or more timestamps of the measurement data set and / or the reference data set are consistent with the expiration date. For example, a suitable smart contract or a suitable function of a smart contract for implementing the comparison may be selected based on one or more timestamps and based on the expiration date associated with the smart contract or the function of the smart contract. Sometimes, in the scenario where the comparison is implemented by a smart contract, it is not possible to simply remove the smart contract from the blockchain without affecting the integrity of the blockchain. Therefore, by implementing a check on the validity period, a smart contract (or more specifically, a transaction or block including a smart contract) can be retained in the blockchain; but cannot be used for comparison after the validity period expires.
[0119] Furthermore, the result of the comparison may be stored in a distributed database together with a timestamp of the comparison and the metric or more specifically the validity period of the metric. A subsequent check may then be made whether an appropriate and valid metric was applied to achieve the comparison.
[0120] In some examples, a scenario may occur in which it is detected at block 5003 that the validity period of the metric has expired. Upon expiration of the validity period, a renegotiation of the metric between the stakeholder nodes 111-112 may be triggered, for example, by transmitting a corresponding request to the stakeholder nodes 111-112. Thus, it may be continuously ensured that a valid and up-to-date metric is used to implement the comparison at block 5003.
[0121] Next, several examples of example implementations of a reference data set indicating one or more predefined constraints associated with an event are given. For example, the constraint may be location-based. For example, the measurement data set may include a first geographic location, and the one or more predefined constraints may include a second geographic location. Figure 4 : For example, the first geographic location associated with the measurement data set may define the latitude and longitude of the location of the corresponding oracle. The second geographic location 702 may define a geographic fence or geographic area. Then, the comparison at box 5003 (see Figure 3 ) can be based on the spatial distance between the first geographic location 701 and the second geographic location 702. Figure 4 In the example of FIG. 5 , the latitude and longitude of the first geographic location 701 are within the geo-fence of the second geographic location 702, so the spatial distance between the first geographic location 701 and the second geographic location 702 is zero. Accordingly, the comparison at box 5003 (see Figure 3 ) can produce positive results.
[0122] In another example, the comparison may take into account time domain parameters. Figure 5 An example of this is shown in Figure 5 In the embodiment of the present invention, the measurement data set includes, for example, a plurality of time stamps 711 associated with the underlying raw data samples. For example, the time stamp may indicate the time when an event occurred. Figure 5 It is also shown that the one or more predefined constraints of the reference data set may include a timing constraint 712. Figure 5 In the example of , by definition, the timing constraint 712 relates to the following time window during which the event is allowed / expected to occur. Then, the comparison in block 5003 can be based on the time domain distance between one or more timestamps 711 and the timing constraint 712. Figure 5 In the scenario of , timestamp 711 indicates a time within the timing window of timing constraint 712, and accordingly, the distance is 0. Accordingly, the comparison in block 5003 produces a positive result.
[0123] exist Figure 5 This implementation of the timing constraint using a time window shown in is merely an example. Other examples are contemplated. For example, the timing constraint may define a threshold repetition rate. The threshold repetition rate may define an upper limit on the repetition of an event indicated by a measurement data set. Figure 5 In FIG. 7 , the associated repetition rate 713 between the timestamps 711 indicating the occurrence of an event is indicated. For example, the measured repetition rate 713 may then be compared with a threshold repetition rate.
[0124] The implementation of using a reference data set that relies on one or more predefined constraints is not required in all scenarios. As mentioned above, the comparison in block 5003 may also be implemented based on the consistency between the multiple measurement data sets 91, 92. Figure 6 This scenario is shown in Figure 6 In the embodiment, the measurement data sets 91 and 92 include a time series of data points. The data points may correspond to processed raw data samples, such as raw data samples after low pass filtering, etc. For example, the data samples of the measurement data set 91 may indicate pressure, while the data samples of the measurement data set 92 may indicate fluid flow. Figure 6As shown, at a certain point in time, the pressure indicated by the measurement data set 91 rises above a predefined threshold 761; while the fluid flow rate of the measurement data set 92 drops below another predefined threshold 762. The comparison can check whether the two criteria are met at the associated time point (i.e., the pressure indicated by the measurement data set 91 rises above the threshold 761, and the fluid flow rate indicated by the measurement data set 92 drops below the threshold 762) to verify the event blockage / obstruction of the fluid flow path of the associated industrial field device. The metric can define the corresponding rule set, for example, using Boolean logic. The metric can define thresholds 761, 762.
[0125] From the Figures 1 to 4 It will be appreciated from the description of that various options may be used to implement the comparison at block 5003.
[0126] Turn again Figure 3 At block 5004, the result of the comparison of block 5003 is checked. Depending on the result of the comparison, one or more (positive or negative) verification measures are selectively triggered at blocks 5005 or 5006, respectively. The one or more verification measures involve a measurement data set. In particular, the one or more verification measures can be implemented at a blockchain, such as at blockchain 159.
[0127] Specifically, if it is determined at block 5004 that the comparison produces a positive result, that is, (cross) verification of the measurement data set and the reference data set is positively obtained, then a positive verification measure may be taken at block 5005; otherwise, a negative verification measure may be taken at block 5006. Therefore, in the case where the comparison produces a positive result, a positive verification measure is selectively performed.
[0128] As a general rule, various options may be used to implement positive and negative verification measures, for example in conjunction with blocks 5005 and 5006. To name a few examples, a positive verification measure, which may be part of executing block 5005, may involve storing the measurement data in a blockchain, such as blockchain 159. A flag indication may also be appropriately set and stored in a blockchain, such as blockchain 159. The flag indication may indicate whether the (cross) verification was successful. Yet another verification measure may include transmitting a corresponding report message to at least one of the stakeholder nodes 111, 112. Thereby, parties interested in the verification may be appropriately notified.
[0129] In the event that the comparison produces a negative result, a settlement process may be triggered as part of the execution of block 5006. For the event that there is a deviation between the first measurement data set and the second measurement data set, the settlement process may include a predefined set of rules or workflow. For example, the settlement may be associated with a first oracle (see Figure 1 101) and / or a second oracle providing a second measurement data set (see Figure 1 Then, if there is a deviation between the first measurement data set and the second measurement data set, the particular measurement data set with the larger associated trust level may prevail. As part of block 5006, the stakeholder nodes 111, 112 may be notified.
[0130] Figure 7 is a functional flow chart illustrating the operation and functionality of system 70. In particular, Figure 7 Details regarding the operation of mining node 151 of blockchain infrastructure 150 are shown.
[0131] At 3001, the mining node 151 receives the first measurement data set 91, for example, via the corresponding interface 156. For example, the first measurement data set 91 may be received via a wide area network or a wired communication line (see Figure 1 , network 71). Communication may also include wireless transmission. To facilitate communication, the corresponding oracle 101 may be recorded at the blockchain infrastructure 150. More specifically, the oracle 101 may be recorded at the mining node 151. A corresponding unique credential may be used.
[0132] Furthermore, the oracle 102 is recorded at the mining node 151. Accordingly, at 3002, the mining node 151 receives the measurement data set 92.
[0133] like Figure 7 As shown, accordingly, the mining node 151 obtains a measurement data set 91 of one or more observables 85 indicative of the event 81, and further obtains a measurement data set 92 of one or more additional observables 86 indicative of the event 81. As a general rule, although in Figure 7 In the scenario of FIG. 8 , the mining node 151 receives multiple measurement data sets 91, 92, but in other examples, the mining node may also receive only a single measurement data set (e.g., measurement data set 91), and in addition receive a reference data set, the reference data set including one or more predefined constraints associated with the event 81 (in Figure 7 This scenario is not shown in Figure 3).
[0134] Next, at 3003, the measurement data set 91 is fed to the smart contract 61 (more specifically, a corresponding instance of the smart contract 61 defined by a corresponding function call, for example), and at 3004, the measurement data set 92 is fed to another instance of the smart contract 61. Here, a switch point function is implemented. In particular, the smart contract 61 can check whether the corresponding measurement data sets 91, 92 include processed raw data samples or (unprocessed) raw data samples. The raw data samples can be the original, unprocessed output of the corresponding sensor device. On the other hand, the processed data samples are processed using a corresponding processing algorithm, for example, in order to condense the information to a smaller or greater extent. In the various examples described here, the processed raw data samples can correspond to the following performance indication, which includes one or more quality factors of the operating characteristics of the associated industrial field device. The event 81 can correspond to or be associated with these operating characteristics.
[0135] Therefore, the switch point function implemented by the smart contract 61 checks whether the corresponding measurement data set 91, 92 includes raw data samples or processed raw data samples. In the case where the measurement data sets 91, 92 include processed raw data samples, the processed raw data samples are forwarded to another smart contract 65 at 3005 and 3006, respectively. On the other hand, at 3007 and 3008, the raw data samples are forwarded to the corresponding instance of the smart contract 62. The smart contract 62 implements the processing of the raw data samples.
[0136] As a general rule, each of the smart contracts 61, 62, 65 can be associated with a validity period. The validity period can indicate the expiration time of the corresponding smart contract 61, 62, 65. This enables a check whether one or more timestamps of the corresponding input data are consistent with the validity period. If not, it can be checked whether there is an updated smart contract with another validity period. In addition, it can be checked later whether the appropriate smart contract is used to implement various functions. For example, the identification of the correspondingly executed smart contract can be stored in the blockchain 159 to facilitate such an audit. The measurement data set 91, 92 and / or the reference data set can also include a timestamp, which can be compared with the validity period.
[0137] As a general rule, the measurement data sets 91 and / or 92 may include an identification of the corresponding sensor device.
[0138] As a further general rule, the measurement data sets 91 and / or 92 may include the geographical location, for example the latitude and longitude, of the respective sensor device.
[0139] As a further general rule, in case the measurement datasets 91, 92 comprise raw data samples that have been pre-processed, the measurement datasets 91 and / or 92 may comprise a corresponding configuration dataset indicating a processing algorithm for (pre-)processing the raw data samples.
[0140] As a further general rule, the measurement data sets 91 and / or 92 may include a corresponding digital signature. For example, the digital signature may be determined based on a private key in a public-private encryption key material. In some examples, the digital signature is determined based on the original data sample.
[0141] Next, the functions of the smart contract 62 are further described in detail. The smart contract 62 implements logic for processing the raw data sample. The smart contract 62 also implements logic for triggering the storage of the raw data sample in the non-distributed database 72. In particular, at 3009 and 3010, the raw data sample is transmitted to the non-distributed database 72, for example, using the corresponding correct command. The smart contract 62 can once again implement the switching point function.
[0142] The raw data sample may be processed using corresponding functions 63, 64 of the smart contract 62. This may be consistent with a predefined algorithm. The predefined algorithm may have an associated validity period. The validity period may be compared with the timestamp of the raw data sample to check whether the appropriate functions 63, 64, for example agreed upon by the stakeholders, were used. The advantage of such processing implemented at the blockchain infrastructure 150 is that, for example, a higher level of trust may be provided in conjunction with the algorithm adopted for processing. On the other hand, specific limitations associated with the required computing resources and / or communication network 71 may have to be observed. In this regard, from Figure 7 It will be appreciated that the smart contract 62 is invoked only if the original data sample is included in the measurement data set 91, 92; otherwise, the execution of the smart contract 62 is bypassed at 3005 and 3006. This bypass can reduce the required computing resources, such as bandwidth and data traffic on the network 71 and processing / memory resources at the mining node 151.
[0143] According to various examples, the validity period of any one of the smart contracts 61, 62, 65 can be defined by defining two timestamps of the start time of the validity period and the end time of the validity period. Thus, the temporal distance between the corresponding timestamps of the measurement data sets 91, 92 and the validity period can be determined. It can be checked whether a valid smart contract 61-62, 65 is used. It can also be implemented to check whether an appropriate smart contract 61-62, 65 is used at a later point in time.
[0144] Next, details about the smart contract 65 executed at 3011 are described. In order to create a high degree of trust, for example, by Figure 3 ) to verify the measurement data set 91 and optionally the measurement data set 92, which should be based on the consistency between multiple independent data sources. In particular, the measurement data sets 91, 92 obtained from different oracles 101, 102 can be relied upon. According to various examples, the oracles 101, 102 can be operated by different stakeholders. For example, observable 85 can relate to a variable power input to a pump as an industrial field device; observable 86 can relate to a fluid flow rate of the pump. Other examples of observables can include changes in the mass or volume of a chemical additive added to a fluid processed by the pump. Then, a blockage / obstruction of a fluid flow path of the fluid processed by the pump can be associated with the following observables: observable 85 indicates that the input power exceeds a specific threshold; observable 86 indicates that the fluid flow rate drops below a specific threshold; and another observable associated with the mass or volume of the chemical additive can indicate that the chemical additive is not consumed.
[0145] Such correlations, etc., may be considered in metrics used to compare various measurement data sets used at smart contracts 65 to enable comparison. To give an explicit example:
[0146] IF "input power is maximum" AND "there is no flow rate" AND "chemical additives are not consumed" AND "timestamps of various observables have a temporal distance below a threshold", THEN at time "timestamp" "event equals blockage / obstruction".
[0147] This consistency between multiple observables based on the same event inherently prevents attack vectors that manipulate individual oracles, since a successful attack would have to manipulate all data sources.
[0148] Although multiple measurement data sets are used in the examples described above, in general, a comparison can be achieved between a single measurement data set and one or more predefined constraints. Examples of predefined constraints can be defined in the time domain. For example, here, only measurement data set 91 can be obtained. The timing constraints may include a threshold repetition rate. For example, it may be specified that the event "jam / blockage" can only occur once a week. Alternatively or additionally, the timing constraints may include a timing window. For example, it may be defined that the event "jam / blockage" only occurs in the morning or evening. Here, even if operations are performed based on a single measurement data set, a meaningful comparison can be achieved.
[0149] In addition to this time domain constraint, a space domain constraint can also be used. For example, geographic information such as latitude / longitude from a GPS receiver / GPS device can be used. Here, oracle 101 can provide a measurement data set 91 (optionally, its identification in a timestamp) and its geographic location. All of this information can be included in a digital signature. The mining node 151 can then perform a comparison based on the geographic location of the oracle 101 and a predefined reference geographic location.
[0150] As a general rule, the reference data set may be obtained from the non-distributed database 72, in particular when one or more predefined constraints are included. Alternatively or additionally, the reference data set may also be stored in a blockchain in association with a smart contract, for example.
[0151] If the result of the comparison is positive, at 3012, the measurement data set 91 and / or the measurement data set 92, or more specifically the processed raw data sample, may be stored in the blockchain 159 (see Figure 3 : Frame 5005). Figure 7 As shown, then, at 3013, the blockchain 159 is replicated between the various mining nodes 151-152 of the blockchain infrastructure 150. The stakeholder nodes 111-112 may access the respective mining nodes 151-152.
[0152] As mentioned above, various smart contracts, in particular smart contracts 65, can be associated with validity periods. When the validity period expires, renegotiation of the metrics used for comparison at the smart contract 65 between various stakeholder nodes 111-112 can be triggered. For example, if the stakeholders agree that certain standards used in the metrics for comparison are too strict or too loose, such a change in the metric may occur. Once the corresponding smart contract 65 is updated, the corresponding transactions contained in the blockchain 159 including the new smart contract 65 are synchronized between the various mining nodes 151-152 of the blockchain infrastructure 150. The validity period is updated. The upstream smart contracts 61, 62 can also be updated so that the smart contracts 61, 62 call the correct updated version of the smart contract 65. The smart contracts 61, 62 can also be equipped with logic for autonomously identifying the appropriate version of the smart contract 65, for example, based on a comparison between the timestamp contained in the measurement data set 91, 92 and the validity period indicated by the variables in the smart contract 65.
[0153] Figure 8 is a flow chart of a method according to various examples.
[0154] At box 5011, oracle 101 is recorded at mining node 151, and oracle 102 is recorded at mining node 151.
[0155] At block 5012, oracle 101 provides the measurement data set 91 to the mining node 151. At block 5013, oracle 102 provides the measurement data set 92 to the mining node 151.
[0156] Now, blocks 5015-5017 are shown only in conjunction with the measurement data set 91 provided at block 5012; however, similar blocks may also be performed for the measurement data set 92 provided at 5013 (at Figure 8 not shown).
[0157] At block 5015, it is checked whether the measurement data set 91 obtained at block 5012 comprises raw data samples or processed raw data samples. In the case where the measurement data set 91 comprises raw data samples, the method continues at block 5016. Here, the raw data samples are processed to obtain processed raw data samples. The storage of the raw data samples in the non-distributed database 72 may also be triggered.
[0158] The processing of the raw data samples in block 5016 may be based on a predefined algorithm. In particular, the processing may be selectively performed if one or more timestamps of the raw data sample coincide with a validity period of the predefined algorithm. The predefined algorithm may be stored in the blockchain 159. An indication of the validity period of the predefined algorithm may also be stored in the blockchain 159. The timestamps of the raw data samples, or at least derived timestamps of the measurement data set, may also be stored in the blockchain 159.
[0159] At block 5017 , a check is performed to determine whether the predefined protocol affirmatively confirms that the various stakeholders have agreed to process the original data sample at the blockchain infrastructure 150 (i.e., if block 5016 was legally performed).
[0160] If it is determined at block 5015 that the measurement data set 91 includes processed raw data samples (rather than raw data samples), block 5018 is executed. At block 5018, it is checked whether the various stakeholders have agreed to process the raw data samples outside the blockchain, i.e., upstream in the data processing flow.
[0161] In the event that the check at box 5017 or the check at box 5018 is successful, the method continues at box 5019.
[0162] Box 5019 obtains as input various processed raw data samples of the measurement data sets 91, 92. At box 5019, a comparison between a plurality of measurement data sets is implemented, or more generally, a comparison between a measurement data set and a reference data set is implemented.
[0163] At block 5020, if a positive result of the comparison of block 5019 is reached, one or more positive verification measures are implemented. For example, one or more measurement data sets may be stored in the blockchain 159. The comparison result of block 5019 may also be stored in the blockchain 159. Block 5020 may include writing the corresponding data to the transaction and linking the transaction to a new block of the blockchain. The blockchain may be synchronized and replicated on multiple mining nodes 151-153.
[0164] In summary, techniques are described that facilitate comparisons between measured data sets and reference data sets in a blockchain infrastructure. This helps to implement validity checks in a manner that can be audited by various stakeholders. The comparison is transparent and can be reconstructed at a later point in time.
[0165] Although the present invention is shown and described for specific preferred embodiments, other skilled in the art will readily recognize equivalents and variations upon reading and understanding the specification. The present invention includes all such equivalents and variations, and the present invention is limited only by the scope of the appended claims.
[0166] For purposes of illustration, although various examples are described in connection with determining performance indicators based on raw data samples, in other examples, other types of processing of raw data samples are contemplated.
[0167] For further explanation, although various examples of using blockchain to implement a distributed database are described, in other scenarios, other kinds and types of distributed databases are contemplated.
Claims
1. A mining node (151-153) of an infrastructure (150) of a distributed database (159), the mining node (151-153) comprising a control circuit (155-157), the control circuit being configured to: - obtaining (5001) a measurement data set (91) provided by a first oracle (101), the measurement data set indicating one or more observables (85) of the event (81), the measurement data set (91) comprising processed raw data samples, - performing (5003) a comparison between the measurement data set and a reference data set, the reference data set comprising at least one of one or more predefined constraints (702, 711, 712) associated with the event (81) or another measurement data set (92) provided by a second oracle (102), the other measurement data set indicating one or more further observables (86) of the event (81), and -According to the result of said comparison: If the comparison yields a positive result, one or more positive verification measures (5005) for the measurement data set (91) are triggered, If the comparison yields a negative result, triggering one or more negative verification measures (5006) for the measurement data set (91), wherein triggering the one or more negative verification measures (5006) comprises triggering a settlement process, the settlement process being based on a trust level of the first oracle (101) and a trust level of the second oracle (102), The one or more positive verification measures (5005) and the one or more negative verification measures (5006) are implemented at the distributed database.
2. The mining node according to claim 1, in, The measurement data set comprises a first geographic location (701), wherein the one or more predefined constraints include a second geographic location (702), Wherein, the comparison is based on the spatial distance between the first geographical location and the second geographical location.
3. The mining node according to claim 1 or 2, in, The measurement data set comprises one or more time stamps (711), The one or more predefined constraints include timing constraints (712, 73), The comparison is based on a time domain distance between the one or more time stamps and the timing constraint.
4. The mining node according to claim 3, in, The timing constraints include a threshold repetition rate for the event.
5. The mining node according to claim 1 or 2, in, The control circuit is further configured to: - receiving raw data samples from an oracle (101), and - Processing said raw data samples to obtain said measurement data set comprising said processed raw data samples.
6. The mining node according to claim 5, in, The processing is based on a predefined algorithm with a validity period, wherein, if one or more timestamps of the original data sample are consistent with the validity period of the predefined algorithm, the original data sample is selectively processed, Wherein, the measurement data set is optionally associated with at least one of: a timestamp of the processing, or an indication of the predefined algorithm, or a validity period of the predefined algorithm.
7. The mining node according to claim 1 or 2, in, The event is associated with one or more operational characteristics of the industrial field device, Wherein, the processed raw data samples correspond to one or more quality factors of the one or more operating characteristics.
8. The mining node according to claim 1 or 2, in, The control circuit is further configured to: - triggering storage of said raw data samples in a non-distributed database.
9. The mining node according to claim 1 or 2, in, The comparison is based on predefined metrics with a validity period, The one or more verification measures include: storing the result of the comparison in the distributed database, storing a timestamp of the comparison in the distributed database, and storing the predefined metric in the distributed database.
10. The mining node according to claim 9, in, The control circuit is further configured to: - triggering renegotiation of the predefined metric among a plurality of stakeholder nodes when the validity period of the predefined metric expires.
11. The mining node according to claim 1 or 2, in, The measurement data set includes a digital signature of the raw data samples.
12. A computer-implemented method, the method being performed by a mining node (151-153) of an infrastructure (150) of a distributed database (159), the method include: - obtaining a measurement data set (91) provided by a first oracle (101), the measurement data set indicating one or more observables (85) of the event (81), the measurement data set (91) comprising processed raw data samples, - performing a comparison between the measurement data set and a reference data set, the reference data set comprising at least one of one or more predefined constraints (702, 711, 712) associated with the event (81) or another measurement data set (92) provided by a second oracle (102), the other measurement data set indicating one or more further observables (86) of the event (81), and - Depending on the result of said comparison: If the comparison yields a positive result, one or more positive verification measures (5005) for the measurement data set (91) are triggered, If the comparison yields a negative result, triggering one or more negative verification measures (5006) for the measurement data set (91), wherein triggering the one or more negative verification measures (5006) comprises triggering a settlement process, the settlement process being based on a trust level of the first oracle (101) and a trust level of the second oracle (102), The one or more positive verification measures (5005) and the one or more negative verification measures (5006) are implemented at the distributed database.
13. The method according to claim 12, in, The method is performed by a mining node according to any one of claims 1 to 11.
