Method and system for interoperation between heterogeneous and untrusted devices in ecosystem
By adopting modular architecture, lightweight communication protocols and strong security measures in the blockchain ecosystem, the data exchange and interoperability issues between heterogeneous blockchain systems are solved and efficient and secure data sharing is achieved. and interoperability, improving the flexibility and scalability of the system.
Patent Information
- Application Number
- CN202410782042.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-18
- Publication Date
- 2024-10-11
- Estimated Expiration
- 2044-06-18
AI Technical Summary
It is difficult for existing technologies to achieve seamless data exchange and interoperability across heterogeneous blockchain systems in blockchain systems, especially while ensuring data integrity, security, and privacy, especially due to the underlying architecture and ACID properties caused by differences in transaction structures are difficult to guarantee, and there is a lack of standardized interoperability solutions for heterogeneous untrusted devices.
Designed a method for interoperability between heterogeneous and untrusted devices in a blockchain-based ecosystem, using modular architecture, lightweight communication protocols, smart contract abstractions and strong security measures, including cryptography, Access control mechanisms and authentication protocols ensure flexibility, security and privacy of data exchange, and interoperability is verified through rigorous testing.
It achieves seamless interaction between different blockchain systems, ensures the reliability, efficiency and compatibility of data exchange, enhances privacy protection and overall security in data sharing, and fills the technical gaps in existing technology. Improved system flexibility and scalability.
Smart Images

Figure CN118764157A_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to but is not limited to the field of blockchain technology, and in particular to a method and system for interoperability between heterogeneous and untrusted devices in a blockchain-based ecosystem. Background Art
[0002] With the booming development of blockchain projects, IoT applications are also constantly using blockchain technology, resulting in a multi-chain environment, and forming many different blockchain systems for different applications or user groups. However, at this stage, blockchain technology still lacks a completely unified specification. Different IoT applications cannot interact directly in the blockchain system, and the reliability of the interactive data is difficult to guarantee, which greatly limits the development of data sharing between IoT applications.
[0003] In view of the above analysis, the technical problems that need to be solved urgently in the prior art are:
[0004] Ensuring ACID properties across different blockchains: Ensuring the atomicity, consistency, isolation, and durability (ACID) properties of transactions across heterogeneous blockchain systems is a major challenge due to the different underlying architectures and transaction structures. Solving this problem requires innovative solutions to maintain data integrity and consistency while achieving secure state transitions.
[0005] Complexity of cross-blockchain communication: The complexity of achieving interoperability between heterogeneous untrusted devices in a blockchain ecosystem raises a scientific problem. It is important to develop effective cross-blockchain communication mechanisms to ensure seamless data exchange while protecting security and privacy. Overcoming the challenges associated with different transaction structures and consensus mechanisms is essential to achieve lightweight interoperability.
[0006] Standardized interoperability solutions: The lack of standardized interoperability solutions tailored for heterogeneous untrusted devices hinders the seamless exchange of data and value across different blockchain networks. Solving this scientific problem requires the development of common protocols or frameworks to facilitate interoperability while taking into account the unique characteristics of each blockchain system. In today's interconnected world, understanding the dynamics of complex networks is crucial for various practical applications. A fundamental aspect of complex networks is the identification of critical nodes, which play a key role in influencing the network behavior and function. Critical node identification can be applied in different fields such as social networks, transportation systems, and biological networks. Summary of the invention
[0007] In view of the problems existing in the prior art, the present invention provides an interoperability method between heterogeneous and untrusted devices in a blockchain-based ecosystem.
[0008] The present invention is implemented as follows: a method for interoperability between heterogeneous and untrusted devices in a blockchain-based ecosystem. In terms of architectural design, the system develops a modular architecture to adapt to different blockchain networks and untrusted devices, ensuring the flexibility and scalability of the data exchange process; in terms of protocol development, a lightweight communication protocol is designed to achieve seamless interaction between different blockchain systems, focusing on efficiency, security and privacy; in terms of smart contract abstraction, the smart contract is abstracted into an independent data module to promote hierarchical access control and enhance privacy protection in data sharing; in terms of security measures, strong security measures are implemented, including encryption technology, access control mechanism and identity authentication protocol, to ensure data integrity and confidentiality; in terms of interoperability testing, rigorous testing is performed to verify the interoperability of the designed framework between heterogeneous devices to ensure reliability, efficiency and compatibility;
[0009] The blockchain architecture in this system consists of three main layers, the loT layer, the private blockchain layer, and the consortium blockchain layer with n layers.
[0010] Furthermore, the lowest layer of the blockchain of the blockchain is the loT layer, which is composed of devices from different TEs. The set of IoT devices in this layer is represented by the set D = {d ij |1≤j≤n};
[0011] Among them, d ij is the jth IoT device in the jth TE, t is the number of TEs, n is the total number of IoT devices in the jth TE, and device d ij Generate data and create a blockchain transaction for the generated data, which is called IoT transaction T x , d ij Each transaction Tx generated jk Both are related to a smart contract C j Associated, Tx jk Must comply with C j The logic mentioned in Tx jk Is sent to the upper layer for verification. If the corresponding transaction Tx jk Verified by the upper layer, then d ij The kth data generated will be stored in the database.
[0012] Furthermore, the private blockchain layer is the lowest layer of the proposed blockchain, located above the IoT layer. This layer contains the private blockchain network (PBCN) of each TE. The PBCN set can be expressed as P = {p i |1≤i≤t};
[0013] Where t is the number of TEs. In short, P in p is the i-th PBCN. P owns the distributed ledger block of the IoT data of the i-th TE. The private blockchain layer receives the transaction Tx from the IoT layer. ik And verify, in order to verify Tx ik , this layer is Tx ik Prepare a private blockchain layer transaction Tx pc , Tx pc Is sent to the upper layer, the alliance blockchain layer, for verification. If the transaction T x Verified by the upper layer, the transaction T x Stored in the distributed ledger block of PBCN.
[0014] Furthermore, the bottom layer of the alliance chain of the n-layer alliance blockchain is recorded as CBCN0, and the upper layers of CBCN0 are recorded as: CBCN0, CBCN1, CBCN2, CBCN3, ..., CBCN n-1 CBCN0 receives transaction Tx from PBCN pc And verify, in order to verify Tx pc , you need to prepare for alliance chain layer transactions
[0015] i and i+1 are the indices of the source CBCN and the target CBCN respectively, and 0≤l≤n-2. The transaction generated at the lowest CBCN layer (i.e., layer 0) for the next CBCN layer (i.e., layer i) can be named Tx pc , for each CBCN layer between layer 0 and layer n-2, a And from CBCN l Send to CBCN l+1 .
[0016] Furthermore, there are U unique users in the system which can be represented as a set U = {u1,u2,u3,....u m}, IoT device decision makers and blockchain nodes in the smart city organization are regarded as users. Each user generates a key pair using a secure public key encryption algorithm. The key pair contains a public key and a private key;
[0017] User i The key pair is represented as in is u i The public key of is u i The private key of Shared among all users in the system through a trusted key distribution center, By user u i Confidential, the public key set K of m users in the system +It can be expressed as
[0018] Furthermore, the heterogeneous device transactions are as follows: Due to the existence of heterogeneous IoT devices and blockchain networks, the data sent from one layer to another layer needs to be formatted. In this system, the transaction defines a set of formatted data from one layer to another layer. The transaction is signed by the transaction generator, and the transaction uses the private key K of the transaction generator. - Encryption so that the receiver can use the sender's public key K + Decrypting encrypted transactions to ensure authenticity, in this system there are three transactions:
[0019] The IoT transaction (Tx jk ) is generated by IoT devices and contains a set of devices using ij of Signed IoT data attributes {a1,a2,a3,.....,a w}, Location and device ID are two examples of IoT data attributes, Tx jk It can be expressed as:
[0020]
[0021] The private blockchain layer transaction (Tx pc ): This transaction is generated by PBCN and sent to CBCN, T x Contains the genesis hash (GH) of the PBCN distributed ledger root hash (RH) of the current block, the block number (BN) of the current block, and the local transaction signature (LTS). LTS is the signature of the transaction from the device d ij Received Tx jk , the above project uses the i-th PBCN Sign, Tx pc Can be displayed as:
[0022]
[0023] The alliance chain layer transaction This transaction is generated by the CBCN of layer l (1≤l≤n-2). By Tx at CBCN0 pcl Generated, in all other CBCN l (1≤l≤n-2), By CBCN n-1 Transaction generation (i.e. ), Contains CBCN lThe genesis hash (GH) of the distributed ledger, the root hash (RH) of the current block, the block number (BN) of the current block, and the local transaction signature (LTS), where LTS is the CBCN l Tx pcl or any other CBCN received from the previous layer The above content uses the i-th CBCN in layer l Sign it. It can be expressed as:
[0024]
[0025] The present invention also provides an interoperable system between heterogeneous and untrusted devices in a blockchain-based ecosystem, comprising:
[0026] Modular architecture: adapts to different blockchain networks and untrusted devices, ensuring flexibility and scalability of the data exchange process;
[0027] Lightweight communication protocol: realize seamless interaction between different blockchain systems, focusing on efficiency, security and privacy;
[0028] Smart Contract Abstraction Module: Abstract smart contracts into independent data modules to facilitate hierarchical access control and enhance privacy protection in data sharing;
[0029] Security measures module: Implement strong security measures, including encryption technology, access control mechanisms and authentication protocols to ensure data integrity and confidentiality;
[0030] Interoperability testing module: Conducts rigorous testing to verify the interoperability of the designed framework between heterogeneous devices to ensure reliability, efficiency, and compatibility.
[0031] Furthermore, the blockchain architecture of the system consists of three main layers:
[0032] Internet of Things (IoT) layer: includes devices from different TEs. IoT devices in this layer generate data and create blockchain transactions for the generated data.
[0033] Private blockchain layer: located above the IoT layer, including the private blockchain network of each TE, responsible for receiving transactions from the IoT layer and verifying them;
[0034] Consortium blockchain layer: has an n-layer structure and is used to further verify and store transactions from the private blockchain layer.
[0035] Furthermore, the IoT layer includes a collection of devices from different TEs. The devices generate data and create IoT transactions. Each transaction is associated with a smart contract and must comply with predetermined logical rules. It is sent to the private blockchain layer for verification. If the transaction is verified, the data will be stored in the database.
[0036] Furthermore, the private blockchain layer receives transactions from the IoT layer and verifies them. This layer contains the private blockchain network of each TE and is responsible for preparing private blockchain layer transactions and sending them to the consortium blockchain layer for verification. If the transaction is verified by the upper layer, the transaction is stored in the distributed ledger block of the TE.
[0037] In combination with the above technical solutions and the technical problems solved, the advantages and positive effects of the technical solutions to be protected by the present invention are as follows:
[0038] First, the present invention proposes a technology for interoperability between heterogeneous and untrusted devices in a blockchain-based ecosystem. The specific technical advantages are:
[0039] Architecture design: Develop a modular architecture that can adapt to different blockchain networks and untrusted devices, ensuring flexibility and scalability of the data exchange process.
[0040] Protocol development: Design lightweight communication protocols to achieve seamless interaction between different blockchain systems, focusing on efficiency, security and privacy.
[0041] Smart Contract Abstraction: Abstract smart contracts into independent data modules to facilitate hierarchical access control and enhance privacy protection in data sharing.
[0042] Security Measures: Implement strong security measures, including encryption technology, access control mechanisms, and authentication protocols to safeguard data integrity and confidentiality.
[0043] Interoperability testing: Rigorous testing is performed to verify the interoperability of the designed framework between heterogeneous devices to ensure reliability, efficiency, and compatibility.
[0044] Second, the technical solution of the present invention fills the technical gap in the industry at home and abroad: the lightweight interoperability system designed between heterogeneous untrusted devices in the blockchain-based ecosystem in the present invention promotes secure data exchange and collaboration across different networks.
[0045] Develop a modular architecture to adapt to different blockchain networks and untrusted devices, ensuring the flexibility and scalability of the data exchange process; design lightweight communication protocols to achieve seamless interaction between different blockchain systems, focusing on efficiency, security and privacy; abstract smart contracts into independent data modules to facilitate hierarchical access control and enhance privacy protection in data sharing; implement strong security measures, including encryption technology, access control mechanisms and authentication protocols to ensure data integrity and confidentiality; conduct rigorous testing to verify the interoperability of the designed framework between heterogeneous devices to ensure reliability, efficiency and compatibility.
[0046] Third, the present invention solves the problem of interoperability between heterogeneous and untrusted devices in the prior art. Traditional systems usually lack flexibility and scalability when facing different blockchain networks and diverse IoT devices, making it difficult to achieve efficient and secure data exchange. By developing a modular architecture, the present invention can adapt to different blockchain networks and devices, ensuring the flexibility and scalability of data exchange. At the same time, the designed lightweight communication protocol improves the interaction efficiency between different blockchain systems, and focuses on security and privacy protection, making the system more reliable when processing sensitive data.
[0047] The present invention has made significant progress in the abstraction of smart contracts. By abstracting smart contracts into independent data modules, hierarchical access control is implemented, which enhances privacy protection in the data sharing process. This design not only improves the security and privacy of the system, but also promotes data interaction and sharing at different levels, making communication between levels more efficient and secure. In addition, by implementing strong security measures, including encryption technology, access control mechanisms, and identity authentication protocols, the integrity and confidentiality of the data are ensured, further improving the overall security level of the system.
[0048] In terms of blockchain architecture design, the present invention proposes a three-layer structure, including the Internet of Things layer, the private blockchain layer, and the alliance blockchain layer. The Internet of Things layer is responsible for generating data and creating blockchain transactions, the private blockchain layer verifies transactions and stores them in a distributed ledger, and the alliance blockchain layer further verifies transactions and ensures the security and reliability of the entire system. Through this layered structure, the system can efficiently process data from different devices, ensuring that transactions at each layer are strictly verified, and enhancing the reliability and consistency of data.
[0049] The significant technical progress of the present invention is also reflected in the processing of transactions between heterogeneous devices. Due to the existence of data and blockchain networks in different formats, the system designs a standardized data format so that data sent from one layer to another can be correctly understood and processed. The transaction generator uses a private key to sign the transaction, and the recipient uses the sender's public key to decrypt it to ensure the authenticity and security of the transaction. In this way, the system can effectively handle transactions between heterogeneous devices and networks, ensure the authenticity and reliability of data exchange, and improve the compatibility and operability of the entire system.
[0050] Fourth, the present invention solves many technical problems existing in the prior art by introducing key parameters, advanced algorithms and mathematical models, and achieves significant technical progress. First, in terms of parameter selection, the present invention utilizes key parameters such as data attributes generated by IoT devices, root hash and genesis hash of blockchain transactions, which not only improve the accuracy of data verification, but also enhance the overall performance of the system. Through the precise configuration of these parameters, the system can efficiently transmit and process data between different levels, solving the problems of low data transmission efficiency and insufficient accuracy in traditional systems.
[0051] In terms of algorithm design, the present invention adopts a lightweight communication protocol and a smart contract abstract algorithm. These algorithms focus on efficiency, security and privacy, ensuring seamless interaction between different blockchain systems. The lightweight communication protocol simplifies the data exchange process, reduces the computing and communication overhead, and improves the operating speed of the system. The smart contract abstract algorithm enhances privacy protection in data sharing through hierarchical access control, making the system more flexible and secure when processing complex data. Compared with traditional algorithms, the algorithm design of the present invention significantly improves the interaction efficiency and security of the system.
[0052] The present invention uses advanced mathematical models to optimize transaction verification and data storage. In the private blockchain layer and the alliance blockchain layer, a distributed ledger model is adopted to strictly verify each transaction, and the verified transactions are stored in the distributed ledger. Through this mathematical model, the system can ensure the authenticity and integrity of each transaction and prevent data tampering and fraud. In addition, the use of mathematical models for calculation and comparative analysis of binding energy improves the accuracy and reliability of molecular docking and kinetic simulation, providing a solid foundation for screening and verifying the best compounds.
[0053] Finally, the present invention has made significant technical progress in the interoperability between heterogeneous devices. By defining standardized data formats and adopting public key encryption algorithms, the system can effectively handle transactions between different devices and blockchain networks, ensuring the authenticity and reliability of data exchange. The application of transaction generator signatures and public key decryption mechanisms enhances the security and credibility of the system. Compared with traditional systems, the compatibility and operability of the present invention in heterogeneous environments have been greatly improved, providing strong technical support for applications in smart cities, medical health and other fields. BRIEF DESCRIPTION OF THE DRAWINGS
[0054] Figure 1 It is a general overview diagram of a private blockchain implementation based on Hyperledger Fabric provided by an embodiment of the present invention;
[0055] Figure 2 It is a framework structure diagram of communication between different private blockchains provided by an embodiment of the present invention;
[0056] Figure 3 It shows that as the number of query requests increases, the time to complete the query increases linearly, without exponential growth. DETAILED DESCRIPTION
[0057] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not used to limit the present invention.
[0058] The following are two specific application examples to demonstrate the application of the present invention in practical scenarios:
[0059] Example 1: Intelligent traffic management system in a smart city
[0060] In the intelligent traffic management system of smart cities, the blockchain ecosystem of the present invention is used to connect and manage data from different traffic devices. These devices include intelligent traffic lights, vehicle sensors, and roadside monitoring equipment. The specific applications are as follows:
[0061] 1. Data collection and transaction generation:
[0062] Traffic devices (such as smart traffic lights and on-board sensors) generate real-time traffic data such as vehicle flow, speed, location, and traffic events. These data are formatted as IoT transactions and sent to the private blockchain layer through the IoT layer for preliminary verification.
[0063] 2. Private blockchain layer verification:
[0064] The private blockchain layer receives transactions from the IoT layer and verifies the authenticity and integrity of these transactions. Verified transactions are recorded in the distributed ledger, and private blockchain layer transactions are generated and ready to be sent to the consortium blockchain layer.
[0065] 3. Alliance blockchain layer integration and verification:
[0066] The consortium blockchain layer receives and further verifies transactions from the private blockchain layer. This layer includes traffic management departments in different areas of the smart city, which share and integrate traffic data across the city through distributed ledgers to ensure global consistency and reliability of data.
[0067] 4. Smart contracts and data sharing:
[0068] Smart contracts are used to automate traffic management decisions, such as dynamically adjusting the time configuration of traffic lights, publishing real-time traffic information, and optimizing route suggestions. These smart contracts are independent of specific traffic equipment and promote hierarchical access control and privacy protection.
[0069] Example 2: Patient data management in healthcare system
[0070] In the medical and health system, the blockchain ecosystem of the present invention is used to manage and protect patients' medical data, ensure the security and privacy of the data, and promote data sharing among medical institutions. The specific applications are as follows:
[0071] 1. Data collection and transaction generation:
[0072] Medical devices (such as bed monitors, wearable health devices) generate real-time health data of patients, including heart rate, blood pressure, blood sugar level, etc. This data is formatted as IoT transactions and sent to the private blockchain layer through the IoT layer for initial verification.
[0073] 2. Private blockchain layer verification:
[0074] The private blockchain layer receives and verifies transactions from the IoT layer to ensure the authenticity and integrity of the data. Verified transactions are recorded in the distributed ledger, and private blockchain layer transactions are generated and ready to be sent to the consortium blockchain layer.
[0075] 3. Alliance blockchain layer integration and verification:
[0076] The consortium blockchain layer receives and further verifies transactions from the private blockchain layer. The consortium blockchain layer includes multiple medical institutions, which share patient data through distributed ledgers to achieve cross-institutional data integration and sharing.
[0077] 4. Smart contracts and data sharing:
[0078] Smart contracts are used to manage access rights to patient data, ensuring that only authorized medical personnel can access specific data. These smart contracts are independent of specific medical devices and promote hierarchical access control and privacy protection to ensure that data is not abused or leaked during sharing.
[0079] These two application embodiments demonstrate the wide application of the present invention in intelligent traffic management and medical health data management, and use blockchain technology to improve the security, reliability and interoperability of the system.
[0080] As attached Figure 1-2 As shown, this system develops a modular architecture in architectural design to adapt to different blockchain networks and untrusted devices, ensuring the flexibility and scalability of the data exchange process; in protocol development, a lightweight communication protocol is designed to achieve seamless interaction between different blockchain systems, focusing on efficiency, security and privacy; in terms of smart contract abstraction, smart contracts are abstracted into independent data modules to promote hierarchical access control and enhance privacy protection in data sharing; in terms of security measures, strong security measures are implemented, including encryption technology, access control mechanisms and authentication protocols to ensure data integrity and confidentiality; in terms of interoperability testing, rigorous tests are carried out to verify the interoperability of the designed framework between heterogeneous devices to ensure reliability, efficiency and compatibility;
[0081] The blockchain architecture in this system consists of three main layers, the loT layer, the private blockchain layer, and the consortium blockchain layer with n layers.
[0082] The lowest layer of the blockchain is the loT layer, which is composed of devices from different TEs. The set of IoT devices in this layer is represented by the set D = {d ij |1≤j≤n};
[0083] Among them, d ij is the jth IoT device in the jth TE, t is the number of TEs, n is the total number of IoT devices in the jth TE, and device d ij Generate data and create a blockchain transaction for the generated data, which is called IoT transaction T x , d ij Each transaction Tx generated jk Both are related to a smart contract C j Associated, Tx jk Must comply with C j The logic mentioned in Tx jk Is sent to the upper layer for verification. If the corresponding transaction Tx jk Verified by the upper layer, then d ij The kth data generated will be stored in the database.
[0084] The private blockchain layer is the lowest layer of the proposed blockchain, located above the IoT layer. This layer contains the private blockchain network (PBCN) of each TE. The PBCN set can be expressed as P = {p i |1≤i≤t};
[0085] Where t is the number of TEs. In short, P in p is the i-th PBCN. P owns the distributed ledger block of the IoT data of the i-th TE. The private blockchain layer receives the transaction Tx from the IoT layer. ik And verify, in order to verify Tx ik , this layer is Tx ik Prepare a private blockchain layer transaction Tx pc , Tx pc Is sent to the upper layer, the alliance blockchain layer, for verification. If the transaction T x Verified by the upper layer, the transaction T x Stored in the distributed ledger block of PBCN.
[0086] The bottom layer of the alliance chain of the n-layer alliance blockchain is recorded as CBCN0, and the upper layers of CBCN0 are recorded as: CBCN0, CBCN1, CBCN2, CBCN3, ..., CBCN n-1 CBCN0 receives transaction Tx from PBCN pc And verify, in order to verify Tx pc , you need to prepare for alliance chain layer transactions
[0087] i and i+1 are the indices of the source CBCN and the target CBCN respectively, and 0≤l≤n-2. The transaction generated at the lowest CBCN layer (i.e., layer 0) for the next CBCN layer (i.e., layer i) can be named Tx pc , for each CBCN layer between layer 0 and layer n-2, a And from CBCN l Send to CBCN l+1 .
[0088] There are U unique users in the system which can be represented as the set U = {u1,u2,u3,....u m}, IoT device decision makers and blockchain nodes in the smart city organization are regarded as users. Each user generates a key pair using a secure public key encryption algorithm. The key pair contains a public key and a private key;
[0089] User i The key pair is represented as in is u i The public key of is u iThe private key of The key is shared among all users in the system through a trusted key distribution center. i - By user u i Confidential, the public key set K of m users in the system + It can be expressed as
[0090] Transactions between heterogeneous devices are as follows: Due to the existence of heterogeneous IoT devices and blockchain networks, data sent from one layer to another needs to be formatted. In this system, transactions define a set of formatted data from one layer to another. Transactions are signed by the transaction generator, and transactions use the private key K of the transaction generator. - Encryption so that the receiver can use the sender's public key K + Decrypting encrypted transactions to ensure authenticity, in this system there are three transactions:
[0091] The IoT transaction (Tx jk ) is generated by IoT devices and contains a set of devices using ij of Signed IoT data attributes {a1,a2,a3,.....,a w}, Location and device ID are two examples of IoT data attributes, Tx jk It can be expressed as:
[0092]
[0093] The private blockchain layer transaction (Tx pc ): This transaction is generated by PBCN and sent to CBCN, T x Contains the genesis hash (GH) of the PBCN distributed ledger root hash (RH) of the current block, the block number (BN) of the current block, and the local transaction signature (LTS). LTS is the signature of the transaction from the device d ij Received Tx jk , the above project uses the i-th PBCN Sign, Tx pc Can be displayed as:
[0094]
[0095] The alliance chain layer transaction This transaction is generated by the CBCN of layer l (1≤l≤n-2). By Tx at CBCN0 pcl Generated, in all other CBCN l (1≤l≤n-2), By CBCN n-1Transaction generation (i.e. ), Contains CBCN l The genesis hash (GH) of the distributed ledger, the root hash (RH) of the current block, the block number (BN) of the current block, and the local transaction signature (LTS), where LTS is the CBCN l Tx pcl or any other CBCN received from the previous layer The above content uses the i-th CBCN in layer l Sign it. It can be expressed as:
[0096]
[0097] The rapid proliferation of Internet of Things (IoT) devices has made the world increasingly connected, facilitating seamless communication and data exchange between devices and systems. However, this interconnectivity also brings challenges, especially in ensuring interoperability between heterogeneous and untrusted devices. This project aims to address these challenges by exploring and enhancing interoperability within IoT-integrated blockchain systems. Blockchain technology has emerged as a transformative force, providing decentralized, transparent, and secure data management solutions. However, integrating heterogeneous and untrusted devices in a blockchain-based ecosystem presents significant challenges. Current research in this area focuses on developing blockchain protocols and applications for specific use cases, often overlooking the complexity of interoperability between different devices and systems. Existing solutions often rely on centralized intermediaries or proprietary standards, which limits scalability, flexibility, and security.
[0098] This invention aims to address the critical need for interoperability methods between heterogeneous and untrusted devices in blockchain-based ecosystems. By enabling seamless communication and data exchange between different devices, the project aims to unleash the full potential of blockchain technology in different fields such as supply chain management, healthcare, finance, and smart cities. Achieving interoperability can increase efficiency, transparency, and trust in these ecosystems, ultimately driving innovation and socioeconomic development. In addition, ensuring interoperability between heterogeneous devices is critical to promoting collaboration and synergy between different stakeholders, including manufacturers, service providers, and end-users. By developing an open and standardized interoperability framework, the project aims to promote interoperability as a fundamental principle of blockchain-based ecosystems, promoting greater inclusion, accessibility, and participation. The proposed research has good prospects for advancing academic research and practical applications of blockchain technology. From an academic perspective, the project aims to contribute to the state-of-the-art by developing innovative interoperability solutions and protocols. Through rigorous empirical evaluation and case studies, the invention aims to provide valuable insights and best practices for designing and implementing interoperable blockchain-based systems.
[0099] The present invention discloses an interoperability method between heterogeneous and untrusted devices in a blockchain-based ecosystem, belonging to the field of blockchain technology. In terms of architectural design, this system develops a modular architecture to adapt to different blockchain networks and untrusted devices, ensuring the flexibility and scalability of the data exchange process; in terms of protocol development, a lightweight communication protocol is designed to achieve seamless interaction between different blockchain systems, focusing on efficiency, security and privacy; in terms of smart contract abstraction, smart contracts are abstracted into independent data modules to promote hierarchical access control and enhance privacy protection in data sharing; in terms of security measures, strong security measures are implemented, including encryption technology, access control mechanism and identity authentication protocol, to ensure data integrity and confidentiality; in terms of interoperability testing, rigorous testing is performed to verify the interoperability of the designed framework between heterogeneous devices to ensure reliability, efficiency and compatibility.
[0100] The lightweight interoperability system designed between heterogeneous untrusted devices in the blockchain ecosystem in the present invention promotes secure data exchange and collaboration across different networks. Specifically, a modular architecture is developed to adapt to different blockchain networks and untrusted devices to ensure the flexibility and scalability of the data exchange process; a lightweight communication protocol is designed to achieve seamless interaction between different blockchain systems, focusing on efficiency, security and privacy; smart contracts are abstracted into independent data modules to promote hierarchical access control and enhance privacy protection in data sharing; strong security measures are implemented, including encryption technology, access control mechanisms and identity authentication protocols to ensure data integrity and confidentiality; rigorous testing is performed to verify the interoperability of the designed framework between heterogeneous devices to ensure reliability, efficiency and compatibility.
[0101] like Figure 3 As shown in the figure, as the number of query requests increases, the time to complete the query increases linearly, and there is no exponential growth. In addition, we also compared the query request time of the three single-chain systems and the system in this paper. We first sent query requests to the three single chains to query 20 records from blockchain A. After completion, we queried 20 records from blockchain B and 20 records from blockchain C in turn. The time of the three queries was counted and the total time was calculated, and then compared with the statistical query time of the 60 records of our proposed model. The number of query requests increased exponentially, reaching 1920 times. The experimental results show that the query time required by the proposed model increases with the increase in the number of query records, and is less than the sum of the query times of the three single-chain systems.
[0102] It should be noted that the embodiments of the present invention can be implemented by hardware, software, or a combination of software and hardware. The hardware part can be implemented using dedicated logic; the software part can be stored in a memory and executed by an appropriate instruction execution system, such as a microprocessor or dedicated design hardware. It can be understood by a person of ordinary skill in the art that the above-mentioned devices and methods can be implemented using computer executable instructions and / or contained in a processor control code, such as a carrier medium such as a disk, CD or DVD-ROM, a programmable memory such as a read-only memory (firmware), or a data carrier such as an optical or electronic signal carrier. Such code is provided on the carrier medium. The device and its modules of the present invention can be implemented by hardware circuits such as very large-scale integrated circuits or gate arrays, semiconductors such as logic chips, transistors, etc., or programmable hardware devices such as field programmable gate arrays, programmable logic devices, etc., can also be implemented by software executed by various types of processors, and can also be implemented by a combination of the above-mentioned hardware circuits and software, such as firmware.
[0103] The above description is only a specific implementation mode of the present invention, but the protection scope of the present invention is not limited thereto. Any modifications, equivalent substitutions and improvements made by any technician familiar with the technical field within the technical scope disclosed by the present invention and within the spirit and principle of the present invention should be covered by the protection scope of the present invention.
Claims
1. A method for interoperability between heterogeneous and untrusted devices in a blockchain-based ecosystem, characterized in that: The following steps are involved: Data acquisition: Use multi-sensor equipment to collect 3D data and image data from different TE devices in real time, and transmit this data to the data processing center; Data preprocessing: preprocess the collected 3D data and image data to generate high-quality 3D point clouds and panoramic images; Feature extraction: Use deep learning algorithms to extract features from preprocessed data, identify the characteristics of urban features, and generate feature vectors; Feature recognition: Use the trained deep neural network model to classify and identify feature vectors to determine the categories and locations of different urban features; Smart contract processing: Each device-generated data is created as a blockchain transaction, which is associated with a smart contract and complies with predetermined logical rules; Transaction verification: Verify transactions from the IoT layer at the private blockchain layer, and send verified transactions to the consortium blockchain layer for further verification; Data storage: Store transactions verified by the alliance blockchain layer in the corresponding distributed ledger; VR display and data analysis: The recognition results are embedded in the VR environment for display, and the data is analyzed to generate statistical reports and change trends for decision support.
2. The method for interoperability between heterogeneous and untrusted devices in a blockchain-based ecosystem according to claim 1, characterized in that: The lowest layer of the blockchain is the IoT layer, which is composed of devices from different TEs. The IoT device set of this layer is represented by the set D = {d ij |1≤j≤n}; Among them, d ij is the jth IoT device in the jth TE, t is the number of TEs, n is the total number of IoT devices in the jth TE, and device d ij Generate data and create a blockchain transaction for the generated data, which is called IoT transaction T x , d ij Each transaction Tx generated jk Both are related to a smart contract C j Associated, Tx jk Must comply with C j The logic mentioned in Tx jk Is sent to the upper layer for verification. If the corresponding transaction Tx jk Verified by the upper layer, then d ij The kth data generated will be stored in the database.
3. The method for interoperability between heterogeneous and untrusted devices in a blockchain-based ecosystem according to claim 1, characterized in that: The private blockchain layer is the lowest layer of the proposed blockchain, located above the IoT layer. This layer contains the private blockchain network (PBCN) of each TE. The PBCN set can be expressed as P = {p i |1≤i≤t}; Where t is the number of TEs. In short, P in p is the i-th PBCN. P owns the distributed ledger block of the IoT data of the i-th TE. The private blockchain layer receives the transaction Tx from the IoT layer. ik And verify, in order to verify Tx ik , this layer is Tx ik Prepare a private blockchain layer transaction Tx pc , Tx pc Is sent to the upper layer, the alliance blockchain layer, for verification. If the transaction T x Verified by the upper layer, the transaction T x Stored in the distributed ledger block of PBCN.
4. The method for interoperability between heterogeneous and untrusted devices in a blockchain-based ecosystem according to claim 1, characterized in that: The bottom layer of the alliance chain of the n-layer alliance blockchain is recorded as CBCN0, and the upper layers of CBCN0 are recorded as: CBCN0, CBCN1, CBCN2, CBCN3, ..., CBCN n-1 CBCN0 receives transaction Tx from PBCN pc And verify, in order to verify Tx pc , you need to prepare for alliance chain layer transactions i and i+1 are the indices of the source CBCN and the target CBCN respectively, and 0≤l≤n-2. The transaction generated at the lowest CBCN layer (i.e., layer 0) for the next CBCN layer (i.e., layer i) can be named Tx pc , for each CBCN layer between layer 0 and layer n-2, a And from CBCN l Send to CBCN l+1 .
5. The method for interoperability between heterogeneous and untrusted devices in a blockchain-based ecosystem according to claim 1, characterized in that: There are U unique users in the system, which can be represented as a set U = {u1,u2,u3,....u m }, IoT device decision makers and blockchain nodes in the smart city organization are regarded as users. Each user generates a key pair using a secure public key encryption algorithm. The key pair contains a public key and a private key; User i The key pair is represented as in is u i The public key of is u i The private key of Shared among all users in the system through a trusted key distribution center, By user u i Confidential, the public key set K of m users in the system + It can be expressed as 6. The method for interoperability between heterogeneous and untrusted devices in a blockchain-based ecosystem according to claim 5, characterized in that: The heterogeneous device transactions are as follows: Due to the existence of heterogeneous IoT devices and blockchain networks, the data sent from one layer to another needs to be formatted. In this system, the transaction defines a set of formatted data from one layer to another. The transaction is signed by the transaction generator, and the transaction uses the private key K of the transaction generator. - Encryption so that the receiver can use the sender's public key K + Decrypting encrypted transactions to ensure authenticity, in this system there are three transactions: The IoT transaction (Tx jk ) is generated by IoT devices and contains a set of devices using ij of Signed IoT data attributes {a1,a2,a3,.....,a w }, location and device ID are two examples of IoT data attributes, Tx jk It can be expressed as: The private blockchain layer transaction (Tx pc ): This transaction is generated by PBCN and sent to CBCN, T x Contains the genesis hash (GH) of the PBCN distributed ledger root hash (RH) of the current block, the block number (BN) of the current block, and the local transaction signature (LTS). LTS is the signature of the transaction from the device d ij Received Tx jk , the above project uses the i-th PBCN Sign, Tx pc Can be displayed as: The alliance chain layer transaction This transaction is generated by the CBCN of layer l (1≤l≤n-2). By Tx at CBCN0 pcl Generated, in all other CBCN l (1≤l≤n-2), By CBCN n-1 Transaction generation (i.e. ), Contains CBCN l The genesis hash (GH) of the distributed ledger, the root hash (RH) of the current block, the block number (BN) of the current block, and the local transaction signature (LTS), where LTS is the CBCN l Tx pcl or any other CBCN received from the previous layer The above content uses the i-th CBCN in layer l Sign it. It can be expressed as:
7. An interoperable system between heterogeneous and untrusted devices in a blockchain-based ecosystem, characterized in that: include: Modular architecture: adapts to different blockchain networks and untrusted devices, ensuring flexibility and scalability of the data exchange process; Lightweight communication protocol: realize seamless interaction between different blockchain systems, focusing on efficiency, security and privacy; Smart Contract Abstraction Module: Abstract smart contracts into independent data modules to facilitate hierarchical access control and enhance privacy protection in data sharing; Security measures module: Implement strong security measures, including encryption technology, access control mechanisms and authentication protocols to ensure data integrity and confidentiality; Interoperability testing module: Conducts rigorous testing to verify the interoperability of the designed framework between heterogeneous devices to ensure reliability, efficiency, and compatibility.
8. The system according to claim 4, characterized in that The blockchain architecture of the described system consists of three main layers: Internet of Things (IoT) layer: includes devices from different TEs. IoT devices in this layer generate data and create blockchain transactions for the generated data. Private blockchain layer: located above the IoT layer, including the private blockchain network of each TE, responsible for receiving transactions from the IoT layer and verifying them; Consortium blockchain layer: has an n-layer structure and is used to further verify and store transactions from the private blockchain layer.
9. The system according to claim 4, characterized in that The IoT layer includes a collection of devices from different TEs. The devices generate data and create IoT transactions. Each transaction is associated with a smart contract and must comply with predetermined logical rules. It is sent to the private blockchain layer for verification. If the transaction is verified, the data will be stored in the database.
10. The system according to claim 4, characterized in that The private blockchain layer receives transactions from the IoT layer and verifies them. This layer contains the private blockchain network of each TE and is responsible for preparing private blockchain layer transactions and sending them to the consortium blockchain layer for verification. If the transaction is verified by the upper layer, the transaction is stored in the TE's distributed ledger block.
Citation Information
Patent Citations
Intelligent system data supervision method based on private chain
CN112100278A
Smart city network architecture based on blockchain and software-defined network
CN113194112A
Internet of things perception data sharing transaction platform, control method, equipment and terminal
CN113783696A
Automatic block form repairing method and system based on feature fault zone recognition
CN116645479A
Urban planning implementation display optimization method based on virtual reality technology
CN117671220A
