Social communication method, device, equipment and storage medium

By using private key signature encryption and P2P network transmission on the user terminal device, the user communication privacy exposure problem caused by centralized services is solved, decentralized communication is realized, and the user communication security is ensured.

CN116319640BActive Publication Date: 2024-12-03NETEASE (HANGZHOU) NETWORK CO LTD
View PDF 8 Cites 0 Cited by

Patent Information

Application Number
CN202310121206.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-02-09
Publication Date
2024-12-03
Estimated Expiration
2043-02-09

AI Technical Summary

Technical Problem

In the prior art, centralized services almost completely expose privacy to users' communication records, resulting in the inability to guarantee the privacy of users' communications.

Method used

By encrypting the communication message using private key signature on the user terminal device and transmitting it in the P2P network, the encrypted message is decrypted by the preset master node and sent to the slave node. The terminal device receives and displays it on the message interface of the target group. Avoid the intervention of the central server.

Benefits of technology

It realizes privacy protection during user communication, and through decentralized P2P network transmission, the leakage of communication messages is avoided and the security of users when using communication software is improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116319640B_ABST
    Figure CN116319640B_ABST
Patent Text Reader

Abstract

The present application provides a social communication method, device, equipment and storage medium, which relate to the field of communication technology. The method includes: after encrypting the communication message by private key signature, sending the encrypted communication message to a preset master node, so that the master node decrypts the encrypted communication message according to the public key and sends it to the slave node; receiving the decrypted communication message sent by the slave node; according to the group identifier in the communication message, displaying the communication message in the message interface of the target group corresponding to the group identifier. Compared with the prior art, it avoids the problem that the centralized service has the communication records of all users and almost completely exposes the privacy.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of data processing technology, and in particular to a social communication method, device, equipment and storage medium. Background Art

[0002] With the development of Internet technology, the Internet can be seen everywhere in people's lives and has become an indispensable part of people's lives. Through the Internet, people can communicate with friends far away in other places, play games, or check information online.

[0003] Communication software is an instant communication software based on the Internet and is widely used in people's lives. The earliest communication software was the Internet pager. This type of software allows people who use computers connected to the Internet to talk to another online netizen who is also connected to the Internet at any time, and even see the other party's real-time image through video. It allows people to communicate freely without worrying about expensive phone bills, and work and communicate at the same time.

[0004] However, this communication method requires all messages to be forwarded through a centralized service, which results in the centralized service having all users' communication records, almost completely exposing privacy. Summary of the invention

[0005] The purpose of this application is to provide a social communication method, device, equipment and storage medium to address the deficiencies in the above-mentioned prior art, so as to solve the problem in the prior art that centralized services have communication records of all users, almost completely exposing privacy.

[0006] To achieve the above purpose, the technical solution adopted in the embodiment of the present application is as follows:

[0007] In a first aspect, an embodiment of the present application provides a social communication method, which is applied to a user terminal device, and the method includes:

[0008] After encrypting the communication message through the private key signature, the encrypted communication message is sent to the preset master node, so that the master node decrypts the encrypted communication message according to the public key and sends it to the slave node;

[0009] Receiving the decrypted communication message sent by the slave node;

[0010] According to the group identifier in the communication message, the communication message is displayed in a message interface of the target group corresponding to the group identifier.

[0011] In a second aspect, another embodiment of the present application provides a social communication device, the device comprising: a sending module, a receiving module and a display module, wherein:

[0012] The sending module is used to encrypt the communication message through the private key signature and send the encrypted communication message to the preset master node, so that the master node decrypts the encrypted communication message according to the public key and sends it to the slave node;

[0013] The receiving module is used to receive the decrypted communication message sent by the slave node;

[0014] The display module is used to display the communication message in a message interface of a target group corresponding to the group identifier according to the group identifier in the communication message.

[0015] In a third aspect, another embodiment of the present application provides a social communication device, comprising: a processor, a storage medium and a bus, wherein the storage medium stores machine-readable instructions executable by the processor, and when the social communication device is running, the processor communicates with the storage medium via the bus, and the processor executes the machine-readable instructions to perform the steps of any method described in the first aspect above.

[0016] In a fourth aspect, another embodiment of the present application provides a storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the steps of any method described in the first aspect are executed.

[0017] The beneficial effect of the present application is as follows: by adopting the social communication method provided by the present application, in the process of transmitting communication messages, each user in the same target group encrypts the communication message by signing with the user's private key, and then sends the encrypted communication message to a preset master node; after the master node decrypts the encrypted communication message according to the public key, it sends it to the slave node; subsequently, the terminal device receives the decrypted communication message sent by the slave node, and then determines the target group corresponding to the communication message according to the group representation in the communication message, and displays the communication message in the message interface of the target group corresponding to the group identifier; in this communication method, since the communication between terminal devices is all based on a preset P2P network for the transmission of communication data, and does not involve a central server, the communication messages transmitted between terminal devices will not be leaked, thereby ensuring the security of users in the process of using the communication software. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.

[0019] Figure 1This is a schematic diagram of the structure of a social communication system according to an embodiment of the present application;

[0020] Figure 2 A flowchart of a social communication method provided by an embodiment of the present application;

[0021] Figure 3 A flowchart of a social communication method provided by another embodiment of the present application;

[0022] Figure 4 A flowchart of a social communication method provided by another embodiment of the present application;

[0023] Figure 5 A schematic diagram of the structure of a social communication device provided by an embodiment of the present application;

[0024] Figure 6 A schematic diagram of the structure of a social communication device provided by another embodiment of the present application;

[0025] Figure 7 A schematic diagram of the structure of a social communication device provided in one embodiment of the present application. DETAILED DESCRIPTION

[0026] In order to make the purpose, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below in combination with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments.

[0027] The components of the embodiments of the present application generally described and shown in the drawings herein may be arranged and designed in various configurations. Therefore, the following detailed description of the embodiments of the present application provided in the drawings is not intended to limit the scope of the application claimed for protection, but merely represents the selected embodiments of the present application. Based on the embodiments of the present application, all other embodiments obtained by those skilled in the art without making creative work belong to the scope of protection of the present application.

[0028] In addition, the flowchart used in this application shows the operations implemented according to some embodiments of the present application. It should be understood that the operations of the flowchart can be implemented out of order, and the steps without logical context can be reversed in order or implemented simultaneously. In addition, those skilled in the art can add one or more other operations to the flowchart under the guidance of the content of this application, and can also remove one or more operations from the flowchart.

[0029] Before introducing the communication method provided by this application, the architecture of the communication system designed by this application is first explained. Figure 1 This is a schematic diagram of the structure of a social communication system according to an embodiment of the present application. Figure 1As shown in the figure, the communication system mainly includes three modules: peer to peer (P2P) module, terminal equipment and blockchain, among which:

[0030] The p2p communication protocol (p2p network) is used to build a point-to-point communication channel. In the embodiment of the present application, a preset communication software is deployed, and the communication between users in the same target group is directly transmitted through the P2P network.

[0031] like Figure 1 As shown, the two users of terminal device 1 and terminal device 2 can directly complete the transmission of communication messages through the P2P network, thereby realizing the communication between the user of terminal device 1 and the user of terminal device 2. In the embodiment of the present application, the Kademlia distributed hash table is used to store the Ethereum node information; the nodes are interconnected, each node maintains a hash table, and each node is only connected to other 3 nodes to form a p2p communication network; in the embodiment of the present application, each node is a terminal device with communication software installed, that is, the terminal devices in the present application are connected through a P2P network. If any node is disconnected, the disconnected node will actively connect to the network and synchronize the latest messages; before the communication starts, the nodes will elect a master, and the master election method is the order in which the nodes join the network plus the network rate of each node.

[0032] Preset security detection tool: A preset security detection tool developed by the security department and built based on a preset non-secure vocabulary. It is deployed on each terminal device with preset communication software installed. It can perform security calculations on each communication message sent by the terminal device on the preset communication software based on the preset non-secure vocabulary on the terminal device to obtain security detection results for each communication message.

[0033] In an embodiment of the present application, the terminal device will calculate the zero-knowledge proof corresponding to the communication message based on the security calculation result.

[0034] Blockchain: Obtain the communication messages of each group that have security detection results of being unsafe, as well as the encrypted communication messages corresponding to each group, and store the encrypted communication messages corresponding to each group on the chain according to time periods. Any agreement that can be reached by any group can serve as the final credible evidence.

[0035] like Figure 1As shown, both terminal device 1 and terminal device 2 are installed with communication software, and the user corresponding to terminal device 1 and the user corresponding to terminal device 2 are in the same target group, and terminal device 1 and terminal device 2 can communicate with each other. In addition, each terminal device will perform security detection on the communication messages received and sent on the communication software based on the preset security detection tool, and upload the communication messages with unsafe security detection results to the blockchain. In addition, each terminal device will perform zero-knowledge proof on the communication messages received and sent on the communication software, so that in the event of subsequent disputes, evidence can be applied for based on zero-knowledge proof.

[0036] The following is an explanation of a social communication method provided in an embodiment of the present application in combination with a number of specific application examples. Figure 1 A flow chart of a social communication method provided in an embodiment of the present application is applied to a user terminal device, such as Figure 1 As shown, the method includes:

[0037] S101: After encrypting the communication message through a private key signature, the encrypted communication message is sent to a preset master node.

[0038] The master node decrypts the encrypted communication message according to the public key and sends it to the slave node.

[0039] In an embodiment of the present application, the transmission of communication data between each terminal device is transmitted through a P2P network. In the P2P network, every three nodes form a P2P communication network, and before the communication starts, a master node is selected among the three communication nodes based on the order of joining the network and the network rate. The preset master node in the present application is the communication node that has successfully elected the master. After receiving the encrypted communication message and decrypting it, the master node will send it to the other two slave nodes, and then the other two slave nodes will pass it to other communication nodes participating in the communication of the target group through the P2P network.

[0040] That is, by adopting the social communication method provided by the present application, there is no need for a centralized server, and communication messages can be transmitted directly between terminal devices based on a preset P2P network, thereby avoiding the problem that the communication messages of each terminal device are obtained by the centralized server during the communication process, resulting in the communication privacy of the users corresponding to each terminal device cannot be guaranteed.

[0041] S102: Receive the decrypted communication message sent from the node.

[0042] Among them, in an embodiment of the present application, if there are multiple encrypted communication messages to be sent, the preset master node decrypts each encrypted communication message to be sent sequentially according to the sending time of the multiple encrypted communication messages to be sent, and each decrypted communication message enters the message queue. Subsequently, the master node sends each communication message to a nearby node through a preset P2P network according to the message order of each communication message in the message queue, so that the nearby nodes can then propagate the communication message through the P2P network, so that each user in the target group can receive the communication message.

[0043] In the embodiments of the present application, since the communication messages in the target group are all transmitted through the P2P network, decentralized communication is achieved, avoiding the problem of user communication privacy being leaked due to centralized communication, and improving the privacy of user communication when using communication software.

[0044] S103: Displaying the communication message in a message interface of a target group corresponding to the group identifier according to the group identifier in the communication message.

[0045] like Figure 1 As shown, the message interfaces of terminal device 1 and terminal device 2 both display communication messages in the same target group, and each communication message is displayed in the order of the time when the message is sent, so that the user can intuitively view the communication messages sent by all users in the target group in the message interface.

[0046] By adopting the social communication method provided by the present application, in the process of transmitting communication messages, each user in the same target group encrypts the communication message by signing with the user's private key, and then sends the encrypted communication message to a preset master node. After the master node decrypts the encrypted communication message according to the public key, it sends it to the slave node. Subsequently, the terminal device receives the decrypted communication message sent by the slave node, and then determines the target group corresponding to the communication message according to the group representation in the communication message, and displays the communication message in the message interface of the target group corresponding to the group identifier. In this communication method, since the communication between terminal devices is all based on a preset P2P network for the transmission of communication data, and does not involve a central server, the communication messages transmitted between terminal devices will not be leaked, thereby ensuring the security of users in the process of using the communication software.

[0047] Optionally, based on the above embodiment, the embodiment of the present application may further provide a social communication method, and the implementation process of the above method is illustrated below in conjunction with the accompanying drawings. Figure 3 A flowchart of a social communication method provided by another embodiment of the present application is shown as follows: Figure 3 As shown, the method may also include:

[0048] S111: Perform security detection on each communication message based on a preset security detection tool to determine the security detection result of each communication message.

[0049] In an embodiment of the present application, the preset security detection tool is determined based on a non-safe vocabulary. The non-safe vocabulary may be, for example, a non-compliant vocabulary, such as a vocabulary involving financial vocabulary, or a vocabulary involving sensitive vocabulary, or a vocabulary involving uncivilized vocabulary. It should be understood that the above embodiment is only an exemplary description, and the word types and contents included in the specific non-compliant vocabulary can be flexibly adjusted according to user needs, and are not limited to those given in the above embodiment.

[0050] The preset security detection tool is used to perform compliance detection on each communication message. If a communication message involves words in the non-compliant vocabulary, or if a communication message contains words that are close or similar to those in the non-compliant vocabulary, then the communication message is determined to have failed the security detection. The security detection result of a communication message containing illegal words is unsafe.

[0051] In order to effectively store communication messages with unsafe detection results and ensure the immutability and reliability of the stored unsafe communication messages, in an embodiment of the present application, if the security detection result of the target communication message in each communication message is failed, the communication message with unsafe security detection result is sent to the preset secure blockchain.

[0052] In some possible embodiments, for a communication message whose security detection result is unsafe, in addition to reporting the communication message to the blockchain, a prompt message may be sent to the terminal device that sends the communication message, or to the terminal device that receives the communication message, indicating that the communication message is an unsafe communication message, so as to arouse the vigilance or attention of the corresponding user of the terminal device.

[0053] This method of uploading the communication messages with unsafe detection results to the chain ensures that the blockchain can store unsafe communication messages. Due to the unchangeable nature of the blockchain itself, it completely preserves the unsafe communication information as evidence for subsequent inquiries about unsafe communication messages. For communication messages with safe detection results, there is no need to upload them to the chain, thereby achieving secure monitoring of communication messages and storage of unsafe communication messages while ensuring the user's communication privacy.

[0054] In some possible embodiments, if the communication message is a voice message, the voice message may be first converted into a text message, and then the security detection result of the text message may be determined based on a preset non-security word library.

[0055] In some possible embodiments, if the communication message is an image, an emoticon package, a video, etc., the text message in the image, emoticon package, or video can be extracted through a preset image processing module, and then the security detection result of the text message can be determined based on a preset non-safe vocabulary library; it should be understood that the above embodiments are only exemplary descriptions, and the specific detection method of the communication message can be flexibly adjusted according to user needs, and is not limited to the above embodiments.

[0056] Among them, in order to ensure the comprehensiveness of security detection, the preset security detection tool can be updated, and its update method is: in response to the update operation of the non-safe vocabulary, the preset security detection tool is updated. Among them, in the embodiment of the present application, the maintenance of the non-safe vocabulary is maintained through the security monitoring system, so that the security detection department can ensure the comprehensiveness and iterativeness of security detection by continuously expanding or updating the non-safe vocabulary and synchronizing the updated non-safe vocabulary to each terminal device installed with communication software.

[0057] S112: If the security detection result of each communication message meets the preset zero-knowledge proof generation condition, a zero-knowledge proof corresponding to the communication message is generated according to each communication message and the security detection result of the communication message.

[0058] In some possible embodiments, the preset zero-knowledge proof generation condition may be, for example: when the number of security detection results reaches a preset number, it is determined that the preset zero-knowledge proof generation condition is met. For example, the preset number may be 100, that is, if 100 communication messages are currently security checked and 100 security detection results are determined, it is determined that the preset zero-knowledge proof generation condition is currently met; or, the zero-knowledge proof generation condition may also be triggered by time, for example, when the current time reaches the preset time, it is determined that the preset zero-knowledge proof generation condition is met. For example, it may be determined that 20:00 every day is the time for generating a zero-knowledge proof, then at 20:00 every day, it is determined that the preset zero-knowledge proof generation condition is met at this time; it should be understood that the above embodiments are only exemplary descriptions, and the setting of the specific zero-knowledge proof generation condition, the setting of the preset number or the setting of the preset time period can be flexibly adjusted according to user needs, and are not limited to those given in the above embodiments.

[0059] In the embodiments of the present application, each terminal device utilizes the generation of zero-knowledge proof to achieve communication security monitoring and reduce the big data computing costs invested by the security department.

[0060] Optionally, based on the above embodiment, the embodiment of the present application may further provide a social communication method, and the implementation process of the above method is illustrated below in conjunction with the accompanying drawings. Figure 4A flowchart of a social communication method provided by another embodiment of the present application is shown as follows: Figure 4 As shown, the method may also include:

[0061] S121: Send zero-knowledge proof to a preset secure blockchain.

[0062] So that the preset secure blockchain can verify the zero-knowledge proof.

[0063] Among them, blockchain, as a non-transferable ledger, can be used as a data ledger for public security proof, allowing users to extract information as evidence at any time. The receiving terminal device reports zero-knowledge proof regularly through preset security detection tools.

[0064] In an embodiment of the present application, for example, a security detection evidence corresponding to an encrypted communication message can be generated based on the message identification information of the encrypted communication message, the hash value of the Merkle tree root node corresponding to the encrypted communication message, and the zero-knowledge proof string information; the security detection evidence information is sent to a preset security blockchain, so that the preset security blockchain verifies the zero-knowledge proof string information based on the security detection evidence information.

[0065] Among them, the Merkle tree is generated in a manner, for example, by: summarizing the message packages corresponding to the encrypted communication messages of the target user in the target group according to the time period; constructing the Merkle tree corresponding to the target user under the target group, and determining the hash value of the Merkle tree root node; wherein the Merkle tree is used to store the message packages of the target user in the target group according to the time sequence.

[0066] In an embodiment of the present application, for example, a security information collection smart contract can be deployed on a blockchain to collect security verification evidence information of each communication message, as well as communication messages whose security detection results are unsafe. The design method of the preset security information collection smart contract can be, for example, as shown below. It should be understood that the following embodiments are only illustrative, and the specific design method of the preset security information collection smart contract can be flexibly adjusted according to user needs, and is not limited to the following embodiments.

[0067] contract InternelSecurityEvidence{

[0068] function upload security verification evidence information (message identification information, message Merkle tree root_hash, zero-knowledge proof string information) public returns (address) {}

[0069] }

[0070] The social communication method provided by the present application realizes decentralized communication between terminal devices through the setting of a P2P network structure, ensures the privacy of communication of terminal devices when using communication software, and uses zero-knowledge proof to call a preset security detection tool to generate security detection evidence, and sends the security detection evidence to the blockchain to realize verification of the security detection evidence on the blockchain. In addition, the preset security detection tool on the terminal device in the present application will also perform a security detection on each communication message. For communication messages with unsafe detection results, they will be sent to the blockchain for storage to realize unchangeable permanent evidence, which is convenient for subsequent search of each unsafe communication message on the blockchain as evidence. That is, the method provided by the present application can not only maintain the privacy of communication when users use communication software, but also realize communication security monitoring through the preset security detection tool, reduce the big data computing cost invested by the security department, and also realize subsequent automatic evidence collection by using the blockchain for evidence.

[0071] The following is an explanation of the social communication device provided by the present application in conjunction with the accompanying drawings. The social communication device can perform the above Figure 1-Figure 4 For any social communication method, its specific implementation and beneficial effects are as mentioned above and will not be described in detail below.

[0072] Figure 5 A schematic diagram of the structure of a social communication device provided in an embodiment of the present application is shown in FIG. Figure 5 As shown, the device includes: a sending module 201, a receiving module 202 and a display module 203, wherein:

[0073] The sending module 201 is used to encrypt the communication message through the private key signature and send the encrypted communication message to the preset master node, so that the master node decrypts the encrypted communication message according to the public key and sends it to the slave node;

[0074] The receiving module 202 is used to receive the decrypted communication message sent by the slave node;

[0075] The display module 203 is used to display the communication message in the message interface of the target group corresponding to the group identifier according to the group identifier in the communication message.

[0076] Optionally, based on the above embodiment, the embodiment of the present application may also provide a social communication device, as follows in conjunction with the accompanying drawings: Figure 5 The implementation process of the given device is described by way of example. Figure 6 A structural diagram of a social communication device provided by another embodiment of the present application is shown as follows: Figure 6 As shown, the device further includes: a determination module 204 and a generation module 205, wherein:

[0077] A determination module 204, configured to perform a security detection on each communication message based on a preset security detection tool, and determine a security detection result of each communication message;

[0078] The generation module 205 is used to generate a zero-knowledge proof corresponding to each communication message according to the security detection result of each communication message and the security detection result of the communication message if the security detection result of each communication message meets the preset zero-knowledge proof generation condition.

[0079] Optionally, the sending module 201 is specifically used to send a communication message with a security detection result of being unsafe to a preset secure blockchain if the security detection result of the target communication message in each communication message is failed.

[0080] Optionally, the sending module 201 is specifically used to send the zero-knowledge proof to a preset secure blockchain so that the preset secure blockchain verifies the zero-knowledge proof.

[0081] like Figure 6 As shown, the device further includes: an updating module 206, which is used to update the preset security detection tool in response to the update operation on the non-security word library.

[0082] Optionally, the determination module 204 is specifically configured to convert the voice message into a text message, and determine a security detection result of the text message according to a preset non-security word library.

[0083] Optionally, the generation module 205 generates a security detection evidence corresponding to the encrypted communication message according to the message identification information of the encrypted communication message, the hash value of the Merkle tree root node corresponding to the encrypted communication message, and the zero-knowledge proof string information;

[0084] The sending module 201 is specifically used to send security detection evidence information to a preset security blockchain, so that the preset security blockchain verifies the zero-knowledge proof string information based on the security detection evidence information.

[0085] Optionally, the determination module 204 is specifically used to summarize the message packages corresponding to the encrypted communication messages of the target user in the target group according to the time period; construct a Merkle tree corresponding to the target user under the target group, and determine the hash value of the Merkle tree root node; wherein the Merkle tree is used to store the message packages of the target user in the target group according to the time sequence.

[0086] The above-mentioned device is used to execute the method provided by the aforementioned embodiment, and its implementation principle and technical effect are similar, which will not be repeated here.

[0087] The above modules may be one or more integrated circuits configured to implement the above methods, such as one or more application specific integrated circuits (ASICs), or one or more microprocessors, or one or more field programmable gate arrays (FPGAs). For another example, when a module is implemented in the form of a processing element scheduling program code, the processing element may be a general-purpose processor, such as a central processing unit (CPU) or other processor that can call program code. For another example, these modules may be integrated together and implemented in the form of a system-on-a-chip (SOC).

[0088] Figure 7 This is a schematic diagram of the structure of a social communication device provided in an embodiment of the present application. The social communication device can be integrated into a terminal device or a chip of the terminal device.

[0089] like Figure 7 As shown, the social communication device includes: a processor 501 , a bus 502 and a storage medium 503 .

[0090] The processor 501 is used to store programs. The processor 501 calls the program stored in the storage medium 503 to execute the above Figure 1-Figure 4 The corresponding method embodiment has similar specific implementation methods and technical effects, which will not be described here.

[0091] Optionally, the present application also provides a program product, such as a storage medium, on which a computer program is stored, including a program that, when executed by a processor, executes an embodiment corresponding to the above method.

[0092] In the several embodiments provided in the present application, it should be understood that the disclosed devices 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 system, 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.

[0093] 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.

[0094] In addition, each functional unit in each embodiment of the present application 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. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of hardware plus software functional units.

[0095] The above-mentioned integrated unit implemented in the form of a software functional unit can be stored in a computer-readable storage medium. The above-mentioned software functional unit is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) or a processor (English: processor) to perform some steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (English: Read-Only Memory, abbreviated: ROM), random access memory (English: Random Access Memory, abbreviated: RAM), disk or optical disk and other media that can store program codes.

Claims

1. A social communication method, It is characterized in that Applied to a user terminal device, the method comprises: After encrypting the communication message through the private key signature, the encrypted communication message is sent to the preset master node, so that the master node decrypts the encrypted communication message according to the public key and sends it to the slave node; wherein a plurality of communication nodes form a P2P communication network, and the preset master node is selected from the plurality of communication nodes according to the order in which the plurality of communication nodes join the P2P communication network and the network rate of the P2P communication network; the communication data between the plurality of communication nodes is transmitted through the P2P communication network; the plurality of communication nodes are a plurality of terminal devices; Receiving the decrypted communication message sent by the slave node; According to the group identifier in the communication message, displaying the communication message in a message interface of a target group corresponding to the group identifier; The method further comprises: Performing security detection on each communication message based on a preset security detection tool to determine the security detection result of each communication message; If the security detection result of each of the communication messages meets the preset zero-knowledge proof generation condition, a zero-knowledge proof corresponding to each of the communication messages is generated according to each of the communication messages and the security detection result of each of the communication messages.

2. The method according to claim 1, It is characterized in that The method further comprises: If the security detection result of the target communication message in each of the communication messages is failed, a communication message with an unsafe security detection result is sent to a preset secure blockchain.

3. The method according to claim 1, It is characterized in that The method further comprises: The zero-knowledge proof is sent to a preset secure blockchain so that the preset secure blockchain verifies the zero-knowledge proof.

4. The method according to claim 1, It is characterized in that The method further comprises: In response to the update operation on the non-safe word library, the preset safety detection tool is updated.

5. The method according to claim 1, It is characterized in that If the communication message is a voice message, the step of performing a security check on each communication message based on a preset security check tool to determine a security check result of each communication message includes: The voice message is converted into a text message, and a security detection result of the text message is determined according to a non-security word library.

6. The method according to claim 3, It is characterized in that The method further comprises: Generate a security detection certificate corresponding to the encrypted communication message according to the message identification information of the encrypted communication message, the hash value of the Merkle tree root node corresponding to the encrypted communication message, and the zero-knowledge proof string information; The security detection evidence information is sent to the preset security blockchain, so that the preset security blockchain verifies the zero-knowledge proof string information based on the security detection evidence information.

7. The method according to claim 6, It is characterized in that Before generating the zero-knowledge proof corresponding to each communication message according to each communication message and the security detection result corresponding to each communication message, the method further includes: Summarize the message packets corresponding to the encrypted communication messages of the target user in the target group according to the time period; Construct a Merkle tree corresponding to the target user under the target group, and determine a hash value of a root node of the Merkle tree; wherein the Merkle tree is used to store message packets of the target user in the target group in chronological order.

8. A social communication device, It is characterized in that The device comprises: a sending module, a receiving module and a display module, wherein: The sending module is used to encrypt the communication message through the private key signature and then send the encrypted communication message to the preset master node, so that the master node decrypts the encrypted communication message according to the public key and sends it to the slave node; wherein a plurality of communication nodes form a P2P communication network, and the preset master node is selected from the plurality of communication nodes according to the order in which the plurality of communication nodes join the P2P communication network and the network rate of the P2P communication network; the communication data between the plurality of communication nodes is transmitted through the P2P communication network; the plurality of communication nodes are a plurality of terminal devices; The receiving module is used to receive the decrypted communication message sent by the slave node; The display module is used to display the communication message in a message interface of a target group corresponding to the group identifier according to the group identifier in the communication message; The device also includes: a determination module and a generation module; The determination module is used to perform security detection on each communication message based on a preset security detection tool to determine the security detection result of each communication message; The generation module is used to generate a zero-knowledge proof corresponding to each communication message according to each communication message and the security detection result of each communication message if the security detection result of each communication message meets the preset zero-knowledge proof generation condition.

9. A social communication device, It is characterized in that The device includes: a processor, a storage medium and a bus, the storage medium stores machine-readable instructions executable by the processor, and when the social communication device is running, the processor and the storage medium communicate through the bus, and the processor executes the machine-readable instructions to perform the method described in any one of claims 1 to 7.

10. A storage medium, It is characterized in that The storage medium stores a computer program, and when the computer program is executed by a processor, the method according to any one of claims 1 to 7 is executed.

Citation Information

Patent Citations

  • Blockchain-based instant messaging method and device based on

    CN109245993A

  • Instant messaging implementation method, terminal equipment and storage medium

    CN110035002A

  • Group chat implementation method based on P2P instant messaging

    CN110460453A

  • Federal learning platform, method and device based on distributed architecture and storage medium

    CN113923225A

  • Supply chain data sharing method and system based on block chain and authority management

    CN115208656A