CN113595877B - Instant communication method based on block chain - Google Patents

Instant communication method based on block chain Download PDF

Info

Publication number
CN113595877B
CN113595877B CN202110837520.8A CN202110837520A CN113595877B CN 113595877 B CN113595877 B CN 113595877B CN 202110837520 A CN202110837520 A CN 202110837520A CN 113595877 B CN113595877 B CN 113595877B
Authority
CN
China
Prior art keywords
user
instant messaging
receiving user
server
communication information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202110837520.8A
Other languages
Chinese (zh)
Other versions
CN113595877A (en
Inventor
王保春
张蛟鹏
余洋
莫恒
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Jiaqiao Shenzhen Investment Co ltd
Original Assignee
Yongqi Beijing Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Yongqi Beijing Technology Co Ltd filed Critical Yongqi Beijing Technology Co Ltd
Priority to CN202110837520.8A priority Critical patent/CN113595877B/en
Publication of CN113595877A publication Critical patent/CN113595877A/en
Application granted granted Critical
Publication of CN113595877B publication Critical patent/CN113595877B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/04Real-time or near real-time messaging, e.g. instant messaging [IM]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/14Error detection or correction of the data by redundancy in operation
    • G06F11/1402Saving, restoring, recovering or retrying
    • G06F11/1446Point-in-time backing up or restoration of persistent data
    • G06F11/1448Management of the data involved in backup or backup restore
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/602Providing cryptographic facilities or services
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/04Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks
    • H04L63/0428Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks wherein the data content is protected, e.g. by encrypting or encapsulating the payload
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/08Network architectures or network communication protocols for network security for authentication of entities
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/1066Session management
    • H04L65/1073Registration or de-registration
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/50Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols using hash chains, e.g. blockchains or hash trees

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Physics & Mathematics (AREA)
  • Computing Systems (AREA)
  • General Physics & Mathematics (AREA)
  • Health & Medical Sciences (AREA)
  • Information Transfer Between Computers (AREA)
  • Software Systems (AREA)
  • Multimedia (AREA)
  • General Health & Medical Sciences (AREA)
  • Bioethics (AREA)
  • General Business, Economics & Management (AREA)
  • Quality & Reliability (AREA)
  • Telephonic Communication Services (AREA)
  • Business, Economics & Management (AREA)

Abstract

The invention provides an instant messaging method based on a block chain, which comprises the following steps: the method comprises the steps that a user registers at a management node for subsequent communication, a sending user generates communication information and sends the communication information to the management node, the management node obtains an identification of a receiving user, whether the receiving user is a registered user is judged according to the identification of the receiving user, if the receiving user is not the registered user, the operation is stopped, if the receiving user is the registered user, whether instant communication applications of the sending user and the receiving user are the same is judged, if the instant communication applications are the same, communication information is encrypted, the communication information is sent to the receiving user through a domain instant communication server, if the instant communication applications are different, the communication information is sent to the receiving user through the domain instant communication server of the receiving user, and the encrypted communication information is decrypted by the receiving user. The instant messaging method based on the block chain can solve the problem that personal information of a user is leaked by a traditional instant messaging method, and can realize interaction among different instant messaging applications.

Description

Instant messaging method based on block chain
Technical Field
The present invention relates to the field of block chain technology, and in particular, to an instant messaging method based on a block chain.
Background
With the continuous development of internet technology, instant messaging through the internet becomes an essential important part in daily life of people. The method has the advantages that characters, documents, voice and videos can be transmitted in real time to communicate among a plurality of users through the Internet, and the real-time communication provides great convenience for daily life, work and study. The existing instant messaging tools have serious defects though having huge user groups, and as the instant messaging tools are widely applied, the danger that personal privacy or information is leaked exists, the existing instant messaging tools mainly use a centralized platform, the situations that the information is tampered, deleted and maliciously attacked exist, and the personal privacy and the communication information safety of users are seriously threatened. Moreover, in the existing life, users using different instant messaging applications cannot communicate with each other, and in order to realize interaction through the instant messaging applications, both users have to download and use the same instant messaging application, which is very inconvenient and causes poor user experience. Therefore, it is necessary to design an instant messaging method based on block chains.
Disclosure of Invention
The invention aims to provide an instant messaging method based on a block chain, which can solve the problem that personal information of a user is leaked by a traditional instant messaging method, improve the safety of instant messaging, realize interaction among different instant messaging applications and facilitate the use of the user.
In order to achieve the purpose, the invention provides the following scheme:
an instant messaging method based on a block chain is applied to an instant messaging system based on the block chain, the system comprises a management node and a plurality of domain instant messaging servers, the plurality of domain instant messaging servers correspond to a plurality of instant messaging applications, and the management node is used for receiving and processing information of the domain instant messaging servers;
the method comprises the following steps:
step 1: a user sends a registration request to a management node through a domain instant messaging server, the management node responds to the registration request to execute registration processing aiming at the user, registers the user as a registered user, records relevant information of the user and writes the information into a block chain;
and 2, step: a sending user generates communication information, encrypts the communication information, sends the encrypted communication information to a management node through a domain instant communication server, the management node acquires the encrypted communication information and decrypts the encrypted communication information, acquires an identifier of a receiving user according to the decrypted communication information, judges whether the receiving user is a registered user according to the identifier of the receiving user, cancels the transmission of the communication information if the receiving user is not the registered user, and feeds back communication failure to the sending user;
and 3, step 3: if the receiving user is a registered user, judging whether the instant messaging application of the sending user is the same as the instant messaging application of the receiving user according to the communication information, if so, encrypting the decrypted communication information, and sending the encrypted communication information to the receiving user through a domain instant messaging server;
and 4, step 4: if the instant messaging application of the sending user is different from the instant messaging application of the receiving user, the management node encrypts the communication information and sends the encrypted communication information to the receiving user through a domain instant messaging server corresponding to the instant messaging application of the receiving user;
and 5: and the receiving user decrypts the encrypted communication information.
Optionally, in step 1, the user sends a registration request to the management node through the domain instant messaging server, and the management node executes registration processing for the user in response to the registration request, registers the user as a registered user, records relevant information of the user, and writes the relevant information into the block chain, specifically:
the user sends a registration request to a management node through a domain instant messaging server, wherein the registration request comprises identity information of the user, the management node generates a unique identifier and an asymmetric key pair for the user according to the identity information of the user, the asymmetric key pair comprises a public key and a private key, the identifier and the asymmetric key are sent to the user, the management node records a server identifier of the domain instant messaging server, the server identifier corresponds to the domain instant messaging server and an instant messaging application, the identity information, the identifier and the server identifier of the user are encrypted through the symmetric key of the management node, and the encrypted server identifier and the server identifier are written into a block chain to complete the registration of the user.
Optionally, in step 2, the sending user generates and encrypts communication information, sends the encrypted communication information to the management node through the domain instant messaging server, the management node obtains and decrypts the encrypted communication information, obtains an identifier of the receiving user according to the decrypted communication information, determines whether the receiving user is a registered user according to the identifier of the receiving user, and cancels the transmission of the communication information if the receiving user is not a registered user, and feeds back a communication failure to the sending user, specifically:
the method comprises the steps that a sending user generates communication information according to requirements, a public key of the sending user is obtained, the communication information is encrypted through the public key, the encrypted communication information and the public key of the sending user are sent to a management node through a domain instant messaging server, the management node obtains a private key of the sending user according to the public key of the sending user, the encrypted communication information is decrypted through the private key of the sending user, the communication information comprises an identification of a receiving user, an identification of the sending user and communication content, the management node judges whether the receiving user is a registered user or not according to the identification of the receiving user, if the receiving user is not the registered user, transmission of the communication information is stopped, and communication failure is fed back to the sending user.
Optionally, in step 3, if the receiving user is a registered user, determining whether the instant messaging application of the sending user is the same as the instant messaging application of the receiving user according to the communication information, if so, encrypting the decrypted communication information, and sending the encrypted communication information to the receiving user through the domain instant messaging server, specifically:
if the receiving user is judged to be the registered user, acquiring a public key of the receiving user and a server identification of the receiving user according to the identification of the receiving user, acquiring a server identification of the sending user according to the identification of the sending user, judging whether the server identification of the receiving user is the same as the server identification of the sending user or not, if so, judging that the instant messaging application of the sending user is the same as the instant messaging application of the receiving user, encrypting the communication content through the public key of the receiving user, sending the encrypted communication content to the instant messaging application of the receiving user through a domain instant messaging server corresponding to the server identification, encrypting the encrypted communication content, the public key of the receiving user and the server identifications of the receiving user and the sending user through a symmetric key, and writing the encrypted communication content, the public key of the receiving user and the server identifications of the receiving user and the sending user into a block chain as a backup record.
Optionally, in step 4, if the instant messaging application of the sending user is different from the instant messaging application of the receiving user, the management node sends the encrypted communication information to the receiving user through the domain instant messaging server corresponding to the instant messaging application of the receiving user, which specifically includes:
if the instant messaging application of the sending user is judged to be different from the instant messaging application of the receiving user, the communication content is encrypted through the public key of the receiving user, the management node sends the encrypted communication content to the instant messaging application of the receiving user through the domain instant messaging server corresponding to the server identification of the receiving user, the encrypted communication content, the public key of the receiving user, the server identification of the receiving user and the server identification of the sending user are encrypted through the symmetric key, and the encrypted communication content, the public key of the receiving user, the server identification of the receiving user and the server identification of the sending user are written into the block chain as backup records.
Optionally, in step 5, the receiving user decrypts the encrypted communication information, specifically:
and the receiving user acquires the private key of the receiving user, and the encrypted communication content is decrypted through the private key to obtain the communication content.
According to the specific embodiment provided by the invention, the invention discloses the following technical effects: the invention provides an instant communication method based on a block chain, which comprises the steps that a user sends a registration request to a management node through a domain instant communication server, the management node responds to the registration request to execute registration processing aiming at the user, registers the user as a registered user, records relevant information of the user and writes the information into the block chain; the sending user generates communication information, encrypts the communication information, sends the encrypted communication information to a management node through a domain instant messaging server, the management node acquires the encrypted communication information and decrypts the encrypted communication information, acquires an identifier of a receiving user according to the decrypted communication information, judges whether the receiving user is a registered user or not according to the identifier of the receiving user, cancels the transmission of the communication information if the receiving user is not the registered user, and feeds back communication failure to the sending user; if the receiving user is a registered user, judging whether the instant messaging application of the sending user is the same as the instant messaging application of the receiving user according to the communication information, if so, encrypting the decrypted communication information, and sending the encrypted communication information to the receiving user through a domain instant messaging server; if the instant messaging application of the sending user is different from the instant messaging application of the receiving user, the management node encrypts the communication information and sends the encrypted communication information to the receiving user through a domain instant messaging server corresponding to the instant messaging application of the receiving user; the receiving user decrypts the encrypted communication information; the method can realize the mutual communication among different instant messaging applications through the management node, is convenient for a user to use, ensures the safety of the communication information because the communication information is in an encrypted state in the transmission process, prevents the communication information from being leaked, and can check the communication information because the transmission information of the communication information is provided with backup records and is stored in a block chain.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings needed to be used in the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings without inventive exercise.
Fig. 1 is a schematic flow chart of an instant messaging method based on a block chain according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The invention aims to provide an instant messaging method based on a block chain, which can solve the problem that personal information of a user is leaked by a traditional instant messaging method, improve the safety of instant messaging, realize interaction among different instant messaging applications and facilitate the use of the user.
In order to make the aforementioned objects, features and advantages of the present invention comprehensible, embodiments accompanied with figures are described in further detail below.
As shown in fig. 1, an instant messaging method based on a block chain according to an embodiment of the present invention is applied to an instant messaging system based on a block chain, where the system includes a management node and multiple domain instant messaging servers, where multiple domain instant messaging servers correspond to multiple instant messaging applications, the management node is configured to receive and process information of the domain instant messaging servers, and the system further includes a mobile terminal, where the mobile terminal is configured to set multiple instant messaging applications;
the method comprises the following steps:
step 1: a user sends a registration request to a management node through a domain instant messaging server, the management node responds to the registration request to execute registration processing aiming at the user, registers the user as a registered user, records relevant information of the user and writes the information into a block chain;
step 2: the sending user generates communication information, encrypts the communication information, sends the encrypted communication information to a management node through a domain instant messaging server, the management node acquires the encrypted communication information and decrypts the encrypted communication information, acquires an identifier of a receiving user according to the decrypted communication information, judges whether the receiving user is a registered user or not according to the identifier of the receiving user, cancels the transmission of the communication information if the receiving user is not the registered user, and feeds back communication failure to the sending user;
and step 3: if the receiving user is a registered user, judging whether the instant messaging application of the sending user is the same as the instant messaging application of the receiving user according to the communication information, if so, encrypting the decrypted communication information, and sending the encrypted communication information to the receiving user through a domain instant messaging server;
and 4, step 4: if the instant messaging application of the sending user is different from the instant messaging application of the receiving user, the management node encrypts the communication information and sends the encrypted communication information to the receiving user through a domain instant messaging server corresponding to the instant messaging application of the receiving user;
and 5: and the receiving user decrypts the encrypted communication information.
The system can also comprise a management node, a central server and a plurality of middle-domain instant messaging servers, wherein the central server can be in communication connection with the plurality of domain instant messaging servers, so that the various domain instant messaging servers can send respective corresponding data to the central server, the data sharing is realized through the central server, the interaction among the instant messaging servers in different domains is realized through the central server, and the management node can realize the communication interaction among different instant messaging applications through controlling the central server.
In step 1, a user sends a registration request to a management node through a domain instant messaging server, the management node responds to the registration request to execute registration processing aiming at the user, registers the user as a registered user, records relevant information of the user, and writes the relevant information into a block chain, specifically:
the user sends a registration request to a management node through a domain instant messaging server, wherein the registration request comprises identity information of the user, the management node generates a unique identifier and an asymmetric key pair for the user according to the identity information of the user, the asymmetric key pair comprises a public key and a private key, the identifier and the asymmetric key are sent to the user, the management node records a server identifier of the domain instant messaging server, the server identifier corresponds to the domain instant messaging server and an instant messaging application, the identity information, the identifier and the server identifier of the user are encrypted through the symmetric key of the management node, and the encrypted server identifier and the server identifier are written into a block chain to complete the registration of the user.
When a user registers in an instant messaging server of a certain domain, the management node may allocate a unique system identifier to each user in the entire instant messaging system to represent the identity of the user in the instant messaging system, and establish a mapping relationship between the system identifier and an initial identifier that the user requests to register, and the user may have different application identifiers in different instant messaging applications, for example, the ID of the user in a first server may be aaaaaaaa, and the ID in a second server may be bbbbbbbb.
In step 2, the sending user generates communication information and encrypts the communication information, the encrypted communication information is sent to the management node through the domain instant communication server, the management node acquires the encrypted communication information and decrypts the encrypted communication information, an identifier of the receiving user is acquired according to the decrypted communication information, whether the receiving user is a registered user is judged according to the identifier of the receiving user, if not, the transmission of the communication information is cancelled, and communication failure is fed back to the sending user, specifically:
the method comprises the steps that a sending user generates communication information according to requirements, a public key of the sending user is obtained, the communication information is encrypted through the public key, the encrypted communication information and the public key of the sending user are sent to a management node through a domain instant messaging server, the management node obtains a private key of the sending user according to the public key of the sending user, the encrypted communication information is decrypted through the private key of the sending user, the communication information comprises an identification of a receiving user, an identification of the sending user and communication content, the management node judges whether the receiving user is a registered user or not according to the identification of the receiving user, if the receiving user is not the registered user, transmission of the communication information is stopped, and communication failure is fed back to the sending user.
In step 3, if the receiving user is a registered user, judging whether the instant messaging application of the sending user is the same as the instant messaging application of the receiving user according to the communication information, if so, encrypting the decrypted communication information, and sending the encrypted communication information to the receiving user through the domain instant messaging server, wherein the steps are as follows:
if the receiving user is judged to be a registered user, acquiring a public key of the receiving user and a server identification of the receiving user according to the identification of the receiving user, acquiring a server identification of the sending user according to the identification of the sending user, judging whether the server identification of the receiving user is the same as the server identification of the sending user, if so, judging that the instant messaging application of the sending user is the same as the instant messaging application of the receiving user, encrypting the communication content through the public key of the receiving user, sending the encrypted communication content to the instant messaging application of the receiving user through a domain instant messaging server corresponding to the server identification, encrypting the encrypted communication content, the public key of the receiving user and the server identifications of the receiving user and the sending user through a symmetric key, and writing the encrypted communication content, the public key of the receiving user and the server identifications of the receiving user as backup records into a block chain.
In step 4, if the instant messaging application of the sending user is different from the instant messaging application of the receiving user, the management node sends the encrypted communication information to the receiving user through a domain instant messaging server corresponding to the instant messaging application of the receiving user, specifically:
if the instant messaging application of the sending user is judged to be different from the instant messaging application of the receiving user, the communication content is encrypted through the public key of the receiving user, the management node sends the encrypted communication content to the instant messaging application of the receiving user through the domain instant messaging server corresponding to the server identification of the receiving user, the encrypted communication content, the public key of the receiving user, the server identification of the receiving user and the server identification of the sending user are encrypted through the symmetric key, and the encrypted communication content, the public key of the receiving user, the server identification of the receiving user and the server identification of the sending user are written into the block chain as backup records.
In step 5, the receiving user decrypts the encrypted communication information, specifically:
and the receiving user acquires the private key of the receiving user, and decrypts the encrypted communication content through the private key to obtain the communication content.
Information should be hashed before it is written to the blockchain.
The communication content specifically comprises one or more of the following information: text information, audio information, and video information.
The instant communication method based on the block chain comprises the steps that a user sends a registration request to a management node through a domain instant communication server, the management node responds to the registration request to execute registration processing aiming at the user, registers the user as a registered user, records relevant information of the user and writes the information into the block chain; a sending user generates communication information, encrypts the communication information, sends the encrypted communication information to a management node through a domain instant communication server, the management node acquires the encrypted communication information and decrypts the encrypted communication information, acquires an identifier of a receiving user according to the decrypted communication information, judges whether the receiving user is a registered user according to the identifier of the receiving user, cancels the transmission of the communication information if the receiving user is not the registered user, and feeds back communication failure to the sending user; if the receiving user is a registered user, judging whether the instant messaging application of the sending user is the same as the instant messaging application of the receiving user according to the communication information, if so, encrypting the decrypted communication information, and sending the encrypted communication information to the receiving user through a domain instant messaging server; if the instant messaging application of the sending user is different from the instant messaging application of the receiving user, the management node encrypts the communication information and sends the encrypted communication information to the receiving user through a domain instant messaging server corresponding to the instant messaging application of the receiving user; the receiving user decrypts the encrypted communication information; the method can realize the mutual communication among different instant messaging applications through the management node, is convenient for a user to use, ensures the safety of the communication information because the communication information is in an encrypted state in the transmission process, prevents the communication information from being leaked, and can check the communication information because the transmission information of the communication information is provided with backup records and is stored in a block chain.
The principles and embodiments of the present invention have been described herein using specific examples, which are provided only to help understand the method and the core concept of the present invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, the specific embodiments and the application range may be changed. In view of the above, the present disclosure should not be construed as limiting the invention.

Claims (6)

1. An instant messaging method based on a block chain is applied to an instant messaging system based on the block chain, and is characterized in that the system comprises a management node and a plurality of domain instant messaging servers, the plurality of domain instant messaging servers correspond to a plurality of instant messaging applications, and the management node is used for receiving and processing information of the domain instant messaging servers;
the method comprises the following steps:
step 1: a user sends a registration request to a management node through a domain instant messaging server, the management node responds to the registration request to execute registration processing aiming at the user, registers the user as a registered user, records relevant information of the user and writes the information into a block chain;
step 2: the sending user generates communication information, encrypts the communication information, sends the encrypted communication information to a management node through a domain instant messaging server, the management node acquires the encrypted communication information and decrypts the encrypted communication information, acquires an identifier of a receiving user according to the decrypted communication information, judges whether the receiving user is a registered user or not according to the identifier of the receiving user, cancels the transmission of the communication information if the receiving user is not the registered user, and feeds back communication failure to the sending user;
and step 3: if the receiving user is a registered user, judging whether the instant messaging application of the sending user is the same as the instant messaging application of the receiving user according to the communication information, if so, encrypting the decrypted communication information, and sending the encrypted communication information to the receiving user through a domain instant messaging server;
and 4, step 4: if the instant messaging application of the sending user is different from the instant messaging application of the receiving user, the management node encrypts the communication information and sends the encrypted communication information to the receiving user through a domain instant messaging server corresponding to the instant messaging application of the receiving user;
and 5: and the receiving user decrypts the encrypted communication information.
2. The instant messaging method according to claim 1, wherein in step 1, the user sends a registration request to the management node through the domain instant messaging server, the management node performs a registration process for the user in response to the registration request, registers the user as a registered user, records the related information of the user, and writes the information into the block chain, specifically:
the method comprises the steps that a user sends a registration request to a management node through a domain instant messaging server, wherein the registration request comprises identity information of the user, the management node generates a unique identifier and an asymmetric key pair for the user according to the identity information of the user, the asymmetric key pair comprises a public key and a private key, the identifier and the asymmetric key are sent to the user, the management node records a server identifier of the domain instant messaging server, the domain instant messaging server sends the registration request, the server identifier corresponds to the domain instant messaging server and an instant messaging application, the identity information, the identifier and the server identifier of the user are encrypted through a symmetric key of the management node, and the server identifier are written into a block chain to complete registration of the user.
3. The instant messaging method according to claim 2, wherein in step 2, the sending user generates and encrypts the communication information, sends the encrypted communication information to the management node through the domain instant messaging server, the management node obtains and decrypts the encrypted communication information, obtains an identifier of the receiving user according to the decrypted communication information, determines whether the receiving user is a registered user according to the identifier of the receiving user, cancels the transmission of the communication information if the receiving user is not a registered user, and feeds back a communication failure to the sending user, specifically:
the method comprises the steps that a sending user generates communication information according to requirements, a public key of the sending user is obtained, the communication information is encrypted through the public key, the encrypted communication information and the public key of the sending user are sent to a management node through a domain instant messaging server, the management node obtains a private key of the sending user according to the public key of the sending user, the encrypted communication information is decrypted through the private key of the sending user, the communication information comprises an identification of a receiving user, an identification of the sending user and communication content, the management node judges whether the receiving user is a registered user or not according to the identification of the receiving user, if the receiving user is not the registered user, transmission of the communication information is stopped, and communication failure is fed back to the sending user.
4. The instant messaging method according to claim 3, wherein in step 3, if the receiving user is a registered user, it is determined whether the instant messaging application of the sending user is the same as the instant messaging application of the receiving user according to the messaging information, and if the instant messaging application of the sending user is the same as the instant messaging application of the receiving user, the decrypted messaging information is encrypted, and the encrypted messaging information is sent to the receiving user through the domain instant messaging server, specifically:
if the receiving user is judged to be the registered user, acquiring a public key of the receiving user and a server identification of the receiving user according to the identification of the receiving user, acquiring a server identification of the sending user according to the identification of the sending user, judging whether the server identification of the receiving user is the same as the server identification of the sending user or not, if so, judging that the instant messaging application of the sending user is the same as the instant messaging application of the receiving user, encrypting the communication content through the public key of the receiving user, sending the encrypted communication content to the instant messaging application of the receiving user through a domain instant messaging server corresponding to the server identification, encrypting the encrypted communication content, the public key of the receiving user and the server identifications of the receiving user and the sending user through a symmetric key, and writing the encrypted communication content, the public key of the receiving user and the server identifications of the receiving user and the sending user into a block chain as a backup record.
5. The instant messaging method according to claim 4, wherein in step 4, if the instant messaging application of the sending user is different from the instant messaging application of the receiving user, the management node sends the encrypted messaging information to the receiving user through the domain instant messaging server corresponding to the instant messaging application of the receiving user, specifically:
if the instant messaging application of the sending user is judged to be different from the instant messaging application of the receiving user, the communication content is encrypted through the public key of the receiving user, the management node sends the encrypted communication content to the instant messaging application of the receiving user through the domain instant messaging server corresponding to the server identification of the receiving user, the encrypted communication content, the public key of the receiving user, the server identification of the receiving user and the server identification of the sending user are encrypted through the symmetric key, and the encrypted communication content, the public key of the receiving user, the server identification of the receiving user and the server identification of the sending user are written into the block chain as backup records.
6. The instant messaging method according to claim 5, wherein in step 5, the receiving user decrypts the encrypted communication information, specifically:
and the receiving user acquires the private key of the receiving user, and decrypts the encrypted communication content through the private key to obtain the communication content.
CN202110837520.8A 2021-07-23 2021-07-23 Instant communication method based on block chain Active CN113595877B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110837520.8A CN113595877B (en) 2021-07-23 2021-07-23 Instant communication method based on block chain

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110837520.8A CN113595877B (en) 2021-07-23 2021-07-23 Instant communication method based on block chain

Publications (2)

Publication Number Publication Date
CN113595877A CN113595877A (en) 2021-11-02
CN113595877B true CN113595877B (en) 2022-08-30

Family

ID=78249756

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110837520.8A Active CN113595877B (en) 2021-07-23 2021-07-23 Instant communication method based on block chain

Country Status (1)

Country Link
CN (1) CN113595877B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115348309B (en) * 2022-06-17 2024-03-22 上海数慧***技术有限公司 Communication management method and device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108306819A (en) * 2018-04-20 2018-07-20 网易(杭州)网络有限公司 Instant communicating system implementation method, medium and computing device based on block chain
CN108667717A (en) * 2018-04-20 2018-10-16 网易(杭州)网络有限公司 Block chain processing method, medium, device and computing device based on instant communication message record
WO2019052286A1 (en) * 2017-09-12 2019-03-21 广州广电运通金融电子股份有限公司 User identity verification method, apparatus and system based on blockchain
WO2020186672A1 (en) * 2019-03-18 2020-09-24 深圳幂度信息科技有限公司 Blockchain-based mail transmission and reception system
CN112751841A (en) * 2020-12-25 2021-05-04 江苏通付盾科技有限公司 Encryption communication method and system based on block chain technology

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2019052286A1 (en) * 2017-09-12 2019-03-21 广州广电运通金融电子股份有限公司 User identity verification method, apparatus and system based on blockchain
CN108306819A (en) * 2018-04-20 2018-07-20 网易(杭州)网络有限公司 Instant communicating system implementation method, medium and computing device based on block chain
CN108667717A (en) * 2018-04-20 2018-10-16 网易(杭州)网络有限公司 Block chain processing method, medium, device and computing device based on instant communication message record
WO2020186672A1 (en) * 2019-03-18 2020-09-24 深圳幂度信息科技有限公司 Blockchain-based mail transmission and reception system
CN112751841A (en) * 2020-12-25 2021-05-04 江苏通付盾科技有限公司 Encryption communication method and system based on block chain technology

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
区块链技术在企业即时通信***中的应用;葛泽烽等;《软件导刊》;20180615(第06期);全文 *

Also Published As

Publication number Publication date
CN113595877A (en) 2021-11-02

Similar Documents

Publication Publication Date Title
Sutikno et al. WhatsApp, viber and telegram: Which is the best for instant messaging?
US8824684B2 (en) Dynamic, selective obfuscation of information for multi-party transmission
US9729642B2 (en) Sharing web application sessions across multiple devices
US8065361B2 (en) Apparatus and methods using a data hub server with servers to source and access informational content
WO2021174758A1 (en) Protocol data sharing method and apparatus, device, and storage medium
CN112686668A (en) Alliance chain cross-chain system and method
CN101005503A (en) Method and data processing system for intercepting communication between a client and a service
WO2013112187A1 (en) Secure peer discovery and authentication using a shared secret
CN112804133B (en) Encryption group chat method and system based on blockchain technology
CN112307116A (en) Data access control method, device and equipment based on block chain
CN113595877B (en) Instant communication method based on block chain
US10785025B1 (en) Synchronization of key management services with cloud services
US20140038650A1 (en) Short message backup method, mobile terminal, and server
CN114826757A (en) Identity authentication method and device
CN113129008B (en) Data processing method, device, computer readable medium and electronic equipment
CN106992973A (en) The method and system of rights management are carried out to user terminal function
CN110610418A (en) Transaction state query method, system, device and storage medium based on block chain
CN100477581C (en) Method and server for providing remote help
CN107249001B (en) A kind of information processing method, apparatus and system
CN110324374A (en) A kind of mobile device and its working method for information security backup
CN112751841A (en) Encryption communication method and system based on block chain technology
CN113472715A (en) Data transmission method and device
TWM591661U (en) Digital Identity Management System
CN109167801A (en) Encrypted data communication system
CN114765595B (en) Chat message display method, chat message sending device, electronic equipment and media

Legal Events

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

Effective date of registration: 20220928

Address after: Room 305, No. 188, Zhugu Shi Road, Wulian, Central City, Longgang Street, Longgang District, Shenzhen, Guangdong 518000

Patentee after: Jiaqiao (Shenzhen) Investment Co.,Ltd.

Address before: D-1908, 19th floor, building 222, Wangjing Xiyuan, Chaoyang District, Beijing

Patentee before: Yongqi (Beijing) Technology Co.,Ltd.