Data security communication method and related equipment based on blockchain

By using smart contracts to issue communication certificates and key pairs on the blockchain, the certificate management problem that relies on third-party institutions in the existing technology is solved, and data communication security between multiple nodes and queryability of historical records is realized, improving the quality of data communication between multiple nodes. The security of data transmission and transaction efficiency are achieved.

CN114358765BActive Publication Date: 2024-11-19QINGDAO GUOGONG NEW DIAMOND MATERIAL TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111372201.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-11-18
Publication Date
2024-11-19
Estimated Expiration
2041-11-18

AI Technical Summary

Technical Problem

The existing communication technology encryption solution relies on third-party certificate agencies that are trusted globally, and cannot achieve multi-node joint recognition certificates, and the expiration and replacement of certificates cannot be found, resulting in insufficient data communication security and privacy protection.

Method used

Adopt blockchain-based data security communication method, issue communication certificates and key pairs through smart contracts, and use the public, tamper-free and traceable characteristics of blockchain to encrypt and decrypt data to ensure the security of data transmission, and to Communication processes and certificates are stored in the blockchain.

Benefits of technology

It realizes data communication security between multiple nodes, protects users' personal privacy from stolen and tampered, and improves transaction speed and convenience of data query, ensuring permanent storage and unchangeability of data.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114358765B_ABST
    Figure CN114358765B_ABST
Patent Text Reader

Abstract

The present application provides a data security communication method and related equipment based on blockchain, which issues communication certificates and key pairs to each participant in the communication through smart contracts. After each participant completes the communication, the communication process and communication information are stored in the blockchain. The blockchain technology is used to ensure the data communication security during the encrypted transmission process, and protect the user's personal privacy from being stolen and tampered with by others. At the same time, compared with traditional business processes, the data security communication method of the present application can realize faster transactions between users, saving users a lot of time, and the transaction information is permanently stored and cannot be changed, which provides convenience for later data query.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of blockchain technology, and in particular to a blockchain-based data security communication method and related equipment. Background Art

[0002] Data communication is a new communication method that is the result of the combination of communication technology and computer technology. To transmit information between two places, there must be a transmission channel. According to the different transmission media, it is divided into wired data communication and wireless data communication. Both of these communication methods connect data terminals with computers through transmission channels, so that data terminals in different locations can share software, hardware and information resources.

[0003] Blockchain can prove the existence of a file or digital content at a specific time through hash timestamps, ensuring that the information cannot be tampered with. That is, once the information is verified and added to the blockchain, it will be stored permanently. Unless more than 51% of the nodes in the system are controlled at the same time, the modification of the database on a single node is invalid. Because of this, the stability and reliability of blockchain data are very high. The public, tamper-proof and traceable characteristics of blockchain provide a perfect solution for data communication security. Blockchain can achieve data communication security for multi-party collaboration under the premise of protecting data privacy.

[0004] The existing communication technology encryption scheme uses the digital certificate signature TLS (Transport Layer Security) encryption scheme. The issuance of its certificates relies on a globally trusted third-party certificate authority. However, blockchain-based data communication cannot achieve multi-node co-recognition of certificates, and the expiration and replacement of certificates cannot be tracked in historical records. Summary of the invention

[0005] In view of this, the purpose of this application is to propose a data security communication method and related equipment based on blockchain.

[0006] Based on the above objectives, this application provides a data security communication method based on blockchain, including:

[0007] In response to determining that communication information sent by a first participant among multiple participants participating in the communication is received, the blockchain first encrypts the communication information by using a private key of the first participant, and sends the first encrypted communication information and the public key of the first participant to a first node in the blockchain;

[0008] In response to determining that the first encrypted communication information and the first party's public key are received, the first node forwards the first encrypted communication information and the first party's public key to a second node in the blockchain;

[0009] In response to determining that the second node receives the communication information encrypted by the first method and the public key of the first participant, the blockchain decrypts the communication information encrypted by the first method by retrieving the public key of the first participant, and sends the decrypted communication information to a second participant among the multiple participants participating in the communication;

[0010] In response to determining that the second participant has received the decrypted communication information, the blockchain stores the decrypted communication information and the communication certificate of the first participant in the blockchain and returns a hash value corresponding to the communication information.

[0011] Among them, the communication certificate is reviewed and issued by a smart contract pre-set in the blockchain.

[0012] Furthermore, the blockchain stores the decrypted communication information and the communication certificate of the first participant in the blockchain network, including:

[0013] The blockchain performs a second encryption on the decrypted communication information through the smart contract, and stores the second encrypted communication information and the communication certificate of the first participant in the blockchain.

[0014] Furthermore, in response to receiving a query request and a hash value sent by a node in the blockchain, the blockchain retrieves the communication information corresponding to the hash value based on the hash value; decrypts the communication information through the smart contract, and returns the decrypted communication information to the node.

[0015] Furthermore, the communication certificate is reviewed and issued by a smart contract pre-set in the blockchain, including:

[0016] In response to receiving a communication certificate request sent by one of the multiple parties, the smart contract verifies the identity of the party through a consensus algorithm;

[0017] In response to determining that the verification is passed, the blockchain issues the communication certificate and the key pair to the participant, and the key pair includes the public key and the private key.

[0018] Furthermore, the smart contract distributes the key pair to the participant in JSON (JavaScript Object Notation) data format.

[0019] Furthermore, the smart contract records the issuance and log of the communication certificate in the blockchain network.

[0020] Based on the same inventive concept, the present application also provides a data security communication device based on blockchain, including:

[0021] a data encryption module, configured to, in response to determining that communication information sent by a first participant among multiple participants participating in the communication is received, encrypt the communication information by using a private key of the first participant, and send the communication information after the first encryption and the public key of the first participant to a first node in the blockchain;

[0022] a data transmission module, configured to, in response to determining that the communication information encrypted by the first encryption and the public key of the first participant are received, forward the communication information encrypted by the first encryption and the public key of the first participant to a second node in the blockchain by the first node,

[0023] In response to determining that the second node receives the communication information encrypted by the first method and the public key of the first participant, the blockchain decrypts the communication information encrypted by the first method by retrieving the public key of the first participant, and sends the decrypted communication information to a second participant among the multiple participants participating in the communication;

[0024] a data storage module, configured to, in response to determining that the second participant receives the decrypted communication information, store the decrypted communication information and the communication certificate of the first participant in the blockchain and return a hash value corresponding to the communication information,

[0025] Among them, the communication certificate is reviewed and issued by a smart contract pre-set in the blockchain.

[0026] Furthermore, the data storage module is specifically configured so that the blockchain stores the decrypted communication information and the communication certificate of the first participant in the blockchain network, including:

[0027] The blockchain performs a second encryption on the decrypted communication information through the smart contract, and stores the second encrypted communication information and the communication certificate of the first participant in the blockchain.

[0028] Based on the same inventive concept, the present application also provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable by the processor, wherein the processor implements the method as described above when executing the computer program.

[0029] Based on the same inventive concept, the present application also provides a non-transitory computer-readable storage medium, which stores computer instructions, and the computer instructions are used to enable a computer to execute the method as described above.

[0030] From the above, it can be seen that the data security communication method and related equipment based on blockchain provided by this application issue communication certificates and key pairs to each participant in the communication through smart contracts. After each participant completes the communication, the communication process and communication information are stored in the blockchain. The blockchain technology is used to ensure the data communication security during the encrypted transmission process, and protect the user's personal privacy from being stolen and tampered with by others. At the same time, compared with traditional business processes, the data security communication method of this application can realize faster transactions between users, saving users a lot of time, and the transaction information is permanently stored and cannot be changed, which provides convenience for later data queries. BRIEF DESCRIPTION OF THE DRAWINGS

[0031] In order to more clearly illustrate the technical solutions in the present application or related technologies, the drawings required for use in the embodiments or related technical descriptions are briefly introduced below. Obviously, the drawings described below are only embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0032] Figure 1 A flowchart of a data security communication method based on blockchain according to an embodiment of the present application;

[0033] Figure 2 A schematic diagram of the communication certificate application process of the present application embodiment;

[0034] Figure 3 A schematic diagram of the process of storing communication information and returning hash values ​​in an embodiment of the present application;

[0035] Figure 4 This is a schematic diagram of the structure of a data security communication device based on blockchain according to an embodiment of the present application;

[0036] Figure 5 A schematic diagram of the structure of an electronic device according to an embodiment of the present application. DETAILED DESCRIPTION

[0037] In order to make the objectives, technical solutions and advantages of the present application more clearly understood, the present application is further described in detail below in combination with specific embodiments and with reference to the accompanying drawings.

[0038] It should be noted that, unless otherwise defined, the technical terms or scientific terms used in the embodiments of the present application should be understood by people with ordinary skills in the field to which the present application belongs. "Include" or "comprising" and similar words mean that the elements or objects appearing before the word include the elements or objects listed after the word and their equivalents, without excluding other elements or objects. "Connect" or "connected" and similar words are not limited to physical or mechanical connections, but may include electrical connections, whether direct or indirect.

[0039] As described in the background technology, there are two deficiencies in the current data security protection measures that urgently need to be improved. On the one hand, data integrity verification usually relies on a trusted third-party auditing agency. Data managers may maliciously impersonate a third-party auditing agency, resulting in data tampering without the user's knowledge, posing a threat to data integrity. On the other hand, data storage lacks reliable access record traceability. Although managers can trace access records through system operation logs, the cost of tampering with logs is low, the credibility of traceability results is not high, and users are unaware of the occurrence of data leakage incidents, posing a threat to user privacy. This application issues digital certificates for recognition to entities that communicate with each other through blockchain, and saves all records of certificate issuance and authentication processes.

[0040] The embodiments of the present application are described in detail below with reference to the accompanying drawings.

[0041] refer to Figure 1 , the present application provides a data security communication method based on blockchain, comprising the following steps:

[0042] Step S101: In response to determining that communication information sent by a first participant among multiple participants participating in the communication is received, the blockchain performs a first encryption on the communication information through a private key of the first participant, and sends the first encrypted communication information and the public key of the first participant to a first node in the blockchain.

[0043] Specifically, the participant participating in the communication transmits the communication information to be communicated to the blockchain. The participant has been pre-registered in the blockchain, and the blockchain generates a dedicated key pair for the participant. The participant first encrypts the communication information with its own private key, and sends the first encrypted communication information and its own public key to the first node in the blockchain. The first node is the communication node assigned to the participant after registering in the blockchain.

[0044] Step S102: In response to determining that the communication information that has undergone the first encryption and the public key of the first participant have been received, the first node forwards the communication information that has undergone the first encryption and the public key of the first participant to a second node in the blockchain.

[0045] Specifically, after receiving the first encrypted communication information and the public key of the first participant, the first node forwards them to the second node, which is the communication node corresponding to other participants participating in the communication. The communication information is sent from the first node to the second node, thereby completing the propagation of the communication information in the blockchain. This embodiment is for two parties to communicate, and the communication method when multiple parties communicate is the same as this embodiment, which will not be repeated here.

[0046] Step S103: In response to determining that the second node receives the communication information that has undergone the first encryption and the public key of the first participant, the blockchain decrypts the communication information that has undergone the first encryption by retrieving the public key of the first participant, and sends the decrypted communication information to a second participant among the multiple participants participating in the communication.

[0047] Specifically, when the second node receives the communication information encrypted by the first method and the public key of the first participant, the blockchain searches for the private key according to the public key to decrypt the communication information, and sends the decrypted communication information to the second participant. The encryption and decryption of the communication information are completed by the blockchain, and the first and second participants can complete the communication between the two parties without any operation, making the communication transaction between the two parties faster and more convenient, saving a lot of time for users.

[0048] Step S104: In response to determining that the second participant has received the decrypted communication information, the blockchain stores the decrypted communication information and the communication certificate of the first participant in the blockchain and returns a hash value corresponding to the communication information.

[0049] Among them, the communication certificate is reviewed and issued by a smart contract pre-set in the blockchain.

[0050] Specifically, after determining that the second participant has received the communication information, the blockchain network will store the communication process on the chain to ensure the security of the communication. The communication information and the communication certificate of the first participant are stored together in the blockchain, and the hash value is calculated by the hash algorithm and broadcast in the blockchain. All nodes in the blockchain can receive the hash value, which is the only credential for subsequent on-chain data query. The communication certificate is reviewed by the smart contract and issued to each participant involved in the communication. Issuing the communication certificate through the smart contract can avoid the introduction of a third-party organization, further ensuring the communication security between the participants.

[0051] Through the above method steps, rapid communication between the various participants in the communication can be achieved. At the same time, the blockchain is used to ensure that the communication process and communication data are not tampered with, thereby ensuring the data communication security of each participant.

[0052] In some embodiments, the blockchain stores the decrypted communication information and the communication certificate of the first participant in the blockchain network, including:

[0053] The blockchain performs a second encryption on the decrypted communication information through the smart contract, and stores the second encrypted communication information and the communication certificate of the first participant in the blockchain.

[0054] Specifically, the communication information is first encrypted by the private key of the first participant and then transmitted in the blockchain. The first encryption ensures the security of the communication information during transmission. After the blockchain receives the communication information that has been first encrypted, it retrieves the public key of the first participant to decrypt it and obtains the decrypted communication information. When the two participants complete the communication, the blockchain performs a second encryption on the communication information through a pre-established smart contract and stores it in the blockchain, ensuring the storage security of the communication information. The communication certificate of the first participant is also stored together with the communication information.

[0055] In some embodiments, in response to receiving a query request and a hash value sent by a node in the blockchain, the blockchain retrieves the communication information corresponding to the hash value based on the hash value; decrypts the communication information through the smart contract, and returns the decrypted communication information to the node.

[0056] Specifically, when a node in the blockchain needs to query data on the chain, it sends a hash value to the blockchain. The blockchain retrieves the communication information based on the hash value, decrypts the communication information through the smart contract, and then sends it to the node. The node can obtain the communication information without decrypting it.

[0057] like Figure 2 As shown, during the communication process, the nodes of the blockchain will first encrypt the communication information, and then store the communication information in the blockchain with the authorized communication certificate. The blockchain returns a Hash value, which can be used to query the data on the chain later.

[0058] In some embodiments, the communication certificate is reviewed and issued by a smart contract pre-set in the blockchain, including:

[0059] In response to receiving a communication certificate request sent by one of the multiple parties, the smart contract verifies the identity of the party through a consensus algorithm;

[0060] In response to determining that the verification is passed, the blockchain issues the communication certificate and the key pair to the participant, wherein the key pair includes the public key and the private key.

[0061] Specifically, the content of a smart contract is jointly established by multiple organizations or management agencies across multiple blockchains. Once a smart contract is established, the terms of the contract are fully accessible and visible to all parties involved. Developers write code for smart contracts, which can be used for any exchange between two or more parties. The code contains some conditions that will trigger the automatic execution of the contract. Once the coding is complete, the smart contracts are uploaded to the blockchain network, that is, they are sent to all devices connected to the network. Once the data is uploaded to all devices, users can reach an agreement with the results of executing the program code, update the database to record the execution of the contract, and monitor the terms of the contract to check compliance. In this way, a single party cannot manipulate the contract because control over the execution of the smart contract is not in the hands of any single party.

[0062] In this embodiment, multiple participants who want to participate in the communication need to pre-register in the blockchain and send a communication certificate request. After receiving the request, the blockchain triggers the smart contract, which will verify the identity of each participant through the consensus algorithm. The identity verification information is the unique information that can determine the identity of the participant, such as the organization ID, organization name or organization code. After the verification is passed, the blockchain will issue a communication certificate and key pair to the participant.

[0063] In the blockchain, each organization or institution manages one or more nodes. The nodes managed by these organizations or institutions can authorize ordinary nodes. When participants register nodes in the blockchain, any new node must be approved by all the nodes managed by these organizations or institutions before the authorized communication certificate can be issued. Figure 3 When a participant applies for authorization to a node in the blockchain network, they need to obtain the full consent of the management node before they can join the blockchain network through authorization. After successfully joining, the node will be distributed with an authorized communication certificate and key pair.

[0064] In some embodiments, the smart contract issues the key to the node in JSON (JavaScript Object Notation) data format. After the node is successfully registered, the blockchain will return the public key and private key to the user in the form of JSON data. JSON is a lightweight data exchange format that can improve network transmission efficiency.

[0065] In some embodiments, the smart contract records the issuance and log of the communication certificate in the blockchain network for later query.

[0066] In some embodiments, the content of the smart contract includes the storage format of the communication information in the blockchain and the encryption method of the communication information. The communication information is first encrypted by the smart contract before it is uploaded to the chain, and the communication information presented on the chain is encrypted by the smart contract.

[0067] Communication information in the blockchain network can be considered as not being "modified" and can only be "amended" through approved new transactions. The amendment process will leave traces to ensure that the communication information is not falsified and can leave irreversible evidence, thus protecting the security of the user data involved in the communication.

[0068] It should be noted that the method of the embodiment of the present application can be performed by a single device, such as a computer or server. The method of this embodiment can also be applied to a distributed scenario and completed by multiple devices cooperating with each other. In the case of such a distributed scenario, one of the multiple devices can only perform one or more steps in the method of the embodiment of the present application, and the multiple devices will interact with each other to complete the described method.

[0069] It should be noted that the above describes some embodiments of the present application. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the above embodiments and still achieve the desired results. In addition, the processes depicted in the accompanying drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.

[0070] Based on the same inventive concept, corresponding to any of the above-mentioned embodiment methods, the present application also provides a blockchain-based data security communication device.

[0071] refer to Figure 4 , the data security communication device based on blockchain includes:

[0072] The data encryption module 401 is configured to, in response to determining that communication information sent by a first participant among multiple participants participating in the communication is received, the blockchain first encrypts the communication information by using the private key of the first participant, and sends the first encrypted communication information and the public key of the first participant to a first node in the blockchain;

[0073] The data transmission module 402 is configured to, in response to determining that the communication information encrypted by the first encryption and the public key of the first participant are received, forward the communication information encrypted by the first encryption and the public key of the first participant to a second node in the blockchain by the first node,

[0074] In response to determining that the second node receives the communication information encrypted by the first method and the public key of the first participant, the blockchain decrypts the communication information encrypted by the first method by retrieving the public key of the first participant, and sends the decrypted communication information to a second participant among the multiple participants participating in the communication;

[0075] The data storage module 403 is configured to, in response to determining that the second participant receives the decrypted communication information, store the decrypted communication information and the communication certificate of the first participant in the blockchain and return a hash value corresponding to the communication information,

[0076] Among them, the communication certificate is reviewed and issued by a smart contract pre-set in the blockchain.

[0077] In some embodiments, the data storage module 403 is specifically configured so that the blockchain stores the decrypted communication information and the communication certificate of the first participant in the blockchain network, including:

[0078] The blockchain performs a second encryption on the decrypted communication information through the smart contract, and stores the second encrypted communication information and the communication certificate of the first participant in the blockchain.

[0079] For the convenience of description, the above device is described in terms of functions divided into various modules. Of course, when implementing the present application, the functions of each module can be implemented in the same or multiple software and / or hardware.

[0080] The device of the above-mentioned embodiment is used to implement the corresponding blockchain-based data security communication method in any of the above-mentioned embodiments, and has the beneficial effects of the corresponding method embodiments, which will not be repeated here.

[0081] Based on the same inventive concept, corresponding to any of the above-mentioned embodiments and methods, the present application also provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the blockchain-based data security communication method described in any of the above embodiments is implemented.

[0082] Figure 5 A more specific schematic diagram of the hardware structure of an electronic device provided in this embodiment is shown, and the device may include: a processor 1010, a memory 1020, an input / output interface 1030, a communication interface 1040, and a bus 1050. The processor 1010, the memory 1020, the input / output interface 1030, and the communication interface 1040 are connected to each other through the bus 1050 in the device.

[0083] The processor 1010 can be implemented by a general-purpose CPU (Central Processing Unit), a microprocessor, an application-specific integrated circuit (ASIC), or one or more integrated circuits, and is used to execute relevant programs to implement the technical solutions provided in the embodiments of this specification.

[0084] The memory 1020 may be implemented in the form of ROM (Read Only Memory), RAM (Random Access Memory), static storage device, dynamic storage device, etc. The memory 1020 may store an operating system and other application programs. When the technical solutions provided in the embodiments of this specification are implemented by software or firmware, the relevant program codes are stored in the memory 1020 and are called and executed by the processor 1010.

[0085] The input / output interface 1030 is used to connect the input / output module to realize information input and output. The input / output module can be configured in the device as a component (not shown in the figure), or it can be externally connected to the device to provide corresponding functions. The input device may include a keyboard, a mouse, a touch screen, a microphone, various sensors, etc., and the output device may include a display, a speaker, a vibrator, an indicator light, etc.

[0086] The communication interface 1040 is used to connect a communication module (not shown) to realize communication interaction between the device and other devices. The communication module can realize communication through a wired mode (such as USB, network cable, etc.) or a wireless mode (such as mobile network, WIFI, Bluetooth, etc.).

[0087] The bus 1050 includes a path that transmits information between the various components of the device (eg, the processor 1010, the memory 1020, the input / output interface 1030, and the communication interface 1040).

[0088] It should be noted that, although the above device only shows the processor 1010, the memory 1020, the input / output interface 1030, the communication interface 1040 and the bus 1050, in the specific implementation process, the device may also include other components necessary for normal operation. In addition, it can be understood by those skilled in the art that the above device may also only include the components necessary for implementing the embodiments of the present specification, and does not necessarily include all the components shown in the figure.

[0089] The electronic device of the above-mentioned embodiment is used to implement the corresponding blockchain-based data security communication method in any of the above-mentioned embodiments, and has the beneficial effects of the corresponding method embodiment, which will not be repeated here.

[0090] Based on the same inventive concept, corresponding to any of the above-mentioned embodiment methods, the present application also provides a non-transitory computer-readable storage medium, wherein the non-transitory computer-readable storage medium stores computer instructions, and the computer instructions are used to enable the computer to execute the blockchain-based data security communication method as described in any of the above embodiments.

[0091] The computer-readable medium of this embodiment includes permanent and non-permanent, removable and non-removable media, and information storage can be implemented by any method or technology. Information can be computer-readable instructions, data structures, modules of programs, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, read-only compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device.

[0092] The computer instructions stored in the storage medium of the above embodiment are used to enable the computer to execute the blockchain-based data security communication method described in any of the above embodiments, and have the beneficial effects of the corresponding method embodiments, which will not be repeated here.

[0093] Those skilled in the art should understand that the discussion of any of the above embodiments is merely illustrative and is not intended to imply that the scope of the present application (including the claims) is limited to these examples. In line with the concept of the present application, the technical features in the above embodiments or different embodiments may be combined, the steps may be implemented in any order, and there are many other variations of the different aspects of the embodiments of the present application as described above, which are not provided in detail for the sake of simplicity.

[0094] In addition, to simplify the description and discussion, and in order not to make the embodiments of the present application difficult to understand, the known power supply / ground connection with the integrated circuit (IC) chip and other components may or may not be shown in the provided drawings. In addition, the device can be shown in the form of a block diagram to avoid making the embodiments of the present application difficult to understand, and this also takes into account the fact that the details of the implementation of these block diagram devices are highly dependent on the platform to be implemented in the embodiments of the present application (that is, these details should be fully within the scope of understanding of those skilled in the art). In the case of elaborating specific details (e.g., circuits) to describe exemplary embodiments of the present application, it is obvious to those skilled in the art that the embodiments of the present application can be implemented without these specific details or when these specific details are changed. Therefore, these descriptions should be considered to be illustrative rather than restrictive.

[0095] Although the present application has been described in conjunction with specific embodiments of the present application, many replacements, modifications and variations of these embodiments will be apparent to those skilled in the art from the foregoing description. For example, other memory architectures (e.g., dynamic RAM (DRAM)) may use the embodiments discussed.

[0096] The embodiments of the present application are intended to cover all such substitutions, modifications and variations that fall within the broad scope of the appended claims. Therefore, any omissions, modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the embodiments of the present application should be included in the scope of protection of the present application.

Claims

1. A data security communication method based on blockchain, characterized in that: include: In response to determining that communication information sent by a first participant among multiple participants participating in the communication is received, the blockchain first encrypts the communication information by using a private key of the first participant, and sends the first encrypted communication information and the public key of the first participant to a first node in the blockchain; In response to determining that the first encrypted communication information and the first party's public key are received, the first node forwards the first encrypted communication information and the first party's public key to a second node in the blockchain; In response to determining that the second node receives the communication information encrypted by the first method and the public key of the first participant, the blockchain decrypts the communication information encrypted by the first method by retrieving the public key of the first participant, and sends the decrypted communication information to a second participant among the multiple participants participating in the communication; In response to determining that the second participant has received the decrypted communication information, the blockchain stores the decrypted communication information and the communication certificate of the first participant in the blockchain and returns a hash value corresponding to the communication information. Among them, the communication certificate is reviewed and issued by a smart contract pre-set in the blockchain.

2. The data security communication method based on blockchain according to claim 1 is characterized in that: The blockchain stores the decrypted communication information and the communication certificate of the first participant in the blockchain network, including: The blockchain performs a second encryption on the decrypted communication information through the smart contract, and stores the second encrypted communication information and the communication certificate of the first participant in the blockchain.

3. The data security communication method based on blockchain according to claim 2 is characterized in that: Also includes: In response to receiving a query request and a hash value sent by a node in the blockchain, the blockchain retrieves communication information corresponding to the hash value based on the hash value; The communication information is decrypted by the smart contract, and the decrypted communication information is returned to the node.

4. The data security communication method based on blockchain according to claim 1 is characterized in that: The communication certificate is reviewed and issued by a pre-set smart contract in the blockchain, including: In response to receiving a communication certificate request sent by one of the multiple parties, the smart contract verifies the identity of the party through a consensus algorithm; In response to determining that the verification is passed, the blockchain issues the communication certificate and the key pair to the participant, and the key pair includes the public key and the private key.

5. The data security communication method based on blockchain according to claim 4 is characterized in that: Also includes: The smart contract distributes the key pair to the participants in JSON (JavaScript Object Notation) data format.

6. The data security communication method based on blockchain according to claim 1 is characterized in that: Also includes: The smart contract records the issuance and log of the communication certificate in the blockchain network.

7. A data security communication device based on blockchain, characterized in that: include: a data encryption module, configured to, in response to determining that communication information sent by a first participant among multiple participants participating in the communication is received, encrypt the communication information by using a private key of the first participant, and send the communication information after the first encryption and the public key of the first participant to a first node in the blockchain; a data transmission module, configured to, in response to determining that the communication information encrypted by the first encryption and the public key of the first participant are received, forward the communication information encrypted by the first encryption and the public key of the first participant to a second node in the blockchain by the first node, In response to determining that the second node receives the communication information encrypted by the first method and the public key of the first participant, the blockchain decrypts the communication information encrypted by the first method by retrieving the public key of the first participant, and sends the decrypted communication information to a second participant among the multiple participants participating in the communication; a data storage module, configured to, in response to determining that the second participant receives the decrypted communication information, store the decrypted communication information and the communication certificate of the first participant in the blockchain and return a hash value corresponding to the communication information, Among them, the communication certificate is reviewed and issued by a smart contract pre-set in the blockchain.

8. The data security communication device based on blockchain according to claim 7 is characterized in that: The data storage module is specifically configured to enable the blockchain to store the decrypted communication information and the communication certificate of the first participant in the blockchain network, including: The blockchain performs a second encryption on the decrypted communication information through the smart contract, and stores the second encrypted communication information and the communication certificate of the first participant in the blockchain.

9. An electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable by the processor, wherein the processor implements the method according to any one of claims 1 to 6 when executing the computer program. 10 . A non-transitory computer-readable storage medium storing computer instructions, wherein the computer instructions are used to cause a computer to execute the method according to claim 1 .