A blockchain-based intelligent communication method and system
Through the dual authentication mechanism of the certificate authority and the security control center, combined with hash operation and link fingerprint encryption, the problem of data tampering and node dependence in blockchain communication is solved, and efficient and secure data transmission is achieved, suitable for multiple nodes. environment.
Patent Information
- Application Number
- CN202410815362.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-24
- Publication Date
- 2024-09-17
- Estimated Expiration
- 2044-06-24
AI Technical Summary
In the existing blockchain communication technology, although the identity legitimacy of the sender and receiver is ensured, it lacks a data tampering monitoring mechanism, and when the number of nodes increases, block updates and replications require the consent of the entire network, resulting in increased traffic and computing costs. .
It adopts the dual authentication mechanism of the certificate issuing authority and the security control center, and ensures the security and legality of data transmission through hash operation and link fingerprint encryption, reducing dependence on the entire network nodes and improving verification efficiency and blockchain scalability.
It effectively avoids data tampering, reduces computing and communication overhead, improves the scalability and efficiency of the blockchain, and is suitable for environments with a large number of nodes and incomplete trust.
Smart Images

Figure CN118381599B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of communication transmission technology, and in particular to a blockchain-based intelligent communication method and system. Background Art
[0002] Blockchain technology is a decentralized distributed ledger technology that ensures the immutability and transparency of data through encryption algorithms and consensus mechanisms. Blockchain technology can ensure the security and reliability of communication between devices.
[0003] When establishing a communication link between the sender and the receiver, the current communication technology uses blockchain to ensure the legitimacy of the sender and receiver's identities, but there is a lack of monitoring for whether the data has been tampered with between the sender and the receiver. In addition, in the current blockchain technology, the update and replication of blocks must be approved by all nodes, but the nodes do not trust each other, and some nodes are even hostile. As the number of nodes in the blockchain increases, the cost of traffic and computing will inevitably increase if all nodes agree. Summary of the invention
[0004] In order to solve the problem that, in the current communication technology, the blockchain is used to ensure the legitimacy of the identities of the sender and the receiver, but there is a lack of monitoring whether the data has been tampered with between the sender and the receiver, and in the current blockchain technology, the update and copy of blocks must be approved by all nodes, but the nodes do not trust each other, and some nodes are even hostile. As the number of nodes in the blockchain increases, the technical problem that the cost of traffic and calculation will inevitably increase if all nodes agree is obtained, the present invention provides an intelligent communication method and system based on blockchain.
[0005] The technical solution provided by the embodiment of the present invention is as follows:
[0006] First aspect:
[0007] An embodiment of the present invention provides a blockchain-based intelligent communication method, comprising:
[0008] S1: Get the data sending request from the sender;
[0009] S2: Determine whether the sender has obtained a license issued by a certificate authority; if so, proceed to S3; otherwise, perform device registration;
[0010] S3: The certificate issuing authority forwards the hash block obtained by performing a hash operation on the data to be transmitted using the private key contained in the data sending request to the security control center;
[0011] S4: The security control center determines whether the hash block of the sender is valid; if so, the sender is allowed to be added to the blockchain; otherwise, the sender is refused to be added to the blockchain;
[0012] S5: Establishing a communication link between the block represented by the sending end and the block represented by the receiving end;
[0013] S6: constructing a link fingerprint of the communication link based on the received signal strength;
[0014] S7: When the sending end sends the data to be transmitted through the communication link, the data to be transmitted is encrypted by using the link fingerprint;
[0015] S8: When the receiving end receives the data to be transmitted, the receiving end forwards the data to be transmitted to the security control center;
[0016] S9: The security control center determines whether the data to be transmitted is normal based on the link fingerprint; if so, sends a confirmation message to the receiving end so that the receiving end accepts the data to be transmitted; otherwise, sends a rejection message to the receiving end so that the receiving end rejects the data to be transmitted.
[0017] Second aspect:
[0018] An embodiment of the present invention provides a blockchain-based intelligent communication system, comprising:
[0019] processor;
[0020] A memory having computer-readable instructions stored thereon, wherein when the computer-readable instructions are executed by the processor, the blockchain-based intelligent communication method as described in the first aspect is implemented.
[0021] The third aspect:
[0022] An embodiment of the present invention provides a computer-readable storage medium, on which a computer program is stored. When the program is executed by a processor, the blockchain-based intelligent communication method as described in the first aspect is implemented.
[0023] The beneficial effects brought about by the technical solution provided by the embodiment of the present invention include at least:
[0024] (1) In the present invention, the decision on whether to add a device to the blockchain is made through dual authentication by the certificate authority and the security control center, thereby ensuring the authenticity and legitimacy of the device identity, reducing the traffic and computing cost overhead caused by the need for unanimous agreement of all nodes in the traditional blockchain. At the same time, the security control center is used as a trusted centralized verification node, which can improve the verification efficiency and reduce the computing and communication overhead in the consensus process. It is particularly suitable for environments with a large number of nodes and incomplete mutual trust, thereby improving the scalability and efficiency of the blockchain.
[0025] (2) In the present invention, a dynamic link fingerprint of the communication link is constructed based on the received signal strength. During the data transmission process, the data to be transmitted is encrypted by the link fingerprint. Since the link fingerprint is generated based on the actual communication channel characteristics, it is very difficult to forge or reproduce. It can effectively avoid malicious tampering of data from the sender to the receiver, prevent man-in-the-middle attacks and data leakage, and enhance the security and anti-attack capability during the communication process. BRIEF DESCRIPTION OF THE DRAWINGS
[0026] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0027] Figure 1 A flowchart of a blockchain-based intelligent communication method provided by an embodiment of the present invention;
[0028] Figure 2 A schematic diagram of the structure of a blockchain-based intelligent communication system provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0029] The technical solution of the present invention is described below in conjunction with the accompanying drawings.
[0030] In the embodiments of the present invention, words such as "exemplarily" and "for example" are used to indicate examples, illustrations or explanations. Any embodiment or design described as "example" in the present invention should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of the word "example" is intended to present the concept in a specific way. In addition, in the embodiments of the present invention, the meaning expressed by "and / or" can be both, or it can be either of the two.
[0031] In the embodiments of the present invention, "image" and "picture" can sometimes be used interchangeably. It should be noted that when the difference between them is not emphasized, the meanings they intend to express are the same. "of", "corresponding, relevant" and "corresponding" can sometimes be used interchangeably. It should be noted that when the difference between them is not emphasized, the meanings they intend to express are the same.
[0032] In order to make the technical problems, technical solutions and advantages to be solved by the present invention more clear, a detailed description will be given below with reference to the accompanying drawings and specific embodiments.
[0033] Reference Manual Attached Figure 1 , showing a flow chart of a blockchain-based intelligent communication method provided by an embodiment of the present invention.
[0034] The embodiment of the present invention provides a blockchain-based intelligent communication method, which can be implemented by a blockchain-based intelligent communication device, which can be a terminal or a server. The processing flow of the blockchain-based intelligent communication method can include the following steps:
[0035] S1: Get the data sending request from the sender.
[0036] S2: Determine whether the sender has obtained a license issued by a certificate authority. If so, proceed to S3. Otherwise, proceed to device registration.
[0037] Among them, the certificate authority (CA) is a trusted third-party entity responsible for issuing and managing digital certificates. CA plays a vital role in the public key infrastructure (PKI), mainly responsible for verifying the identity of entities (such as users, devices, services) and issuing corresponding digital certificates. Digital certificates are used to confirm the ownership of public keys and the legitimacy of identities, thereby establishing a trust relationship in network communications.
[0038] Among them, the license is an electronic document used to bind the public key to the entity's identity information to ensure the legitimacy of the ownership of the public key.
[0039] In a possible implementation, the device registration method specifically includes:
[0040] Get the device registration request, which includes the device ID and digital signature.
[0041] Optionally, the method for generating the digital signature of the sender specifically includes:
[0042] Generate a pair of private key and public key, the private key and public key satisfy:
[0043] in,Q represents the public key, d pi Represents the private key, G represents the base point of the ellipse, , Represents the base point coordinates.
[0044] Calculate the hash value of the data to be transmitted:
[0045] in, e Represents the hash value of the data to be transmitted, Hash represents the hash function, and M represents the message to be sent.
[0046] Randomly pick a random number k , calculate the point on the elliptic curve:
[0047] in, Represents the coordinates of a point on an elliptic curve.
[0048] Calculate the sender's digital signature:
[0049] in, Represents a digital signature. n Represents the base point of an ellipse G The order of d pi Represents a private key.
[0050] In the present invention, the generation of digital signatures can significantly improve the security, efficiency and reliability of data transmission. While providing high security and high efficiency, it reduces the computing and storage overhead, and is particularly suitable for modern communication systems and resource-constrained devices. It ensures that data is not tampered with during transmission between the sender and the receiver, and effectively authenticates the legitimate identity of the sender.
[0051] The certificate authority forwards the sender's device registration request to the security control center.
[0052] Optionally, registering the device information of the sender in the certificate issuing authority and the security control center specifically includes: registering the device information of the sender in a decentralized document.
[0053] The security control center verifies whether the sender's digital signature is legitimate. If so, a confirmation message is sent to the certificate authority. Otherwise, the sender is rejected from being added to the blockchain.
[0054] Furthermore, the security control center determines whether the hash block of the sender is valid. Specifically, the security control center queries the decentralized document, obtains the public key of the sender, and uses the public key of the sender to determine whether the hash block of the sender is valid.
[0055] It should be noted that the introduction of decentralized documents to store device information does not rely on a single centralized server to store information, eliminating the risk of single point failure and ensuring high availability and stability of the system. At the same time, decentralized documents are open and transparent to all participating nodes, and anyone can view the information recorded in them, enhancing the transparency and trust of the system.
[0056] Optionally, the security control center VCC verifies whether the digital signature of the sender is legal, specifically including:
[0057] Get the sender's public key Q , Messages to be sent And digital signature .
[0058] Check whether the digital signature satisfies: , If yes, proceed to the next step. Otherwise, determine that the digital signature is illegal. n Represents the base point of an ellipse G The order of .
[0059] It should be noted that if the digital signature is not within the legal range, it means that the signing process may be wrong or the signature has been forged, so the signature is immediately judged invalid to avoid further calculation and resource waste.
[0060] Calculate the hash value of the message to be sent:
[0061] in, Represents the hash value of the message to be sent.
[0062] Calculate auxiliary values:
[0063] in, δ , u 1 as well as u 2 Indicates auxiliary value.
[0064] Calculate the point on the elliptic curve using the public key and the base point:
[0065] in, represents the coordinates of a point on the elliptic curve, G represents the base point of the ellipse, Q Represents a public key.
[0066] Calculate the verification value:
[0067] in, A Represents the validation value.
[0068] judge A Is it equal to α If yes, the digital signature is valid. Otherwise, the digital signature is invalid.
[0069] In the present invention, the above steps are used to verify whether the digital signature of the sender is legitimate, providing a highly secure, efficient and standardized digital signature verification mechanism. This method not only ensures the integrity and authenticity of data during transmission, but also improves the security and reliability of the system, and is suitable for wide application in a decentralized network environment.
[0070] The certificate authority issues a license to the sender based on the confirmation message, allocates a public key to the sender based on the device ID, and registers the sender's device information in the certificate authority and the security control center.
[0071] Optionally, the license is structured in a way that specifically includes:
[0072] The certificate authority constructs the JSON payload based on the licensing information.
[0073] Among them, JSON is a lightweight data exchange format with good readability and compatibility, and is widely used in various systems and programming languages.
[0074] Sign the JSON payload to get the license signature. Combine the JSON payload and the license signature into a license.
[0075] In the present invention, signing the JSON payload can ensure that the license has not been tampered with during transmission and storage. Any modification to the license will cause the signature verification to fail, ensuring the integrity and reliability of the data. At the same time, the digital signature is generated by the private key of the certificate authority, and the recipient can use the corresponding public key to verify the signature, thereby confirming that the license is indeed issued by a trusted CA to prevent forgery and impersonation.
[0076] Furthermore, the license information includes: serial number, validity period, device information, signature algorithm identifier and public key information.
[0077] S3: The certificate authority forwards the hash block obtained by performing a hash operation on the data to be transmitted using the private key contained in the data sending request to the security control center.
[0078] S4: The security control center determines whether the hash block of the sender is valid. If so, the sender is allowed to be added to the blockchain. Otherwise, the sender is denied to be added to the blockchain.
[0079] Optionally, the digital signature verification method in the device registration process described above may be used to verify whether the hash block is valid. To avoid repetition, the present invention will not go into details.
[0080] In the present invention, through the collaboration between the certificate authority and the security control center, the data to be transmitted is hashed and the hash block is forwarded, which can significantly improve the security and integrity of data transmission. The double verification mechanism not only shares the computing tasks and improves the system efficiency, but also enhances the reliability and robustness of the system. This method ensures that only legal and untampered data can be added to the blockchain, improving the overall security and management efficiency of the blockchain communication system. Furthermore, the traffic and computing cost overhead caused by the unanimous consent of all nodes in the traditional blockchain are reduced. At the same time, the security control center is used as a trusted centralized verification node, which can improve the verification efficiency and reduce the computing and communication overhead in the consensus process. It is particularly suitable for environments with a large number of nodes and incomplete trust in each other, and improves the scalability and efficiency of the blockchain.
[0081] S5: Establish a communication link between the block represented by the sending end and the block represented by the receiving end.
[0082] S6: Based on the received signal strength, construct a link fingerprint of the communication link.
[0083] The received signal strength will change dynamically according to the physical environment, obstacles, reflections, multipath effects and other factors, making it unique at different times and locations. Since the received signal strength is greatly affected by the physical environment, it is difficult for an attacker to accurately forge or copy the same received signal strength, thereby increasing the security of the communication link.
[0084] In a possible implementation, the link fingerprint is constructed in the following manner:
[0085] The real-time received signal strength is converted into a binary value to form a received signal strength indication value.
[0086] The link indication value is encrypted using the public key of the sender, the public key of the receiver, and a pseudo-random number to form a link fingerprint:
[0087] in, LF represents the link fingerprint, RSSI Indicates the received signal strength indicator value. Q t Represents the public key of the sender. Q r Represents the public key of the receiving end, N represents a pseudo-random number, Represents the exclusive OR operation.
[0088] Among them, pseudo-random numbers are a sequence of numerical values generated by an algorithm. These numerical values behave like true random numbers in statistical properties, but are actually generated through a deterministic process. Pseudo-random numbers usually start with an initial value (seed) and are generated by recursion or other calculation methods. Pseudo-random numbers are widely used in many applications, including computer simulation, encryption, and statistical analysis. Pseudo-random numbers can be generated by a pseudo-random number generator.
[0089] In the present invention, the RSSI value is XORed with the public key of the sender, the public key of the receiver and the pseudo-random number. The multi-layer encryption increases the difficulty of cracking. Even if the attacker intercepts the RSSI value, the original information cannot be easily decrypted. At the same time, the public keys of the sender and the receiver are used for encryption to ensure that only the legitimate sender and the receiver can decode and use the link fingerprint to prevent third-party forgery or impersonation.
[0090] S7: When the sender sends the data to be transmitted through the communication link, the data to be transmitted is encrypted by the link fingerprint.
[0091] In a possible implementation, S7 specifically includes:
[0092] The data to be transmitted is concatenated with the link fingerprint.
[0093] Optionally, the link fingerprint may be concatenated at the beginning or end of the data to be transmitted.
[0094] Calculate the hash value of the concatenated data to be transmitted.
[0095] In the present invention, a dynamic link fingerprint of the communication link is constructed based on the received signal strength. During the data transmission process, the data to be transmitted is encrypted by the link fingerprint. Since the link fingerprint is generated based on the actual communication channel characteristics, it is very difficult to forge or reproduce. It can effectively avoid malicious tampering of data from the sending end to the receiving end, prevent man-in-the-middle attacks and data leakage, and enhance the security and anti-attack capability of the communication process.
[0096] S8: When the receiving end receives the data to be transmitted, it forwards the data to be transmitted to the security control center.
[0097] S9: The security control center determines whether the data to be transmitted is normal based on the link fingerprint. If so, a confirmation message is sent to the receiving end so that the receiving end accepts the data to be transmitted. Otherwise, a rejection message is sent to the receiving end so that the receiving end rejects the data to be transmitted.
[0098] In a possible implementation manner, the security control center in S9 determines whether the data to be transmitted is normal according to the link fingerprint, specifically including:
[0099] The data to be transmitted received by the receiving end is concatenated with the link fingerprint.
[0100] Calculate the hash value of the concatenated data to be transmitted.
[0101] Compare the hash value of the data to be transmitted sent by the sender and the hash value of the data to be transmitted received by the receiver to see if they are consistent. If so, determine that the data to be transmitted is normal. Otherwise, determine that the data to be transmitted is abnormal.
[0102] In the present invention, the hash value calculated after splicing the link fingerprint and the data to be transmitted can detect whether the data has been tampered with during the transmission process. Any modification to the data will cause a change in the hash value, so that data tampering can be discovered in time, ensuring that the data remains consistent during the transmission process and that the data received by the receiving end is consistent with the data sent by the sending end.
[0103] The beneficial effects brought about by the technical solution provided by the embodiment of the present invention include at least:
[0104] (1) In the present invention, the decision on whether to add a device to the blockchain is made through dual authentication by the certificate authority and the security control center, thereby ensuring the authenticity and legitimacy of the device identity, reducing the traffic and computing cost overhead caused by the need for unanimous agreement of all nodes in the traditional blockchain. At the same time, the security control center is used as a trusted centralized verification node, which can improve the verification efficiency and reduce the computing and communication overhead in the consensus process. It is particularly suitable for environments with a large number of nodes and incomplete mutual trust, thereby improving the scalability and efficiency of the blockchain.
[0105] (2) In the present invention, a dynamic link fingerprint of the communication link is constructed based on the received signal strength. During the data transmission process, the data to be transmitted is encrypted by the link fingerprint. Since the link fingerprint is generated based on the actual communication channel characteristics, it is very difficult to forge or reproduce. It can effectively avoid malicious tampering of data from the sender to the receiver, prevent man-in-the-middle attacks and data leakage, and enhance the security and anti-attack capability during the communication process.
[0106] Reference Manual Attached Figure 2 , showing a structural schematic diagram of a blockchain-based intelligent communication system provided by the present invention.
[0107] The present invention also provides a blockchain-based intelligent communication system 20, which is applied to the above-mentioned blockchain-based intelligent communication method, including:
[0108] Processor 201;
[0109] The memory 202 stores computer-readable instructions, and when the computer-readable instructions are executed by the processor 201, the blockchain-based intelligent communication method as described in the method embodiment is implemented.
[0110] The blockchain-based intelligent communication system 20 provided by the present invention can execute the above-mentioned blockchain-based intelligent communication method and achieve the same or similar technical effects. To avoid repetition, the present invention will not go into details.
[0111] The beneficial effects brought about by the technical solution provided by the embodiment of the present invention include at least:
[0112] (1) In the present invention, the decision on whether to add a device to the blockchain is made through dual authentication by the certificate authority and the security control center, thereby ensuring the authenticity and legitimacy of the device identity, reducing the traffic and computing cost overhead caused by the need for unanimous agreement of all nodes in the traditional blockchain. At the same time, the security control center is used as a trusted centralized verification node, which can improve the verification efficiency and reduce the computing and communication overhead in the consensus process. It is particularly suitable for environments with a large number of nodes and incomplete mutual trust, thereby improving the scalability and efficiency of the blockchain.
[0113] (2) In the present invention, a dynamic link fingerprint of the communication link is constructed based on the received signal strength. During the data transmission process, the data to be transmitted is encrypted by the link fingerprint. Since the link fingerprint is generated based on the actual communication channel characteristics, it is very difficult to forge or reproduce. It can effectively avoid malicious tampering of data from the sender to the receiver, prevent man-in-the-middle attacks and data leakage, and enhance the security and anti-attack capability during the communication process.
[0114] It should be understood that the processor in the embodiment of the present invention may be a central processing unit (CPU), and the processor may also be other general-purpose processors, digital signal processors (DSP), application specific integrated circuits (ASIC), field programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc.
[0115] It should also be understood that the memory in the embodiments of the present invention may be a volatile memory or a non-volatile memory, or may include both volatile and non-volatile memories. Among them, the non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may be a random access memory (RAM), which is used as an external cache. By way of example and not limitation, many forms of random access memory (RAM) are available, such as static RAM (SRAM), dynamic random access memory (DRAM), synchronous DRAM (SDRAM), double data rate synchronous dynamic random access memory (DDR SDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link DRAM (SLDRAM), and direct rambus RAM (DR RAM).
[0116] The above embodiments can be implemented in whole or in part by software, hardware (such as circuits), firmware or any other combination. When implemented by software, the above embodiments can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions or computer programs. When the computer instructions or computer programs are loaded or executed on a computer, the process or function described in the embodiment of the present invention is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from one website, computer, server or data center to another website, computer, server or data center by wired (such as infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device such as a server or data center that contains one or more available media sets. The available medium can be a magnetic medium (for example, a floppy disk, a hard disk, a tape), an optical medium (for example, a DVD), or a semiconductor medium. The semiconductor medium can be a solid-state hard disk.
[0117] It should be understood that the term "and / or" in this article is only a description of the association relationship of associated objects, indicating that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. A and B can be singular or plural. In addition, the character " / " in this article generally indicates that the associated objects before and after are in an "or" relationship, but it may also indicate an "and / or" relationship. Please refer to the context for specific understanding.
[0118] In the present invention, "at least one" means one or more, and "plurality" means two or more. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single items or plural items. For example, at least one of a, b, or c can mean: a, b, c, ab, ac, bc, or abc, where a, b, and c can be single or multiple.
[0119] It should be understood that in various embodiments of the present invention, the size of the serial numbers of the above-mentioned processes does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present invention.
[0120] Those skilled in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.
[0121] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the above-described equipment, devices and units can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0122] In the several embodiments provided by the present invention, it should be understood that the disclosed devices, apparatuses and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another device, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0123] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0124] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
[0125] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions for enabling a computer device (which can be a personal computer, server, or network device, etc.) to perform all or part of the steps of the methods described in various embodiments of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), disk or optical disk, and other media that can store program codes.
[0126] An embodiment of the present invention provides a computer-readable storage medium having a computer program stored thereon, characterized in that when the program is executed by a processor, the blockchain-based intelligent communication method as described in the method embodiment is implemented.
[0127] A computer-readable storage medium provided by the present invention can implement the steps and effects of the blockchain-based intelligent communication method of the above method embodiment. To avoid repetition, the present invention will not go into details.
[0128] The beneficial effects brought about by the technical solution provided by the embodiment of the present invention include at least:
[0129] (1) In the present invention, the decision on whether to add a device to the blockchain is made through dual authentication by the certificate authority and the security control center, thereby ensuring the authenticity and legitimacy of the device identity, reducing the traffic and computing cost overhead caused by the need for unanimous agreement of all nodes in the traditional blockchain. At the same time, the security control center is used as a trusted centralized verification node, which can improve the verification efficiency and reduce the computing and communication overhead in the consensus process. It is particularly suitable for environments with a large number of nodes and incomplete mutual trust, thereby improving the scalability and efficiency of the blockchain.
[0130] (2) In the present invention, a dynamic link fingerprint of the communication link is constructed based on the received signal strength. During the data transmission process, the data to be transmitted is encrypted by the link fingerprint. Since the link fingerprint is generated based on the actual communication channel characteristics, it is very difficult to forge or reproduce. It can effectively avoid malicious tampering of data from the sender to the receiver, prevent man-in-the-middle attacks and data leakage, and enhance the security and anti-attack capability during the communication process.
[0131] The above is only a specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any person skilled in the art can easily think of changes or substitutions within the technical scope disclosed by the present invention, which should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.
[0132] There are a few points to note:
[0133] (1) The drawings of the embodiments of the present invention only involve structures related to the embodiments of the present invention. Other structures may refer to conventional designs.
[0134] (2) For the sake of clarity, in the drawings used to describe the embodiments of the present invention, the thickness of layers or regions is exaggerated or reduced, that is, these drawings are not drawn according to the actual scale. It is understood that when an element such as a layer, film, region or substrate is referred to as being "on" or "under" another element, the element may be "directly" "on" or "under" the other element or there may be intermediate elements.
[0135] (3) In the absence of conflict, the embodiments of the present invention and the features therein may be combined with each other to obtain new embodiments.
[0136] The above are only specific embodiments of the present invention, but the protection scope of the present invention is not limited thereto. The protection scope of the present invention shall be based on the protection scope of the claims.
Claims
1. A smart communication method based on blockchain, It is characterized in that include: S1: Get the data sending request from the sender; S2: Determine whether the sending end has obtained a license issued by a certificate authority; If yes, proceed to S3; Otherwise, proceed with device registration; S3: The certificate issuing authority forwards the hash block obtained by performing a hash operation on the data to be transmitted using the private key contained in the data sending request to the security control center; S4: The security control center determines whether the hash block of the sender is valid; if so, the sender is allowed to be added to the blockchain; otherwise, the sender is refused to be added to the blockchain; S5: Establishing a communication link between the block represented by the sending end and the block represented by the receiving end; S6: constructing a link fingerprint of the communication link based on the received signal strength; S7: When the sending end sends the data to be transmitted through the communication link, the data to be transmitted is encrypted by using the link fingerprint; S8: When the receiving end receives the data to be transmitted, the receiving end forwards the data to be transmitted to the security control center; S9: The security control center determines whether the data to be transmitted is normal based on the link fingerprint; if so, sends a confirmation message to the receiving end so that the receiving end accepts the data to be transmitted; otherwise, sends a rejection message to the receiving end so that the receiving end rejects the data to be transmitted.
2. According to the blockchain-based intelligent communication method of claim 1, It is characterized in that The device registration method specifically includes: Obtain a device registration request, wherein the device registration request includes a device ID and a digital signature; The certificate issuing authority forwards the device registration request of the sender to the security control center; Verify whether the digital signature of the sender is legitimate by the security control center; if so, send a confirmation message to the certificate authority; otherwise, refuse to add the sender to the blockchain; The certificate issuing authority issues a license to the sender according to the confirmation message, allocates a public key to the sender with the device ID, and registers the device information of the sender in the certificate issuing authority and the security control center.
3. According to the blockchain-based intelligent communication method of claim 2, It is characterized in that The license is constructed in the following ways: The certificate authority constructs a JSON payload based on the license information; Signing the JSON payload to obtain a license signature; combining the JSON payload and the license signature into the license; The license information includes: serial number, validity period, device information, signature algorithm identifier and public key information.
4. According to the blockchain-based intelligent communication method of claim 2, It is characterized in that The method for generating the digital signature of the sender specifically includes: Generate a pair of private key and public key, the private key and public key satisfy: in, Q represents the public key, d pi Represents the private key, G represents the base point of the ellipse, , Indicates the base point coordinates; Calculate the hash value of the data to be transmitted: in, e represents the hash value of the data to be transmitted, Hash represents the hash function, and M represents the message to be sent; Randomly pick a random number k , calculate the point on the elliptic curve: in, Represents the coordinates of a point on an elliptic curve; Calculate the sender's digital signature: in, Represents a digital signature. n Represents the base point of an ellipse G The order of d pi Represents a private key.
5. According to the blockchain-based intelligent communication method of claim 4, It is characterized in that The security control center VCC verifies whether the digital signature of the sender is legal, specifically including: Get the public key of the sender Q , Messages to be sent And digital signature ; Check whether the digital signature satisfies: , ; If yes, proceed to the next step; otherwise, determine that the digital signature is illegal; where, n Represents the base point of an ellipse G The order of Calculate the hash value of the message to be sent: in, Represents the hash value of the message to be sent; Calculate auxiliary values: in, δ , u 1 as well as u 2 Indicates auxiliary value; Calculate the point on the elliptic curve using the public key and the base point: in, represents the coordinates of a point on the elliptic curve, G represents the base point of the ellipse, Q Represents a public key; Calculate the verification value: in, A Represents the verification value; judge A Is it equal to α ; If so, the digital signature is legal; otherwise, the digital signature is invalid.
6. The blockchain-based intelligent communication method according to claim 2, It is characterized in that The registering of the device information of the sender in the certificate issuing authority and the security control center specifically includes: registering the device information of the sender in a decentralized document; The security control center determines whether the hash block of the sender is valid, specifically: the security control center queries the decentralized document, obtains the public key of the sender, and uses the public key of the sender to determine whether the hash block of the sender is valid.
7. The blockchain-based intelligent communication method according to claim 1, It is characterized in that The link fingerprint construction method specifically includes: Convert the real-time received signal strength into a binary value to form a received signal strength indication value; The link indication value is encrypted using the public key of the sender, the public key of the receiver, and a pseudo-random number to form a link fingerprint: in, LF represents the link fingerprint, RSSI Indicates the received signal strength indicator value. Q t Represents the public key of the sender. Q r Represents the public key of the receiving end, N represents a pseudo-random number, Represents the exclusive OR operation.
8. According to the blockchain-based intelligent communication method of claim 1, It is characterized in that The S7 specifically includes: Performing splicing processing on the data to be transmitted and the link fingerprint; Calculate the hash value of the concatenated data to be transmitted.
9. According to the blockchain-based intelligent communication method of claim 8, It is characterized in that The security control center in S9 determines whether the data to be transmitted is normal according to the link fingerprint, specifically including: Splicing the data to be transmitted received by the receiving end with the link fingerprint; Calculate the hash value of the data to be transmitted after splicing; Compare whether the hash value of the data to be transmitted sent by the sender is consistent with the hash value of the data to be transmitted received by the receiver; if so, determine that the data to be transmitted is normal; otherwise, determine that the data to be transmitted is abnormal.
10. An intelligent communication system based on blockchain, It is characterized in that include: processor; A memory having computer-readable instructions stored thereon, wherein when the computer-readable instructions are executed by the processor, the blockchain-based intelligent communication method as described in any one of claims 1 to 9 is implemented.
