CN109245993A - Instant communication method and device based on block chain - Google Patents

Instant communication method and device based on block chain Download PDF

Info

Publication number
CN109245993A
CN109245993A CN201811043374.6A CN201811043374A CN109245993A CN 109245993 A CN109245993 A CN 109245993A CN 201811043374 A CN201811043374 A CN 201811043374A CN 109245993 A CN109245993 A CN 109245993A
Authority
CN
China
Prior art keywords
user
instant communication
information
block chain
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.)
Withdrawn
Application number
CN201811043374.6A
Other languages
Chinese (zh)
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.)
Suzhou Lang run innovation intellectual property operation Co.,Ltd.
Original Assignee
Chain Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Chain Technology Co Ltd filed Critical Chain Technology Co Ltd
Priority to CN201811043374.6A priority Critical patent/CN109245993A/en
Publication of CN109245993A publication Critical patent/CN109245993A/en
Withdrawn legal-status Critical Current

Links

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]
    • 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
    • H04L63/0442Network 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 wherein the sending and receiving network entities apply asymmetric encryption, i.e. different keys for encryption and decryption
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1097Protocols in which an application is distributed across nodes in the network for distributed storage of data in networks, e.g. transport arrangements for network file system [NFS], storage area networks [SAN] or network attached storage [NAS]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/32Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials
    • H04L9/3236Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials using cryptographic hash functions

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Hardware Design (AREA)
  • Computing Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Storage Device Security (AREA)

Abstract

The invention discloses a kind of instant communication method based on block chain, device, calculate equipment and computer storage medium, wherein, this method comprises: the instant communication information ciphertext that the first user sends is received, wherein the second user is the recipient of instant communication information specified by the first user;The instant communication information ciphertext is sent to second user, obtains the instant communication information after the instant communication information ciphertext is decrypted for the second user;And the instant communication information ciphertext is written in block chain.The technical solution realizes the distributed preservation of the decentralization to instant communication information with block chain, and instant communication information is stored with encrypted test mode, it can effectively avoid communication information from being stolen, be tampered, being deleted and the case where malicious attack, to better ensure that the safety of user communication privacy.

Description

Instant communication method and device based on block chain
Technical field
The present invention relates to Internet technical fields, and in particular to it is a kind of by the instant communication method of block chain, device, based on Calculate equipment and computer storage medium.
Background technique
Instant messaging is the business for referring to send and receive internet message immediately, is a kind of terminal service, allows two People or more people transmit text, document, voice using network immediately and exchange with video, and immediate communication tool possesses huge use A possibility that family group, information technology and communication media are more flourishing, and individual privacy is draped over one's shoulders leakage is bigger, people to information security and Individual privacy demand is also more urgent.However, traditional immediate communication platform is centralization platform, there are information to be usurped for platform Change, be deleted, by malicious attack the case where.Therefore, there is user communication privacy is unsafe for existing instant communication method Problem.
Summary of the invention
In view of the above problems, it proposes on the present invention overcomes the above problem or at least be partially solved in order to provide one kind It states the instant communication method based on block chain of problem, device, calculate equipment and computer storage medium.
According to an aspect of the invention, there is provided a kind of instant communication method based on block chain, which comprises The instant communication information ciphertext for receiving the first user transmission, wherein the second user is instant messaging specified by the first user The recipient of message;The instant communication information ciphertext is sent to second user, so that the second user is to described instant Communication message ciphertext obtains the instant communication information after being decrypted;And by instant communication information ciphertext write area In block chain.
Optionally, the instant communication information ciphertext for receiving the first user and sending specifically: receive the first user and send The instant communication information ciphertext encrypted using the public key of second user;The second user is to the instant communication information Ciphertext obtains the instant communication information after being decrypted specifically: the second user is according to the private key of second user to described Instant communication information ciphertext obtains the instant communication information after being decrypted.
Optionally, the public key and private key of the second user are generated in second user registration process;
The method also includes: after second user is added to good friend by the first user, the public key of second user is sent To the first user.
Optionally, before the instant communication information ciphertext that the first user of the reception sends, the method also includes: it connects Receive the logging request for the carrying user login information that the first user/second user is sent;It is used according to user login information first Family/second user identity information is verified;After being proved to be successful, the first user/second user client address is recorded Information, and block chain is written into the first user/second user login time stamp and client address information;To the first user/ Second user return logins successfully response.
Optionally, before the logging request for receiving the carrying user login information that the first user/second user is sent, The method also includes: receive the registration request for the carrying identity information that the first user/second user is sent;Identity information is write Enter block chain, and generates corresponding block chain address;It is that the first user/second user generates a pair of of public affairs using key generation facility Key and private key;The response of succeeding in registration for carrying private key is returned to the first user/second user, and records the first user/the second The corresponding block chain address of user and public key.
Optionally, it is described will instant communication information ciphertext be written block chain in specifically: by instant communication information ciphertext into It is written in block chain after the processing of row Hash.
Optionally, the method also includes: according to the information recorded in block chain, generate the first user/second user Integration information, will be in the first user of the first user/second user integration information typing/second user wallet account.
Optionally, the specific following information of the instant communication information is one or more: text information, audio-frequency information and Video information.
Optionally, first user/second user client address information specifically: webpage client or mobile visitor The IP address at family end and port.
According to another aspect of the invention, a kind of instant communication device based on block chain is provided, described device includes: Receiving module, for receiving the instant communication information ciphertext of the first user transmission, wherein the second user is the first user institute The recipient of specified instant communication information;Sending module, for the instant communication information ciphertext to be sent to second user, The instant communication information is obtained after the instant communication information ciphertext is decrypted for the second user;Store mould Block, in instant communication information ciphertext write-in block chain.
In accordance with a further aspect of the present invention, provide a kind of calculating equipment, comprising: processor, memory, communication interface and Communication bus, the processor, the memory and the communication interface complete mutual communication by the communication bus;
For the memory for storing an at least executable instruction, it is as above that the executable instruction executes the processor The corresponding operation of the instant communication method based on block chain stated.
According to another aspect of the invention, provide a kind of computer storage medium, be stored in the storage medium to A few executable instruction, the instant communication method that the executable instruction executes processor as above-mentioned based on block chain are corresponding Operation.
The technical solution provided according to the present invention receives the instant communication information ciphertext that the first user sends, wherein described Second user is the recipient of instant communication information specified by the first user;The instant communication information ciphertext is sent to Two users obtain the instant communication information after the instant communication information ciphertext is decrypted for the second user; And the instant communication information ciphertext is written in block chain.The present invention is realized with block chain to instant communication information The distributed of decentralization saves, and stores instant communication information with ciphertext, can effectively avoid communication information from being stolen, be usurped Change, be deleted and the case where malicious attack, to better ensure that user communication personal secrets.
The above description is only an overview of the technical scheme of the present invention, in order to better understand the technical means of the present invention, And it can be implemented in accordance with the contents of the specification, and in order to allow above and other objects of the present invention, feature and advantage can It is clearer and more comprehensible, the followings are specific embodiments of the present invention.
Detailed description of the invention
By reading the following detailed description of the preferred embodiment, various other advantages and benefits are common for this field Technical staff will become clear.The drawings are only for the purpose of illustrating a preferred embodiment, and is not considered as to the present invention Limitation.And throughout the drawings, the same reference numbers will be used to refer to the same parts.In the accompanying drawings:
Fig. 1 a shows the system architecture schematic diagram for the immediate communication platform that the present invention is applicable in;
Fig. 1 b shows the flow diagram of according to embodiments of the present invention one instant communication method based on block chain;
Fig. 2 shows the flow diagrams of according to embodiments of the present invention two instant communication method based on block chain;
Fig. 3 shows the flow diagram of according to embodiments of the present invention three instant communication method based on block chain;
Fig. 4 shows the flow diagram of according to embodiments of the present invention four instant communication method based on block chain;
Fig. 5 shows the structural block diagram of according to embodiments of the present invention five instant communication device based on block chain;
Fig. 6 shows a kind of structural schematic diagram of according to embodiments of the present invention seven calculating equipment.
Specific embodiment
Exemplary embodiments of the present disclosure are described in more detail below with reference to accompanying drawings.Although showing the disclosure in attached drawing Exemplary embodiment, it being understood, however, that may be realized in various forms the disclosure without should be by embodiments set forth here It is limited.On the contrary, these embodiments are provided to facilitate a more thoroughly understanding of the present invention, and can be by the scope of the present disclosure It is fully disclosed to those skilled in the art.
In order to which technical solution of the present invention is more clearly illustrated, the applicable Instant Messenger of the present invention program institute is simply introduced first Interrogate the overall system architecture of platform.Immediate communication platform of the invention is the platform based on block chain, and block chain is integrally using connection In the region involved in user or client, several nodes are arranged in alliance's chain form, the deployment way of node can flexible setting, Such as: by area deployment or by operator deployment etc..Maintain an alliance Lian Nei each side between each node of block chain network Synchronizing information.Fig. 1 a shows the system architecture schematic diagram for the immediate communication platform that the present invention is applicable in.As shown in Figure 1a, this is System framework include:
Application layer, the client end interface including immediate communication platform;Wherein, the service object of client end interface includes webpage Hold real-time communication user and mobile terminal real-time communication user.Application layer, which is also safeguarded, user's wallet, communication of this platform to user The information such as compliance, the login time of behavior are recorded, and carry out certain reward on total mark according to the communication behavior of user, flat Issue user integral on platform, integral can be used for buying service on platform, give to good friend, convert to cash, purchase commodity etc.. Integral correspondence is stored in user's wallet.
Instant messaging layer, the modules including carrying out information processing according to the operation information of client end interface;Wherein, i.e., When communication platform client end interface operation information include, but is not limited to it is following first, user's registration, login, audio-video Or text communication information or transactions demand information.Wherein, the instant messaging layer progress information processing modules at least It is including but not limited to following first, audio/video coding module, audio/video decoding module, audio and video playing module, at teletext It is (general to insert to manage module, Encryption Decryption module, udp protocol (User Datagram Protocol) module, P2P protocol module, UPnP protocol Use agreement) module, network path switching at runtime module, Firewall Traversing module.Wherein, audio/video coding module, for pair Audio-video is encoded to be transmitted.Audio/video decoding module, for being decoded audio-video to carry out to audio-video Display.Word processing module is packaged encapsulation or conversion processing etc. for carrying out to text information;Encryption Decryption module, being used for will The user information of need for confidentiality is encrypted, and guarantees that information is only propagated or shared between specific user, other party Raw information can not be decrypted intercepting, has ensured the information security of platform.Udp protocol module is with then by network data Flow constriction is transmitted at the form of data packet with facilitating.P2P protocol module, for utilizing P2P protocol processes data.UPnP association Module is discussed, is connected for peer-to-peer network.UPNP based on Internet standard and technology (such as TCP/IP, HTTP and XML), Make such equipment that can connect and cooperate automatically each other, so that network (especially home network) be made to become more people It may.Network path switching at runtime module, for toggle path to obtain the information of respective path, Firewall Traversing module is used for The data information of the header packet information and packet load of analyzing data packet is passed through with deciding whether to it, to ensure safety property.
Network protocol layer, for realizing the processing of agreement used when being transmitted to information;
Block chain bottom, instant messaging layer for will be transmitted to block chain bottom treated information random dispersion plus On each block of the close distributed data base for being stored in block chain;And for will according to instant messaging layer treated information Feedback information is sent to instant messaging layer and further feeds back to application layer by it.
Based on above system framework, the server of immediate communication platform is constituted specifically:
Application server is set to application layer, the operation information of the client end interface for obtaining immediate communication platform;
Data server is set to instant messaging layer, for carrying out information processing according to the operation information;
Block chain server is set to block chain bottom, for by data server, treated that information is stored simultaneously Feedback information is sent to data server accordingly and application server is further fed back to by it, so that application server will Feedback information is sent to the client end interface of immediate communication platform.
Embodiment one
Fig. 1 b shows the flow diagram of according to embodiments of the present invention one instant communication method based on block chain, such as Shown in Fig. 1 b, this method comprises the following steps:
Step S101 receives the instant communication information ciphertext that the first user sends, and wherein second user is the first user institute The recipient of specified instant communication information.
The present invention is applied to immediate communication platform, which is the platform based on block chain (referring to above Description), in the present invention, user can realize the transmitting-receiving of instant communication information by client, and client specifically can be movement Client or webpage version client.The specific following information of instant communication information it is one or more: text information, audio-frequency information And video information.
The instant communication information of immediate communication platform transmission is the message of ciphertext form, referred to as instant communication information ciphertext. After first user specifies recipient of the second user as instant communication information, the first user to input instant communication information plaintext, Instant communication information is encrypted in plain text using encryption technology, which can take any encryption skill in the prior art Art, the present invention are not construed as limiting the encryption technology of instant communication information.
Instant communication information ciphertext is sent to second user, so that second user is to instant communication information by step S102 Ciphertext obtains instant communication information after being decrypted.
Instant communication information ciphertext is sent to second user, instant communication information ciphertext is solved using decryption technology It is close to obtain instant communication information in plain text, instant communication information is presented to second user in plain text.The decryption technology and above-mentioned encryption Technology is corresponding.
Instant communication information ciphertext is written in block chain step S103.
The present invention realizes the distributed preservation of the decentralization to instant communication information ciphertext with block chain.Block chain by Multiple block compositions, each block are stored with different information, and each that user sends in instant communication process is instant Communication message enters chain and deposits card.
Specifically, it is written in block chain after instant communication information ciphertext being carried out Hash processing.Due to being handled by Hash Data afterwards are smaller, even if storing the cryptographic Hash of message data on chain compared to communication message ciphertext is directly stored, reducing To the occupancy of memory space on chain, it is too fat to move to avoid data on chain, improves treatment effeciency;The node in block chain can be with simultaneously It verifies whether cryptographic Hash changes according to hash algorithm, to verify whether message data is tampered, improves verification efficiency.
The present embodiment realizes the distributed preservation of the decentralization to instant communication information with block chain, and is deposited with ciphertext Instant communication information is stored up, can effectively avoid communication information from being stolen, be tampered, being deleted and the case where malicious attack, with Better ensure that user communication personal secrets.It overcomes existing traditional immediate communication platform and changes platform, platform due to centered on There are information to be tampered, be deleted, by the unsafe problem of user communication privacy caused by the case where malicious attack.
Embodiment two
Fig. 2 shows the flow diagrams of according to embodiments of the present invention two instant communication method based on block chain, such as Shown in Fig. 2, this method comprises the following steps:
Step S201 receives the logging request for the carrying user login information that the first user/second user is sent.
The present invention is applied to immediate communication platform, and user inputs in log-on message to the immediate communication platform.The Instant Messenger Interrogate the log-on message that platform receives user's input.Wherein, the user login information includes but is not limited to: user login name claims, User login code and identifying code etc..
Step S202 verifies the first user/second user identity information according to user login information.
Specifically, immediate communication platform matches it with the user information prestored according to user login information, with right The identity of user is verified.
Step S203 records the first user/second user client address information, and by first after being proved to be successful Block chain is written in user/second user login time stamp and client address information.
Immediate communication platform of the invention is the platform based on block chain, and block chain is made of multiple blocks, each block Be stored with different information, each information including userspersonal information, log-on message and communication information store to In block chain, the safety of information is advantageously ensured that.Wherein, the also recordable client release number of immediate communication platform, and will be objective Block chain is written in Hu Duan version number and other information together.
Step S204 logins successfully response to the first user/second user return.
Step S205 sends the presence information of other side to listed first user and second user respectively.This step It suddenly is optional step.
In the present invention, client can be mobile client or webpage version client.Presence information can include: Online, it does not disturb, is busy, is stealthy or leave.Presence information may also include other information, herein without limitation.First uses Family and second user can decide whether and other side's communication contact according to the presence information of other side.Another optional real Apply in mode, without sending the presence information of other side to listed first user and second user, when the first user to Second user sends message, it may not be necessary to know whether second user is online, after second user logs in, platform again should be from Line message issues second user.
It is close to receive the instant communication information encrypted using the public key of second user that the first user sends by step S206 Text.
Specifically, in the registration process of second user, calling key generation facility is that second user automatically generates uniquely The public and private key of a pair, public key recorded as a part of user's registration information, and by platform uniform management, private key is then sent to Second user is managed oneself.Similarly, when the first user's registration, platform can also generate unique a pair of public and private for the first user Key, for public key by platform management, private key issues the first user oneself management.
After second user is added to good friend by the first user, the public key of second user is sent to the first user by platform. First user record has the public key of each good friend user, when needing to send instant communication information to good friend user, utilizes good friend The public key of user encrypts message.
Instant communication information ciphertext is sent to second user, so that second user is according to second user by step S207 Private key obtains instant communication information after instant communication information ciphertext is decrypted.
The present embodiment is transmitted in message transmitting procedure with ciphertext form, and instant communication information ciphertext is sent to After second user, second user is decrypted ciphertext according to the private key that oneself is recorded, public and private key when due to second user registration Successful decryption can be carried out to ciphertext to generating together, therefore using private key, obtain instant communication information in plain text.
The above process for encrypting and decrypting all is the program by writing in advance to control, and realizes automatic encryption and decryption, and certainly The case where process of dynamic encryption and decryption is unaware to chat both sides, not will cause messaging delay.
Instant communication information ciphertext is written in block chain step S208.
The present embodiment realizes the distributed preservation of the decentralization to instant communication information ciphertext with block chain.Block chain It is made of multiple blocks, each block is stored with different information, and each that user sends in instant communication process is i.e. When communication message enter chain and deposit card.
Specifically, it is written in block chain after instant communication information ciphertext being carried out Hash processing.Due to being handled by Hash Data afterwards are smaller, even if storing the cryptographic Hash of message data on chain compared to communication message ciphertext is directly stored, reducing To the occupancy of memory space on chain, it is too fat to move to avoid data on chain, improves treatment effeciency;The node in block chain can be with simultaneously It verifies whether cryptographic Hash changes according to hash algorithm, to verify whether message data is tampered, improves verification efficiency.
According to the instant communication method provided in this embodiment based on block chain, identity is carried out to user according to logging request Verifying, and after being proved to be successful, the first user/second user client address information is recorded, and the first user/second is used Block chain is written in the login time stamp and client address information at family.In the present embodiment, relevant information and use that user logs in Each instant communication information that family is sent in instant communication process enters chain and deposits card, and is disappeared with ciphertext storage instant messaging Breath, can effectively avoid communication information from being stolen, be tampered, being deleted and the case where malicious attack, to better ensure that use Family communicates personal secrets.It overcomes existing traditional immediate communication platform and changes platform due to centered on, there are information to be usurped for platform Change, be deleted, by the unsafe problem of user communication privacy caused by the case where malicious attack.
Embodiment three
Fig. 3 shows the flow diagram of according to embodiments of the present invention three instant communication method based on block chain, such as Shown in Fig. 3, this method comprises the following steps:
Step S301 receives the registration request for the carrying identity information that the first user/second user is sent.
The present invention is applied to immediate communication platform, and user asks to the registration that the immediate communication platform inputs carrying identity information It asks.For example, user can use real name logon mode, synchronized upload ID card information to the immediate communication platform.
Identity information is written block chain, and generates corresponding block chain address by step S302.
Immediate communication platform of the invention is the platform based on block chain, and block chain is made of multiple blocks, each block It is stored with different information, identity information is written in block chain and is generated corresponding block chain address, when user logs in The information can be called to carry out the matching verifying of user identity.Identity information is entered chain and deposits card by the present embodiment, can effectively be avoided Identity information is stolen, is tampered, being deleted and the case where malicious attack, to better ensure that privacy of user safety.
Step S303 is that the first user/second user generates a pair of of public key and private key using key generation facility.
Key generation facility outside platform calling automatically generates unique a pair of public and private for the first user/second user Key, public key are recorded as a part of user's registration information, by platform uniform management, private key be then sent to the first user/ Second user is managed oneself.
Step S304 returns to response of succeeding in registration to the first user/second user, and records the first user/second user Corresponding block chain address and public key.
Step S305 receives the logging request for the carrying user login information that the first user/second user is sent.
The present embodiment step is referring to the step S201 in embodiment two, and details are not described herein.
Step S306 verifies the first user/second user identity information according to user login information.
The present embodiment step is referring to the step S202 in embodiment two, and details are not described herein.
Step S307 records the first user/second user client address information, and by first after being proved to be successful Block chain is written in user/second user login time stamp and client address information.
The present embodiment step is referring to the step S203 in embodiment two, and details are not described herein.
Step S308 logins successfully response to the first user/second user return.
It is close to receive the instant communication information encrypted using the public key of second user that the first user sends by step S309 Text.
The present embodiment step is referring to the step S206 in embodiment two, and details are not described herein.
Instant communication information ciphertext is sent to second user, so that second user is according to second user by step S310 Private key obtains instant communication information after instant communication information ciphertext is decrypted.
The present embodiment step is referring to the step S207 in embodiment two, and details are not described herein.
Instant communication information ciphertext is written in block chain step S311.
The present embodiment step is referring to the step S208 in embodiment two, and details are not described herein.
According to the instant communication method provided in this embodiment based on block chain, receives the first user/second user and send Carrying identity information registration request.Block chain is written into identity information, and generates corresponding block chain address.It is used to first Family/second user returns to response of succeeding in registration, and records the corresponding block chain address of the first user/second user.With block chain Realize that the distributed of the decentralization to data saves, can effectively avoid communication information from being stolen, be tampered, be deleted with And the case where malicious attack, to better ensure that user communication personal secrets.Overcome existing traditional immediate communication platform by Change platform centered on, there are information to be tampered for platform, be deleted, by user communication privacy caused by the case where malicious attack Unsafe problem.
Example IV
Fig. 4 shows the flow diagram of according to embodiments of the present invention four instant communication method based on block chain, such as Shown in Fig. 4, this method includes above-mentioned steps S301 to step S311, further, this method further includes:
Step S312 generates the first user/second user integration information according to the information recorded in block chain, by the In the first user of one user/second user integration information typing/second user wallet account.
The integral of the invention can be carried out according to the communication behavior of user, such as can be according to the communication credit of user With log in market carry out certain reward on total mark, the integral can be used on the immediate communication platform buy service, give to Good friend converts to cash, purchase commodity etc., and integral correspondence is stored in user's wallet account.
Embodiment five
Fig. 5 shows the structural block diagram of according to embodiments of the present invention five instant communication device based on block chain, such as Fig. 5 Shown, being somebody's turn to do the instant communication device 500 based on block chain includes:
Receiving module 510, for receiving the instant communication information ciphertext of the first user transmission, wherein the second user is The recipient of instant communication information specified by first user;
Sending module 520, for the instant communication information ciphertext to be sent to second user, for the second user The instant communication information is obtained after the instant communication information ciphertext is decrypted;
Memory module 530, in instant communication information ciphertext write-in block chain.
Optionally, receiving module 510 is specifically used for: receiving adding using the public key of second user for the first user transmission Close instant communication information ciphertext.Sending module 520 is specifically used for: the instant communication information ciphertext is transmitted to the second use Family obtains described after the instant communication information ciphertext is decrypted according to the private key of second user for the second user Instant communication information.
Optionally, the public key and private key of the second user are generated in second user registration process;Described device is also It include: notification module 540, for after second user is added to good friend by the first user, the public key of second user to be sent to First user.
Optionally, described device 500 further includes login module 550, is used for: receiving what the first user/second user was sent Carry the logging request of user login information;The first user/second user identity information is carried out according to user login information Verifying;After being proved to be successful, the first user/second user client address information is recorded, and by the first user/second user Login time stamp and client address information be written block chain;Response is logined successfully to the first user/second user return.
Optionally, described device 500 further includes registration module 560, is used for: receiving what the first user/second user was sent Carry the registration request of identity information;Block chain is written into identity information, and generates corresponding block chain address;It is raw using key It is that the first user/second user generates a pair of of public key and private key at tool;Private key is carried to the first user/second user return Response of succeeding in registration, and record the corresponding block chain address of the first user/second user and public key.
Optionally, described device 500 further include: Hash processing module 570, for instant communication information ciphertext to be breathed out It is written in block chain after uncommon processing.
Optionally, described device 500 further include: Integral Processing module 580, for according to the information recorded in block chain, The first user/second user integration information is generated, by the first user/second user integration information the first user/the of typing In the wallet account of two users.
According to the instant communication device provided in this embodiment based on block chain, with block chain come realize to identity information, The distributed of the decentralization of the instant communication information of interaction saves between user login information and user, and with ciphertext shape Formula stores instant communication information, can effectively avoid communication information from being stolen, be tampered, being deleted and the feelings of malicious attack Condition, to better ensure that user communication personal secrets.It overcomes existing traditional immediate communication platform and changes platform due to centered on, There are information to be tampered for platform, be deleted, by the unsafe problem of user communication privacy caused by the case where malicious attack.
Embodiment six
The embodiment of the present invention six provides a kind of nonvolatile computer storage media, the computer storage medium storage Have an at least executable instruction, the computer executable instructions can be performed in above-mentioned any means embodiment based on block chain Instant communication method.
Embodiment seven
Fig. 6 shows a kind of structural schematic diagram of according to embodiments of the present invention seven calculating equipment, present invention specific implementation Example does not limit the specific implementation for calculating equipment.
As shown in fig. 6, the calculating equipment may include: processor (processor) 602, communication interface (Communications Interface) 604, memory (memory) 606 and communication bus 608.
Wherein:
Processor 602, communication interface 604 and memory 606 complete mutual communication by communication bus 608.
Communication interface 604, for being communicated with the network element of other equipment such as client or other servers etc..
It is real can specifically to execute the above-mentioned instant communication method based on block chain for executing program 610 for processor 602 Apply the correlation step in example.
Specifically, program 610 may include program code, which includes computer operation instruction.
Processor 602 may be central processor CPU or specific integrated circuit ASIC (Application Specific Integrated Circuit), or be arranged to implement the integrated electricity of one or more of the embodiment of the present invention Road.The one or more processors that equipment includes are calculated, can be same type of processor, such as one or more CPU;It can also To be different types of processor, such as one or more CPU and one or more ASIC.
Memory 606, for storing program 610.Memory 606 may include high speed RAM memory, it is also possible to further include Nonvolatile memory (non-volatile memory), for example, at least a magnetic disk storage.
Program 610 specifically can be used for so that processor 602 execute in above-mentioned any means embodiment based on block chain Instant communication method.The specific implementation of each step may refer to the above-mentioned instant communication method based on block chain in program 610 And corresponding description in corresponding steps in Installation practice and unit, this will not be repeated here.Those skilled in the art can be with It is well understood, for convenience and simplicity of description, the equipment of foregoing description and the specific work process of module, before can referring to The corresponding process description in embodiment of the method is stated, details are not described herein.
Algorithm and display are not inherently related to any particular computer, virtual system, or other device provided herein. Various general-purpose systems can also be used together with teachings based herein.As described above, it constructs required by this kind of system Structure be obvious.In addition, the present invention is also not directed to any particular programming language.It should be understood that can use various Programming language realizes summary of the invention described herein, and the description done above to language-specific is to disclose this hair Bright preferred forms.
In the instructions provided here, numerous specific details are set forth.It is to be appreciated, however, that implementation of the invention Example can be practiced without these specific details.In some instances, well known method, structure is not been shown in detail And technology, so as not to obscure the understanding of this specification.
Similarly, it should be understood that in order to simplify the disclosure and help to understand one or more of the various inventive aspects, Above in the description of exemplary embodiment of the present invention, each feature of the invention is grouped together into single implementation sometimes In example, figure or descriptions thereof.However, the disclosed method should not be interpreted as reflecting the following intention: i.e. required to protect Shield the present invention claims features more more than feature expressly recited in each claim.More precisely, as following Claims reflect as, inventive aspect is all features less than single embodiment disclosed above.Therefore, Thus the claims for following specific embodiment are expressly incorporated in the specific embodiment, wherein each claim itself All as a separate embodiment of the present invention.
Those skilled in the art will understand that can be carried out adaptively to the module in the equipment in embodiment Change and they are arranged in one or more devices different from this embodiment.It can be the module or list in embodiment Member or component are combined into a module or unit or component, and furthermore they can be divided into multiple submodule or subelement or Sub-component.Other than such feature and/or at least some of process or unit exclude each other, it can use any Combination is to all features disclosed in this specification (including adjoint claim, abstract and attached drawing) and so disclosed All process or units of what method or apparatus are combined.Unless expressly stated otherwise, this specification is (including adjoint power Benefit require, abstract and attached drawing) disclosed in each feature can carry out generation with an alternative feature that provides the same, equivalent, or similar purpose It replaces.
In addition, it will be appreciated by those of skill in the art that although some embodiments described herein include other embodiments In included certain features rather than other feature, but the combination of the feature of different embodiments mean it is of the invention Within the scope of and form different embodiments.For example, in the following claims, embodiment claimed is appointed Meaning one of can in any combination mode come using.
Various component embodiments of the invention can be implemented in hardware, or to run on one or more processors Software module realize, or be implemented in a combination thereof.It will be understood by those of skill in the art that can be used in practice Microprocessor or digital signal processor (DSP) realize one of some or all components according to embodiments of the present invention A little or repertoire.The present invention is also implemented as setting for executing some or all of method as described herein Standby or program of device (for example, computer program and computer program product).It is such to realize that program of the invention deposit Storage on a computer-readable medium, or may be in the form of one or more signals.Such signal can be from because of spy It downloads and obtains on net website, be perhaps provided on the carrier signal or be provided in any other form.
It should be noted that the above-mentioned embodiments illustrate rather than limit the invention, and ability Field technique personnel can be designed alternative embodiment without departing from the scope of the appended claims.In the claims, Any reference symbol between parentheses should not be configured to limitations on claims.Word "comprising" does not exclude the presence of not Element or step listed in the claims.Word "a" or "an" located in front of the element does not exclude the presence of multiple such Element.The present invention can be by means of including the hardware of several different elements and being come by means of properly programmed computer real It is existing.In the unit claims listing several devices, several in these devices can be through the same hardware branch To embody.The use of word first, second, and third does not indicate any sequence.These words can be explained and be run after fame Claim.

Claims (12)

1. a kind of instant communication method based on block chain, which is characterized in that the described method includes:
The instant communication information ciphertext for receiving the first user transmission, wherein the second user is instant specified by the first user The recipient of communication message;
The instant communication information ciphertext is sent to second user, so that the second user is close to the instant communication information Text obtains the instant communication information after being decrypted;
And the instant communication information ciphertext is written in block chain.
2. the method according to claim 1, wherein the instant communication information for receiving the first user transmission is close Text specifically: receive the instant communication information ciphertext encrypted using the public key of second user that the first user sends;
The second user obtains the instant communication information after the instant communication information ciphertext is decrypted specifically: institute It states after second user is decrypted the instant communication information ciphertext according to the private key of second user and obtains the instant messaging Message.
3. according to the method described in claim 2, it is characterized in that, the public key and private key of the second user are in second user It is generated in registration process;
The method also includes: after second user is added to good friend by the first user, the public key of second user is sent to One user.
4. the method according to claim 1, wherein the instant communication information sent in the first user of the reception Before ciphertext, the method also includes:
Receive the logging request for the carrying user login information that the first user/second user is sent;
The first user/second user identity information is verified according to user login information;
After being proved to be successful, the first user/second user client address information is recorded, and by the first user/second user Login time stamp and client address information be written block chain;
Response is logined successfully to the first user/second user return.
5. according to the method described in claim 4, it is characterized in that, the carrying for receiving the first user/second user and sending Before the logging request of user login information, the method also includes:
Receive the registration request for the carrying identity information that the first user/second user is sent;
Block chain is written into identity information, and generates corresponding block chain address;
It is that the first user/second user generates a pair of of public key and private key using key generation facility;
The response of succeeding in registration for carrying private key is returned to the first user/second user, and records the first user/second user pair The block chain address and public key answered.
6. the method according to claim 1, wherein described instant communication information ciphertext is written in block chain has Body are as follows: be written in block chain after instant communication information ciphertext is carried out Hash processing.
7. method according to claim 1 to 6, which is characterized in that the method also includes:
According to the information recorded in block chain, the first user/second user integration information is generated, the first user/second is used In the first user of integration information typing/second user wallet account at family.
8. the method according to claim 1, wherein the instant communication information specifically one kind of following information or It is a variety of: text information, audio-frequency information and video information.
9. according to the method described in claim 4, it is characterized in that, first user/second user client address is believed Breath specifically: the IP address and port of webpage client or mobile client.
10. a kind of instant communication device based on block chain, which is characterized in that described device includes:
Receiving module, for receiving the instant communication information ciphertext of the first user transmission, wherein the second user is the first use The recipient of instant communication information specified by family;
Sending module, for the instant communication information ciphertext to be sent to second user, so that the second user is to described Instant communication information ciphertext obtains the instant communication information after being decrypted;
Memory module, in instant communication information ciphertext write-in block chain.
11. a kind of calculating equipment, comprising: processor, memory, communication interface and communication bus, the processor, the storage Device and the communication interface complete mutual communication by the communication bus;
The memory executes the processor as right is wanted for storing an at least executable instruction, the executable instruction Ask the corresponding operation of the instant communication method based on block chain described in any one of 1-9.
12. a kind of computer storage medium, an at least executable instruction, the executable instruction are stored in the storage medium Processor is set to execute the corresponding operation of instant communication method as claimed in any one of claims 1-9 wherein based on block chain.
CN201811043374.6A 2018-09-07 2018-09-07 Instant communication method and device based on block chain Withdrawn CN109245993A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811043374.6A CN109245993A (en) 2018-09-07 2018-09-07 Instant communication method and device based on block chain

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811043374.6A CN109245993A (en) 2018-09-07 2018-09-07 Instant communication method and device based on block chain

Publications (1)

Publication Number Publication Date
CN109245993A true CN109245993A (en) 2019-01-18

Family

ID=65060235

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811043374.6A Withdrawn CN109245993A (en) 2018-09-07 2018-09-07 Instant communication method and device based on block chain

Country Status (1)

Country Link
CN (1) CN109245993A (en)

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110035002A (en) * 2019-04-01 2019-07-19 深圳前海达闼云端智能科技有限公司 Method for implementing instant messaging, terminal equipment and storage medium
CN110650083A (en) * 2019-10-15 2020-01-03 腾讯科技(深圳)有限公司 Message filtering method and device
CN111245799A (en) * 2020-01-02 2020-06-05 腾讯科技(深圳)有限公司 Information monitoring method and device and readable storage medium
CN112560057A (en) * 2020-12-16 2021-03-26 深圳市大中华区块链科技有限公司 Business social system based on block chain and IPFS technology
CN112751841A (en) * 2020-12-25 2021-05-04 江苏通付盾科技有限公司 Encryption communication method and system based on block chain technology
CN112769963A (en) * 2021-04-07 2021-05-07 暗链科技(深圳)有限公司 Node communication method based on block distributed block chain and electronic equipment
CN112866090A (en) * 2021-01-20 2021-05-28 临沂呆马区块链网络科技有限公司 Instant communication system and method fusing block chain and point-to-point communication
CN112995298A (en) * 2021-02-06 2021-06-18 福建博泉哈希科技有限公司 Block chain-based communication method and storage medium
CN113194069A (en) * 2021-03-30 2021-07-30 深圳博瑞天下科技有限公司 Communication tracing method, communication tracing device and medium based on block chain
CN113364666A (en) * 2021-05-25 2021-09-07 杭州复杂美科技有限公司 Instant messaging method, computer equipment and storage medium
CN113691437A (en) * 2020-05-18 2021-11-23 山东浪潮质量链科技有限公司 Instant messaging method, equipment and medium based on block chain
WO2022018554A1 (en) * 2020-07-22 2022-01-27 International Business Machines Corporation Dynamically determining trust level of end-to-end link
CN116112458A (en) * 2023-02-09 2023-05-12 网易(杭州)网络有限公司 Communication method, device, equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103701683A (en) * 2013-11-08 2014-04-02 金硕澳门离岸商业服务有限公司 Method, device and system for acquiring friend information
CN106911704A (en) * 2017-03-13 2017-06-30 北京轻信科技有限公司 A kind of encrypting and decrypting method based on block chain
CN107579817A (en) * 2017-09-12 2018-01-12 广州广电运通金融电子股份有限公司 User ID authentication method, apparatus and system based on block chain
DE102016123019A1 (en) * 2016-11-29 2018-07-05 Infineon Technologies Ag A method for electronically initiating an action and an electronic system for electronically initiating an action

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103701683A (en) * 2013-11-08 2014-04-02 金硕澳门离岸商业服务有限公司 Method, device and system for acquiring friend information
DE102016123019A1 (en) * 2016-11-29 2018-07-05 Infineon Technologies Ag A method for electronically initiating an action and an electronic system for electronically initiating an action
CN106911704A (en) * 2017-03-13 2017-06-30 北京轻信科技有限公司 A kind of encrypting and decrypting method based on block chain
CN107579817A (en) * 2017-09-12 2018-01-12 广州广电运通金融电子股份有限公司 User ID authentication method, apparatus and system based on block chain

Cited By (21)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110035002A (en) * 2019-04-01 2019-07-19 深圳前海达闼云端智能科技有限公司 Method for implementing instant messaging, terminal equipment and storage medium
CN110035002B (en) * 2019-04-01 2021-09-10 达闼机器人有限公司 Method for implementing instant messaging, terminal equipment and storage medium
CN110650083A (en) * 2019-10-15 2020-01-03 腾讯科技(深圳)有限公司 Message filtering method and device
CN110650083B (en) * 2019-10-15 2021-04-13 腾讯科技(深圳)有限公司 Message filtering method and device
CN111245799B (en) * 2020-01-02 2022-01-11 腾讯科技(深圳)有限公司 Information monitoring method and device and readable storage medium
CN111245799A (en) * 2020-01-02 2020-06-05 腾讯科技(深圳)有限公司 Information monitoring method and device and readable storage medium
CN113691437A (en) * 2020-05-18 2021-11-23 山东浪潮质量链科技有限公司 Instant messaging method, equipment and medium based on block chain
CN113691437B (en) * 2020-05-18 2023-04-18 山东浪潮质量链科技有限公司 Instant messaging method, equipment and medium based on block chain
US11297105B2 (en) 2020-07-22 2022-04-05 International Business Machines Corporation Dynamically determining a trust level of an end-to-end link
WO2022018554A1 (en) * 2020-07-22 2022-01-27 International Business Machines Corporation Dynamically determining trust level of end-to-end link
GB2611992A (en) * 2020-07-22 2023-04-19 Ibm Dynamically determining trust level of end-to-end link
CN112560057B (en) * 2020-12-16 2022-11-18 深圳市大中华区块链科技有限公司 Business social system based on block chain and IPFS technology
CN112560057A (en) * 2020-12-16 2021-03-26 深圳市大中华区块链科技有限公司 Business social system based on block chain and IPFS technology
CN112751841A (en) * 2020-12-25 2021-05-04 江苏通付盾科技有限公司 Encryption communication method and system based on block chain technology
CN112866090A (en) * 2021-01-20 2021-05-28 临沂呆马区块链网络科技有限公司 Instant communication system and method fusing block chain and point-to-point communication
CN112995298A (en) * 2021-02-06 2021-06-18 福建博泉哈希科技有限公司 Block chain-based communication method and storage medium
CN113194069A (en) * 2021-03-30 2021-07-30 深圳博瑞天下科技有限公司 Communication tracing method, communication tracing device and medium based on block chain
CN112769963A (en) * 2021-04-07 2021-05-07 暗链科技(深圳)有限公司 Node communication method based on block distributed block chain and electronic equipment
CN113364666A (en) * 2021-05-25 2021-09-07 杭州复杂美科技有限公司 Instant messaging method, computer equipment and storage medium
CN113364666B (en) * 2021-05-25 2022-06-28 杭州复杂美科技有限公司 Instant messaging method, computer equipment and storage medium
CN116112458A (en) * 2023-02-09 2023-05-12 网易(杭州)网络有限公司 Communication method, device, equipment and storage medium

Similar Documents

Publication Publication Date Title
CN109245993A (en) Instant communication method and device based on block chain
US20230216947A1 (en) Method and System to Implement Secure Real Time Communications (SRTC) Between WebRTC and the Internet of Things (IoT)
CN105027493B (en) Safety moving application connection bus
KR101508360B1 (en) Apparatus and method for transmitting data, and recording medium storing program for executing method of the same in computer
CN105993146B (en) Method and apparatus for establishing secured session with client device
CN109347835A (en) Information transferring method, client, server and computer readable storage medium
JP5713531B2 (en) Secure instant messaging
Singer et al. Design and comparison of command shaping methods for controlling residual vibration
CN111431713B (en) Private key storage method and device and related equipment
CN108476133A (en) The key carried out by the believable third party in part exchanges
CN107493162A (en) The implementation method and device of block chain node
EP1913728B1 (en) Total exchange session security
CN104883367B (en) A kind of method, system and applications client that auxiliary verification logs in
CN104378379B (en) A kind of digital content encrypted transmission method, equipment and system
CN102577230A (en) Low-latency peer session establishment
CN107918731A (en) Method and apparatus for controlling the authority to access to open interface
CN108156178A (en) A kind of SSL/TLS data monitoring systems and method
CN109741068A (en) Internetbank inter-bank contracting method, apparatus and system
CN111131416A (en) Business service providing method and device, storage medium and electronic device
CN110166577A (en) Distributed Application cluster conversation processing system and method
CN110049032A (en) A kind of the data content encryption method and device of two-way authentication
CN109995739A (en) A kind of information transferring method, client, server and storage medium
JP2007060213A (en) Key distribution device and method therefor
CN109740319A (en) Digital identity verification method and server
CN115580415B (en) Data interaction authentication method, device and system in block chain

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
TA01 Transfer of patent application right

Effective date of registration: 20210121

Address after: 215163 No. 9 Xuesen Road, Science and Technology City, Suzhou High-tech Zone, Jiangsu Province

Applicant after: Suzhou Lang run innovation intellectual property operation Co.,Ltd.

Address before: 100034 4008, 4 floor, 9 building, 56 half moon street, Xicheng District, Beijing.

Applicant before: SINOCHAIN TECHNOLOGY Co.,Ltd.

TA01 Transfer of patent application right
WW01 Invention patent application withdrawn after publication

Application publication date: 20190118

WW01 Invention patent application withdrawn after publication