CN111614731B - Method and system for accessing block chain to Internet of things equipment, aggregation gateway and storage medium - Google Patents

Method and system for accessing block chain to Internet of things equipment, aggregation gateway and storage medium Download PDF

Info

Publication number
CN111614731B
CN111614731B CN202010353926.4A CN202010353926A CN111614731B CN 111614731 B CN111614731 B CN 111614731B CN 202010353926 A CN202010353926 A CN 202010353926A CN 111614731 B CN111614731 B CN 111614731B
Authority
CN
China
Prior art keywords
internet
block chain
service data
cloud platform
things
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202010353926.4A
Other languages
Chinese (zh)
Other versions
CN111614731A (en
Inventor
谢华
黄臻
彭波
熊宇杰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Core Chain Technology Co ltd
Original Assignee
Shenzhen Core Chain Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Core Chain Technology Co ltd filed Critical Shenzhen Core Chain Technology Co ltd
Priority to CN202010353926.4A priority Critical patent/CN111614731B/en
Publication of CN111614731A publication Critical patent/CN111614731A/en
Application granted granted Critical
Publication of CN111614731B publication Critical patent/CN111614731B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/2854Wide area networks, e.g. public data networks
    • H04L12/2856Access arrangements, e.g. Internet access
    • H04L12/2869Operational details of access network equipments
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/46Interconnection of networks
    • H04L12/4633Interconnection of networks using encapsulation techniques, e.g. tunneling
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/12Applying verification of the received information
    • H04L63/123Applying verification of the received information received data contents, e.g. message integrity
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/51Discovery or management thereof, e.g. service location protocol [SLP] or web services
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/32Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials
    • H04L9/3247Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials involving digital signatures
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/50Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols using hash chains, e.g. blockchains or hash trees
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/50Reducing energy consumption in communication networks in wire-line communication networks, e.g. low power modes or reduced link rate

Abstract

The application discloses a method and a system for accessing an Internet of things device to a block chain, a convergence gateway and a storage medium, and relates to but is not limited to the technical field of block chains. The method for accessing the block chain to the Internet of things equipment comprises the following steps: connecting the Internet of things equipment, and acquiring a plurality of service data sent by the Internet of things equipment; and respectively encapsulating the plurality of service data into blocks to obtain a plurality of blocks, and respectively sending the plurality of blocks to the corresponding block chain cloud platform. According to the method, the system, the aggregation gateway and the storage medium for accessing the Internet of things equipment to the block chain, different service data are packaged into different blocks and are respectively sent to different block chain cloud platforms, so that block chain service of the cross-block chain cloud platform is realized, and the resources of each block chain cloud platform do not need to be integrated; and when the new blockchain cloud platform is accessed, only the authentication of the new blockchain cloud platform needs to be acquired, hardware transformation or software upgrading of the Internet of things equipment is not needed, and the operation cost of the Internet of things equipment is reduced.

Description

Method and system for accessing Internet of things equipment to block chain, aggregation gateway and storage medium
Technical Field
The embodiment of the application relates to but is not limited to the technical field of block chains, and particularly relates to a method, a system, a convergence gateway and a storage medium for accessing an internet of things device to a block chain.
Background
At present, internet of things platform leading enterprises (such as IBM, microsoft, amazon and SAP) provide block chain services on respective Internet of things cloud platforms to form respective block chain cloud platforms, and cloud platform users can build exclusive block chains on the block chain cloud platforms. However, the block chain service provided by a single block chain cloud platform is limited by the resources of the cloud platform, the resource integration of the cross-block chain cloud platform needs to pay a great engineering transformation cost, and how to realize the block chain service of the cross-block chain cloud platform is a technical problem to be solved.
Disclosure of Invention
The embodiments of the present application aim to solve at least one of the technical problems existing in the prior art to some extent. Therefore, the method for accessing the object networking device to the block chain can realize the block chain service of the cross-block chain cloud platform without integrating the resources of each block chain cloud platform.
The embodiment of the application also provides a system for accessing the equipment of the Internet of things into the block chain.
The embodiment of the application also provides the aggregation gateway.
The embodiment of the application also provides a computer readable storage medium.
In a first aspect, an embodiment of the present application provides a method for accessing a block chain by an internet of things device, including:
connecting the Internet of things equipment, and acquiring a plurality of service data sent by the Internet of things equipment;
and respectively encapsulating the plurality of service data into blocks to obtain a plurality of blocks, and respectively sending the plurality of blocks to the corresponding block chain cloud platform.
The method for accessing the block chain to the Internet of things equipment in the embodiment of the application has the following beneficial effects:
1. different service data are packaged into different blocks and are respectively sent to different block chain cloud platforms, so that block chain service of the cross-block chain cloud platform is realized, and the resources of each block chain cloud platform do not need to be integrated;
2. and when the new blockchain cloud platform is accessed, only the authentication of the new blockchain cloud platform needs to be acquired, hardware transformation or software upgrading of the Internet of things equipment is not needed, and the operation cost of the Internet of things equipment is reduced.
According to another embodiment of the present application, a method for accessing a block chain by an internet of things device further includes:
and respectively carrying out digital signature on the plurality of service data to obtain a plurality of signature data, wherein the block also comprises the signature data.
According to the method for accessing the block chain to the Internet of things equipment, the service data are digitally signed, and the signature data and the service data are packaged into the block, so that the safety of chaining the service data is improved, and the service data can be conveniently traced on the block chain.
According to another embodiment of the present application, a method for accessing a block chain to an internet of things device, which respectively encapsulates a plurality of service data into blocks, further includes:
and respectively verifying the plurality of signature data, and if the verification is passed, respectively packaging the plurality of service data and the plurality of corresponding signature data into blocks.
According to the method for accessing the Internet of things equipment to the block chain, the signature data are verified before the blocks are packaged, and the generation of invalid blocks is avoided, so that the resource waste of a block chain cloud platform caused by the invalid blocks can be avoided, and the performance waste caused by the processing of the invalid blocks can be avoided.
According to another embodiment of the present application, a method for accessing a block chain to an internet of things device, which respectively encapsulates a plurality of service data into blocks, further includes:
and respectively verifying the plurality of service data, and if the plurality of service data pass the verification, respectively packaging the plurality of service data into blocks.
According to the method for accessing the Internet of things equipment to the block chain, before the block is packaged, the service data are checked, the validity of the service data is mainly verified, and illegal service data are prevented from being chained, so that resource waste of a block chain cloud platform is caused, and performance waste caused by processing of illegal service data can be avoided.
According to the method for accessing the block chain to the internet of things device in another embodiment of the present application, before the multiple blocks are respectively sent to the corresponding block chain cloud platform, the method further includes:
sending a connection request to a block chain cloud platform, wherein the connection request comprises authentication information of the Internet of things equipment;
and acquiring a connection response of the block chain cloud platform, and connecting the block chain cloud platform according to the connection response.
According to the method for accessing the Internet of things equipment into the block chain, the block chain cloud platform can be connected only through authentication of the block chain cloud platform, risks of malicious intrusion and control of the block chain cloud platform are reduced, and safety of the block chain cloud platform is improved.
In a second aspect, an embodiment of the present application provides a system for accessing a block chain by a device in the internet of things, including:
the Internet of things equipment access module is used for connecting the Internet of things equipment and acquiring a plurality of service data sent by the Internet of things equipment;
and the block chain cloud platform access modules are connected with the Internet of things equipment access modules and used for packaging the service data into blocks and sending the blocks to the corresponding block chain cloud platforms.
The system for accessing the Internet of things equipment into the block chain has the following beneficial effects:
1. different service data are encapsulated into different blocks through different block chain cloud platform access modules and are respectively sent to different block chain cloud platforms, so that block chain service of the cross-block chain cloud platform is realized, and the resources of each block chain cloud platform do not need to be integrated;
2. and a new block chain cloud platform is accessed, only the authentication of the new block chain cloud platform needs to be acquired, hardware modification or software upgrading of the equipment of the Internet of things is not needed, and the operation cost of the equipment of the Internet of things is reduced.
According to another embodiment of the present application, a system for accessing a block chain by an internet of things device further includes:
and the digital signature module is connected with the Internet of things equipment access module and is used for respectively carrying out digital signature on the plurality of service data to obtain a plurality of signature data.
According to the system for accessing the Internet of things equipment into the block chain, the service data are digitally signed through the digital signature module, and then the signature data and the service data are packaged into the block through the block chain cloud platform access module, so that the safety of chaining the service data is improved, and the service data can be conveniently traced on the block chain.
In a third aspect, an embodiment of the present application provides an aggregation gateway, including:
the Internet of things equipment access assembly is used for connecting the Internet of things equipment and acquiring a plurality of service data sent by the Internet of things equipment;
the plurality of block chain cloud platform access assemblies are respectively connected with the Internet of things equipment access assembly and used for packaging the service data into blocks and sending the blocks to the corresponding block chain cloud platforms.
The aggregation gateway in the embodiment of the application has at least the following beneficial effects:
1. different service data are encapsulated into different blocks through different block chain cloud platform access components and are respectively sent to different block chain cloud platforms, so that block chain service of the cross-block chain cloud platform is realized, and the resources of each block chain cloud platform do not need to be integrated;
2. and a new block chain cloud platform is accessed, only the authentication of the new block chain cloud platform needs to be acquired, hardware modification or software upgrading of the equipment of the Internet of things is not needed, and the operation cost of the equipment of the Internet of things is reduced.
According to another embodiment of the aggregation gateway, the access component of the internet of things device is further configured to perform digital signatures on the multiple service data, respectively, to obtain multiple signature data.
The aggregation gateway carries out digital signature on the service data through the Internet of things equipment access assembly, and then encapsulates the signature data and the service data into blocks through the block chain cloud platform access assembly, so that the safety of chaining the service data is improved, and the service data can be conveniently traced on the block chain.
In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium having stored thereon computer-executable instructions for causing a computer to perform a method for accessing a blockchain by an internet of things device according to some embodiments of the present application.
The computer-readable storage medium of the embodiment of the application has at least the following beneficial effects:
1. different service data are encapsulated into different blocks through different block chain cloud platform access components and are respectively sent to different block chain cloud platforms, so that block chain service of the cross-block chain cloud platform is realized, and the resources of each block chain cloud platform do not need to be integrated;
2. and when the new blockchain cloud platform is accessed, only the authentication of the new blockchain cloud platform needs to be acquired, hardware transformation or software upgrading of the Internet of things equipment is not needed, and the operation cost of the Internet of things equipment is reduced.
Additional features and advantages of the application will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by the practice of the application. The objectives and other advantages of the application may be realized and attained by the structure particularly pointed out in the written description and claims hereof as well as the appended drawings.
Drawings
Fig. 1 is a schematic system structure diagram of an access block chain of an internet of things device in an embodiment of the present application;
fig. 2 is a schematic flowchart of a specific embodiment of a method for accessing a block chain by an internet of things device in the embodiment of the present application;
fig. 3 is a schematic flowchart of another embodiment of a method for accessing a block chain by a device of the internet of things according to the embodiment of the present application;
fig. 4 is a schematic flowchart of another specific embodiment of a method for accessing a block chain by a device of the internet of things in the embodiment of the present application;
fig. 5 is a block diagram of a specific embodiment of a system for accessing a blockchain by an internet of things device in an embodiment of the present application;
fig. 6 is a block diagram of another specific embodiment of a system for accessing a blockchain by a device in the internet of things according to the embodiment of the present application;
fig. 7 is a schematic structural diagram of an embodiment of an aggregation gateway in the embodiment of the present application.
Detailed Description
The conception and the resulting technical effects of the present application will be clearly and completely described in conjunction with the embodiments below, so that the objects, features and effects of the present application can be fully understood. Obviously, the described embodiments are only a part of the embodiments of the present application, and not all embodiments, and other embodiments obtained by those skilled in the art without inventive efforts based on the embodiments of the present application belong to the protection scope of the present application.
In the description of the embodiments of the present application, if "a plurality" is referred to, it means two or more, if "first" and "second" are referred to, they should be understood as distinguishing technical features, and they should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features or implicitly indicating the precedence of the indicated technical features. If a feature is referred to as being "disposed," "secured," "connected," or "mounted" to another feature, it can be directly disposed, secured, or connected to the other feature or indirectly disposed, secured, connected, or mounted to the other feature.
The internet of things cloud platform is a core architecture of the internet of things and can be functionally divided into the following four platforms: a Connection Management Platform (CMP), a Device Management Platform (DMP), an Application Enablement Platform (AEP), and a Business Analysis Platform (BAP). The CMP is generally applied to an operator network, and an internet of things SIM card is connected to the CMP. The platform can realize connection configuration and fault management of the Internet of things, guarantee stability of a terminal networking channel, network resource usage management, connection tariff management, bill management, package change and the like. The DMP mainly comprises a series of functions of remote monitoring, setting adjustment, software upgrading, troubleshooting and the like of the terminal of the Internet of things, and helps a client to carry out system integration by providing an open API calling interface. The DMP may be mainly oriented to control of basic states of devices such as on, off, and stop, or real-time device warning of the internet of things, which does not relate to device management in an application scenario of the internet of things. The AEP is combined with an application scene, and provides functions of a complete set of application development tools (SDK), middleware, data storage, a business logic engine, a third party API interface and the like for developers. The BAP mainly comprises functions of big data service, machine learning and the like, and analyzes and processes data collected on the cloud platform and visualizes the data. Machine learning is the training of structured and unstructured data deposited on a platform to form predictive, cognitive, or complex business analysis logic.
In the embodiment of the application, the blockchain cloud platform provides one-stop, high-security, simple and easy-to-use blockchain service for enterprises and developers of the internet of things cloud platform by applying a blockchain technology on the internet of things cloud platform and utilizing the characteristics of peer-to-peer, open transparency, secure communication, difficulty in tampering, multi-party consensus and the like of blockchain main bodies. A cloud platform user does not need to acquire a block chain underlying technology, can quickly deploy a block chain network environment on the cloud, and is dedicated to block chain business mode innovation and business application development and operation. Most of the existing block chain cloud platforms are operated independently, a uniform industry standard is not formed, block chain services provided by a single block chain cloud platform are limited by resources of the cloud platform, and resource integration of cross-block chain cloud platforms needs to pay a great engineering transformation cost.
Based on this, the embodiment of the application provides a method and a system for accessing a block chain to an internet of things device, a convergence gateway and a storage medium. Referring to a system structure schematic diagram of an internet of things device access block chain shown in fig. 1, a convergence gateway includes an internet of things device access component and a plurality of block chain cloud platform access components, firstly, a plurality of service data sent by a plurality of internet of things devices are respectively encapsulated into different blocks through the internet of things device access component, and then the different blocks are respectively sent to different block chain cloud platforms through the plurality of block chain cloud platform access components, so that block chain service of a cross-block chain cloud platform can be realized, and resources of each block chain cloud platform do not need to be integrated.
Referring to fig. 2, a flowchart of a specific embodiment of a method for accessing a block chain by an internet of things device in the embodiment of the present application is shown. As shown in fig. 2, the method for accessing the block chain to the internet of things device in the embodiment of the present application includes the following specific steps:
s210, connecting the Internet of things equipment, and acquiring a plurality of service data sent by the Internet of things equipment;
and S220, respectively encapsulating the plurality of service data into blocks to obtain a plurality of blocks, and respectively sending the plurality of blocks to the corresponding block chain cloud platform.
The Internet of things equipment provided by the embodiment of the application is equipment which is connected with a sensing network layer and a transmission network layer in the Internet of things and used for acquiring data and sending the data to the network layer, such as an RFID card reader, an infrared sensor, an environmental sensor and the like. The internet of things equipment sends service data through various network interface modes (such as a GPRS module, an Ethernet interface, WIFI and the like). In some embodiments, the business data includes data collected by the internet of things device, configuration data of the internet of things device, or an intelligent contract. A Smart contract (Smart contract) is a computer protocol intended to propagate, verify or execute contracts in an informational manner. An intelligent contract is a set of digitally defined commitments that include protocols on which contract participants can enforce the commitments. The rights and obligations established by the intelligent contract are executed by a computer or a computer network.
A chunk is a data packet carrying transaction data in a blockchain network, and is a data structure that is tagged with a timestamp and a hash value of a previous chunk, and the chunk verifies and validates the transaction in the chunk through a consensus mechanism of the network. The hash value is usually represented by a short string of random letters and numbers, and is a "data fingerprint" obtained by a hash algorithm on input information of any length. In addition, the hash value is a unique and compact numerical representation form of a piece of data, and if the hash value is obtained by hashing a piece of plaintext, only any one letter in the piece of plaintext is changed, and the obtained hash value is different.
In some embodiments, encapsulating the service data into blocks specifically includes: and constructing an empty block, storing the service data into the block body, and storing the equipment identifier into the block head. The device identifier is used for distinguishing different Internet of things devices in the block chain network and serves as the unique identity identifier of the Internet of things devices in the block chain network. In some embodiments, the device identification includes a device identification code, a physical address of the device, or a factory serial number of the device, etc. And sending the block to a block chain cloud platform, thereby completing the chain transmission of the service data.
The plurality of service data are different service data, the first service data need to complete the uplink operation through the first block chain cloud platform, and the second service data need to complete the uplink operation through the second block chain cloud platform.
For example, the first block chain cloud platform provides a block chain service for storing and tracing data acquired by the internet of things equipment, and the second block chain platform provides a block chain service for storing and tracing configuration upgrade data of the internet of things equipment. The first service data is data collected by the Internet of things equipment, and the second service data is configuration upgrading data of the Internet of things equipment. The first service data can only complete the uplink operation through the first block chain cloud platform, but cannot complete the uplink operation through the second block chain platform. The second service data can only complete the uplink operation through the second blockchain platform, but cannot complete the uplink operation through the first blockchain cloud platform.
In some embodiments, before sending the block to the block chain cloud platform, the following specific steps are further included:
s221, sending a connection request to a block chain cloud platform, wherein the connection request comprises authentication information of the Internet of things equipment;
s222, obtaining a connection response of the block chain cloud platform, and connecting the block chain cloud platform according to the connection response.
In some embodiments, the access of the blockchain cloud platform needs to be authenticated, and the access can be connected to the blockchain cloud platform through the authentication of the blockchain cloud platform. By adopting the authentication mechanism, the risk that the block chain cloud platform is maliciously invaded and controlled can be reduced, and therefore the safety of the block chain cloud platform is improved.
Referring to fig. 3, a flowchart of another specific embodiment of a method for accessing a block chain by an internet of things device in the embodiment of the present application is shown. As shown in fig. 3, the method for accessing the block chain to the internet of things device in the embodiment of the present application includes the following specific steps:
s310, connecting the Internet of things equipment, and acquiring a plurality of service data sent by the Internet of things equipment;
s320, respectively carrying out digital signature on the plurality of service data to obtain a plurality of signature data;
s330, packaging the plurality of service data into blocks respectively to obtain a plurality of blocks, and sending the plurality of blocks to the corresponding block chain cloud platform respectively.
Digital signatures have two functions: one is to be able to determine that the message was indeed signed and sent by the sender because someone else cannot impersonate the sender's signature. Second, digital signatures can determine the integrity of a message. Because a digital signature is characterized in that it represents a characteristic of a document, if the document changes, the value of the digital digest will also change. Different files will get different digital summaries. The primary digital signature involves a hash function, the public key of the recipient, and the private key of the recipient.
The digital signature technique is to encrypt the digest information with the sender's private key and transmit it to the receiver together with the original text. The receiver decrypts the encrypted digest information using its own public key, and then generates a digest information for the received original text using a hash function, which is compared with the decrypted digest information. If the information is identical, the received information is complete and is not modified in the transmission process, otherwise, the information is modified, and therefore the digital signature can verify the integrity of the information.
In some embodiments, the service data is digitally signed, and the signature data and the service data are encapsulated into blocks, so that not only is the safety of uplink of the service data improved, but also the service data can be conveniently traced on the block chain.
Referring to fig. 4, a flowchart of another specific embodiment of a method for accessing a block chain by an internet of things device in the embodiment of the present application is shown. As shown in fig. 4, the method for accessing the block chain to the internet of things device in the embodiment of the present application includes the following specific steps:
s410, connecting the Internet of things equipment, and acquiring a plurality of service data sent by the Internet of things equipment;
s420, performing digital signature on the plurality of service data respectively to obtain a plurality of signature data;
s430, respectively verifying the plurality of signature data, and if the verification is passed, respectively packaging the plurality of service data and the plurality of corresponding signature data into blocks to obtain a plurality of blocks;
and S440, respectively sending the blocks to corresponding block chain cloud platforms.
And verifying the service data and the signature data, wherein the verification of the service data mainly comprises checking the legality of the service data, and the verification of the signature data mainly comprises verifying the identity of the equipment of the Internet of things and checking the integrity of the service data. If the verification of the service data and the verification of the signature data both pass, packaging the service data and the signature data into blocks; if the check on the service data is not passed, discarding the service data with errors; and if the service data passes the verification and the signature data does not pass the verification, discarding the error signature data, re-signing the service data to obtain new signature data, and re-verifying the new signature data.
In other embodiments, before step S420, the plurality of service data are respectively verified, and if the verification passes, the plurality of service data are respectively digitally signed to obtain a plurality of signature data.
Since the service data may have format problems or errors, for example, illegal data beyond the data range exists, or the data format does not conform to the uplink block protocol, preliminary verification of the service data is required to avoid waste of network resources of the block link.
Referring to fig. 5, a block diagram of a specific embodiment of a system for accessing a block chain by a device in the internet of things in the embodiment of the present application is shown. As shown in fig. 5, the system for accessing a block chain to an internet of things device in the embodiment of the present application includes: the Internet of things equipment access module is used for connecting the Internet of things equipment and acquiring a plurality of service data sent by the Internet of things equipment; the plurality of block chain cloud platform access modules (taking two as examples) are respectively connected with the internet of things equipment access module and used for encapsulating the service data into blocks and sending the blocks to the corresponding block chain cloud platforms.
Different service data are packaged into different blocks through different block chain cloud platform access modules and are respectively sent to different block chain cloud platforms, so that block chain service of the cross-block chain cloud platform can be realized, and the resources of each block chain cloud platform do not need to be integrated. In other embodiments, a plurality of block chain cloud platform access modules may be combined into one block chain cloud platform access module, and the one block chain cloud platform access module distinguishes a plurality of service data, and encapsulates the plurality of service data into different blocks respectively. In other embodiments, the internet of things device access module is connected to multiple internet of things devices, and different service data may be generated by one internet of things device or by multiple different internet of things devices.
Referring to fig. 6, a block diagram of another specific embodiment of a system for accessing a block chain by a device of the internet of things in the embodiment of the present application is shown. As shown in fig. 6, based on the block diagram shown in fig. 5, the system for accessing a block chain to a device of the internet of things according to the embodiment of the present application further includes: and the digital signature module is connected with the Internet of things equipment access module and used for carrying out digital signature on the plurality of service data to obtain a plurality of signature data.
The service data is digitally signed through the digital signature module, and then the signature data and the service data are packaged into blocks through the block chain cloud platform access module, so that the safety of chaining the service data is improved, and the service data can be conveniently traced on a block chain. In other embodiments, the digital signature function of the digital signature module may be integrated into the internet of things device access module, and the internet of things device access module acquires a plurality of service data sent by the internet of things device and performs digital signatures on the plurality of service data, respectively.
In some embodiments, the system for accessing a block chain to an internet of things device in the embodiments of the present application further includes: and the verification module is connected with the digital signature module and is used for verifying a plurality of signature data. In other embodiments, before the blocks are packaged, the signature data and the service data are respectively verified by the verification module, so that an invalid block is avoided, resource waste of the block chain cloud platform caused by the invalid block can be avoided, and performance waste caused by processing of the invalid block can be avoided. The verification of the service data mainly comprises the step of checking the validity of the service data, and the verification of the signature data mainly comprises the step of verifying the identity of the equipment of the Internet of things and checking the integrity of the service data. In other embodiments, the verification function of the verification module may be integrated into the internet of things device access module or the blockchain cloud platform access module, and the internet of things device access module or the blockchain cloud platform access module is further configured to verify the signature data and the service data. In other embodiments, the verification module is respectively connected to one or more internet of things device access modules, and is configured to verify the plurality of service data. Since the service data may have format problems or errors, for example, illegal data beyond the data range exists, or the data format does not conform to the uplink block protocol, preliminary verification of the service data is required to avoid waste of network resources of the block link.
Referring to fig. 7, a schematic structural diagram of a specific embodiment of an aggregation gateway in the embodiment of the present application is shown. As shown in fig. 7, the aggregation gateway according to the embodiment of the present application includes: the Internet of things equipment access assembly is used for connecting the Internet of things equipment and acquiring a plurality of service data sent by the Internet of things equipment; the multiple block chain cloud platform access components (taking two as an example) are respectively connected with the internet of things equipment access component and are used for encapsulating the service data into blocks and sending the blocks to the corresponding block chain cloud platforms.
In the embodiment of the present application, the aggregation gateway is an intelligent device located between a local area network and an external access network, and has main functions of network isolation, protocol conversion/adaptation, and internal and external transmission of a data network. The aggregation gateway may aggregate multiple individual requests into one request, and if a single task is to be performed, the client may need to issue multiple calls to different backend services, and an application that relies on many services to perform a certain task must expand the resources of each request, and add any new function or service to the application, requiring additional requests, further increasing resource requirements and increasing network calls. Such frequent communication between the client and the backend may adversely affect the performance and size of the application. The frequency of communication between the client and the service is reduced using an aggregation gateway that receives client requests, dispatches the requests to different backend systems, and then aggregates the results and returns them to the requesting client, thereby enabling a reduction in the number of requests issued by the application to the backend service and improving the performance of the application over a high latency network.
In some embodiments, the aggregation gateway accesses the internet of things devices with different services to the blockchain cloud platform corresponding to the services through relevant service configuration information, so as to provide blockchain services facing different internet of things operation services. If the service data is added or modified, the access configuration of the blockchain cloud platform of the internet of things equipment is changed in the service configuration information, and the relevant configuration information of the internet of things equipment does not need to be changed. In other embodiments, the aggregation gateway may further provide a corresponding operation interface (such as a web page or APP) to support a service configuration function, and face an internet of things service provider, so that the service provider may complete access configuration setting of a blockchain cloud platform of a service owned by the service provider through the operation interface.
The aggregation gateway encapsulates different service data into different blocks through different block chain cloud platform access components and respectively sends the different blocks to different block chain cloud platforms, so that block chain service of the cross-block chain cloud platform is realized, and the resources of each block chain cloud platform do not need to be integrated. In other embodiments, a plurality of block chain cloud platform access components may be combined into one block chain cloud platform access component, and the one block chain cloud platform access component distinguishes a plurality of different service data, and encapsulates the plurality of service data into different blocks respectively.
In other embodiments, the internet of things device access component is further configured to perform digital signature on the plurality of service data, respectively, to obtain a plurality of signature data. The service data are digitally signed through the Internet of things equipment access assembly, and then the signature data and the service data are packaged into blocks through the block chain cloud platform access assembly, so that the service data chaining safety is improved, and the service data can be conveniently traced on a block chain. In some embodiments, the internet of things device access component is further configured to verify the plurality of signature data. Before the blocks are packaged, the plurality of signature data are respectively verified through the Internet of things equipment access assembly, and invalid blocks are prevented from being generated, so that resource waste of a block chain cloud platform caused by the invalid blocks can be avoided, and performance waste caused by processing of the invalid blocks can be avoided. In other embodiments, the internet of things device access component is further configured to verify the plurality of service data and the plurality of corresponding signature data. The verification of the service data mainly comprises the step of checking the validity of the service data, and the verification of the signature data mainly comprises the steps of verifying the identity of the equipment of the Internet of things and checking the integrity of the service data. In other embodiments, the internet of things device access component verifies the plurality of service data before digitally signing the service data. Since the service data may have format problems or errors, for example, illegal data beyond the data range exists, or the data format does not conform to the uplink protocol of the block, preliminary verification needs to be performed on the service data, thereby avoiding waste of network resources of the block link.
Embodiments of the present application also provide a computer-readable storage medium storing computer-executable instructions for causing a computer to perform the method for accessing a block chain by an internet of things device according to some embodiments of the present application.
On one hand, the computer-readable storage medium encapsulates different service data into different blocks, and sends the different blocks to different block chain cloud platforms respectively, so that block chain service of a cross-block chain cloud platform is realized without integrating resources of each block chain cloud platform; on the other hand, when a new blockchain cloud platform is accessed, only the certification of the new blockchain cloud platform needs to be obtained, hardware transformation or software upgrading of the internet of things equipment is not needed, and the operation cost of the internet of things equipment is reduced.
The embodiment of the application also provides a terminal for accessing the device of the internet of things into the block chain, wherein the terminal comprises at least one processor and a memory which is in communication connection with the at least one processor; the memory stores instructions executable by the at least one processor, and the instructions are executable by the at least one processor to enable the at least one processor to perform the method for accessing a blockchain by an internet of things device according to some embodiments of the present application.
According to the terminal for accessing the Internet of things equipment into the block chain, on one hand, different service data are packaged into different blocks and are respectively sent to different block chain cloud platforms, so that block chain service of the cross-block chain cloud platform is realized, and the resources of each block chain cloud platform do not need to be integrated; on the other hand, when a new blockchain cloud platform is accessed, only the certification of the new blockchain cloud platform needs to be obtained, hardware transformation or software upgrading of the internet of things equipment is not needed, and the operation cost of the internet of things equipment is reduced.
In the terminal of the internet of things device access block chain in the embodiment of the present Application, the Processor may be a Central Processing Unit (CPU), or may also be other general purpose processors, digital Signal Processors (DSP), application Specific Integrated Circuits (ASIC), ready-made Programmable Gate arrays (FPGA) or other Programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, and the like. The general processor may be a microprocessor or the processor may be any conventional processor, etc., and the processor is a control center of the executable apparatus of the method for accessing the device of the internet of things to the blockchain, and various interfaces and lines are utilized to connect various parts of the executable apparatus of the method for accessing the device of the entire internet of things to the blockchain.
The memory may be used to store computer programs and/or modules, and the processor may implement the various functions of the executable apparatus of the method for accessing a blockchain to an internet of things device by executing or executing the computer programs and/or modules stored in the memory and invoking the data stored in the memory. The memory may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. In addition, the memory may include high-speed random access memory, and may also include non-volatile memory, such as a hard disk, a memory, a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), at least one magnetic disk storage device, a Flash memory device, or other volatile solid state storage device.
In the several embodiments provided in the present application, it should be understood that the disclosed technology can be implemented in other ways. The above-described system embodiments are merely illustrative, and for example, the division of the modules may be a logical division, and in actual implementation, there may be another division, for example, multiple units or modules may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit. The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solutions of the present application, or portions or all or portions of the technical solutions that contribute to the prior art, may be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in the embodiments of the present application. And the aforementioned storage medium includes: a U disk, a Read-only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic disk, or an optical disk.
The embodiments of the present application have been described in detail with reference to the drawings, but the present application is not limited to the embodiments, and various changes can be made within the knowledge of those skilled in the art without departing from the spirit of the present application. Furthermore, the embodiments and features of the embodiments of the present application may be combined with each other without conflict.

Claims (5)

1. A method for accessing a block chain to equipment of the Internet of things is characterized by comprising the following steps:
connecting the Internet of things equipment, and acquiring a plurality of service data sent by the Internet of things equipment;
respectively verifying the plurality of service data, and if the plurality of service data pass the verification, respectively carrying out digital signature on the plurality of service data to obtain a plurality of signature data;
respectively verifying the plurality of signature data, and if the plurality of signature data pass the verification, respectively packaging the plurality of service data and the plurality of signature data into blocks to obtain a plurality of blocks; and respectively sending the blocks to corresponding different block chain cloud platforms.
2. The method for accessing the blockchain by the internet of things device according to claim 1, wherein before the sending the plurality of blocks to the corresponding blockchain cloud platform, the method further comprises:
sending a connection request to the block chain cloud platform, wherein the connection request comprises authentication information of the Internet of things equipment;
and acquiring a connection response of the block chain cloud platform, and connecting the block chain cloud platform according to the connection response.
3. A system for accessing a block chain to equipment of the Internet of things is characterized by comprising:
the Internet of things equipment access module is used for connecting the Internet of things equipment and acquiring a plurality of service data sent by the Internet of things equipment;
the digital signature module is connected with the Internet of things equipment access module and is used for respectively verifying the plurality of service data, and if the plurality of service data pass the verification, the digital signature module respectively carries out digital signature on the plurality of service data to obtain a plurality of signature data;
and the block chain cloud platform access modules are respectively connected with the Internet of things equipment access module and used for respectively verifying the plurality of signature data, packaging the service data and the signature data into blocks if the verification is passed, and sending the blocks to corresponding different block chain cloud platforms.
4. An aggregation gateway, comprising:
the Internet of things equipment access component is used for connecting the Internet of things equipment and acquiring a plurality of service data sent by the Internet of things equipment; respectively verifying the plurality of service data, and if the plurality of service data pass the verification, respectively carrying out digital signature on the plurality of service data to obtain a plurality of signature data;
and the plurality of block chain cloud platform access components are respectively connected with the Internet of things equipment access components and used for respectively verifying the plurality of signature data, packaging the service data and the signature data into blocks if the verification is passed, and sending the blocks to corresponding different block chain cloud platforms.
5. A computer-readable storage medium having stored thereon computer-executable instructions for causing a computer to perform the method of accessing a blockchain for internet of things devices of any of claims 1 to 2.
CN202010353926.4A 2020-04-29 2020-04-29 Method and system for accessing block chain to Internet of things equipment, aggregation gateway and storage medium Active CN111614731B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010353926.4A CN111614731B (en) 2020-04-29 2020-04-29 Method and system for accessing block chain to Internet of things equipment, aggregation gateway and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010353926.4A CN111614731B (en) 2020-04-29 2020-04-29 Method and system for accessing block chain to Internet of things equipment, aggregation gateway and storage medium

Publications (2)

Publication Number Publication Date
CN111614731A CN111614731A (en) 2020-09-01
CN111614731B true CN111614731B (en) 2023-04-07

Family

ID=72201253

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010353926.4A Active CN111614731B (en) 2020-04-29 2020-04-29 Method and system for accessing block chain to Internet of things equipment, aggregation gateway and storage medium

Country Status (1)

Country Link
CN (1) CN111614731B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111935174A (en) * 2020-09-02 2020-11-13 平安国际智慧城市科技股份有限公司 Block chain service system docking method, device and equipment based on middleware gateway
CN113112325A (en) * 2021-03-23 2021-07-13 中国联合网络通信集团有限公司 Rental method of Internet of things equipment and communication device
CN114745379B (en) * 2022-03-21 2023-07-11 北京卓视智通科技有限责任公司 Block chain and fog calculation based Internet of things equipment system and method

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107315786A (en) * 2017-06-12 2017-11-03 腾讯科技(深圳)有限公司 Business datum storage method and device
CN107528856A (en) * 2017-09-27 2017-12-29 福建实达电脑设备有限公司 Internet of Things mist end equipment based on block chain platform access authentication method beyond the clouds
CN109902074A (en) * 2019-04-17 2019-06-18 江苏全链通信息科技有限公司 Log storing method and system based on data center
CN110601853A (en) * 2019-09-17 2019-12-20 腾讯科技(深圳)有限公司 Block chain private key generation method and equipment
CN110659441A (en) * 2019-09-26 2020-01-07 腾讯科技(深圳)有限公司 Information release management method and device based on block chain
CN110931093A (en) * 2020-02-18 2020-03-27 支付宝(杭州)信息技术有限公司 Medical information sharing system and method

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11194837B2 (en) * 2018-05-01 2021-12-07 International Business Machines Corporation Blockchain implementing cross-chain transactions

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107315786A (en) * 2017-06-12 2017-11-03 腾讯科技(深圳)有限公司 Business datum storage method and device
CN107528856A (en) * 2017-09-27 2017-12-29 福建实达电脑设备有限公司 Internet of Things mist end equipment based on block chain platform access authentication method beyond the clouds
CN109902074A (en) * 2019-04-17 2019-06-18 江苏全链通信息科技有限公司 Log storing method and system based on data center
CN110601853A (en) * 2019-09-17 2019-12-20 腾讯科技(深圳)有限公司 Block chain private key generation method and equipment
CN110659441A (en) * 2019-09-26 2020-01-07 腾讯科技(深圳)有限公司 Information release management method and device based on block chain
CN110931093A (en) * 2020-02-18 2020-03-27 支付宝(杭州)信息技术有限公司 Medical information sharing system and method

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
面向征信的区块链模式设计与应用研究;郭树行等;《网络与信息安全学报》;20180430;第04卷(第04期);全文 *

Also Published As

Publication number Publication date
CN111614731A (en) 2020-09-01

Similar Documents

Publication Publication Date Title
CN111614731B (en) Method and system for accessing block chain to Internet of things equipment, aggregation gateway and storage medium
CN110086755B (en) Method for realizing service of Internet of things, application server, Internet of things equipment and medium
CN110266764B (en) Gateway-based internal service calling method and device and terminal equipment
CN112131021B (en) Access request processing method and device
CN110839087B (en) Interface calling method and device, electronic equipment and computer readable storage medium
US20050235150A1 (en) Bi-directionally verifying measurable aspects associated with modules, pre-computing solutions to configuration challenges, and using configuration challenges along with other authentication mechanisms
CN112311783B (en) Method and system for authenticating reverse proxy
CN114448648B (en) Sensitive credential management method and system based on RPA
WO2022088710A1 (en) Mirror image management method and apparatus
CN112887199B (en) Gateway, cloud platform, configuration method and device thereof, and computer-readable storage medium
CN116055556A (en) Method, system, device and equipment for data exchange
US20240039707A1 (en) Mobile authenticator for performing a role in user authentication
CN112261002A (en) Data interface docking method and device
CN115549984A (en) Cross-chain transaction method, device, equipment and storage medium
CN115357866A (en) Application program execution method, device, equipment and storage medium
CN115174645A (en) Automobile OTA (over the air) vehicle cloud interaction method and system
CN112491777B (en) Cross-block chain identity authentication method, computer equipment and readable storage medium
CN103812843A (en) Authentication method and system based on Web Service
CN116032510A (en) Data security protection system
US20230403138A1 (en) Agentless single sign-on techniques
CN114143048B (en) Method, device and storage medium for managing safety resources
CN113507450B (en) Method and device for filtering internal and external network data based on parameter feature vector
WO2024007860A1 (en) Block chain-based data detection method, apparatus, device, storage medium, and program product
US20240015028A1 (en) Blockchain-based data detection method and apparatus, device, storage medium, and program product
CN116633674A (en) Single-packet authentication method and related device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant