WO2019200920A1 - 基于区块链的即时通讯系统实现方法、介质和计算设备 - Google Patents

基于区块链的即时通讯系统实现方法、介质和计算设备 Download PDF

Info

Publication number
WO2019200920A1
WO2019200920A1 PCT/CN2018/117251 CN2018117251W WO2019200920A1 WO 2019200920 A1 WO2019200920 A1 WO 2019200920A1 CN 2018117251 W CN2018117251 W CN 2018117251W WO 2019200920 A1 WO2019200920 A1 WO 2019200920A1
Authority
WO
WIPO (PCT)
Prior art keywords
instant messaging
user
domain
server
domain instant
Prior art date
Application number
PCT/CN2018/117251
Other languages
English (en)
French (fr)
Inventor
陈刚
阮良
徐杭生
罗尚虎
Original Assignee
网易(杭州)网络有限公司
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 网易(杭州)网络有限公司 filed Critical 网易(杭州)网络有限公司
Priority to US17/044,764 priority Critical patent/US11595328B2/en
Publication of WO2019200920A1 publication Critical patent/WO2019200920A1/zh

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]
    • H04L51/046Interoperability with other network applications or services
    • 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/52User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail for supporting social networking services
    • 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/08Protocols specially adapted for terminal emulation, e.g. Telnet
    • 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
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/146Markers for unambiguous identification of a particular session, e.g. session cookie or URL-encoding

Definitions

  • Embodiments of the present invention relate to the field of instant messaging technologies, and more particularly, embodiments of the present invention relate to a blockchain-based instant messaging system implementation method, medium, and computing device.
  • each instant messaging application has its own communication server to provide services for it.
  • the WeChat application has a WeChat background server to provide services for it
  • the QQ application has a QQ background server to serve it.
  • both users have to download and use the same even communication application in order to be able to interact through the instant messaging application, which is extremely inconvenient and makes the user experience worse.
  • an improved instant messaging system that includes a plurality of instant messaging applications corresponding to an instant messaging server, and can enable interaction between various instant messaging servers so that multiple instant messaging applications can Realize instant messaging and improve user experience.
  • embodiments of the present invention are directed to providing a blockchain-based instant messaging system implementation method, medium, and computing device.
  • a blockchain-based instant messaging system implementation method includes a central node and at least two domain instant messaging servers, and the central node includes a management node. And a blockchain node, wherein the blockchain node stores user-related information, the at least two domain instant messaging servers respectively correspond to at least two instant messaging applications, and the method is applied to the central node,
  • the method includes the following steps: in response to the request of the domain instant messaging server, performing a corresponding operation or providing corresponding information related to the user to the domain instant messaging server.
  • the responding to the request of the domain instant messaging server, performing a corresponding operation comprising: the management node responding to receiving a registration request sent by the user through one of the domain instant messaging servers, A registration process for the user is performed, and related information of the user is recorded.
  • the recording related information of the user includes: the management node assigns a unique identifier of the system to the user, and establishes a mapping between the unique identifier of the system and the initial identifier requested by the user for registration. Relationships, and information related to the unique identification of the system is recorded in the blockchain node.
  • the related information of the unique identifier of the system is at least one of the following related information: a unique identifier of the system, a signature of the unique identifier of the system, and a unique identifier of the system.
  • the initial identifier of the user requesting registration is a mobile phone number.
  • the method further includes: the management node using the new identifier for registration in response to the user requesting to change an initial identifier of a user request registration by using a new identifier for registration , updating the mapping relationship.
  • the recording the related information of the user comprises: recording an identifier of a domain instant messaging server from which the registration request of the user is received.
  • the method further includes: the management node broadcasting, to other domain instant messaging servers, an identifier of a domain instant messaging server from which the user's registration request is received.
  • the responding to the request sent by the domain instant messaging server providing corresponding information related to the user to the domain instant messaging server, including: the blockchain node And responding to the request for obtaining the user buddy list sent by one of the domain instant messaging servers, and providing related information of the corresponding user buddy list to the one of the domain instant messaging servers.
  • the related information of the user buddy list is at least one of the following related information: the user buddy list, the signature of the user buddy list, the address information of the user buddy list, The feature value when the user friend relationship is established and the overall feature value of the user friend list.
  • the user buddy list is established by the user through another domain instant messaging server, and is delivered to the blockchain node by the other domain instant messaging server, or the user
  • the buddy list is that the user initiates a setup request through another domain instant messaging server, is established by the management node, and is stored in the blockchain node.
  • the method further includes: the management node receiving the social circle dynamics published by the user through one of the domain instant messaging servers, and dynamically transmitting the social circle to other domain instant messaging servers.
  • the method includes: the management node sending a user login verification to the one of the domain instant messaging servers in response to a user login request on one of the domain instant messaging servers result.
  • each domain instant messaging server comprises an instant messaging server or server cluster, the one instant messaging server or server cluster providing services for a corresponding instant messaging application.
  • the method comprises: recording an identity of a domain instant messaging server from which the user's login request is received.
  • the method wherein the identifier of the domain instant messaging server from which the login request of the user is received is included: domain instant communication from which the user's current login request is received In the case where the server changes from the domain instant messaging server from which the last login request was received, the identity of the domain instant messaging server from which the user's current login request was received is recorded.
  • the method further comprises: the management node broadcasting, to the other domain instant messaging server, an identifier of the domain instant messaging server from which the user's login request is received.
  • the responding to the request of the domain instant messaging server performing a corresponding operation, comprising: transmitting related information to the target domain in response to the request of the domain instant messaging server to send information An instant messaging server, wherein the target domain instant messaging server includes a target user registration corresponding to the sending information or a recently logged in domain communication server.
  • a data processing method in an instant messaging system including a central server and at least two domain instant messaging servers, the central server storing user-related Information, the at least two domain instant messaging servers respectively correspond to at least two instant messaging applications, the method being applied to the central server, the method comprising: responding to a request of the domain instant messaging server, performing corresponding The operation or providing corresponding information related to the user to the domain instant messaging server.
  • the responding to the request of the domain instant messaging server performing a corresponding operation, including: in response to receiving a registration request sent by the user through one of the domain instant messaging servers, performing the The user's registration process, and the relevant information of the user is recorded therein.
  • the recording related information of the user includes: assigning a unique identifier of the system to the user, and establishing a mapping relationship between the unique identifier of the system and the initial identifier that the user requests to register.
  • the method further includes: storing related information of the unique identifier of the system, where the related information of the unique identifier of the system is at least one of the following related information: the system is unique The identifier of the system, the signature of the unique identifier of the system, the address information of the unique identifier of the system, and the feature value when the unique identifier of the system is established.
  • the initial identifier of the user requesting registration includes a mobile phone number.
  • the method further comprises: in response to the request by the user to change the initial identity of the user request registration with a new identity for registration, using the new identity for registration, updating the Mapping relations.
  • the recording of the related information of the user therein includes: recording an identifier of a domain instant messaging server from which the registration request of the user is received.
  • the method further comprises: broadcasting the identity of the domain instant messaging server of the registration request of the user recorded from the other domain instant messaging server.
  • the responding to the request sent by the domain instant messaging server providing corresponding information related to the user to the domain instant messaging server, including: responding to one of the domains in real time
  • the request for obtaining the user buddy list sent by the communication server, and the related information of the corresponding user buddy list is provided to the one of the domain instant messaging servers.
  • the user buddy list is established by the user through another domain instant messaging server, and is delivered to the central server by the other domain instant messaging server, or the user buddy list
  • the user initiates a setup request through another domain instant messaging server and is established by the central server.
  • the related information of the user buddy list is at least one of the following related information: the user buddy list, the signature of the user buddy list, the address information of the user buddy list, The feature value when the user friend relationship is established and the overall feature value of the user friend list.
  • the method further includes: receiving a social circle dynamic posted by the user through one of the domain instant messaging servers, and dynamically providing the social circle to other domain instant messaging servers.
  • the responding to the request of the local instant messaging server performing corresponding operations, including: responding to the login request of the user on one of the domain instant messaging servers, to the one of the domains immediately
  • the communication server sends the user login verification result.
  • the method further comprises: recording an identity of the domain instant messaging server from which the user's login request was received.
  • the identifier of the domain instant messaging server from which the login request of the user is received is included, including: a domain instant messaging server and a slave from which the current login request of the user is received In the case where the domain instant messaging server that received the last login request changes, the identifier of the domain instant messaging server from which the current login request of the user is received is recorded.
  • the method further comprises: broadcasting the identity of the domain instant messaging server from which the user's login request is recorded to the other domain instant messaging server.
  • the responding to the request of the domain instant messaging server performing a corresponding operation, comprising: transmitting related information to the target domain in response to the request of the domain instant messaging server to send information An instant messaging server, wherein the target domain instant messaging server includes a target user registration corresponding to the sending information or a recently logged in domain communication server.
  • each domain instant messaging server comprises an instant messaging server or server cluster, the one instant messaging server or server cluster providing services for a corresponding instant messaging application.
  • the method wherein: the central server comprises a management node and a storage node.
  • the management node is configured to perform at least one of: performing a registration process for the user, assigning a unique identifier to the user, and establishing the system unique The mapping between the identity of the user and the initial identity of the user requesting registration and receiving the social circle dynamics posted by the user.
  • the storage node is configured to store at least one of: a user's system unique identifier related message, a user buddy list related message, and an instant communication between users The recorded data of the message.
  • the method further includes: issuing an incentive resource to the user according to the recorded data of the instant communication message between the users.
  • the method wherein: the storage node is a blockchain node.
  • a data processing method in an instant messaging system including a central server and at least two domain instant messaging servers, the central server storing user-related Information, the at least two domain instant messaging servers respectively correspond to at least two instant messaging applications, the method being applied to one of the domain instant messaging servers, the method comprising: responding to a user registration, a recent login request, or An identifier of another domain instant messaging server that is broadcast by the central server that receives the user's registration, recent login request, records or updates the domain registration server that the user registered or recently logged in.
  • the method includes: accepting a request of a user to send information, determining a target user registration of the information or a recently logged-in domain communication server, if it is itself, sending the information via the same If it is another domain instant messaging server, the information is forwarded to the central server, and the central server forwards it to other domain instant messaging servers.
  • the information includes any one or more of the following: general communication information, social circle dynamic notification information, or group information.
  • the method wherein, in a case where the information includes social circle dynamic notification information or group information, determining, for each target user of the plurality of target users of the information, The domain user server registered or recently logged in, if it is itself, the information is sent; if it is another domain instant messaging server, the information is forwarded to the central server, and the central server forwards Give other domain instant messaging servers.
  • a computing device comprising: a processing unit; and a storage unit having stored thereon an executable instruction, the instruction being executed by the processing unit to cause the processing unit Perform any of the methods described above.
  • a computer readable storage medium having stored thereon executable instructions that, when executed by a processing unit, cause the processing unit to perform any of the methods described above .
  • the communication connection between the central server and the plurality of domain instant communication servers enables the plurality of domain instant communication servers to share the respective users through the central server. Relevant information and interaction between different domain instant messaging servers through a central server.
  • FIG. 1 schematically shows an application scenario according to an embodiment of the present invention
  • FIG. 2 is a flow chart schematically showing a blockchain-based instant messaging system data processing method according to an embodiment of the present invention
  • FIG. 3 is a flow chart schematically showing a data processing method in an instant messaging system according to an embodiment of the present invention
  • FIG. 4 is a flow chart schematically showing a data processing method in an instant messaging system according to another embodiment of the present invention.
  • FIG. 5 schematically illustrates a schematic diagram of a readable storage medium in accordance with an embodiment of the present invention
  • FIG. 6 schematically illustrates a computing device suitable for implementing a data processing method and system in an instant messaging system in accordance with an embodiment of the present invention.
  • embodiments of the present invention can be implemented as a system, apparatus, device, method, or computer program product. Accordingly, the present disclosure may be embodied in the form of full hardware, complete software (including firmware, resident software, microcode, etc.), or a combination of hardware and software.
  • a data processing method, medium, and computing device in an instant messaging system are proposed.
  • an instant communication system in order to enable instant communication between different communication applications, can be constructed, and the instant communication system can include a central server and a plurality of domain instant communication servers, and the central server can communicate with multiple domain instant messaging servers.
  • the communication connection is realized, so that each domain instant communication server can send the corresponding data to the central server, share the data through the central server, and realize the interaction between the instant messaging servers of different domains through the central server.
  • Figure 1 schematically illustrates an application scenario in accordance with an embodiment of the present invention.
  • the application scenario includes an instant messaging system 100.
  • the instant messaging system 100 can include a central server 110, a first domain instant messaging server 120, and a second domain instant messaging server 130.
  • the central server 110 can implement a communication connection with the first domain instant messaging server 120 and the second domain instant messaging server 130, such as a wired, wireless communication link, or fiber optic cable, and the like.
  • the first domain instant messaging server 120 and the second domain instant messaging server 130 may be servers or server clusters that provide services for corresponding instant messaging applications.
  • it can be a variety of backend servers or server clusters that provide support for instant messaging applications.
  • the first domain instant messaging server 120 can provide services for the WeChat application
  • the second domain instant messaging server 120 can provide services for the QQ application, and the like.
  • the central server 110 may be, for example, a gateway node, a routing node, a management platform, or other types of devices that store at least a portion of the public information of the domain instant messaging server to which it is connected.
  • the user A sends a message to the user B through the first instant messaging application
  • the first domain instant messaging server 120 can determine whether the user B is registered or recently logged in as the first domain instant messaging server 120, and if so, It is considered that user A and user B belong to the same domain instant messaging server. Therefore, the first domain instant messaging server 120 sends the message to user B. Otherwise, the message is sent to the central server 110, and the central server 110 sends the message to the server.
  • FIG. 2 is a flow chart schematically showing a method of implementing a blockchain-based instant messaging system in accordance with an embodiment of the present invention.
  • an instant messaging system includes a central node and at least two domain instant messaging servers.
  • the central node includes a management node and a blockchain node, and the blockchain node stores information related to the user.
  • At least two domain instant messaging servers correspond to at least two instant messaging applications, respectively.
  • the central node is capable of implementing a communication connection with at least two domain instant messaging servers.
  • the domain instant messaging server may be a server or a server cluster that provides services for the corresponding instant messaging application, for example, may be various background servers or server clusters that provide support for the instant messaging application.
  • the WeChat domain instant messaging server can provide services for WeChat applications
  • the QQ domain instant messaging server can provide services for QQ applications, and the like.
  • the method includes operations S201 to S202, and the method can be applied to a central node.
  • the central node can implement a communication connection with the domain instant messaging server, so that data interaction can be achieved.
  • the corresponding operation may be performed by the central node in response to the request of the domain instant messaging server, for example, the central node may receive the request from the domain instant messaging server, and provide information related to the request to the domain instant messaging server; A request from a domain instant messaging server sends the relevant information to another domain instant messaging server; or the central node receives the request from the domain instant messaging server and performs a corresponding operation at the central node.
  • performing a corresponding operation in response to the request of the domain instant messaging server may include: the management node performing registration processing for the user in response to receiving the registration request sent by the user through one of the domain instant messaging servers, And record information about the user.
  • the domain instant messaging server A can send the registration request of the user to the management node, and the management node performs corresponding registration processing, and records related information of the user in the blockchain.
  • the related information records of registered users from different domain instant messaging servers can be summarized in the blockchain node.
  • Each domain instant messaging server can access user-related information stored in the blockchain node, thereby enabling cross-domain interaction.
  • the management node may assign a unique identifier to the user, establish a mapping relationship between the unique identifier of the system and the initial identifier requested by the user, and record related information of the unique identifier of the system in the blockchain.
  • the initial identifier of the user requesting registration may be, for example, a mobile phone number.
  • the management node can assign a unique system identifier to each user in the entire instant messaging system to indicate the identity of the user in the instant messaging system, and establish a system identity and user.
  • the mapping relationship of the initial identity requesting registration For example, the user registers with the mobile phone number, and the central server assigns the system identifier IFJij83aOPsl (for example only), and establishes a mapping relationship between the system identifier and the user's mobile phone number, thereby determining the unique identity of the user in the system.
  • the QQID of the user in the QQ may be AAAAAA
  • the WeChat ID in the WeChat may be BBBBBB
  • the central server may also establish different application identifiers, unique system identifiers, and users of the user in different instant messaging applications.
  • the management node may record related information of the unique identifier of the system in the blockchain node, wherein the related information of the unique identifier of the system is at least one of the following related information: a system unique identifier, a system The signature of the unique identifier, the address information of the unique identifier of the system, and the feature value when the unique identifier of the system is established.
  • the management node may also update the mapping relationship using the new identity for registration in response to the user's request to change the initial identity of the user request registration with the new identity for registration.
  • the embodiment of the present disclosure allows the user to change the mobile phone number. After the user replaces the mobile phone number, the unique system identifier of the user does not change, and only the initial mobile phone number at the time of registration is replaced with the new mobile phone number, and the mobile phone number and unique are updated.
  • the mapping relationship between the system identifiers is not changed.
  • the recording the related information of the user may further include recording an identifier of the domain instant messaging server from which the user's registration request is received.
  • the user registers with the domain instant messaging server A, and the domain instant messaging server A sends the user's registration request to the central node, and the central node records the related information of the user, and the related information may include the domain instant messaging server A that the user registers.
  • the identification so that the central node can record which instant messaging application the user is registered with.
  • the management node may broadcast to other domain instant messaging servers the identity of the domain instant messaging server from which the user's registration request was received. For example, after receiving the new user registration request and recording, the management node may broadcast the new user and the identity of the domain instant messaging server registered by the new user to other domain instant messaging servers, so that each domain instant messaging server may also update the Information about users.
  • the corresponding user-related information in response to the request sent by the domain instant messaging server, is provided to the domain instant messaging server, including: the blockchain node responds to the acquiring user sent by one of the domain instant messaging servers.
  • the request of the buddy list provides related information of the corresponding buddy list to one of the domain instant messaging servers.
  • related information of the user buddy list of each user may be stored in the blockchain node.
  • the buddy list may be established by the user through other domain instant messaging servers and delivered to the blockchain node by other domain instant messaging servers, or may be initiated by the user through other domain instant messaging servers, established by the management node, and stored.
  • the blockchain node In the embodiment of the present disclosure, related information of the user buddy list of each user may be stored in the blockchain node.
  • the user logs in through the domain instant messaging server A, and the domain instant messaging server A can send a request to the blockchain node to obtain the buddy list of the user, and then the blockchain node provides the stored buddy list of the user to the domain.
  • Instant messaging server A Similarly, the user logs in through the domain instant messaging server B, and can also obtain the buddy list through the blockchain node.
  • the blockchain node in the embodiment of the present disclosure can store related information of the buddy list of each user, so that the user can obtain his buddy list regardless of which instant messaging application is logged in, so that information interaction with the buddy can be performed.
  • the related information of the user buddy list may be at least one of the following related information: a user buddy list, a signature of the user buddy list, address information of the user buddy list, a feature value when the user buddy relationship is established, and a user.
  • the overall feature value of the buddy list may be at least one of the following related information: a user buddy list, a signature of the user buddy list, address information of the user buddy list, a feature value when the user buddy relationship is established, and a user.
  • the related information of the buddy list may include the buddy avatar data and the like, and the occupied storage space is extremely large.
  • the signature of the user buddy list, the address information of the user buddy list, and the user buddy relationship may be stored. At least one of the feature value at the time of creation and the overall feature value of the user buddy list.
  • the management node may receive social circle dynamics posted by the user through one of the domain instant messaging servers, and dynamically transmit the social circle to other domain instant messaging servers.
  • the management node can actively send the social circle dynamically to other domain instant messaging servers, or can dynamically send the social circle to other domain instant messaging servers in response to the dynamic request of the domain instant messaging server.
  • user X posts social circle dynamics through domain instant messaging server A (eg, WeChat friends circle, QQ space, etc.), and the management node can receive the social circle dynamics, and then actively send the social circle dynamically to user X's buddy list.
  • domain instant messaging server A eg, WeChat friends circle, QQ space, etc.
  • Each domain instant messaging server in which the friend is located may also dynamically send the social circle to the requesting domain instant messaging server in response to the dynamic request of the domain instant messaging server where the friend in the friend list of the user X is located.
  • performing a corresponding operation may include: the management node transmitting the user to one of the domain instant messaging servers in response to the user's login request on one of the domain instant messaging servers Login verification results.
  • the corresponding domain instant messaging server when the user logs in through the domain instant messaging server, the corresponding domain instant messaging server sends the login request of the user to the management node, and then the management node verifies the login request, and sends the verification result to The domain instant messaging server.
  • the central node after receiving the login request of the user, the central node records the identity of the domain instant messaging server from which the user's login request is received. Therefore, the login information of each user can be stored in the blockchain node, for example, when the user logs in, which domain instant messaging server the user logs in, and the like.
  • the management node may record the current login from the receiving user of the domain instant messaging server of the user's current login request received from the user and the domain instant messaging server from which the last login request was received. The identity of the requested domain instant messaging server.
  • the domain instant messaging server that the user logs in this time may determine whether the user's current login and the last-time domain instant messaging server change, and if the change occurs, the user sends the current login request. Give the central node so that the central node logs its login information.
  • the domain instant messaging server that the user logs in this time may directly send the user's current login request to the central node, and the central node determines whether the user's current login and the last registered domain instant messaging server occur.
  • Change in the case of a change, the central node records the changed login information, and can broadcast the changed login information to other domain instant messaging servers.
  • the management node may broadcast the identity of the domain instant messaging server from which the user's login request is recorded to other domain instant messaging servers.
  • the management node may broadcast to the other domain instant messaging server after recording the user's login request, so that each domain instant messaging server can synchronize the login information of each user recorded in the blockchain node, and then the domain instant messaging server. It is also possible to know which domain instant messaging server the individual instant messaging system is logged in to when the user logs in to the instant.
  • performing a corresponding operation may include: the management node transmitting the related information to the target domain instant messaging server in response to the request of the domain instant messaging server to send the information, where
  • the target domain instant messaging server includes a target user registration corresponding to the sending information or a recently registered domain communication server.
  • the user X may first determine whether the target user registration or the recently logged domain instant messaging server is the same as the domain instant messaging server where the user X is currently located. The domain instant messaging server sends the information. If it is different, the information is sent to the central node, and the central node sends the domain instant messaging server to the target user registration or recently logged in, and then the target user registers or recently logs in to the domain instant messaging server. Send the message to the target user.
  • the embodiment of the present disclosure can implement a communication connection with a plurality of domain instant messaging servers through a central node, and the related information of each user can be stored in the blockchain node, so that multiple domain instant messaging servers can share each user through the blockchain node. Relevant information, and interaction between different domain instant messaging servers is implemented through a central node.
  • FIG. 3 schematically shows a flow chart of a data processing method in an instant messaging system according to an embodiment of the present invention.
  • an instant messaging system may include a central server and at least two domain instant messaging servers.
  • the central server stores information related to the user, and the at least two domain instant messaging servers respectively correspond to at least two instant messaging applications.
  • the domain instant messaging server may be a server or a server cluster that provides services for the corresponding instant messaging application, for example, may be various background servers or server clusters that provide support for the instant messaging application.
  • the WeChat domain instant messaging server can provide services for WeChat applications
  • the QQ domain instant messaging server can provide services for QQ applications, and the like.
  • the central server is capable of implementing a communication connection with at least two domain instant messaging servers, which may be, for example, at least part of public information of at least two domain instant messaging servers with which they are connected (eg, related to the user) Information) gateways, routes, and other network nodes.
  • domain instant messaging servers may be, for example, at least part of public information of at least two domain instant messaging servers with which they are connected (eg, related to the user) Information) gateways, routes, and other network nodes.
  • the method includes operations S301 to S302, and the method can be applied to a central server.
  • the central server can implement a communication connection with the domain instant messaging server, so that data interaction can be achieved.
  • the corresponding operation may be performed by the central server in response to the request of the domain instant messaging server, for example, the central server may receive the request from the domain instant messaging server, and send the information related to the request to the domain instant messaging server; or the central server may receive the The request of a domain instant messaging server sends the related information to another domain instant messaging server; or the central server receives the request from the domain instant messaging server, records or processes the corresponding request, and the like.
  • performing the corresponding operation in response to the request of the domain instant messaging server may include: performing a registration process for the user in response to receiving the registration request sent by the user through one of the domain instant messaging servers, and It records the relevant information of the user.
  • the domain instant messaging server A can send the registration request of the user to the central server, and the central server performs corresponding registration processing, and records related information of the user, so that the user can come from
  • the related information records of registered users of different domain instant messaging servers are summarized in the central server.
  • Each domain instant messaging server can access the public information stored in the central server, and the central server can also broadcast the corresponding public information to each domain instant messaging server, thereby realizing cross-domain interaction.
  • the recording the related information of the user in the central server may include: assigning the unique identifier of the system to the user, and establishing a mapping relationship between the unique identifier of the system and the initial identifier that the user requests to register.
  • the initial identifier that the user requests to register may be, for example, a mobile phone number.
  • the central server assigns a unique system identifier to the user in the entire instant messaging system to indicate the identity of the user in the instant messaging system, and establishes the system identifier and the initial identifier of the user requesting registration. Mapping relations. For example, the user registers with the mobile phone number, and the central server assigns the system identifier IFJij83aOPsl (for example only), and establishes a mapping relationship between the system identifier and the user's mobile phone number, thereby determining the unique identity of the user in the system.
  • the system identifier IFJij83aOPsl for example only
  • the user may have different application identifiers in different instant messaging applications.
  • the QQID of the user in the QQ may be AAAAAA
  • the WeChat ID in the WeChat may be BBBBBB
  • the user may also establish the name in the central server.
  • the related information for recording the user may include related information of the unique identifier of the storage system, and the related information of the unique identifier of the system is at least one of the following related information: a unique identifier of the system, and a unique system.
  • the central server may also update the mapping relationship using the new identity for registration in response to the user's request to change the initial identity of the user request registration with the new identity for registration.
  • the embodiment of the present disclosure allows the user to change the mobile phone number. After the user replaces the mobile phone number, the unique system identifier of the user does not change, and only the initial mobile phone number at the time of registration is replaced with the new mobile phone number, and the mobile phone number and unique are updated.
  • the mapping relationship between the system identifiers is not changed.
  • the recording of the related information of the user in the central server may further include recording an identifier of the domain instant messaging server from which the registration request of the user is received.
  • the user registers with the domain instant messaging server A, and the domain instant messaging server A sends the user's registration request to the central server, and the central server records the related information of the user, and the related information may include the domain instant messaging server A that the user registers.
  • the identification allows the central server to record which instant messaging application the user is registered with.
  • the central server may broadcast the identity of the domain instant messaging server of the registration request of the user recorded from it to other domain instant messaging servers. For example, after receiving the new user registration request and recording, the central server may broadcast the new user and the identity of the domain instant messaging server registered by the new user to other domain instant messaging servers, so that the domain instant messaging servers can share the system. Dynamic Information.
  • the corresponding user-related information is provided to the domain instant messaging server in response to the request sent by the domain instant messaging server, including: responding to the request for obtaining the user buddy list sent by one of the domain instant messaging servers And providing related information of the corresponding user buddy list to the one of the domain instant messaging servers.
  • the buddy list of each user may be stored in the central server, and the buddy relationship in the buddy list may be established by the user through other domain instant messaging servers and transmitted to the central server by other domain instant messaging servers, or It is also possible that the user initiates a setup request through another domain instant messaging server and is established by the central server.
  • the user logs in through the domain instant messaging server A, and the domain instant messaging server A can send a request to the central server to obtain the buddy list of the user, and then the central server provides the stored buddy list of the user to the domain instant messaging server A. .
  • the user logs in through the domain instant messaging server B, and can also obtain the buddy list through the central server.
  • the central server in the embodiment of the present disclosure can store the buddy list of each user, so that the user can obtain his buddy list regardless of which instant messaging application is logged in, so that information interaction with the buddy can be performed.
  • the related information of the user buddy list may be at least one of the following related information: a user buddy list, a signature of the user buddy list, address information of the user buddy list, a feature value when the user buddy relationship is established, and a user.
  • the overall feature value of the buddy list may be at least one of the following related information: a user buddy list, a signature of the user buddy list, address information of the user buddy list, a feature value when the user buddy relationship is established, and a user.
  • the related information of the buddy list may include the buddy avatar data and the like, and the occupied storage space is extremely large.
  • the signature of the user buddy list, the address information of the user buddy list, and the user buddy relationship may be stored. At least one of the feature value at the time of creation and the overall feature value of the user buddy list.
  • the central server may receive social circle dynamics posted by the user through one of the domain instant messaging servers, and dynamically send the social circle to other domain instant messaging servers.
  • the central server can actively send the social circle dynamically to other domain instant messaging servers, or can dynamically send social circles to other domain instant messaging servers in response to the dynamic request of the domain instant messaging server.
  • user X posts social circle dynamics through domain instant messaging server A (eg, WeChat friends circle, QQ space, etc.), the central server can receive the social circle dynamics, and then the central server can actively send the social circle dynamically to user X.
  • the domain instant messaging server where the friends in the buddy list are located may also dynamically send the social circle to the requesting domain instant messaging server in response to the dynamic request of the domain instant messaging server where the friend in the buddy list of the user X is located. .
  • performing a corresponding operation in response to the request of the domain instant messaging server may include: transmitting a user to the one of the domain instant messaging servers in response to the user's login request on one of the domain instant messaging servers Login verification results.
  • the corresponding domain instant messaging server when the user logs in through the domain instant messaging server, the corresponding domain instant messaging server sends the login request of the user to the central server, and then the central server verifies the login request and sends the verification result to the The domain instant messaging server.
  • the central server after receiving the login request of the user, the central server records the identity of the domain instant messaging server from which the user's login request is received.
  • the central server can store login information of each user, for example, when the user logs in, which domain instant messaging server the user logs in, and the like.
  • the central server may record the current login from the receiving user of the domain instant messaging server of the user's current login request received from the user and the domain instant messaging server from which the last login request was received. The identity of the requested domain instant messaging server.
  • the domain instant messaging server that the user logs in this time may determine whether the user's current login and the last-time domain instant messaging server change, and if the change occurs, the user sends the current login request. Give the hub server so that the hub server logs its login information.
  • the domain instant messaging server that the user logs in this time may directly send the user's current login request to the central server, and the central server determines whether the user's current login and the last registered domain instant messaging server occur.
  • Change in the case of a change, the central server records the changed login information, and can broadcast the changed login information to other domain instant messaging servers.
  • the central server in the embodiment of the present disclosure can record which domain instant messaging server the individual instant messaging system is logged in to when the user logs in to the instant.
  • the central server may broadcast the identity of the domain instant messaging server from which the user's login request is recorded to other domain instant messaging servers.
  • the central server can broadcast to the other domain instant messaging server after recording the user's login request, so that the domain instant messaging server can synchronize the login information of the central server, and the domain instant messaging server can also know the latest time of each user.
  • performing the corresponding operation in response to the request of the domain instant messaging server may include: transmitting the related information to the target domain instant messaging server in response to the request of the domain instant messaging server to send the information, where the target The domain instant messaging server includes a target user registration corresponding to the sending information or a recently logged in domain communication server.
  • the user X may first determine whether the target user registration or the recently logged domain instant messaging server is the same as the domain instant messaging server where the user X is currently located. The domain instant messaging server sends the information. If it is different, the information is sent to the central server, and the central server sends the domain instant messaging server to the target user registration or recently logged in, and then the target user registers or recently logs in to the domain instant messaging server. Send the message to the target user.
  • the central server may include a management node and a storage node.
  • the management node may be configured to perform at least one of: performing registration processing for the user, assigning the system a unique identifier to the user, establishing a mapping relationship between the unique identifier of the system and the initial identifier requested by the user, and receiving the user release.
  • Social circle dynamics may be performed by the management node.
  • the storage node is configured to store at least one of the following: a unique identifier of the user's system, a list of user buddies, and record data of instant messaging messages between the users.
  • the management node may issue an incentive resource reward to the user according to the record data of the instant communication message between the users.
  • the storage node may be a blockchain node.
  • the embodiment of the present disclosure can implement a communication connection with a plurality of domain instant messaging servers through a central server, and the central server can store and update related information of each user, so that multiple domain instant messaging servers can share related information of each user through the central server. And through the central server to achieve interaction between different domain instant messaging servers.
  • FIG. 4 is a flow chart schematically showing a data processing method in an instant messaging system according to another embodiment of the present invention.
  • an instant messaging system may include a central server and at least two domain instant messaging servers.
  • the central server stores information related to the user, and the at least two domain instant messaging servers respectively correspond to at least two instant messaging applications.
  • the method includes operations S401 to S402, which can be applied to one of the domain instant messaging servers.
  • the central server and each domain instant messaging server can store the domain instant messaging server registered by each user or recently logged in.
  • the domain instant messaging server registered by user A is the domain instant messaging server 1, and the recently logged domain instant communication
  • the server is the domain instant messaging server 2
  • the domain instant messaging server registered by the user B is the domain instant messaging server 3
  • the recently logged domain instant messaging server is the domain instant messaging server 1 and the like. Therefore, when the user sends the message, the information may be used to determine whether the registration of the target user or the registered domain instant messaging server is the local instant messaging server, thereby determining whether the local instant messaging server sends the message or sends the message to the local instant messaging server.
  • the central server is forwarded to other domain instant messaging servers via the central server.
  • the domain instant messaging server that receives the user registration or login request needs to send the registration or login request information to the user information while updating its own user information.
  • the central server is broadcasted by the central server to other domain instant messaging servers, so that other various domain instant messaging servers can also update or record the user information of the user in time.
  • the current domain instant messaging server may record the user and the user after receiving the registration request of the user.
  • the domain instant messaging server identity of the registration behavior that is, the current domain instant messaging server.
  • the current domain instant messaging server may update the domain instant messaging server identifier (ie, the current domain instant messaging server) of the user's login behavior.
  • the domain instant messaging server A records the registered user, or when the user logs in at the domain instant messaging server A, the user's login status is updated in the domain instant messaging server A. Log in from the current domain instant messaging server A.
  • the current domain instant messaging server may update or record the user and the user through the user information of the user broadcasted by the central server. The identity of the domain instant messaging server where the registration or login behavior occurred.
  • the registration information of the user is broadcast by the central server (the registration information includes registration from the domain instant messaging server B), and the domain instant messaging server A receives the broadcast and is in the domain instant The identity of the domain instant messaging server B where the user is registered is recorded in the communication server A.
  • the central server broadcasts the identity of the domain instant messaging server B, and the domain instant messaging server A updates the login status of the user to log in from the domain instant messaging server B.
  • the user is requested to send information, and the target user of the information is registered or recently logged into the domain instant messaging server, if it is itself, the information is sent; if it is another domain instant messaging server, the information is Forwarded to the central server, forwarded by the central server to other domain instant messaging servers.
  • the information includes any one or more of the following: general communication information, social circle dynamic notification information, or group information.
  • the user A when the user A wants to send information to the target user B, the user A sends a request to the current domain instant messaging server, and the current domain instant messaging server determines the target user registration or the recently logged domain instant messaging server. Whether it is the current domain instant messaging server, if yes, the message can be sent through the current domain instant messaging server in the local domain; otherwise, the current domain instant messaging server sends the message to the central server, and then the central server forwards the instant message to other domains. server.
  • the information includes the social circle dynamic notification information or the group information
  • determine the domain communication server that the target user registers or recently logs in if For itself, information is sent via it; if it is another domain instant messaging server, the information is forwarded to the central server, which is forwarded by the central server to other domain instant messaging servers.
  • the user registration or the recently logged on domain communication server is the current domain communication server that can be sent by the current domain communication server, the user is registered or recently logged in.
  • the domain communication server is forwarded by the central server for other domain communication servers.
  • the domain instant messaging server of the embodiment of the present disclosure may record or update the domain instant messaging server registered by each user or recently logged in, thereby knowing the state information of each user, so that when the information is sent to the target user, it may be determined whether the target user is in the present Within the communication application, if it is, the interaction between the users can be realized by the domain instant messaging server of the communication application. Otherwise, the interaction between the users of different communication applications can also be realized through the central server.
  • the exemplary embodiment of the present invention provides a computer readable storage medium storing computer executable instructions for use in an instant messaging system according to any one of the above method embodiments when executed by a processing unit A data processing method or a blockchain-based instant messaging system implementation method.
  • aspects of the present invention may also be embodied in the form of a program product comprising program code for causing said program product to run on a computing device
  • the computing device performs the data processing method in the instant messaging system according to various exemplary embodiments of the present invention described in the "Exemplary Method" section of the present specification or the steps in the method data processing method based on the blockchain-based instant messaging system implementation method
  • the computing device may perform operation S201 as shown in FIG. 2: receiving a request of the domain instant messaging server; operation S202: responding to the request of the domain instant messaging server, performing a corresponding operation or associating the corresponding user with the user
  • the information is provided to the domain instant messaging server.
  • the program product can employ any combination of one or more readable media.
  • the readable medium can be a readable signal medium or a readable storage medium.
  • the readable storage medium can be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the above. More specific examples (non-exhaustive lists) of readable storage media include: electrical connections with one or more wires, portable disks, hard disks, random access memory (RAM), read only memory (ROM), erasable Programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination of the foregoing.
  • a program product 500 for a data processing method in an instant messaging system or a blockchain-based instant messaging system implementation method according to an embodiment of the present invention is described, which may employ a portable compact disk read only memory (CD-ROM) and includes program code and can be run on a computing device, such as a personal computer.
  • CD-ROM portable compact disk read only memory
  • the program product of the present invention is not limited thereto, and in the present document, the readable storage medium may be any tangible medium containing or storing a program that can be used by or in connection with an instruction execution system, apparatus or device.
  • the readable signal medium can include a data signal that is propagated in the baseband or as part of a carrier, carrying readable program code. Such propagated data signals can take a variety of forms including, but not limited to, electromagnetic signals, optical signals, or any suitable combination of the foregoing.
  • the readable signal medium can also be any readable medium other than a readable storage medium that can transmit, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
  • Program code embodied on a readable medium can be transmitted by any suitable medium, including but not limited to wireless, wireline, optical cable, RF, etc., or any suitable combination of the foregoing.
  • Program code for performing the operations of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language, such as Java, C++, etc., including conventional procedures. Programming language - such as "C", language or similar programming language.
  • the program code can execute entirely on the user computing device, partially on the user device, as a stand-alone software package, partially on the remote computing device on the user computing device, or entirely on the remote computing device or server. Execute on.
  • the remote computing device can be connected to the user computing device via any kind of network, including a local area network (LAN) or wide area network (WAN), or can be connected to an external computing device (eg, utilizing Internet services) The provider is connected via the Internet).
  • LAN local area network
  • WAN wide area network
  • Internet Internet
  • a computing device for implementing the data processing method in the instant messaging system of the present invention or A blockchain-based instant messaging system implementation method.
  • a computing device in accordance with the present invention can include at least one processing unit and at least one memory unit.
  • the storage unit stores program code, when the program code is executed by the processing unit, causing the processing unit to perform various exemplary implementations according to the present invention described in the "Exemplary Method" section of the present specification.
  • the steps in the data processing method in the instant messaging system may perform operation S301 as shown in FIG. 3: receiving a request of the domain instant messaging server; operation S302: performing a corresponding operation or correspondingly related to the user in response to the request of the domain instant messaging server Information is provided to the domain instant messaging server.
  • a computing device 600 in accordance with such an embodiment of the present invention is described below with reference to FIG. 6 .
  • the computing device 600 shown in FIG. 6 is merely an example and should not impose any limitation on the function and scope of use of the embodiments of the present invention.
  • computing device 600 is embodied in the form of a general purpose computing device.
  • Components of computing device 600 may include, but are not limited to, at least one processing unit 610, at least one storage unit 620, and a bus 630 that connects different system components, including storage unit 620 and processing unit 610.
  • Bus 630 represents one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, a graphics acceleration port, a processor, or a local bus using any of a variety of bus structures.
  • the storage unit 620 can include a readable medium in the form of volatile memory, such as random access memory (RAM) 621 and/or cache memory 622, and can further include a read only memory (ROM) 623.
  • RAM random access memory
  • ROM read only memory
  • the storage unit 620 can also include a program/utility 625 having a set (at least one) of program modules 624, including but not limited to: an operating system, one or more applications, other program modules, and program data, Implementations of the network environment may be included in each or some of these examples.
  • Computing device 600 can also be in communication with one or more external devices 640 (eg, a keyboard, pointing device, Bluetooth device, etc.), and can also communicate with one or more devices that enable a user to interact with computing device 600, and/or Computing device 600 can communicate with any device (e.g., router, modem, etc.) that is in communication with one or more other computing devices. This communication can take place via an input/output (I/O) interface 650.
  • computing device 600 can also communicate with one or more networks (e.g., a local area network (LAN), a wide area network (WAN), and/or a public network, such as the Internet) through network adapter 660. As shown, network adapter 660 communicates with other modules of computing device 600 via bus 630.
  • network adapter 660 communicates with other modules of computing device 600 via bus 630.
  • computing device 600 may be utilized in conjunction with computing device 600, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives. And data backup storage systems, etc.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computing Systems (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

本发明提供了一种基于区块链的即时通讯系统实现方法,即时通讯系统包括中心节点和至少两个域即时通讯服务器,中心节点包括管理节点和区块链节点,区块链节点中存储与用户相关的信息,至少两个域即时通讯服务器分别对应于至少两种即时通讯应用,该方法应用于中心节点中,包括:响应于域即时通讯服务器的请求,进行相应的操作或者将对应的与用户相关的信息提供给该域即时通讯服务器。该方法的中心节点能够与多个域即时通讯服务器实现通讯连接,从而各个域即时通讯服务器可以将各自的数据发送至中心节点,通过中心节点实现数据的共享,以及实现不同域即时通讯服务器之间的交互,提高了不同通讯应用的用户的之间通讯效率,提高了用户体验感。

Description

基于区块链的即时通讯系统实现方法、介质和计算设备 技术领域
本发明的实施方式涉及即时通讯技术领域,更具体地,本发明的实施方式涉及一种基于区块链的即时通讯系统实现方法、介质和计算设备。
背景技术
本部分旨在为权利要求书中陈述的本发明的实施方式提供背景或上下文。此处的描述不因为包括在本部分中就承认是现有技术。
随着科学技术的快速发展,各种即时通信应用越来越多地应用于生活、工作等方方面面。通常情况下,各个即时通信应用具有各自的通信服务器为其提供服务,例如,微信应用具有微信后台服务器为其提供服务,QQ应用具有QQ后台服务器为其提供服务。然而,使用不同的即使通信应用的用户之间不能相互通信,用户双方为了能够通过即时通信应用实现交互,不得不下载并使用相同即使通信应用,极其不便,使得用户体验感较差。
发明内容
可见,现有技术中的不同即时通信应用之间不能实现交互,不便于用户之间的通信效率,为用户使用带来不便。
为此,非常需要一种改进的即时通信系统,该系统中包括多个即时通信应用对应的即时通信服务器,并且可以使得各个即时通信服务器之间可以进行交互,从而多个即时通信应用之间能够实现即时通信,提高用户体验。
在本上下文中,本发明的实施方式期望提供一种基于区块链的即时通讯系统实现方法、介质和计算设备。
在本发明实施方式的第一方面中,提供了一种基于区块链的即时通讯系统实现方法,所述即时通讯系统包括中心节点和至少两个域即时通讯服务器,所述中心节点包括管理节点和区块链节点,所述区块链节点中存储与用户相关的信息,所述至少两个域即时通信服务器分别对应于至少两种即时通信应用,所述方法应用于所述中心节点中,包括以下步骤:响应于所述域即时通讯服务器的请求,进行相应的操作或者将对应的与所述用户相关的信息提供给所述域即时通讯服务器。
在本发明的一个实施例中,所述响应于所述域即时通讯服务器的请求,进行相应的操作,包括:所述管理节点响应于接收到用户通过其中一个域即时通讯服务器发送的注册请求,执 行针对所述用户的注册处理,并记录该用户的相关信息。
在本发明的一个实施例中,所述记录该用户的相关信息包括:所述管理节点为该用户分配系统唯一的标识,建立所述系统唯一的标识与用户请求注册的初始标识之间的映射关系,并将所述系统唯一的标识的相关信息记录在所述区块链节点中。
在本发明的一个实施例中,所述系统唯一的标识的相关信息为以下相关信息的中至少其中一个:所述系统唯一的标识、所述系统唯一的标识的签名、所述系统唯一的标识的地址信息和所述系统唯一的标识建立时的特征值。
在本发明的一个实施例中,所述用户请求注册的初始标识为手机号码。
在本发明的一个实施例中,所述方法还包括:所述管理节点响应于所述用户利用用于注册的新标识改变用户请求注册的初始标识的请求,使用所述用于注册的新标识,更新所述映射关系。
在本发明的一个实施例中,所述记录该用户的相关信息包括:记录从其接收所述用户的注册请求的域即时通讯服务器的标识。
在本发明的一个实施例中,所述方法还包括:所述管理节点向其他域即时通讯服务器广播从其接收所述用户的注册请求的域即时通讯服务器的标识。
在本发明的一个实施例中,所述响应于所述域即时通讯服务器发送的请求,将对应的与所述用户相关的信息提供给所述域即时通讯服务器,包括:所述区块链节点响应于其中一个域即时通讯服务器发送的获取用户好友列表的请求,将对应的用户好友列表的相关信息提供给所述其中一个域即时通讯服务器。
在本发明的一个实施例中,所述用户好友列表的相关信息为以下相关信息的中至少其中一个:所述用户好友列表、所述用户好友列表的签名、所述用户好友列表的地址信息,所述用户好友关系建立时的特征值和所述用户好友列表整体特征值。
在本发明的一个实施例中,所述用户好友列表是所述用户通过其他域即时通信服务器建立、并由所述其他域即时通信服务器传递给所述区块链节点的,或者,所述用户好友列表是所述用户通过其他域即时通信服务器发起建立请求、由所述管理节点建立后并存储在所述区块链节点中。
在本发明的一个实施例中,所述方法还包括:所述管理节点接收用户通过其中一个域即时通讯服务器发布的社交圈动态,将所述所社交圈动态发送给其他域即时通信服务器。
在本发明的一个实施例中,所述的方法,其中,包括:所述管理节点响应于用户在其中一个域即时通讯服务器上的登陆请求,向所述其中一个域即时通讯服务器发送用户登陆验证结果。
在本发明的一个实施例中,所述方法,其中,每个域即时通信服务器包括一个即时通信服务器或服务器集群,所述一个即时通信服务器或服务器集群为对应的即时通信应用提供服务。
在本发明的一个实施例中,所述的方法,其中,包括:记录从其接收所述用户的登陆请求的域即时通讯服务器的标识。
在本发明的一个实施例中,所述方法,其中,记录从其接收所述用户的登陆请求的域即时通讯服务器的标识包括:在从其接收所述用户的本次登陆请求的域即时通信服务器与从其接收上次登陆请求的域即时通信服务器发生变化的情况下,记录从其接收所述用户的本次登陆请求的域即时通讯服务器的标识。
在本发明的一个实施例中,所述方法还包括:所述管理节点向其他域即时通讯服务器广播从其接收所述用户的登陆请求的域即时通讯服务器的标识。
在本发明的一个实施例中,所述响应于所述域即时通信服务器的请求,进行相应的操作,包括:响应于所述域即时通信服务器的发送信息的请求,将相关信息发送给目标域即时通信服务器,其中,所述目标域即时通信服务器包括所述发送信息对应的目标用户注册或最近登录的域通信服务器。
在本发明实施方式的第二方面中,提供了一种即时通信系统中的数据处理方法,所述即时通信系统包括中心服务器和至少两个域即时通信服务器,所述中心服务器存储与用户相关的信息,所述至少两个域即时通信服务器分别对应于至少两种即时通信应用,所述方法应用于所述中心服务器中,该方法包括:响应于所述域即时通信服务器的请求,进行相应的操作或者将对应的与所述用户相关的信息提供给所述域即时通信服务器。
在本发明的一个实施例中,所述响应于所述域即时通信服务器的请求,进行相应的操作,包括:响应于接收到用户通过其中一个域即时通信服务器发送的注册请求,执行针对所述用户的注册处理,并在其中记录该用户的相关信息。
在本发明的一个实施例中,所述在其中记录该用户的相关信息包括:为该用户分配系统唯一的标识,建立所述系统唯一的标识与用户请求注册的初始标识之间的映射关系。
在本发明的一个实施例中,所述方法,还包括:存储所述系统唯一的标识的相关信息,所述系统唯一的标识的相关信息为以下相关信息的中至少其中一个:所述系统唯一的标识、所述系统唯一的标识的签名、所述系统唯一的标识的地址信息和所述系统唯一的标识建立时的特征值。
在本发明的一个实施例中,所述用户请求注册的初始标识包括手机号码。
在本发明的一个实施例中,所述方法还包括:响应于所述用户利用用于注册的新标识改 变用户请求注册的初始标识的请求,使用所述用于注册的新标识,更新所述映射关系。
在本发明的一个实施例中,所述在其中记录该用户的相关信息包括:记录从其接收所述用户的注册请求的域即时通信服务器的标识。
在本发明的一个实施例中,所述方法还包括:向其他域即时通信服务器广播从其记录的所述用户的注册请求的域即时通信服务器的标识。
在本发明的一个实施例中,所述响应于所述域即时通信服务器发送的请求,将对应的与所述用户相关的信息提供给所述域即时通信服务器,包括:响应于其中一个域即时通信服务器发送的获取用户好友列表的请求,将对应的用户好友列表的相关信息提供给所述其中一个域即时通信服务器。
在本发明的一个实施例中,所述用户好友列表是所述用户通过其他域即时通信服务器建立、并由所述其他域即时通信服务器传递给所述中心服务器的,或者,所述用户好友列表是所述用户通过其他域即时通信服务器发起建立请求、并由所述中心服务器建立的。
在本发明的一个实施例中,所述用户好友列表的相关信息为以下相关信息的中至少其中一个:所述用户好友列表、所述用户好友列表的签名、所述用户好友列表的地址信息,所述用户好友关系建立时的特征值和所述用户好友列表整体特征值。
在本发明的一个实施例中,所述方法还包括:接收用户通过其中一个域即时通信服务器发布的社交圈动态,将所述所社交圈动态提供给其他域即时通信服务器。
在本发明的一个实施例中,所述响应于所域即时通信服务器的请求,进行相应的操作,包括:响应于用户在其中一个域即时通信服务器上的登录请求,向所述其中一个域即时通信服务器发送用户登录验证结果。
在本发明的一个实施例中,所述方法还包括:记录从其接收所述用户的登录请求的域即时通信服务器的标识。
在本发明的一个实施例中,所述记录从其接收所述用户的登录请求的域即时通信服务器的标识,包括:在从其接收所述用户的本次登录请求的域即时通信服务器与从其接收上次登录请求的域即时通信服务器发生变化的情况下,记录从其接收所述用户的本次登录请求的域即时通信服务器的标识。
在本发明的一个实施例中,所述方法还包括:向其他域即时通信服务器广播从其记录所述用户的登录请求的域即时通信服务器的标识。
在本发明的一个实施例中,所述响应于所述域即时通信服务器的请求,进行相应的操作,包括:响应于所述域即时通信服务器的发送信息的请求,将相关信息发送给目标域即时通信服务器,其中,所述目标域即时通信服务器包括所述发送信息对应的目标用户注册或最近登 录的域通信服务器。
在本发明的一个实施例中,所述方法,其中,每个域即时通信服务器包括一个即时通信服务器或服务器集群,所述一个即时通信服务器或服务器集群为对应的即时通信应用提供服务。
在本发明的一个实施例中,所述方法,其中:所述中心服务器包括管理节点和存储节点。
在本发明的一个实施例中,所述方法,其中:所述管理节点用于执行以下至少一项:执行针对所述用户的注册处理、为该用户分配系统唯一的标识并建立所述系统唯一的标识与用户请求注册的初始标识之间的映射关系以及接收用户发布的社交圈动态。
在本发明的一个实施例中,所述方法,其中:所述存储节点用于存储以下至少一项:用户的系统唯一的标识相关的消息、用户好友列表相关的消息以及用户之间的即时通信消息的记录数据。
在本发明的一个实施例中,所述方法,其中,还包括:依据所述用户之间的即时通信消息的记录数据,向用户发放激励资源。
在本发明的一个实施例中,所述方法,其中:所述存储节点为区块链节点。
在本发明实施方式的第三方面中,提供了一种即时通信系统中的数据处理方法,所述即时通信系统包括中心服务器和至少两个域即时通信服务器,所述中心服务器存储与用户相关的信息,所述至少两个域即时通信服务器分别对应于至少两种即时通信应用,所述方法应用于其中一个域即时通信服务器中,该方法包括:响应于用户向其的注册、最近登录请求或者由所述中心服务器广播的接收了用户的注册、最近登录请求的其他域即时通信服务器的标识,记录或更新用户注册或最近登录的域通信服务器。
在本发明的一个实施例中,所述方法,包括:接受用户发送信息的请求,判断所述信息的目标用户注册或最近登录的域通信服务器,若为其本身,则所述信息经由其发送;若为其他域即时通信服务器,则将所述信息转发给所述中心服务器,由所述中心服务器转发给其他域即时通信服务器。
在本发明的一个实施例中,所述信息包括以下任意一种或多种:普通通信信息、社交圈动态通知信息或群组信息。
在本发明的一个实施例中,所述方法,其中,在所述信息包括社交圈动态通知信息或群组信息的情况下,针对所述信息的多个目标用户的每个目标用户,判断该目标用户注册或最近登录的域通信服务器,若为其本身,则所述信息经由其发送;若为其他域即时通信服务器,则将所述信息转发给所述中心服务器,由所述中心服务器转发给其他域即时通信服务器。
在本发明实施方式的第四方面中,提供了一种计算设备,包括:处理单元;以及存储单 元,其上存储有可执行指令,所述指令被所述处理单元执行时使所述处理单元执行如上述的任一方法。
在本发明实施方式的第五方面中,提供了一种计算机可读存储介质,其上存储有可执行指令,所述指令被处理单元执行时使所述处理单元执行如上所述的任一方法。
根据本发明实施方式的即时通信系统中的数据处理方法和数据处理系统,通过中心服务器与多个域即时通信服务器之间的通信连接,使得多个域即时通信服务器可以通过中心服务器共享各个用户的相关信息,并且通过中心服务器实现不同域即时通信服务器之间的交互。
附图说明
通过参考附图阅读下文的详细描述,本发明示例性实施方式的上述以及其他目的、特征和优点将变得易于理解。在附图中,以示例性而非限制性的方式示出了本发明的若干实施方式,其中:
图1示意性地示出了根据本发明实施例的应用场景;
图2示意性地示出了根据本发明实施例的基于区块链的即时通讯系统数据处理方法的流程图;
图3示意性地示出了根据本发明实施例的即时通信系统中的数据处理方法的流程图;
图4示意性地示出了根据本发明另一实施例的即时通信系统中的数据处理方法的流程图;
图5示意性地示出了根据本发明实施例的可读存储介质的示意图;以及
图6示意性地示出了根据本发明实施例的适于实现即时通信系统中的数据处理方法和系统的计算设备。
在附图中,相同或对应的标号表示相同或对应的部分。
具体实施方式
下面将参考若干示例性实施方式来描述本发明的原理和精神。应当理解,给出这些实施方式仅仅是为了使本领域技术人员能够更好地理解进而实现本发明,而并非以任何方式限制本发明的范围。相反,提供这些实施方式是为了使本公开更加透彻和完整,并且能够将本公开的范围完整地传达给本领域的技术人员。
本领域技术人员知道,本发明的实施方式可以实现为一种系统、装置、设备、方法或计算机程序产品。因此,本公开可以具体实现为以下形式,即:完全的硬件、完全的软件(包括固件、驻留软件、微代码等),或者硬件和软件结合的形式。
根据本发明的实施方式,提出了一种即时通信系统中的数据处理方法、介质和计算设备。
在本文中,需要理解的是,附图中的任何元素数量均用于示例而非限制,以及任何命名都仅用于区分,而不具有任何限制含义。
下面参考本发明的若干代表性实施方式,详细阐释本发明的原理和精神。
发明概述
本发明人发现,为了使得不同的通信应用之间能够实现即时通信,可以构建即时通信系统,即时通信系统可以包括中心服务器以及多个域即时通信服务器,该中心服务器能够与多个域即时通信服务器实现通信连接,从而各个域即时通信服务器可以将各自的相应的数据发送至中心服务器,通过中心服务器实现数据的共享,并且通过中心服务器实现不同域即时通信服务器之间的交互。
在介绍了本发明的基本原理之后,下面具体介绍本发明的各种非限制性实施方式。
应用场景总览
首先参考图1,图1示意性地示出了根据本发明实施例的应用场景。
如图1所示,该应用场景包括即时通信系统100,即时通信系统100可以包括中心服务器110、第一域即时通信服务器120以及第二域即时通信服务器130。
根据本公开实施例,中心服务器110能够与第一域即时通信服务器120以及第二域即时通信服务器130实现通信连接,例如可以是有线、无线通信链路或者光纤电缆等等。
在本公开实施例中,第一域即时通信服务器120以及第二域即时通信服务器130可以是为对应的即时通信应用提供服务的服务器或者服务器集群。例如,可以是对即时通信应用提供支持的各种后台服务器或者服务器集群。例如,第一域即时通信服务器120可以为微信应用提供服务,第二域即时通信服务器120可以为QQ应用提供服务等等。
在本公开实施例中,中心服务器110例如可以是网关节点、路由节点、管理平台或其他存储有其连接的域即时通信服务器的至少部分公共信息的各类设备。
根据本公开实施例,用户A通过第一即时通信应用发送消息给用户B,则第一域即时通信服务器120可以判断用户B注册或者最近登录的是否为第一域即时通信服务器120,若是,则认为用户A和用户B属于同一域即时通信服务器,因此,第一域即时通信服务器120将该消息发送给用户B,否则,则将消息发送给中心服务器110,由中心服务器110将该消息发送给用户B注册或者最近登录的相应的域即时通信服务器。因此可以实现不同通信应用之间的交互,提高不同通信应用的用户之间通信效率,提高用户在使用通信应用时的体验感。
示例性方法
下面结合图1的应用场景,参考图2~图4来描述根据本发明示例性实施方式的即时通信系统中的数据处理方法。需要注意的是,上述应用场景仅是为了便于理解本发明的精神和原理而示出,本发明的实施方式在此方面不受任何限制。相反,本发明的实施方式可以应用于适用的任何场景。
图2示意性地示出了根据本发明实施方式的基于区块链的即时通信系统实现方法的流程图。
根据本公开实施例,即时通讯系统包括中心节点和至少两个域即时通讯服务器。其中,中心节点包括管理节点和区块链节点,区块链节点中存储与用户相关的信息。至少两个域即时通信服务器分别对应于至少两种即时通信应用。
在本公开实施例中,中心节点能够与至少两个域即时通信服务器实现通信连接。
在本公开实施例中,域即时通信服务器可以是为对应的即时通信应用提供服务的服务器或者服务器集群,例如,可以是对即时通信应用提供支持的各种后台服务器或者服务器集群。例如,微信域即时通信服务器可以为微信应用提供服务,QQ域即时通信服务器可以为QQ应用提供服务等等。
具体地,如图2所示,该方法包括操作S201~S202,该方法可以应用于中心节点中。
在操作S201,接收域即时通信服务器的请求。
在操作S202,响应于域即时通信服务器的请求,进行相应的操作或者将对应的与用户相关的信息提供给域即时通信服务器。
根据本公开实施例,中心节点可以与域即时通信服务器实现通信连接,从而可以实现数据交互。其中,响应于域即时通信服务器的请求进行相应的操作例如可以是中心节点接收来自域即时通信服务器的请求,并将与请求相关的信息提供给该域即时通信服务器;也可以是中心节点接收来自一域即时通信服务器的请求,将相关的信息发送至另一域即时通信服务器;还可以是中心节点接收来自域即时通信服务器的请求,在中心节点处执行相应的操作。
在本公开实施例中,响应于域即时通信服务器的请求,进行相应的操作,可以包括:管理节点响应于接收到用户通过其中一个域即时通信服务器发送的注册请求,执行针对用户的注册处理,并记录该用户的相关信息。
例如,用户通过域即时通信服务器A进行注册,则域即时通信服务器A可以将该用户的注册请求发送给管理节点,由管理节点执行相应注册处理,并将该用户的相关信息记录在区块链节点中,从而可以将来自不同域即时通信服务器的注册用户的相关信息记录汇总在区块 链节点中。各个域即时通信服务器可以访问区块链节点中存储的用户相关信息,从而可以实现跨域的交互。
根据本公开实施例,管理节点可以为该用户分配系统唯一的标识,建立系统唯一的标识与用户请求注册的初始标识之间的映射关系,并将系统唯一的标识的相关信息记录在区块链节点中。其中,用户请求注册的初始标识例如可以为手机号码。
例如,在用户注册某一域即时通信服务器时,管理节点可以为每个用户在整个即时通信系统中分配唯一的系统标识来表示该用户在该即时通信系统中的身份,并且建立系统标识与用户请求注册的初始标识的映射关系。例如,用户使用手机号码进行注册,中心服务器为该用户分配系统标识IFJij83aOPsl(仅为示例),并建立系统标识与用户手机号码的映射关系,从而确定该用户在系统中唯一的身份。
可以理解,用户在不同的即时通信应用中可以具有不同的应用标识。例如,用户在QQ中的QQID可以是AAAAAA,在微信中的微信ID可以是BBBBBB,中心服务器中也可以建立该名用户在不同的即时通信应用中的不同的应用标识、唯一的系统标识以及用户请求注册的初始标识之间的映射关系。
根据本公开实施例,管理节点可以将系统唯一的标识的相关信息记录在区块链节点中,其中,系统唯一的标识的相关信息为以下相关信息的中至少其中一个:系统唯一的标识、系统唯一的标识的签名、系统唯一的标识的地址信息和系统唯一的标识建立时的特征值。
可以理解,为了减少系统唯一标识的相关信息占用的存储空间,可以不必存储全部的系统唯一标识的相关信息,仅选择系统唯一的标识的签名、系统唯一的标识的地址信息和系统唯一的标识建立时的特征值中的至少一个进行存储。
在本公开实施例中,管理节点还可以响应于用户利用用于注册的新标识改变用户请求注册的初始标识的请求,使用用于注册的新标识,更新映射关系。
例如,本公开实施例允许用户更换手机号码的行为,用户更换手机号码后,该用户的唯一的系统标识不变,仅使用新的手机号码替换注册时的初始手机号码,并且更新手机号码与唯一的系统标识之间的映射关系。
其中,记录该用户的相关信息还可以包括记录从其接收用户的注册请求的域即时通信服务器的标识。例如,用户通过域即时通信服务器A进行注册,域即时通信服务器A将用户的注册请求发送给中心节点,中心节点记录该用户的相关信息,相关信息中可以包括用户进行注册的域即时通信服务器A的标识,使得中心节点中可以记录该用户是通过哪个即时通信应用进行注册的。
在本公开实施例中,管理节点可以向其他域即时通信服务器广播从其接收用户的注册请 求的域即时通信服务器的标识。例如,管理节点可以在接收到新用户注册请求并且记录后,向其他的域即时通信服务器广播该新用户以及该新用户注册的域即时通信服务器的标识,使得各个域即时通信服务器也可以更新该名用户的相关信息。
在本公开实施例中,响应于域即时通信服务器发送的请求,将对应的与用户相关的信息提供给域即时通信服务器,包括:区块链节点响应于其中一个域即时通信服务器发送的获取用户好友列表的请求,将对应的用户好友列表的相关信息提供给其中一个域即时通信服务器。
在本公开实施例中,区块链节点中可以存储各用户的用户好友列表的相关信息。好友列表可以是用户通过其他域即时通信服务器建立、并由其他域即时通信服务器传递给区块链节点的,或者也可以是用户通过其他域即时通信服务器发起建立请求、由管理节点建立后并存储在区块链节点中。
例如,用户通过域即时通信服务器A登陆,域即时通信服务器A可以向区块链节点发送获取该名用户的好友列表的请求,然后区块链节点将存储的该名用户的好友列表提供给域即时通信服务器A。同理,该名用户通过域即时通信服务器B登陆,也可以通过区块链节点获取好友列表。可以理解,本公开实施例中的区块链节点可以存储各个用户的好友列表的相关信息,使得用户不论通过哪个即时通信应用登录,都可以获得其好友列表,从而可以跟好友进行信息交互。
根据本公开实施例,用户好友列表的相关信息可以为以下相关信息的中至少其中一个:用户好友列表、用户好友列表的签名、用户好友列表的地址信息,用户好友关系建立时的特征值和用户好友列表整体特征值。
可以理解,由于好友列表的相关信息可以包括好友头像数据等,其占用存储空间极大,为了减小好友列表的相关信息可以仅存储用户好友列表的签名、用户好友列表的地址信息,用户好友关系建立时的特征值和用户好友列表整体特征值中的至少一种。
根据本公开实施例,管理节点可以接收用户通过其中一个域即时通信服务器发布的社交圈动态,以及将社交圈动态发送给其他域即时通信服务器。
管理节点可以主动将社交圈动态发送给其他域即时通信服务器,也可以响应于他域即时通信服务器的获取动态请求将社交圈动态发送给其他域即时通信服务器。
例如,用户X通过域即时通信服务器A发布社交圈动态(例如,微信朋友圈、QQ空间等),管理节点可以接收到该社交圈动态,而后主动将该社交圈动态发送给用户X的好友列表中的好友所在的各个域即时通信服务器,也可以响应于用户X的好友列表中的好友所在的域即时通信服务器的获取动态请求,将社交圈动态发送给发出请求的域即时通信服务器。
在本公开实施例中,响应于域即时通信服务器的请求,进行相应的操作,可以包括:管 理节点响应于用户在其中一个域即时通信服务器上的登陆请求,向其中一个域即时通信服务器发送用户登陆验证结果。
根据本公开实施例,用户通过域即时通信服务器进行登录时,相应的域即时通信服务器会将该名用户的登录请求发送给管理节点,而后管理节点对登陆请求进行验证,并将验证结果发送给该域即时通信服务器。
在本公开实施例中,中心节点在接收到用户的登录请求后,记录从其接收用户的登陆请求的域即时通信服务器的标识。从而区块链节点中可以存储有各个用户的登录信息,例如,用户何时登录,用户通过哪个域即时通信服务器登录等。
具体地,管理节点可以在从其接收的用户的本次登陆请求的域即时通信服务器与从其接收上次登陆请求的域即时通信服务器发生变化的情况下,记录从其接收用户的本次登陆请求的域即时通信服务器的标识。
在本公开实施例中,可以是用户本次登录的域即时通信服务器判断用户本次登录与上次登录的域即时通信服务器是否发生变化,在发生变化的情况下,将用户本次登录请求发送给中心节点,以便中心节点记录其登录信息。
在本公开实施例中,还可以是用户本次登录的域即时通信服务器将用户本次登录请求直接发送给中心节点,由中心节点判断用户本次登录与上次登录的域即时通信服务器是否发生变化,在发生变化的情况下,中心节点记录变化后的登录信息,可以将变化后的登录信息广播给其他域即时通信服务器。
通过上述方法,本公开实施例中的区块链节点中可以记录各个用户最新一次登录该即时通信系统是通过哪个域即时通信服务器登录的。
根据本公开实施例,管理节点可以向其他域即时通信服务器广播从其记录用户的登陆请求的域即时通信服务器的标识。例如,管理节点可以在记录了用户的登录请求后,向其他域即时通信服务器广播,从而使得各个域即时通信服务器可以同步区块链节点中记录的各用户的登录信息,进而各个域即时通信服务器也可以知道各个用户最新一次登录该即时通信系统是通过哪个域即时通信服务器登录的。
在本公开实施例中,响应于域即时通信服务器的请求,进行相应的操作,可以包括:管理节点响应于域即时通信服务器的发送信息的请求,将相关信息发送给目标域即时通信服务器,其中,目标域即时通信服务器包括发送信息对应的目标用户注册或最近登录的域通信服务器。
根据本公开实施例,用户X想要发送信息给目标用户,则可以先判断目标用户注册或者最近登录的域即时通信服务器是否与用户X当前所在的域即时通信服务器相同,若相同,则 可以通过该域即时通信服务器发送信息,若不同,则将该信息发送给中心节点,由中心节点发送给目标用户注册或最近登录的域即时通信服务器,再由目标用户注册或最近登录的域即时通信服务器将该消息发送给目标用户。
本公开实施例通过中心节点能够与多个域即时通信服务器实现通信连接,并且区块链节点中可以存储各个用户的相关信息,使得多个域即时通信服务器可以通过区块链节点共享各个用户的相关信息,并且通过中心节点实现不同域即时通信服务器之间的交互。
图3示意性地示出了根据本发明实施方式的即时通信系统中的数据处理方法的流程图。
根据本公开实施例,即时通信系统可以包括中心服务器和至少两个域即时通信服务器。其中,中心服务器存储与用户相关的信息,至少两个域即时通信服务器分别对应于至少两种即时通信应用。
在本公开实施例中,域即时通信服务器可以是为对应的即时通信应用提供服务的服务器或者服务器集群,例如,可以是对即时通信应用提供支持的各种后台服务器或者服务器集群。例如,微信域即时通信服务器可以为微信应用提供服务,QQ域即时通信服务器可以为QQ应用提供服务等等。
在本公开实施例中,中心服务器能够与至少两个域即时通信服务器实现通信连接,中心服务器例如可以是存储有其连接的至少两个域即时通信服务器的至少部分公共信息(例如,与用户相关的信息)的网关、路由等各种网络节点。
具体地,如图3所示,该方法包括操作S301~S302,该方法可以应用于中心服务器中。
在操作S301,接收域即时通信服务器的请求。
在操作S302,响应于域即时通信服务器的请求,进行相应的操作或者将对应的与用户相关的信息提供给域即时通信服务器。
根据本公开实施例,中心服务器可以与域即时通信服务器实现通信连接,从而可以实现数据交互。其中,响应于域即时通信服务器的请求进行相应的操作例如可以是中心服务器接收来自域即时通信服务器的请求,并将与请求相关的信息发送给该域即时通信服务器;也可以是中心服务器接收来自一域即时通信服务器的请求,将相关的信息发送至另一域即时通信服务器;还可以是中心服务器接收来自域即时通信服务器的请求,记录或者处理相应请求等等。
在本公开实施例中,响应于域即时通信服务器的请求,进行相应的操作,可以包括:响应于接收到用户通过其中一个域即时通信服务器发送的注册请求,执行针对用户的注册处理,并在其中记录该用户的相关信息。
例如,用户通过域即时通信服务器A进行注册,则域即时通信服务器A可以将该用户的注册请求发送给中心服务器,由中心服务器执行相应注册处理,并记录该用户的相关信息,从而可以将来自不同域即时通信服务器的注册用户的相关信息记录汇总在中心服务器中。各个域即时通信服务器可以访问中心服务器中存储的公共信息,中心服务器也可以将相应的公共信息广播给各个域即时通信服务器,从而可以实现跨域的交互。
其中,在中心服务器中记录该用户的相关信息可以包括:为该用户分配系统唯一的标识,建立系统唯一的标识与用户请求注册的初始标识之间的映射关系。用户请求注册的初始标识例如可以为手机号码。
例如,在用户进行注册时,中心服务器为每个用户在整个即时通信系统中分配唯一的系统标识表示来该用户在该即时通信系统中的身份,并且建立系统标识与用户请求注册的初始标识的映射关系。例如,用户使用手机号码进行注册,中心服务器为该用户分配系统标识IFJij83aOPsl(仅为示例),并建立系统标识与用户手机号码的映射关系,从而确定该用户在系统中唯一的身份。
可以理解,用户在不同的即时通信应用中可以具有不同的应用标识例如,用户在QQ中的QQID可以是AAAAAA,在微信中的微信ID可以是BBBBBB,中心服务器中也可以建立该名用户在不同的即时通信应用中的不同的应用标识、唯一的系统标识以及用户请求注册的初始标识之间的映射关系。
根据本公开实施例,记录该用户的相关信息可以包括存储系统唯一的标识的相关信息,所述系统唯一的标识的相关信息为以下相关信息的中至少其中一个:系统唯一的标识、系统唯一的标识的签名、系统唯一的标识的地址信息和系统唯一的标识建立时的特征值。
可以理解,为了减少系统唯一标识的相关信息占用的存储空间,可以不必存储全部的相关信息,仅选择系统唯一的标识、系统唯一的标识的签名、系统唯一的标识的地址信息和系统唯一的标识建立时的特征值中的至少一个进行存储。
在本公开实施例中,中心服务器还可以响应于用户利用用于注册的新标识改变用户请求注册的初始标识的请求,使用用于注册的新标识,更新映射关系。
例如,本公开实施例允许用户更换手机号码的行为,用户更换手机号码后,该用户的唯一的系统标识不变,仅使用新的手机号码替换注册时的初始手机号码,并且更新手机号码与唯一的系统标识之间的映射关系。
其中,在中心服务器中记录该用户的相关信息还可以包括记录从其接收用户的注册请求的域即时通信服务器的标识。例如,用户通过域即时通信服务器A进行注册,域即时通信服务器A将用户的注册请求发送给中心服务器,中心服务器记录该用户的相关信息,相关信息 中可以包括用户进行注册的域即时通信服务器A的标识,使得中心服务器中可以记录该用户是通过哪个即时通信应用进行注册的。
在本公开实施例中,中心服务器可以向其他域即时通信服务器广播从其记录的用户的注册请求的域即时通信服务器的标识。例如,中心服务器可以在接收到新用户注册请求并且记录后,向其他的域即时通信服务器广播该新用户以及该新用户注册的域即时通信服务器的标识,使得各个域即时通信服务器可以共享系统的动态信息。
在本公开实施例中,响应于域即时通信服务器发送的请求,将对应的与用户相关的信息提供给域即时通信服务器,包括:响应于其中一个域即时通信服务器发送的获取用户好友列表的请求,将对应的用户好友列表的相关信息提供给所述其中一个域即时通信服务器。
在本公开实施例中,中心服务器中可以存储各用户的好友列表,其好友列表中的好友关系可以是用户通过其他域即时通信服务器建立、并由其他域即时通信服务器传递给中心服务器的,或者也可以是用户通过其他域即时通信服务器发起建立请求、并由中心服务器建立的。
例如,用户通过域即时通信服务器A登陆,域即时通信服务器A可以向中心服务器发送获取该名用户的好友列表的请求,然后中心服务器将存储的该名用户的好友列表提供给域即时通信服务器A。同理,该名用户通过域即时通信服务器B登陆,也可以通过中心服务器获取好友列表。可以理解,本公开实施例中的中心服务器可以存储各个用户的好友列表,使得用户不论通过哪个即时通信应用登陆,都可以获得其好友列表,从而可以跟好友进行信息交互。
根据本公开实施例,用户好友列表的相关信息可以为以下相关信息的中至少其中一个:用户好友列表、用户好友列表的签名、用户好友列表的地址信息,用户好友关系建立时的特征值和用户好友列表整体特征值。
可以理解,由于好友列表的相关信息可以包括好友头像数据等,其占用存储空间极大,为了减小好友列表的相关信息可以仅存储用户好友列表的签名、用户好友列表的地址信息,用户好友关系建立时的特征值和用户好友列表整体特征值中的至少一种。
根据本公开实施例,中心服务器可以接收用户通过其中一个域即时通信服务器发布的社交圈动态,并将社交圈动态发送给其他域即时通信服务器。中心服务器可以主动将社交圈动态发送给其他域即时通信服务器,也可以响应于他域即时通信服务器的获取动态请求并将社交圈动态发送给其他域即时通信服务器。
例如,用户X通过域即时通信服务器A发布社交圈动态(例如,微信朋友圈、QQ空间等),中心服务器可以接收到该社交圈动态,而后中心服务器可以主动将该社交圈动态发送给用户X的好友列表中的好友所在的各个域即时通信服务器,也可以响应于用户X的好友列表 中的好友所在的域即时通信服务器的获取动态请求,将社交圈动态发送给发出请求的域即时通信服务器。
在本公开实施例中,响应于域即时通信服务器的请求,进行相应的操作,可以包括:响应于用户在其中一个域即时通信服务器上的登陆请求,向所述其中一个域即时通信服务器发送用户登陆验证结果。
根据本公开实施例,用户通过域即时通信服务器进行登录时,相应的域即时通信服务器会将该名用户的登录请求发送给中心服务器,而后中心服务器对登陆请求进行验证,并将验证结果发送给该域即时通信服务器。
在本公开实施例中,中心服务器在接收到用户的登录请求后,记录从其接收用户的登陆请求的域即时通信服务器的标识。从而中心服务器中可以存储有各个用户的登录信息,例如,用户何时登录,用户通过哪个域即时通信服务器登录等。
具体地,中心服务器可以在从其接收的用户的本次登陆请求的域即时通信服务器与从其接收上次登陆请求的域即时通信服务器发生变化的情况下,记录从其接收用户的本次登陆请求的域即时通信服务器的标识。
在本公开实施例中,可以是用户本次登录的域即时通信服务器判断用户本次登录与上次登录的域即时通信服务器是否发生变化,在发生变化的情况下,将用户本次登录请求发送给中心服务器,以便中心服务器记录其登录信息。
在本公开实施例中,还可以是用户本次登录的域即时通信服务器将用户本次登录请求直接发送给中心服务器,由中心服务器判断用户本次登录与上次登录的域即时通信服务器是否发生变化,在发生变化的情况下,中心服务器记录变化后的登录信息,可以将变化后的登录信息广播给其他域即时通信服务器。
通过上述方法,本公开实施例中的中心服务器中可以记录各个用户最新一次登录该即时通信系统是通过哪个域即时通信服务器登录的。
根据本公开实施例,中心服务器可以向其他域即时通信服务器广播从其记录用户的登陆请求的域即时通信服务器的标识。例如,中心服务器可以在记录了用户的登录请求后,向其他域即时通信服务器广播,从而使得各个域即时通信服务器可以同步中心服务器的登录信息,进而各个域即时通信服务器也可以知道各个用户最新一次登录该即时通信系统是通过哪个域即时通信服务器登录的。
在本公开实施例中,响应于域即时通信服务器的请求,进行相应的操作,可以包括:响应于域即时通信服务器的发送信息的请求,将相关信息发送给目标域即时通信服务器,其中,目标域即时通信服务器包括发送信息对应的目标用户注册或最近登录的域通信服务器。
根据本公开实施例,用户X想要发送信息给目标用户,则可以先判断目标用户注册或者最近登录的域即时通信服务器是否与用户X当前所在的域即时通信服务器相同,若相同,则可以通过该域即时通信服务器发送信息,若不同,则将该信息发送给中心服务器,由中心服务器发送给目标用户注册或最近登录的域即时通信服务器,再由目标用户注册或最近登录的域即时通信服务器将该消息发送给目标用户。
根据本公开实施例,中心服务器可以包括管理节点和存储节点。
其中,管理节点可以用于执行以下至少一项:执行针对用户的注册处理、为该用户分配系统唯一的标识并建立系统唯一的标识与用户请求注册的初始标识之间的映射关系以及接收用户发布的社交圈动态。
存储节点用于存储以下至少一项:用户的系统唯一的标识、用户好友列表以及用户之间的即时通信消息的记录数据。
在本公开实施例中,依据用户之间的即时通信消息的记录数据,管理节点可以向用户发放激励资源奖励。
在本公开实施例中,存储节点可以为区块链节点。
本公开实施例通过中心服务器能够与多个域即时通信服务器实现通信连接,并且中心服务器可以存储和更新各个用户的相关信息,使得多个域即时通信服务器可以通过中心服务器共享各个用户的相关信息,并且通过中心服务器实现不同域即时通信服务器之间的交互。
图4示意性地示出了根据本发明另一实施方式的即时通信系统中的数据处理方法的流程图。
根据本公开实施例,即时通信系统可以包括中心服务器和至少两个域即时通信服务器。其中,中心服务器存储与用户相关的信息,至少两个域即时通信服务器分别对应于至少两种即时通信应用。
具体地,如图4所示,该方法包括操作S401~S402,该方法可以应用于其中一个域即时通信服务器中。
在操作S401,接收用户向其的注册、最近登录请求或者由中心服务器广播的接收了用户的注册、最近登录请求的其他域即时通信服务器的标识。
在操作S402,响应于用户向其的注册、最近登录请求或者由中心服务器广播的接收了用户的注册、最近登录请求的其他域即时通信服务器的标识,记录或更新用户注册或最近登陆的域即时通信服务器。
可以理解,中心服务器以及各个域即时通信服务器中都可以存储有各个用户注册或者最 近登录的域即时通信服务器,例如用户A注册的域即时通信服务器为域即时通信服务器1,最近登录的域即时通信服务器为域即时通信服务器2,用户B注册的域即时通信服务器为域即时通信服务器3,最近登录的域即时通信服务器为域即时通信服务器1等。从而在用户发送消息时,可以通过该些信息确定目标用户的注册或者登录的域即时通信服务器是否为本域即时通信服务器,从而确定是由本域即时通信服务器发送该消息,还是将该消息发送给中心服务器,经由中心服务器转发给其他域即时通信服务器。
为保证各个服务器中的相应消息能够随着各个用户的操作行为及时更新,接收到用户注册或者登录请求的域即时通信服务器在更新自身的用户信息的同时,还需将注册或者登录请求信息发送给中心服务器,由中心服务器广播给其他域即时通信服务器,使得其他各个域即时通信服务器也可以及时更新或者记录该名用户的用户信息。
根据本公开实施例,在用户发生的注册或者登录行为的域即时通信服务器为当前域即时通信服务器的情况下,当前域即时通信服务器在接收到用户的注册请求后,可以记录该用户以及该用户发生注册行为的域即时通信服务器标识(即,当前域即时通信服务器)。当前域即时通信服务器在接收到用户的登录请求后,可以更新该用户发生登录行为的域即时通信服务器标识(即,当前域即时通信服务器)。
例如,当用户在域即时通信服务器A注册时,该域即时通信服务器A记录注册的用户,或者,当用户在域即时通信服务器A登录时,在域即时通信服务器A中更新用户的登录情况为从当前的域即时通信服务器A登录。
在用户发生的注册或者登录行为的域即时通信服务器为其他域即时通信服务器的情况下,当前域即时通信服务器可以通过中心服务器广播的该用户的用户信息,更新或者记录该名用户以及该名用户发生注册或者登录行为的域即时通信服务器的标识。
例如,当用户在域即时通信服务器B注册时,由中心服务器广播该用户的注册信息(该注册信息包括从域即时通信服务器B注册),该域即时通信服务器A接收该广播,并在域即时通信服务器A中记录该用户注册所在的域即时通信服务器B的标识。或者,当用户在域即时通信服务器B登录时,则由中心服务器广播域即时通信服务器B的标识,在域即时通信服务器A中更新该名用户的登录情况为从域即时通信服务器B登录。
根据本公开实施例,接受用户发送信息的请求,判断信息的目标用户注册或最近登陆的域即时通信服务器,若为其本身,则信息经由其发送;若为其他域即时通信服务器,则将信息转发给中心服务器,由中心服务器转发给其他域即时通信服务器。其中,该信息包括以下任意一种或多种:普通通信信息、社交圈动态通知信息或群组信息。
根据本公开实施例,当用户A想要将信息发送给目标用户B的情况下,用户A对当前域 即时通信服务器发送请求,当前域即时通信服务器判断目标用户注册或最近登陆的域即时通信服务器是否为当前域即时通信服务器,若是,则可以在本域内通过当前域即时通信服务器发送该消息,否则,当前域即时通信服务器将该消息发送给中心服务器,而后由中心服务器转发给其他域即时通信服务器。
在本公开实施例中,在信息包括社交圈动态通知信息或群组信息的情况下,针对信息的多个目标用户的每个目标用户,判断该目标用户注册或最近登陆的域通讯服务器,若为其本身,则信息经由其发送;若为其他域即时通讯服务器,则将信息转发给中心服务器,由中心服务器转发给其他域即时通讯服务器。
例如,当目标用户为多个用户的情况下,需要针对每个用户进行判断,用户注册或最近登陆的域通讯服务器为当前域通讯服务器可以由当前域通讯服务器进行发送,用户注册或最近登陆的域通讯服务器为其他域通讯服务器的经由中心服务器转发。
本公开实施例的域即时通信服务器可以记录或更新各个用户注册或者最近登录的域即时通信服务器,从而得知各个用户的状态信息,以便在向目标用户发送信息时,可以确定目标用户是否在本通信应用内,如果在,则可以通过本通信应用的域即时通信服务器实现用户双方的交互,否则,通过中心服务器也可以实现不同通信应用的用户之间的交互。
本发明所公开的上述实施例可任意组合,或者做简单变换,得到需要的处理策略,以实现较好的技术效果。
示例性介质
本发明示例性实施方式提供了一种计算机可读存储介质,存储有计算机可执行指令,上述指令在被处理单元执行时用于实现上述方法实施例中任一项所述的即时通信系统中的数据处理方法或者基于区块链的即时通讯系统实现方法。
在一些可能的实施方式中,本发明的各个方面还可以实现为一种程序产品的形式,其包括程序代码,当所述程序产品在计算设备上运行时,所述程序代码用于使所述计算设备执行本说明书上述“示例性方法”部分中描述的根据本发明各种示例性实施方式的即时通信系统中的数据处理方法或者基于区块链的即时通讯系统实现方法数据处理方法中的步骤,例如,所述计算设备可以执行如图2中所示的操作S201:接收域即时通信服务器的请求;操作S202:响应于域即时通信服务器的请求,进行相应的操作或者将对应的与用户相关的信息提供给域即时通信服务器。
所述程序产品可以采用一个或多个可读介质的任意组合。可读介质可以是可读信号介质 或者可读存储介质。可读存储介质例如可以是——但不限于——电、磁、光、电磁、红外线、或半导体的系统、装置或器件,或者任意以上的组合。可读存储介质的更具体的例子(非穷举的列表)包括:具有一个或多个导线的电连接、便携式盘、硬盘、随机存取存储器(RAM)、只读存储器(ROM)、可擦式可编程只读存储器(EPROM或闪存)、光纤、便携式紧凑盘只读存储器(CD-ROM)、光存储器件、磁存储器件、或者上述的任意合适的组合。
如图5所示,描述了根据本发明的实施方式的用于即时通信系统中的数据处理方法或者基于区块链的即时通讯系统实现方法的程序产品500,其可以采用便携式紧凑盘只读存储器(CD-ROM)并包括程序代码,并可以在计算设备,例如个人电脑上运行。然而,本发明的程序产品不限于此,在本文件中,可读存储介质可以是任何包含或存储程序的有形介质,该程序可以被指令执行系统、装置或者器件使用或者与其结合使用。
可读信号介质可以包括在基带中或者作为载波一部分传播的数据信号,其中承载了可读程序代码。这种传播的数据信号可以采用多种形式,包括——但不限于——电磁信号、光信号或上述的任意合适的组合。可读信号介质还可以是可读存储介质以外的任何可读介质,该可读介质可以发送、传播或者传输用于由指令执行系统、装置或者器件使用或者与其结合使用的程序。
可读介质上包含的程序代码可以用任何适当的介质传输,包括——但不限于——无线、有线、光缆,RF等等,或者上述的任意合适的组合。
可以以一种或多种程序设计语言的任意组合来编写用于执行本发明操作的程序代码,所述程序设计语言包括面向对象的程序设计语言——诸如Java,C++等,还包括常规的过程式程序设计语言——诸如“C”,语言或类似的程序设计语言。程序代码可以完全地在用户计算设备上执行、部分地在用户设备上执行、作为一个独立的软件包执行、部分在用户计算设备上部分在远程计算设备上执行、或者完全在远程计算设备或服务器上执行。在涉及远程计算设备的情形中,远程计算设备可以通过任意种类的网络——包括局域网(LAN)或广域网(WAN)一连接到用户计算设备,或者,可以连接到外部计算设备(例如利用因特网服务提供商来通过因特网连接)。
示例性计算设备
在介绍了本发明示例性实施方式的方法、介质和装置之后,接下来,参考图6对本发明示例性实施方式的一种计算设备,用于实现本发明的即时通信系统中的数据处理方法或者基于区块链的即时通讯系统实现方法。
所属技术领域的技术人员能够理解,本发明的各个方面可以实现为系统、方法或程序产 品。因此,本发明的各个方面可以具体实现为以下形式,即:完全的硬件实施方式、完全的软件实施方式(包括固件、微代码等),或硬件和软件方面结合的实施方式,这里可以统称为“电路”、“模块”或“系统”。
在一些可能的实施方式中,根据本发明的计算设备可以至少包括至少一个处理单元、以及至少一个存储单元。其中,所述存储单元存储有程序代码,当所述程序代码被所述处理单元执行时,使得所述处理单元执行本说明书上述“示例性方法”部分中描述的根据本发明各种示例性实施方式的即时通信系统中的数据处理方法中的步骤。例如,所述处理单元可以执行如图3中所示的操作S301:接收域即时通信服务器的请求;操作S302:响应于域即时通信服务器的请求,进行相应的操作或者将对应的与用户相关的信息提供给域即时通信服务器。
下面参照图6来描述根据本发明的这种实施方式的计算设备600。图6所示的计算设备600仅仅是一个示例,不应对本发明实施例的功能和使用范围带来任何限制。
如图6所示,计算设备600以通用计算设备的形式表现。计算设备600的组件可以包括但不限于:上述至少一个处理单元610、上述至少一个存储单元620、连接不同系统组件(包括存储单元620和处理单元610)的总线630。
总线630表示几类总线结构中的一种或多种,包括存储器总线或者存储器控制器、外围总线、图形加速端口、处理器或者使用多种总线结构中的任意总线结构的局域总线。
存储单元620可以包括易失性存储器形式的可读介质,例如随机存取存储器(RAM)621和/或高速缓存存储器622,还可以进一步包括只读存储器(ROM)623。
存储单元620还可以包括具有一组(至少一个)程序模块624的程序/实用工具625,这样的程序模块624包括但不限于:操作系统、一个或者多个应用程序、其它程序模块以及程序数据,这些示例中的每一个或某种组合中可能包括网络环境的实现。
计算设备600也可以与一个或多个外部设备640(例如键盘、指向设备、蓝牙设备等)通信,还可与一个或者多个使得用户能与计算设备600交互的设备通信,和/或与使得计算设备600能与一个或多个其它计算设备进行通信的任何设备(例如路由器、调制解调器等等)通信。这种通信可以通过输入/输出(I/O)接口650进行。并且,计算设备600还可以通过网络适配器660与一个或者多个网络(例如局域网(LAN),广域网(WAN)和/或公共网络,例如因特网)通信。如图所示,网络适配器660通过总线630与计算设备600的其它模块通信。应当明白,尽管图中未示出,可以结合计算设备600使用其它硬件和/或软件模块,包括但不限于:微代码、设备驱动器、冗余处理单元、外部磁盘驱动阵列、RAID系统、磁带驱动器以及数据备份存储系统等。
应当注意,尽管在上文详细描述中提及了对显示区域中的多个组件进行显示的装置的若 干单元/模块或子单元/模块,但是这种划分仅仅是示例性的并非强制性的。实际上,根据本发明的实施方式,上文描述的两个或更多单元/模块的特征和功能可以在一个单元/模块中具体化。反之,上文描述的一个单元/模块的特征和功能可以进一步划分为由多个单元/模块来具体化。
此外,尽管在附图中以特定顺序描述了本发明方法的操作,但是,这并非要求或者暗示必须按照该特定顺序来执行这些操作,或是必须执行全部所示的操作才能实现期望的结果。附加地或备选地,可以省略某些步骤,将多个步骤合并为一个步骤执行,和/或将一个步骤分解为多个步骤执行。
虽然已经参考若干具体实施方式描述了本发明的精神和原理,但是应该理解,本发明并不限于所公开的具体实施方式,对各方面的划分也不意味着这些方面中的特征不能组合以进行受益,这种划分仅是为了表述的方便。本发明旨在涵盖所附权利要求的精神和范围内所包括的各种修改和等同布置。

Claims (47)

  1. 一种基于区块链的即时通讯系统实现方法,所述即时通讯系统包括中心节点和至少两个域即时通讯服务器,所述中心节点包括管理节点和区块链节点,所述区块链节点中存储与用户相关的信息,所述至少两个域即时通信服务器分别对应于至少两种即时通信应用,所述方法应用于所述中心节点中,包括以下步骤:
    响应于所述域即时通讯服务器的请求,进行相应的操作或者将对应的与所述用户相关的信息提供给所述域即时通讯服务器。
  2. 根据权利要求1所述的方法,其中,所述响应于所述域即时通讯服务器的请求,进行相应的操作,包括:
    所述管理节点响应于接收到用户通过其中一个域即时通讯服务器发送的注册请求,执行针对所述用户的注册处理,并记录该用户的相关信息。
  3. 根据权利要求2所述的方法,其中,所述记录该用户的相关信息包括:
    所述管理节点为该用户分配系统唯一的标识,建立所述系统唯一的标识与用户请求注册的初始标识之间的映射关系,并将所述系统唯一的标识的相关信息记录在所述区块链节点中。
  4. 根据权利要求3所述的方法,其中,所述系统唯一的标识的相关信息为以下相关信息的中至少其中一个:所述系统唯一的标识、所述系统唯一的标识的签名、所述系统唯一的标识的地址信息和所述系统唯一的标识建立时的特征值。
  5. 根据权利要求3所述的方法,其中,所述用户请求注册的初始标识为手机号码。
  6. 根据权利要求3所述的方法,还包括:
    所述管理节点响应于所述用户利用用于注册的新标识改变用户请求注册的初始标识的请求,使用所述用于注册的新标识,更新所述映射关系。
  7. 根据权利要求2所述的方法,其中,所述记录该用户的相关信息包括:
    记录从其接收所述用户的注册请求的域即时通讯服务器的标识。
  8. 根据权利要求7所述的方法,还包括:
    所述管理节点向其他域即时通讯服务器广播从其接收所述用户的注册请求的域即时通讯服务器的标识。
  9. 根据权利要求1所述的方法,其中,响应于所述域即时通讯服务器发送的请求,将对应的与所述用户相关的信息提供给所述域即时通讯服务器,包括:
    所述区块链节点响应于其中一个域即时通讯服务器发送的获取用户好友列表的请求,将对应的用户好友列表的相关信息提供给所述其中一个域即时通讯服务器。
  10. 根据权利要求9所述的方法,其中,所述用户好友列表的相关信息为以下相关信息的中至少其中一个:所述用户好友列表、所述用户好友列表的签名、所述用户好友列表的地址信息,所述用户好友关系建立时的特征值和所述用户好友列表整体特征值。
  11. 根据权利要求9所述的方法,其中,所述用户好友列表是所述用户通过其他域即时通信服务器建立、并由所述其他域即时通信服务器传递给所述区块链节点的,或者,所述用户好友列表是所述用户通过其他域即时通信服务器发起建立请求、由所述管理节点建立后并存储在所述区块链节点中。
  12. 根据权利要求10或11所述的方法,还包括:
    所述管理节点接收用户通过其中一个域即时通讯服务器发布的社交圈动态;
    将所述所社交圈动态发送给其他域即时通信服务器。
  13. 根据权利要求1所述的方法,其中,包括:
    所述管理节点响应于用户在其中一个域即时通讯服务器上的登陆请求,向所述其中一个域即时通讯服务器发送用户登陆验证结果。
  14. 根据权利要求1所述的方法,其中,包括:
    记录从其接收所述用户的登陆请求的域即时通讯服务器的标识。
  15. 根据权利要求14所述的方法,其中,记录从其接收所述用户的登陆请求的域即时通讯服务器的标识包括:
    在从其接收所述用户的本次登陆请求的域即时通信服务器与从其接收上次登陆请求的域即时通信服务器发生变化的情况下,记录从其接收所述用户的本次登陆请求的域即时通讯服务器的标识。
  16. 根据权利要求14或15所述的方法,还包括:
    所述管理节点向其他域即时通讯服务器广播从其接收所述用户的登陆请求的域即时通讯服务器的标识。
  17. 据权利要求1所述的方法,其中,所述响应于所述域即时通信服务器的请求,进行相应的操作,包括:
    响应于所述域即时通信服务器的发送信息的请求,将相关信息发送给目标域即时通信服务器,其中,所述目标域即时通信服务器包括所述发送信息对应的目标用户注册或最近登录的域通信服务器。
  18. 根据权利要求1-17任一项所述的方法,其中,每个域即时通信服务器包括一个即时通信服务器或服务器集群,所述一个即时通信服务器或服务器集群为对应的即时通信应用提供服务。
  19. 一种即时通信系统中的数据处理方法,所述即时通信系统包括中心服务器和至少两个域即时通信服务器,所述中心服务器存储与用户相关的信息,所述至少两个域即时通信服务器分别对应于至少两种即时通信应用,所述方法应用于所述中心服务器中,该方法包括:
    响应于所述域即时通信服务器的请求,进行相应的操作或者将对应的与所述用户相关的信息提供给所述域即时通信服务器。
  20. 根据权利要求18所述的方法,其中,所述响应于所述域即时通信服务器的请求,进行相应的操作,包括:
    响应于接收到用户通过其中一个域即时通信服务器发送的注册请求,执行针对所述用户的注册处理,并在其中记录该用户的相关信息。
  21. 根据权利要求20所述的方法,其中,所述在其中记录该用户的相关信息包括:
    为该用户分配系统唯一的标识,建立所述系统唯一的标识与用户请求注册的初始标识之间的映射关系。
  22. 根据权利要求21所述的方法,还包括:
    存储所述系统唯一的标识的相关信息,所述系统唯一的标识的相关信息为以下相关信息的中至少其中一个:所述系统唯一的标识、所述系统唯一的标识的签名、所述系统唯一的标识的地址信息和所述系统唯一的标识建立时的特征值。
  23. 根据权利要求21所述的方法,其中,所述用户请求注册的初始标识包括手机号码。
  24. 根据权利要求21所述的方法,还包括:
    响应于所述用户利用用于注册的新标识改变用户请求注册的初始标识的请求,使用所述用于注册的新标识,更新所述映射关系。
  25. 根据权利要求20所述的方法,其中,所述在其中记录该用户的相关信息包括:
    记录从其接收所述用户的注册请求的域即时通信服务器的标识。
  26. 根据权利要求25所述的方法,还包括:
    向其他域即时通信服务器广播从其记录的所述用户的注册请求的域即时通信服务器的标识。
  27. 根据权利要求19所述的方法,其中,所述响应于所述域即时通信服务器发送的请求,将对应的与所述用户相关的信息提供给所述域即时通信服务器,包括:
    响应于其中一个域即时通信服务器发送的获取用户好友列表的请求,将对应的用户好友列表的相关信息提供给所述其中一个域即时通信服务器。
  28. 根据权利要求27所述的方法,其中,所述用户好友列表是所述用户通过其他域即时通信服务器建立、并由所述其他域即时通信服务器传递给所述中心服务器的,或者,所述用 户好友列表是所述用户通过其他域即时通信服务器发起建立请求、并由所述中心服务器建立的。
  29. 根据权利要求27所述的方法,其中,所述用户好友列表的相关信息为以下相关信息的中至少其中一个:所述用户好友列表、所述用户好友列表的签名、所述用户好友列表的地址信息,所述用户好友关系建立时的特征值和所述用户好友列表整体特征值。
  30. 根据权利要求27-28任一项所述的方法,还包括:
    接收用户通过其中一个域即时通信服务器发布的社交圈动态;
    将所述所社交圈动态提供给其他域即时通信服务器。
  31. 根据权利要求19所述的方法,其中,所述响应于所域即时通信服务器的请求,进行相应的操作,包括:
    响应于用户在其中一个域即时通信服务器上的登录请求,向所述其中一个域即时通信服务器发送用户登录验证结果。
  32. 根据权利要求31所述的方法,还包括:
    记录从其接收所述用户的登录请求的域即时通信服务器的标识。
  33. 根据权利要求32所述的方法,其中,所述记录从其接收所述用户的登录请求的域即时通信服务器的标识,包括:
    在从其接收所述用户的本次登录请求的域即时通信服务器与从其接收上次登录请求的域即时通信服务器发生变化的情况下,记录从其接收所述用户的本次登录请求的域即时通信服务器的标识。
  34. 根据权利要求32或33所述的方法,还包括:
    向其他域即时通信服务器广播从其记录所述用户的登录请求的域即时通信服务器的标识。
  35. 根据权利要求19所述的方法,其中,所述响应于所述域即时通信服务器的请求,进行相应的操作,包括:
    响应于所述域即时通信服务器的发送信息的请求,将相关信息发送给目标域即时通信服务器,其中,所述目标域即时通信服务器包括所述发送信息对应的目标用户注册或最近登录的域通信服务器。
  36. 根据权利要求19-35任一项所述的方法,其中,每个域即时通信服务器包括一个即时通信服务器或服务器集群,所述一个即时通信服务器或服务器集群为对应的即时通信应用提供服务。
  37. 根据权利要求19所述的方法,其中:所述中心服务器包括管理节点和存储节点。
  38. 根据权利要求37所述的方法,其中:所述管理节点用于执行以下至少一项:执行针 对所述用户的注册处理、为该用户分配系统唯一的标识并建立所述系统唯一的标识与用户请求注册的初始标识之间的映射关系以及接收用户发布的社交圈动态。
  39. 根据权利要求37所述的方法,其中:所述存储节点用于存储以下至少一项:用户的系统唯一的标识相关的消息、用户好友列表相关的消息以及用户之间的即时通信消息的记录数据。
  40. 根据权利要求39所述的方法,其中,还包括:依据所述用户之间的即时通信消息的记录数据,向用户发放激励资源。
  41. 根据权利要求39所述的方法,其中:所述存储节点为区块链节点。
  42. 一种即时通信系统中的数据处理方法,所述即时通信系统包括中心服务器和至少两个域即时通信服务器,所述中心服务器存储与用户相关的信息,所述至少两个域即时通信服务器分别对应于至少两种即时通信应用,所述方法应用于其中一个域即时通信服务器中,该方法包括:
    响应于用户向其的注册、最近登录请求或者由所述中心服务器广播的接收了用户的注册、最近登录请求的其他域即时通信服务器的标识,记录或更新用户注册或最近登录的域通信服务器。
  43. 根据权利要求42所述的方法,包括:
    接受用户发送信息的请求;
    判断所述信息的目标用户注册或最近登录的域通信服务器,若为其本身,则所述信息经由其发送;若为其他域即时通信服务器,则将所述信息转发给所述中心服务器,由所述中心服务器转发给其他域即时通信服务器。
  44. 根据权利要求43所述的方法,其中,所述信息包括以下任意一种或多种:
    普通通信信息、社交圈动态通知信息或群组信息。
  45. 根据权利要求44所述的方法,其中,在所述信息包括社交圈动态通知信息或群组信息的情况下,针对所述信息的多个目标用户的每个目标用户,判断该目标用户注册或最近登录的域通信服务器,若为其本身,则所述信息经由其发送;若为其他域即时通信服务器,则将所述信息转发给所述中心服务器,由所述中心服务器转发给其他域即时通信服务器。
  46. 一种计算设备,包括:
    一个或多个存储器,存储有可执行指令;以及
    一个或多个处理器,执行所述可执行指令,以实现根据权力要求1~45中任一项所述的方法。
  47. 一种介质,其上存储有可执行指令,所述指令在被处理器执行时实现根据权利要求 1~45中任一项所述的方法。
PCT/CN2018/117251 2018-04-20 2018-11-23 基于区块链的即时通讯系统实现方法、介质和计算设备 WO2019200920A1 (zh)

Priority Applications (1)

Application Number Priority Date Filing Date Title
US17/044,764 US11595328B2 (en) 2018-04-20 2018-11-23 Methods, media and computing devices for implementing instant messaging system based on blockchain

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201810364866.9A CN108306819B (zh) 2018-04-20 2018-04-20 基于区块链的即时通讯系统实现方法、介质和计算设备
CN201810364866.9 2018-04-20

Publications (1)

Publication Number Publication Date
WO2019200920A1 true WO2019200920A1 (zh) 2019-10-24

Family

ID=62847506

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/117251 WO2019200920A1 (zh) 2018-04-20 2018-11-23 基于区块链的即时通讯系统实现方法、介质和计算设备

Country Status (3)

Country Link
US (1) US11595328B2 (zh)
CN (1) CN108306819B (zh)
WO (1) WO2019200920A1 (zh)

Families Citing this family (23)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108667717B (zh) * 2018-04-20 2021-06-08 网易(杭州)网络有限公司 基于即时通信消息记录的区块链处理方法、介质、装置和计算设备
CN108306819B (zh) 2018-04-20 2022-03-04 网易(杭州)网络有限公司 基于区块链的即时通讯系统实现方法、介质和计算设备
CN109067863B (zh) * 2018-07-25 2021-03-05 上海点融信息科技有限责任公司 用于管理区块链节点的节点标识的方法、装置及存储介质
CN109120515B (zh) * 2018-08-20 2021-08-20 网易(杭州)网络有限公司 通信系统中的信息处理方法、装置、介质和计算设备
CN109690600B (zh) * 2018-08-22 2023-05-26 区链通网络有限公司 区块链资源使用控制方法、装置及存储介质
CN109460993A (zh) * 2018-09-04 2019-03-12 咪咕文化科技有限公司 一种信息处理方法、装置及存储介质
US10841094B2 (en) * 2018-09-14 2020-11-17 Microsoft Technology Licensing, Llc Private and public media data in a decentralized system
CN109286668A (zh) * 2018-09-26 2019-01-29 上海点融信息科技有限责任公司 用于区块链网络的通信、消息发送、消息接收方法
CN109617794A (zh) * 2019-01-31 2019-04-12 篱笆墙网络科技有限公司 即时通信系统及即时通信方法
CN109862135B (zh) * 2019-03-19 2021-06-01 全链通有限公司 基于域名区块链的群组通信方法、区块链节点及介质
CN109981416B (zh) * 2019-04-04 2022-07-12 中山大学 一种区块链性能检测方法与系统
CN110189226B (zh) * 2019-05-31 2024-02-27 深圳市迅雷网络技术有限公司 一种区块链共识方法及装置,一种联盟链系统
CN110445882A (zh) 2019-09-19 2019-11-12 腾讯科技(深圳)有限公司 通信连接方法、装置、计算机设备及存储介质
CN110650083B (zh) * 2019-10-15 2021-04-13 腾讯科技(深圳)有限公司 一种消息过滤方法及装置
CN113691437B (zh) * 2020-05-18 2023-04-18 山东浪潮质量链科技有限公司 一种基于区块链的即时通讯方法、设备及介质
US11087016B1 (en) 2020-08-20 2021-08-10 Spideroak, Inc. Implementation of a file system on a block chain
CN113364666B (zh) * 2021-05-25 2022-06-28 杭州复杂美科技有限公司 即时通讯方法、计算机设备和存储介质
CN113507458B (zh) * 2021-06-28 2023-01-31 电子科技大学 一种基于区块链的跨域身份认证方法
CN113595877B (zh) * 2021-07-23 2022-08-30 永旗(北京)科技有限公司 一种基于区块链的即时通讯方法
CN114124867B (zh) * 2021-11-18 2023-07-04 大连九锁网络有限公司 一种二三层混合网络结构下的群发即时消息传输方法
CN114125031B (zh) * 2022-01-28 2022-06-21 南湖实验室 一种基于互联网区域联动的广播应答方法及其系统
CN115002057B (zh) * 2022-05-26 2024-04-12 威艾特科技(深圳)有限公司 一种分布式多服务端即时通信方法
CN115348309B (zh) * 2022-06-17 2024-03-22 上海数慧系统技术有限公司 通讯管理方法及装置

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101188577A (zh) * 2007-12-29 2008-05-28 腾讯科技(深圳)有限公司 多页面即时通讯方法和系统
CN101677301A (zh) * 2008-09-16 2010-03-24 联想(北京)有限公司 即时通信中间服务器及其实现即时通信的方法
CN102209067A (zh) * 2010-03-29 2011-10-05 腾讯科技(深圳)有限公司 即时通讯中获取最近联系人信息的系统、方法及客户端
CN105577505A (zh) * 2014-10-14 2016-05-11 北京信威通信技术股份有限公司 跨平台即时通信系统及其消息互通方法
CN108306819A (zh) * 2018-04-20 2018-07-20 网易(杭州)网络有限公司 基于区块链的即时通讯系统实现方法、介质和计算设备

Family Cites Families (21)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1842063A (zh) * 2005-03-30 2006-10-04 广州市领华科技有限公司 一种即时通信方法
KR101239197B1 (ko) * 2006-06-30 2013-03-05 주식회사 케이티 이동 통신 시스템에서 다수의 인스턴트 메시지 서비스를통합하여 제공하는 장치 및 방법과 이를 위한 무선 통신단말기
CN101136877A (zh) * 2007-09-28 2008-03-05 腾讯科技(深圳)有限公司 即时通讯的方法及系统
CN101778053A (zh) * 2009-12-23 2010-07-14 中兴通讯股份有限公司 即时通讯工具互通方法及装置
US20150379510A1 (en) * 2012-07-10 2015-12-31 Stanley Benjamin Smith Method and system to use a block chain infrastructure and Smart Contracts to monetize data transactions involving changes to data included into a data supply chain.
CN103973545B (zh) * 2014-04-22 2015-09-23 腾讯科技(深圳)有限公司 即时消息的处理方法、装置及系统
US11409875B2 (en) * 2015-04-16 2022-08-09 Cloud Raxak, Inc. Trust in block-chain implementations using compute resource configuration and verification systems and methods
US9871775B2 (en) * 2015-08-10 2018-01-16 Cisco Technology, Inc. Group membership block chain
US10769285B2 (en) * 2016-05-18 2020-09-08 International Business Machines Corporation Privacy enabled runtime
US10122661B2 (en) * 2016-06-10 2018-11-06 Salesforce.Com, Inc. Messaging systems and methods that employ a blockchain to ensure integrity of message delivery
WO2018031765A1 (en) * 2016-08-11 2018-02-15 TruVerse, Inc. Systems and methods for providing cross-messaging application conversations
CN106100981B (zh) * 2016-08-22 2019-08-23 布比(北京)网络技术有限公司 社交网络数据交互方法及装置
US20180349990A1 (en) * 2017-06-06 2018-12-06 International Business Machines Corporation Point-of-sale system for real-time risk assessment, instant message-based collaborative guarantorship, and method for using the same
US11157505B2 (en) * 2017-10-18 2021-10-26 Comake, Inc. Dynamic presentation of searchable contextual actions and data
US11089478B2 (en) * 2017-12-04 2021-08-10 Celltrust Corporation Blockchain for validating communications archiving
US11176101B2 (en) * 2018-02-05 2021-11-16 Bank Of America Corporation System and method for decentralized regulation and hierarchical control of blockchain architecture
US20190260573A1 (en) * 2018-02-18 2019-08-22 Arisa Goto Computerized Method For Managing Product Such As Wine and Cigar Utilizing Micro Chip Implanted Container and Blockchain Ledger System
US10834041B2 (en) * 2018-04-05 2020-11-10 International Business Machines Corporation Blockmail transfer protocol
US11341261B2 (en) * 2019-04-05 2022-05-24 Spideroak, Inc. Integration of a block chain, managing group authority and access in an enterprise environment
US11379815B2 (en) * 2019-10-07 2022-07-05 Bank Of America Corporation System for secure peer-to-peer interactions with event-based confirmation triggering mechanism
US11593833B2 (en) * 2020-09-10 2023-02-28 Joseph Sean WILLIAMS TUBAY Method and system for providing electronic universal incentive awards with blockchains

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101188577A (zh) * 2007-12-29 2008-05-28 腾讯科技(深圳)有限公司 多页面即时通讯方法和系统
CN101677301A (zh) * 2008-09-16 2010-03-24 联想(北京)有限公司 即时通信中间服务器及其实现即时通信的方法
CN102209067A (zh) * 2010-03-29 2011-10-05 腾讯科技(深圳)有限公司 即时通讯中获取最近联系人信息的系统、方法及客户端
CN105577505A (zh) * 2014-10-14 2016-05-11 北京信威通信技术股份有限公司 跨平台即时通信系统及其消息互通方法
CN108306819A (zh) * 2018-04-20 2018-07-20 网易(杭州)网络有限公司 基于区块链的即时通讯系统实现方法、介质和计算设备

Also Published As

Publication number Publication date
CN108306819A (zh) 2018-07-20
US11595328B2 (en) 2023-02-28
CN108306819B (zh) 2022-03-04
US20210112023A1 (en) 2021-04-15

Similar Documents

Publication Publication Date Title
WO2019200920A1 (zh) 基于区块链的即时通讯系统实现方法、介质和计算设备
US11050683B2 (en) System for providing dialog content
WO2020186909A1 (zh) 虚拟网络业务处理方法、装置和系统,控制器,存储介质
JP5719453B2 (ja) マルチユーザ装置のためのメッセージプッシュ通知クライアントの改良
JP5745696B2 (ja) 通知メッセージの管理
EP2898420B1 (en) A data-sharing method, terminal, server, and system
US8764567B2 (en) System and method for implementing turn-based online games
JP5986356B2 (ja) ユーザ中心の仮想個人化グループ(vpc)生成方法、vpc内で通信する通信機器の動作方法、コンピュータで記録可能な記録媒体、vpcネットワーク、vpc内で通信する通信機器、及び仮想個人化ネットワークのための装置
US20120311036A1 (en) Friend recommendation system and method
US9276900B1 (en) Network bootstrapping for a distributed storage system
US20120310959A1 (en) System and method for managing a partitioned database of user relationship data
CN110557439B (zh) 一种网络内容管理方法及区块链内容网络平台
JP2013542681A (ja) コンテンツ中心のネットワーク環境でグループ変更に関する情報を用いるコンテンツ共有方法及び装置
JP2017201776A (ja) 不均一ネットワークにまたがるコンテンツ配送
JP2017037636A (ja) 通信セッション上の一部の参加者のための仮想の通信セッションを提供するシステムおよび方法
CN109120515B (zh) 通信系统中的信息处理方法、装置、介质和计算设备
WO2018214792A1 (zh) 一种用于对用户设备进行流量控制的方法与设备
US20150350079A1 (en) Method of message routing for a distributed computing system
WO2019214208A1 (zh) 即时通讯系统中的数据处理方法、装置、介质和计算设备
US20230388302A1 (en) Techniques for selective container access to cloud services based on hosting node
CN112804366B (zh) 用于解析域名的方法和装置
US20140089430A1 (en) Data-sharing method, terminal, server, and system
US20120011250A1 (en) Communication program, communication method, and electric apparatus
US11509622B2 (en) Facilitating communication between resources in different network environments
US20170163581A1 (en) Determining a Number of Users Allowed to Access Message Based on Message Objective

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 18915189

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 18915189

Country of ref document: EP

Kind code of ref document: A1