Data processing method, electronic device, program product and storage medium
Server transfer solves the limitations of the key management plug-in installation environment and enables the convenience of data processing in browsers for decentralized applications, especially digital signatures, which improves the convenience of data processing and communication.
Patent Information
- Application Number
- PCT/CN2023/136023
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-03-08
- Filing Date
- 2023-12-04
- Publication Date
- 2024-09-12
AI Technical Summary
The installation environment limitations of the key management plug-in hinder the convenience of decentralized applications for data processing in the browser, especially business data processing such as digital signatures.
The server is used as a message transfer node to realize communication between the first client and the second client, avoiding the need to install a key management plug-in in the browser. The virtual resource transfer method and the relay server are used for data processing. Includes receiving and forwarding messages to complete signature requests and responses.
It improves the convenience of data processing and communication, allows signature and other data processing without a key management plug-in in the browser, and enhances the data interaction capabilities between different clients.
Smart Images

Figure CN2023136023_12092024_PF_FP_ABST
Abstract
Description
Data processing method, electronic device, program product, and storage medium
[0001] This application claims priority to the Chinese patent application filed with the China Patent Office on March 8, 2023, with application number 202310258649.2 and application name “A method, device, electronic device and storage medium for transferring virtual resources”. The entire contents of the application are incorporated by reference into this application. Technical Field
[0002] The present application relates to the field of data processing technology, and in particular to a data processing method, electronic equipment, program product, and storage medium. Background Art
[0003] With the development of blockchain technology and the introduction of decentralized applications (Dapps), decentralized applications (such as decentralized web applications running in browsers) can implement key-related business processing by calling key management plug-ins pre-installed in the browser.
[0004] However, the installation environment of the key management plug-in is limited and only supports installation on some browsers, which hinders the convenience of using Dapp for data processing (such as business data processing such as digital signatures).
[0005] Summary of the Invention
[0006] Embodiments of the present application provide a data processing method, electronic device, program product, and storage medium for improving the convenience of data processing.
[0007] In a first aspect, a data processing method is provided, which is executed in a server, and the method comprises:
[0008] Receive a first message published by a first client for a first topic, where the first message includes a second topic to which the first client is subscribed;
[0009] Forwarding the first message published on the first topic to a second client subscribed to the first topic;
[0010] receiving a first response message published by the second client on the second topic in response to the first message, where the first response message includes a third topic subscribed by the second client;
[0011] Forwarding the first response message to a first client subscribed to the second topic;
[0012] receiving a second message published by the first client for the third topic, where the second message includes a signature request;
[0013] Forwarding the second message to the second client subscribed to the third topic;
[0014] receiving a second response message published by the second client on the second topic in response to receiving the second message, where the second response message includes a signature for the signature request;
[0015] The second response message is forwarded to the first client subscribed to the second topic.
[0016] In a second aspect, a data processing method is proposed, which is executed in a first client, and the method includes:
[0017] Sending a first message for a first topic to a server, so that the server forwards the first message published for the first topic to a second client subscribed to the first topic, where the first message includes the second topic subscribed to by the first client;
[0018] receiving a first response message from the second client forwarded by the server, where the first response message includes a third topic subscribed by the second client;
[0019] Sending a second message for the third topic to the server, so that the server forwards the second message to the second client subscribed to the third topic, where the second message includes a signature request;
[0020] A second response message from the second client is received and forwarded by the server, where the second response message includes a signature for the signature request.
[0021] In a third aspect, a data processing method is proposed, which is executed in a second client, and the method includes:
[0022] Receive a first message from a first client forwarded by a server, where the first message includes a second topic subscribed by the first client;
[0023] In response to the first message, sending a first response message published for the second topic to the server, so that the server forwards the first response message to the first client subscribed to the second topic, the first response message including the third topic subscribed by the second client;
[0024] receiving a second message forwarded by the server and published from the first client for the third topic, where the second message includes a signature request;
[0025] generating a signature for the signature request in response to a user operation;
[0026] A second response message published for the second topic is sent to the server, so that the server sends the second response message to the first client subscribed to the second topic, where the second response message includes a signature for the signature request.
[0027] In a fourth aspect, an electronic device is proposed, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the above method when executing the program.
[0028] In a fifth aspect, a computer-readable storage medium is proposed, on which a computer program is stored, and the computer program implements the above method when executed by a processor.
[0029] In a sixth aspect, a computer program product is proposed, comprising a computer program, which implements the above method when executed by a processor. BRIEF DESCRIPTION OF THE DRAWINGS
[0030] FIG1A is a schematic diagram of an application scenario of an embodiment of the present application;
[0031] FIG1B is a flow chart of a data processing method according to an embodiment of the present application;
[0032] FIG2A is a flow chart of a data processing method according to an embodiment of the present application;
[0033] FIG2B is a schematic diagram of a first connecting channel in an embodiment of the present application;
[0034] FIG2C shows a schematic diagram of scanning a QR code;
[0035] FIG2D shows a schematic diagram of the first, second and third topics generated in the server;
[0036] FIG2E shows a schematic diagram of a first client transmitting a signature request to a second client;
[0037] FIG3 is a flow chart of a data processing method according to an embodiment of the present application;
[0038] FIG4 is a flow chart of a data processing method according to an embodiment of the present application;
[0039] FIG5 is a flow chart of a data processing method according to an embodiment of the present application;
[0040] FIG6A is a schematic diagram of the connection establishment process between the key management terminal and the web-side airdrop Dapp in an embodiment of the present application;
[0041] FIG6B is a schematic diagram of a process in which a relay server pushes data to a web page and a key management terminal in an embodiment of the present application;
[0042] FIG6C is a schematic diagram of a virtual resource transfer process according to an embodiment of the present application;
[0043] FIG7 is a schematic diagram of the logical structure of a data processing device according to an embodiment of the present application;
[0044] FIG8 is a schematic diagram of a hardware structure of an electronic device according to an embodiment of the present application;
[0045] FIG9 is a schematic diagram of the structure of a computing device in an embodiment of the present application. DETAILED DESCRIPTION
[0046] To make the purpose, technical solutions, and advantages of the embodiments of the present application more clear, the technical solutions of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the technical solutions of the present application, but not all of them. Based on the embodiments described in this application document, all other embodiments obtained by ordinary technicians in this field without making creative efforts shall fall within the scope of protection of the technical solutions of the present application.
[0047] The terms "first," "second," and the like in the specification and claims of this application and in the accompanying drawings are used to distinguish similar objects and are not necessarily used to describe a particular order or sequential sequence. It should be understood that the terms used in this manner are interchangeable where appropriate, such that the embodiments of the invention described herein can be practiced in sequences other than those illustrated or described herein.
[0048] The following explains some of the terms used in the embodiments of the present application to facilitate understanding by those skilled in the art.
[0049] Virtual resources: refers to transferable resources in digital form, such as resources transferred in a blockchain, and specifically refers to data collections (such as paintings, sounds, videos, items in games or other forms of creative works).
[0050] A decentralized application (Dapp) is a distributed application that can be deployed on one or more nodes of a blockchain network and is used as a client application (e.g., a front-end application) to access smart contracts. For example, a Dapp can call a smart contract and execute some business logic. It should be noted that a Dapp and a smart contract can be deployed on different nodes. The execution of a Dapp is independent of the blockchain network's consensus mechanism, but the execution results of the smart contracts called by the Dapp do depend on the blockchain network's consensus mechanism.
[0051] Key management terminal: also known as blockchain key management terminal or object key management terminal, used to authorize connections with DAPP and sign business data (such as signing transaction information).
[0052] Relay server: provides decentralized services. Any node or device can serve as a relay server. In some possible implementation schemes of the present application, there may be a decentralized relay service cluster. The relay service cluster may include multiple devices that can serve as relay servers. There may be a competitive relationship between different relay servers providing relay services. In an embodiment of the present application, the relay server provides a communication channel between the web side and the key management side, so it can relay messages between the key management side and the web side, and can push some promotional information to the key management side or the web side, such as pushing advertising information to obtain incentives.
[0053] Blockchain is a new application model for computer technologies such as distributed data storage, peer-to-peer transmission, consensus mechanisms, and encryption algorithms. Essentially, a blockchain is a decentralized database, a series of data blocks linked using cryptographic methods. Each block contains information about a batch of online transactions, used to verify the validity of this information (i.e., for anti-counterfeiting purposes) and generate the next block. Blockchain can include the underlying blockchain platform, the platform product and service layer, and the application service layer.
[0054] The following is a brief introduction to the design concept of the embodiment of this application:
[0055] The preferred embodiments of the present application are described below in conjunction with the drawings in the specification. It should be understood that the preferred embodiments described herein are only used to illustrate and explain the present application and are not used to limit the present application. In addition, the embodiments of the present application and the features in the embodiments may be combined with each other if there is no conflict.
[0056] 1A is a schematic diagram of a possible application scenario in an embodiment of the present application, which includes a server 110, a first client 120, a Dapp backend 130, and a second client 140.
[0057] A first connection channel is established between the server 110 and the first client 120 ; a second connection channel is established between the server 110 and the second client 140 .
[0058] Server 110 may receive a first message published by first client 120 on a first topic. The first message includes a second topic to which the first client subscribes. Server 110 forwards the first message published on the first topic to second client 140, which subscribes to the first topic. Server 110 receives a first response message published by second client 140 on the second topic in response to the first message. The first response message includes a third topic to which second client 140 subscribes. Server 110 forwards the first response message to first client 120, which subscribes to the second topic. Server 110 receives a second message published by first client 120 on the third topic. The second message includes a signature request. Server 110 forwards the second message to second client 140, which subscribes to the third topic. Server 110 receives a second response message published on the second topic, sent by second client 140 in response to receiving the second message. The second response message includes a signature for the signature request.
[0059] The server 110 sends the second response message to the first client that subscribes to the second topic. In this way, the embodiment of the present application can achieve communication between the first client and the second client by using the server 110 as a message transfer node without installing a key management plug-in in the browser, thereby improving the convenience of communication between the first client and the second client and improving the convenience of data processing such as signing.
[0060] It should be noted that, in a possible implementation, according to actual processing needs, server 110, for example, a relay server, belongs to a relay service cluster. The relay service cluster may include multiple devices that can provide relay services. In the process of transferring virtual resources for different target objects, the same or different devices may act as relay servers.
[0061] In the embodiment of the present application, the server 110 can be an independent physical server, or a server cluster or distributed system composed of multiple physical servers. It can also be a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN (Content Delivery Network), and big data and artificial intelligence platforms.
[0062] The first client 120 can be a terminal device that supports browser installation and can run DAPP, specifically a computer device with certain computing capabilities such as a personal computer, mobile phone, tablet computer, notebook, e-book reader, smart home, and car terminal.
[0063] The Dapp backend 130 specifically refers to a device that provides backend services for the Dapp. In a possible embodiment, it can be a blockchain node, wherein the corresponding device can be an independent physical server, or a server cluster or distributed system composed of multiple physical servers. It can also be a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN (Content Delivery Network), and big data and artificial intelligence platforms; or it can be a computer device with certain processing capabilities such as a personal computer.
[0064] The second client 140 is, for example, a key management terminal, which refers to a device where the blockchain key management function is located. Specifically, it can be a personal computer, a mobile phone, a tablet computer, a notebook, an e-book reader, a smart home, an in-vehicle terminal, or any other computer device with certain computing capabilities.
[0065] In the embodiments of the present application, communication connections can be established between the server 110 and the first client 120, between the first client 120 and the Dapp backend 130, and between the server 110 and the key management terminal 140 by using wired communication or wireless communication, respectively. This application does not impose too many restrictions on this.
[0066] It should be noted that, in the embodiment of the present application, the key management end 140 and the first client 120 correspond to different devices respectively.
[0067] The following uses several possible application scenarios as examples to schematically illustrate the process of virtual resource transfer processing in the technical solution proposed in this application:
[0068] Scenario 1: After the user completes the task set in the Dapp in the first client, the virtual resources that can be used by this application are transferred to the user account.
[0069] To access a Dapp (or web-based Dapp) on first client 120, a user triggers a connection establishment instruction to the relay server by accessing the web-based Dapp. Specifically, first client 120 sends a first connection request to server 110 based on a preset server address (e.g., a relay server domain name or relay server address). Server 110 establishes a first connection channel with first client 120, such as, but not limited to, a connection channel based on the WebSocket protocol. After establishing the first connection channel, first client 120 may send the first message described above to server 110.
[0070] The Dapp in the first client 120 can generate and present a QR code with the connection information required for the key management terminal to connect to the relay server. The QR code carries or indicates the address of the server and the first topic. In some embodiments, the QR code can also carry or indicate the key used for data transmission encryption during the communication process. The user can use the key management terminal 140 to scan the code to obtain the server address and the first topic, as well as the key used for data transmission encryption; then, in response to the user operation, the key management terminal 140 sends a second connection request to the server based on the server address, so that the server 110: establishes a second connection channel with the key management terminal 140 in response to the second connection request, and generates a third topic for the second connection channel. On this basis, the key management terminal 140 receives the third topic sent by the server 110 through the second connection channel; and sends a subscription request for the first topic and the third topic to the server 110 to subscribe to the first topic and the third topic.
[0071] Server 110 forwards the first message published on the first topic to key management terminal 140, which is subscribed to the first topic. In response to the first message, key management terminal 140 sends a first response message published on the second topic to server 110, so that the server forwards the first response message to first client 120, which is subscribed to the second topic. The first response message includes the third topic subscribed to by key management terminal 140.
[0072] Furthermore, when the Dapp is a web-based game or a web-based shopping application, and the target task published by the Dapp is to complete sharing on the application platform, the first client 120 can respond to the user's operation on the Dapp, complete the target task of the web-based Dapp, and generate a virtual resource transfer transaction after completing the target task.
[0073] During the transaction signing phase of the virtual resource transfer process, server 110 receives a second message published by the first client for the third topic, where the second message includes a signature request; forwards the second message to the second client (i.e., the key management end) that subscribes to the third topic; receives a second response message published by the second client for the second topic in response to receiving the second message, where the second response message includes a signature for the signature request; and sends the second response message to the first client that subscribes to the second topic.
[0074] The first client 120 can send the virtual resource transfer transaction information and signature to the Dapp backend 130. The Dapp backend 130 can verify the signature and, if the signature is verified, instruct the blockchain to transfer the virtual resource to the blockchain address where the user account is located. Specifically, if the web-based Dapp is a web-based game, the transferred virtual resource can be game skins, game characters, etc. available on the web-based Dapp. If the web-based Dapp is a web-based shopping application, the transferred virtual resource can be a shopping voucher available on the web-based Dapp and can be used by all online stores or a specific online store.
[0075] Scenario 2: After the user calls other applications to complete the application tasks in the web Dapp, the virtual resources that can be used by other applications are transferred to the user account.
[0076] The Dapp (or web version Dapp) in the first client 120 can send a connection establishment instruction to the relay server. For example, the first client 120 sends a first connection request to the server 110 based on a preset server address (e.g., the relay server domain name or relay server address); the server 110 establishes a first connection channel with the first client 120, such as a connection channel based on the WebSocket protocol. After the first connection channel is established, the first client 120 can send the first message described above to the server 110.
[0077] The Dapp in the first client 120 can generate and present a QR code with the connection information required for the key management terminal to connect to the relay server. The QR code carries or indicates the address of the server and the first topic. In some embodiments, the QR code can also carry or indicate the key used for data transmission encryption during the communication process. The user can use the key management terminal 140 to scan the code to obtain the server address and the first topic, as well as the key used for data transmission encryption; then, in response to the user operation, the key management terminal 140 sends a second connection request to the server based on the server address, so that the server 110: establishes a second connection channel with the key management terminal 140 in response to the second connection request, and generates a third topic for the second connection channel. On this basis, the key management terminal 140 receives the third topic sent by the server 110 through the second connection channel; and sends a subscription request for the first topic and the third topic to the server 110 to subscribe to the first topic and the third topic.
[0078] Server 110 forwards the first message published for the first topic to key management terminal 140, which is subscribed to the first topic. In response to the first message, key management terminal 140 sends a first response message published for the second topic to server 110, so that the server forwards the first response message to first client 120, which is subscribed to the second topic. The first response message includes the third topic subscribed to by key management terminal 140.
[0079] Furthermore, when the Dapp is a web-based game or a web-based shopping application, and the target task published by the Dapp is to complete sharing on the application platform, the first client 120 can respond to the user's operation on the Dapp, complete the target task of the web-based Dapp, and generate a virtual resource transfer transaction after completing the target task.
[0080] During the transaction signing phase of the virtual resource transfer process, server 110 receives a second message published by the first client for the third topic, where the second message includes a signature request; forwards the second message to the second client that subscribes to the third topic; receives a second response message published for the second topic sent by the second client in response to receiving the second message, where the second response message includes a signature for the signature request; and sends the second response message to the first client that subscribes to the second topic.
[0081] Furthermore, the first client 120 may send the virtual resource transfer transaction information and signature to the Dapp backend 130. The Dapp backend 130 may verify the signature and, if the signature is verified, instruct the blockchain to transfer the virtual resource to the blockchain address where the user's account is located. The transferred virtual resource may be a resource available in other applications, such as a voucher available in other shopping applications.
[0082] It should be noted that in the embodiments of the present application, the acquisition and use of data comply with the provisions of relevant laws and regulations; data related to the object is acquired with the authorization of the relevant object, and the processing operations performed on the object-related data are performed with the relevant objects clearly informed and authorized.
[0083] The following describes in detail the processes involved in the embodiment of the present application from the perspective of the server 110:
[0084] Refer to FIG1B, which is a flow chart of the data processing method in the embodiment of the present application. The following describes the process of virtual resource transfer in the embodiment of the present application in conjunction with FIG1B:
[0085] Step 101: Receive a first message published by a first client on a first topic. The first message includes a second topic to which the first client has subscribed. Here, the first and second topics are topics generated by the server. Each topic can represent a message category. Each topic can be considered a "mailbox." Topics allow the server to forward messages published by a client on a topic to another client subscribed to the same topic.
[0086] Step 102: forward the first message published on the first topic to a second client that subscribes to the first topic.
[0087] Step 103: Receive a first response message published by the second client in response to the first message on the second topic, where the first response message includes a third topic subscribed by the second client.
[0088] Step 104: forward the first response message to the first client subscribed to the second topic.
[0089] Step 105: Receive a second message published by the first client for the third topic, where the second message includes a signature request.
[0090] Step 106: forward the second message to the second client that subscribes to the third topic.
[0091] Step 107: Receive a second response message published by the second client on the second topic in response to receiving the second message, where the second response message includes a signature for the signature request.
[0092] Step 108: Send the second response message to the first client that subscribes to the second topic.
[0093] In summary, the data processing method of the embodiment of the present application can forward messages between the first client and the second client through the server without installing a key management plug-in for signing in the browser of the first client, thereby completing data processing related to the first client and the second client (for example, data processing including issuing a signature request and returning a signature), thereby improving the convenience of data processing. It should be noted that since there is no need to rely on a key management plug-in, the solution of the embodiment of the present application can use the same client for digital signature to perform signature and other processing for different clients that implement business processing, thereby improving the convenience of signature and other processing.
[0094] FIG2A shows a flowchart of a data processing method according to some embodiments of the present application, which can be executed in a server, for example.
[0095] Step 201: Receive a first connection request sent by the first client. In one embodiment, the first client includes a decentralized web application, such as the Dapp mentioned above.
[0096] Step 202: In response to the first connection request, a first connection channel is established with the first client. The first connection is established, for example, via a connection channel based on the WebSocket protocol, but is not limited thereto. For example, FIG2B shows a schematic diagram of the first connection channel. Different first clients may establish different first connection channels with the server.
[0097] Step 203: Generate a first topic and a second topic for the first connection channel. The first topic and the second topic are, for example, topic1 and topic2.
[0098] Step 204: Send the first topic and the second topic to the first client through the first connection channel.
[0099] In step 205, in response to receiving the subscription request from the first client for the second topic, the server enables the first client to subscribe to the second topic. Based on this, the first client can publish messages for the first topic (i.e., the first client publishes messages with a topic type of the first topic), so that the server sends the messages published by the first client for the first topic to the clients subscribed to the first topic.
[0100] Step 206: Receive a first message published by the first client on the first topic. The first message includes the second topic to which the first client subscribes. The first message carries the second topic, which allows the client receiving the first message to know that if it wants to send a message to the first client, it can publish a message on the second topic, so that the server can forward the message on the second topic to the first client.
[0101] Step 207, receiving a second connection request sent by the second client after obtaining the address of the server and the first topic from the first client. In one embodiment, after subscribing to the second topic, the first client can generate a QR code that carries or indicates the server address and the second topic subscribed by the first client; and present the QR code so that the second client can obtain the server address and the second topic by scanning the QR code. For example, Figure 2C below shows a schematic diagram of scanning a QR code. The embodiment of the present application can conveniently establish a connection channel between the second client and the server by scanning the QR code, thereby facilitating the rapid establishment of data interaction between the second client and the first client.
[0102] Step 208: In response to the second connection request, establish a second connection channel with the second client. Here, the second connection channel is, for example, a connection channel based on the WebSocket protocol, but is not limited thereto.
[0103] Step 209: Generate a third topic for the second connection channel. In other words, generate a third topic for the second client. The third topic is, for example, topic 3. For example, FIG2D shows a schematic diagram of the first, second, and third topics generated in the server.
[0104] Step 210: Send the third topic to the second client through the second connection channel.
[0105] In step 211, in response to receiving a subscription request from the second client for the first and third topics, the server enables the second client to subscribe to the first and third topics. In this way, upon receiving a message for either the first or third topic, the server can forward the message to the second client. By forwarding a message published by a client for a topic to another client subscribed to the topic, the server can enable data exchange between different clients.
[0106] Step 212: forward the first message published on the first topic to a second client that subscribes to the first topic.
[0107] Step 213: Receive a first response message published by the second client in response to the first message on the second topic, where the first response message includes a third topic subscribed by the second client.
[0108] Step 214: forward the first response message to the first client subscribed to the second topic. In this way, after receiving the first response message, the first client can know that if it wants to send a message to the second client, it can choose to publish a message for the third topic.
[0109] Step 215: Receive a second message published by the first client for the third topic. The second message includes a signature request. For example, the second client includes a key management application. The signature request carries the blockchain address associated with the user account. For example, Figure 2E shows a schematic diagram of the first client transmitting the signature request to the second client. The first client can publish a second message for the third topic, Topic 3. The second message includes a signature request. The server forwards the second message to the second client subscribed to Topic 3.
[0110] In one embodiment, the first message further includes a key, and correspondingly, the second message includes a signature request encrypted according to the key.
[0111] In one embodiment, the second message further includes a login random value. The login random value is, for example, obtained by the first client from the signature verification terminal. The login random value is used to log in to the key management application in the second client.
[0112] Step 216: forward the second message to the second client that subscribes to the third topic.
[0113] Step 217: Receive a second response message sent by the second client in response to receiving the second message, published to the second topic. The second response message includes a signature for the signature request. For example, the signature for the signature request is a signature for the blockchain address. When the second client obtains the key from the first client, the second response message includes a signature for the blockchain address encrypted using the key.
[0114] In step 218, the second response message is sent to the first client subscribed to the second topic. Continuing with Figure 2E , the second client publishes a second response message for the second topic, Topic 2. This second response message carries the signature generated by the key management application in the second client in response to the signature request. The server forwards this second response message to the first client subscribed to Topic 2, so that the first client, such as a Dapp, can receive the signature and perform subsequent business processing.
[0115] In summary, the data processing method of the embodiment of the present application can establish a connection between the first client and the server, and establish a connection between the second client and the server without installing a key management plug-in for signing in the browser of the first client, and then forward the messages of the first client and the second client through the server, thereby completing the data processing related to the first client and the second client (for example, data processing including issuing signature requests and returning signatures), thereby improving the convenience of data processing.
[0116] In one embodiment, the server may further obtain first promotional information published for the second topic, and forward the first promotional information to the first client so that the first client displays the first promotional information; obtain second promotional information published for the third topic, and forward the second promotional information to the second client so that the second client displays the second promotional information.
[0117] According to an embodiment of the present application, a data processing method is also provided, which is executed in a first client. The method includes:
[0118] Step 301: Send a first message for a first topic to a server, so that the server forwards the first message published for the first topic to a second client subscribed to the first topic, where the first message includes a second topic subscribed to by the first client.
[0119] Step 302: Receive a first response message from the second client forwarded by the server, where the first response message includes a third topic subscribed by the second client.
[0120] Step 303: Send a second message for the third topic to the server, so that the server forwards the second message to the second client subscribed to the third topic, where the second message includes a signature request.
[0121] Step 304: Receive a second response message from the second client forwarded by the server, where the second response message includes a signature for the signature request.
[0122] In summary, the data processing method of the embodiment of the present application can forward messages between the first client and the second client through the server without installing a key management plug-in for signing in the browser of the first client, thereby completing data processing related to the first client and the second client (for example, data processing including issuing signature requests and returning signatures), thereby improving the convenience of data processing.
[0123] FIG4 shows a flowchart of a data processing method according to some embodiments of the present application, which is executed in a first client.
[0124] As shown in FIG4 , step 401 is sending a first connection request to the server, so that the server: establishes a first connection channel with the first client, and generates the first topic and the second topic for the first connection channel.
[0125] Step 402: Receive the first topic and the second topic sent by the server through the first connection channel.
[0126] Step 403: Send a subscription request for the second topic to the server to subscribe to the second topic. In this way, when the server receives a message published for the second topic, it will forward the message to the first client.
[0127] Step 404: Generate a QR code carrying the server address and the second topic subscribed by the first client.
[0128] Step 405 presents the QR code, allowing the second client to scan the QR code to obtain the server address and the second theme. This allows the user to quickly establish a connection with the server by scanning the QR code provided by the first client when the second client needs to perform data processing such as signing data on the first client. This allows the second client to quickly exchange data with the first client and complete data processing such as signing.
[0129] Step 406: Send a first message for the first topic to the server, so that the server forwards the first message published for the first topic to the second client subscribed to the first topic, where the first message includes the second topic subscribed by the first client.
[0130] Step 407: Receive a first response message from the second client forwarded by the server, where the first response message includes a third topic subscribed by the second client.
[0131] Step 408: Send a second message for the third topic to the server, so that the server forwards the second message to the second client subscribed to the third topic, where the second message includes a signature request.
[0132] Step 409: Receive a second response message from the second client forwarded by the server, where the second response message includes a signature for the signature request.
[0133] In step 410, the signature is sent to the signature verification terminal, so that upon successful signature verification, the signature verification terminal instructs the blockchain to transfer virtual resources to the blockchain address. For example, the blockchain address can be considered to be the user's account on the blockchain. The signature verification terminal is, for example, the Dapp backend 130 described above, but is not limited thereto. If the signature verification is successful, it indicates that the blockchain address has not been illegally tampered with and is a valid blockchain address. The signature verification terminal can instruct the blockchain to transfer virtual resources, for example, to transfer virtual resources from the blockchain address or to the blockchain address. For example, the signature verification terminal may instruct the transfer of a set amount of virtual resources, where the set amount may be preconfigured.
[0134] In summary, the data processing method of the embodiment of the present application can forward messages between the first client and the second client through the server without installing a key management plug-in for signing in the browser of the first client, thereby completing data processing related to the first client and the second client (for example, data processing including issuing signature requests and returning signatures), thereby improving the convenience of data processing.
[0135] FIG5 shows a flowchart of a data processing method according to some embodiments of the present application, which is executed in a second client.
[0136] Step 501: Obtain a server address and a first topic from the first client.
[0137] Step 502: Send a second connection request to the server based on the server address, so that the server: establishes a second connection channel with the second client in response to the second connection request, and generates a third topic for the second connection channel.
[0138] Step 503: Receive the third topic sent by the server through the second connection channel.
[0139] Step 504: Send a subscription request for the first topic and the third topic to the server to subscribe to the first topic and the third topic.
[0140] Step 505: Receive a first message from the first client forwarded by the server, where the first message includes a second topic subscribed by the first client.
[0141] Step 506: In response to the first message, send a first response message published for the second topic to the server, so that the server forwards the first response message to the first client subscribed to the second topic, and the first response message includes the third topic subscribed by the second client.
[0142] Step 507: Receive a second message forwarded by the server from the first client and published on the third topic, where the second message includes a signature request.
[0143] Step 508: Generate a signature for the signature request in response to the user operation.
[0144] Step 509: Send a second response message published for the second topic to the server, so that the server sends the second response message to the first client subscribed to the second topic, and the second response message includes a signature for the signature request.
[0145] In summary, the data processing method of the embodiment of the present application can forward messages between the first client and the second client through the server without installing a key management plug-in for signing in the browser of the first client, thereby completing data processing related to the first client and the second client (for example, data processing including issuing signature requests and returning signatures), thereby improving the convenience of data processing.
[0146] In some embodiments of the present application, the relay server can promote data to the web Dapp and key management end, enabling additional exposure incentives.
[0147] Specifically, the relay server can perform any one or a combination of the following operations:
[0148] Operation 1: Construct the data to be promoted and push the data to be promoted to the web-side Dapp through the first connection channel, so that the web-side Dapp can display the data to be promoted.
[0149] Operation 2: Construct the data to be promoted, and push the data to be promoted to the key management end through the second connection channel, so that the key management end displays the data to be promoted.
[0150] For example, the relay server can use a first smart contract to constrain the data promotion process between it and the web-side Dapp, and use a second smart contract to constrain the data promotion process between it and the key management end.
[0151] For another example, suppose the relay server generates a 10-second advertisement based on a promotional task published by Company A, and agrees to provide relay services for the web-based Dapp and key management terminal free of charge. However, it is required to display the advertisement on the homepage of the web-based Dapp and when entering the key management terminal. Based on this, the relay server can obtain compensation from Company A by virtue of the exposure of the advertisement on the web-based Dapp and key management terminal, which is equivalent to obtaining exposure incentives.
[0152] In this way, the relay server can, based on actual processing needs, push the data to be promoted only to the web page, or push the data to be promoted to the key management end, or push the data to be promoted to both the web page and the key management end at the same time, thereby obtaining positive incentives and providing positive support for the operation of the relay server itself.
[0153] The following uses virtual resources, specifically digital collectibles, as an example to explain the process of airdropping digital collectibles to blockchain addresses:
[0154] In this scenario, users can use any browser on any device that supports loading web-based Dapps to access the web-based Dapps. The decentralized relay service cluster (referred to as the relay server) connects to the web-based Dapps and the key management application on the second client (i.e., the key management client). When the web-based Dapps require the key management client to sign, the signature request is pushed to the key management client through the relay server for signing and then uploaded to the chain. This solves the problem of users having to install a key management plug-in when using the web-based Dapps, making it convenient to use the web-based Dapps.
[0155] In the technical solution proposed in this application, in the scenario where the web-side Dapp is specifically a digital collection airdrop decentralized application (referred to as the web-side airdrop Dapp), a WebSocket connection channel (i.e., the first connection channel) is established between the Dapp and the key management end through the relay server, so that when the web-side Dapp needs to be signed, the key management end can be requested to sign through the relay server, thereby improving the ease of use of the web-side Dapp.
[0156] It's important to note that the WebSocket protocol was developed in 2008 and became an international standard in 2011. Currently, all browsers support transmission based on this protocol. Its most significant feature is that servers can proactively push information to clients, and clients can also proactively send information to servers, creating a truly two-way, equal dialogue and a form of server push technology.
[0157] 6A is a schematic diagram showing the connection establishment process between the key management terminal and the web-side Dapp in an embodiment of the present application. The following describes the relevant connection establishment process in conjunction with FIG6A :
[0158] Step 601: The target user clicks on the web-based Airdrop Dapp to connect to the associated key management terminal. The target user is the user of the web-based Airdrop Dapp.
[0159] Specifically, the target object browses the web-side Dapp in the browser and initiates a connection establishment instruction to the decentralized relay service cluster through the web page.
[0160] Step 602: The web-side airdrop Dapp sends a connection establishment instruction to the decentralized relay service cluster.
[0161] The decentralized relay service cluster establishes a first connection channel, a first topic Dapp topic, and a second topic Client topic. Step 603: Feedback the first topic Dapp topic and the second topic Client topic to the web-side airdrop Dapp.
[0162] Step 604: The web-side airdrop Dapp subscribes to the second topic Client topic and sends a first message for the first topic Dapp topic.
[0163] Step 605: The web page airdrop DAPP displays a QR code. The QR code indicates the server address and the first topic.
[0164] Step 606: The key management terminal scans the QR code displayed on the web-based airdrop Dapp.
[0165] Step 607: The key management terminal obtains the server address and the first topic.
[0166] Step 608: The key management terminal requests the centralized relay service cluster to establish a connection.
[0167] The decentralized relay service cluster establishes a second connection channel with the key management terminal and generates a third topic, Wallet topic. Step 609: The decentralized relay service cluster sends the third topic to the key management terminal.
[0168] Step 610: The key management terminal subscribes to the first topic and the third topic.
[0169] Step 611: The decentralized relay service cluster forwards the first message to the key management terminal.
[0170] Step 612: The key management terminal generates a first response message in response to the first message. The first response message includes the third topic subscribed by the key management terminal.
[0171] Step 613: The key management terminal sends a first response message to the centralized relay service cluster.
[0172] Step 614: The decentralized relay service cluster forwards the first response message to the web-side airdrop Dapp.
[0173] Step 615: The web-side airdrop Dapp obtains the first response message and subscribes to the third topic.
[0174] When the web-based airdrop Dapp needs to transmit data to the key management end, it publishes a message for the third topic, Wallet topic; when the key management end transmits data to the web-based airdrop Dapp, the key management end publishes a message for the second topic, Client topic.
[0175] Further, referring to FIG6B , which is a schematic diagram of the process of the relay server pushing data to the web page and the key management end in an embodiment of the present application, the relevant push process is schematically described below in conjunction with FIG6B :
[0176] It should be noted that the contents of step 616 and step 617 can occur at any time after the relay server completes the construction of the content transmission channel and the data transmission channel; step 616 and step 617, and the order of the numbers of the steps in the subsequent Figure 3C are only for schematic illustration and are not used to constrain the timing of step 616 and step 617.
[0177] Step 616: The decentralized relay service cluster sends advertising data to the web-side airdrop Dapp through the content transmission channel.
[0178] Specifically, the decentralized relay service cluster pushes advertising messages applicable to the web page to the Client topic, so that the web-side airdrop Dapp that subscribes to the Client topic can receive and display the advertising data.
[0179] Step 617: The decentralized relay service cluster sends the advertisement data to the key management terminal through the data transmission channel.
[0180] Specifically, the decentralized relay service cluster pushes advertisement data applicable to the key management end to the Wallet topic, so that the key management end subscribed to the Wallet topic can receive and display the advertisement data.
[0181] It should be noted that in the embodiments of the present application, when the decentralized relay service cluster pushes advertising data to the web page and the key management end, it can directly push the advertising data, or it can establish a smart contract with the web page and the key management end to limit the push process, so that the presentation of advertising data can be achieved according to the constraints of the smart contract. The relevant process of processing constraints based on smart contracts is a conventional technology in this field, and this application does not provide specific explanations on this.
[0182] Based on this, the relay service can obtain incentives by building a communication bridge between the web page and the key management end through the advertisement push mechanism in steps 616 and 617.
[0183] Further, referring to FIG. 6C , which is a schematic diagram of a virtual resource transfer process performed after a connection is established and a target task is completed in an embodiment of the present application, the relevant virtual resource transfer process will be described below in conjunction with FIG. 6C :
[0184] Step 618: After the web-side airdrop Dapp determines that the target object has completed the target task, it requests to obtain the login random value.
[0185] Specifically, the web-side airdrop Dapp requests the airdrop Dapp backend to provide a login random value to assist in completing the key management end login during the transaction verification process, or to assist in completing the signature verification.
[0186] Step 619: The airdrop Dapp backend feeds back the login random value generated based on the blockchain address of the target object to the web-side airdrop Dapp.
[0187] Specifically, the airdrop Dapp backend returns the login random value of the address login.
[0188] Step 620: The web-side airdrop Dapp sends a signature request carrying the login random value and blockchain address to the decentralized relay service cluster through the first connection channel.
[0189] Specifically, the web-based airdrop Dapp sends a signature request (or transaction signature request) for the Wallet topic. The transaction signature request is used to request the key management end to sign the blockchain address and login random value to confirm that the blockchain address belongs to the target object.
[0190] Step 621: The decentralized relay service cluster forwards the transaction signature request to the key management terminal.
[0191] Step 622: The key management terminal verifies the login parameters, signs the data in the transaction signature request, and obtains a signature.
[0192] Specifically, the key management end obtains the signature request from the Wallet topic and signs it on the key management end.
[0193] Step 623: The key management terminal sends the signature.
[0194] Specifically, the key management end sends the signature result (or transaction signature result) containing the signature for the Client topic to the relay service.
[0195] Step 624: The decentralized relay service cluster forwards the signature to the web-based airdrop Dapp.
[0196] Step 625: The web-side Airdrop Dapp sends the signature to the Airdrop Dapp backend.
[0197] Step 626: The airdrop Dapp backend verifies the transaction signature result and confirms that the verification is successful.
[0198] Step 627: The airdrop Dapp backend requests to airdrop the digital collection to the blockchain address where the target object is located according to the smart contract.
[0199] Specifically, the web-based decentralized application sends the login signature result to the Airdrop Dapp backend, and the Airdrop Dapp backend service verifies the signature and confirms that the blockchain address belongs to the target object.
[0200] It should be noted that in the specific verification process, when the login signature result is generated by the key management end based on the private key of the target object, the airdrop Dapp backend verifies the login signature result by using the public key of the target object to determine whether the verification is successful.
[0201] After the signature is verified by the airdrop Dapp backend, the business party's private key is used to chain the digital collection airdrop transaction, requesting the airdrop of the digital collection to the blockchain address of the target object, and completing the airdrop process of the digital collection.
[0202] In some possible implementations, the Airdrop Dapp backend can directly act as a blockchain node and call smart contracts to implement on-chain transactions; in other possible implementations, the Airdrop Dapp backend can request on-chain transactions from a designated blockchain node, that is, continue to execute the operations of steps 628-629.
[0203] Step 628: The blockchain node that maintains the smart contract performs the airdrop transfer of the on-chain digital collection in accordance with the smart contract.
[0204] Step 629: The blockchain node feeds back the transaction results of the digital collection on-chain to the airdrop Dapp backend.
[0205] It should be noted that the specific on-chain transaction process is a mature technology in this field and this application will not elaborate on it.
[0206] In summary, this application uses the relay server to connect the key management functions of the web-side Dapp and the mobile phone. When the web-side Dapp needs the key management end associated with the target object to sign, its signature information will be pushed to the mobile phone key management end through the relay server for signing and then uploaded to the chain, solving the problem that the target object needs to use a specific browser and install the browser's key management plug-in when using the web-side Dapp, so that the target object can use the web-side Dapp conveniently. Moreover, by providing a communication bridge between the web-side Dapp and the mobile phone key management function through the relay service, the convenience of using the web-side Dapp can be improved, and the relay server can push advertising messages to the web-side Dapp or the mobile phone key management end to obtain incentives; in addition, the transaction information that the web-side Dapp needs to sign is encrypted and transmitted from the relay server to the key management end, which improves the security of the transaction information transmission.
[0207] Based on the same inventive concept, referring to FIG. 7 , which is a schematic diagram of the logical structure of a data processing device in an embodiment of the present application, the data processing device 700 includes a receiving unit 701 and a sending unit 702 , wherein:
[0208] The receiving unit 701 is configured to receive a first message published by a first client for a first topic, where the first message includes a second topic subscribed by the first client;
[0209] A sending unit 702 is configured to forward the first message published on the first topic to a second client subscribed to the first topic;
[0210] The receiving unit 701 is further configured to receive a first response message published by the second client in response to the first message on the second topic, where the first response message includes a third topic subscribed by the second client.
[0211] The sending unit 702 is further configured to forward the first response message to a first client that subscribes to the second topic.
[0212] The receiving unit 701 is further configured to receive a second message published by the first client for the third topic, where the second message includes a signature request;
[0213] The sending unit 702 is further configured to forward the second message to the second client that subscribes to the third topic;
[0214] The receiving unit 701 is further configured to receive a second response message published by the second client on the second topic in response to receiving the second message, where the second response message includes a signature for the signature request;
[0215] The sending unit 702 is further configured to forward the second response message to the first client that subscribes to the second topic. For a more specific implementation of the data processing apparatus 700, please refer to the embodiment of FIG2A , which will not be described in detail here.
[0216] Those skilled in the art will appreciate that various aspects of the present application can be implemented as systems, methods, or program products. Therefore, various aspects of the present application can be specifically implemented in the following forms: a complete hardware implementation, a complete software implementation (including firmware, microcode, etc.), or an implementation that combines hardware and software aspects, which may be collectively referred to herein as a "circuit," "module," or "system."
[0217] Based on the same inventive concept as the above-mentioned method embodiment, an electronic device is also provided in an embodiment of the present application. Referring to FIG8 , which is a schematic diagram of a hardware structure of an electronic device to which an embodiment of the present application is applied, the electronic device 800 may include at least a processor 801 and a memory 802. The memory 802 stores program code, which, when executed by the processor 801, causes the processor 801 to perform any of the above-mentioned data processing steps.
[0218] In some possible implementations, a computing device according to the present application may include at least one processor and at least one memory. The memory stores program code that, when executed by the processor, causes the processor to perform the steps of data processing according to various exemplary embodiments of the present application described above. For example, the processor may perform the steps shown in FIG2A.
[0219] The following describes a computing device 900 according to this embodiment of the present application with reference to FIG9 . As shown in FIG9 , computing device 900 is implemented as a general-purpose computing device. Components of computing device 900 may include, but are not limited to, the at least one processing unit 901 described above, the at least one storage unit 902 described above, and a bus 903 connecting various system components (including storage unit 902 and processing unit 901).
[0220] Bus 903 represents one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, and a processor or local bus using any of a variety of bus architectures.
[0221] The storage unit 902 may include a readable medium in the form of a volatile memory, such as a random access memory (RAM) 9021 and / or a cache memory 9022 , and may further include a read-only memory (ROM) 9023 .
[0222] The storage unit 902 may also include a program / utility 9025 having a set (at least one) of program modules 9024, such program modules 9024 including but not limited to: an operating system, one or more application programs, other program modules, and program data, each of which or some combination may include an implementation of a network environment.
[0223] Computing device 900 may also communicate with one or more external devices 904 (e.g., a keyboard, pointing device, etc.), one or more devices that enable objects to interact with computing device 900, and / or any device that enables computing device 900 to communicate with one or more other computing devices (e.g., a router, modem, etc.). Such communication may occur via input / output (I / O) interface 905. Furthermore, computing device 900 may 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) via network adapter 906. As shown, network adapter 906 communicates with other modules of computing device 900 via bus 903. It should be understood that, although not shown, other hardware and / or software modules may be used in conjunction with computing device 900, including but not limited to microcode, device drivers, redundant processors, external disk drive arrays, RAID systems, tape drives, and data backup storage systems.
[0224] Based on the same inventive concept as the above-mentioned method embodiments, various aspects of data processing provided in this application can also be implemented in the form of a program product, which includes program code. When the program product is run on an electronic device, the program code is used to enable the electronic device to execute the steps of the data processing method according to various exemplary embodiments of the present application described above in this specification. For example, the electronic device can execute the steps shown in Figure 2A.
[0225] The program product may employ any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. The readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or component, or any combination thereof. More specific examples of readable storage media (a non-exhaustive list) include: an electrical connection with one or more wires, a portable disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof.
[0226] In the embodiments of the present application, the term "module" or "unit" refers to a computer program or a part of a computer program that has a predetermined function and works together with other related parts to achieve a predetermined goal, and can be implemented in whole or in part by using software, hardware (such as processing circuits or memories) or a combination thereof. Similarly, a processor (or multiple processors or memories) can be used to implement one or more modules or units. In addition, each module or unit can be part of an overall module or unit that includes the function of the module or unit.
[0227] Although the preferred embodiments of the present application have been described, those skilled in the art may make additional changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the present application.
[0228] Obviously, those skilled in the art may make various changes and modifications to this application without departing from the spirit and scope of this application. Thus, if these modifications and variations of this application fall within the scope of the claims of this application and their equivalents, this application is intended to include these modifications and variations.
Claims
1. A data processing method, executed in a server, comprising: Receive a first message published by a first client for a first topic, where the first message includes a second topic subscribed by the first client; Forwarding a first message published on the first topic to a second client subscribed to the first topic; receiving a first response message published by the second client on the second topic in response to the first message, wherein the first response message includes a third topic subscribed by the second client; Forwarding the first response message to a first client subscribed to the second topic; receiving a second message published by the first client for the third topic, where the second message includes a signature request; Forwarding the second message to the second client subscribed to the third topic; receiving a second response message published by the second client on the second topic in response to receiving the second message, wherein the second response message includes a signature for the signature request; The second response message is forwarded to a first client subscribed to the second topic.
2. The method of claim 1, further comprising: receiving a first connection request sent by the first client; In response to the first connection request, establishing a first connection channel with the first client; generating the first topic and the second topic for the first connection channel; Sending the first topic and the second topic to the first client through the first connection channel; In response to receiving a subscription request from the first client for the second topic, enabling the first client to subscribe to the second topic.
3. The method according to claim 1 or 2, further comprising: receiving a second connection request sent by the second client after acquiring the address of the server and the first topic from the first client; In response to the second connection request, establishing a second connection channel with the second client; generating a third topic for the second connection channel; Sending the third topic to the second client through the second connection channel; In response to receiving a subscription request from the second client for the first topic and the third topic, enabling the second client to subscribe to the first topic and the third topic.
4. The method according to any one of claims 1 to 3, wherein: The first client includes a decentralized WEB application, and the second client includes a key management application; The signature request carries a blockchain address associated with a user account; the signature for the signature request is a signature of the blockchain address.
5. The method of claim 3, wherein: The receiving a second connection request sent by the second client after acquiring the address of the server and the first topic from the first client includes: The second connection request sent by the second client after obtaining the QR code provided by the first client is received, where the QR code indicates the address of the server and the first topic.
6. The method according to any one of claims 1 to 5, wherein: The first message also includes a key; The second message includes the signature request encrypted according to the key; the second response message includes the signature encrypted according to the key.
7. The method according to any one of claims 1 to 6, further comprising at least one of the following: Acquire first promotion information published for the second topic, and forward the first promotion information to the first client so that the first client displays the first promotion information; The second promotion information published for the third topic is obtained, and the second promotion information is forwarded to the second client so that the second client displays the second promotion information.
8. A data processing method, executed in a first client, comprising: Sending a first message for a first topic to a server, so that the server forwards the first message published for the first topic to a second client subscribed to the first topic, wherein the first message includes the second topic subscribed by the first client; receiving a first response message from the second client forwarded by the server, wherein the first response message includes a third topic subscribed by the second client; Sending a second message for the third topic to the server, so that the server forwards the second message to the second client subscribed to the third topic, wherein the second message includes a signature request; A second response message from the second client is received and forwarded by the server, wherein the second response message includes a signature for the signature request.
9. The method of claim 8, further comprising: The signature is sent to a signature verification end, so that when the signature verification end successfully verifies the signature, it instructs the blockchain to transfer the virtual resource to the blockchain address.
10. The method of claim 8 or 9, further comprising: Generate a QR code carrying the server address and a second topic subscribed by the first client; The QR code is presented so that the second client can obtain the server address and the first topic by scanning the QR code.
11. The method according to any one of claims 8 to 10, further comprising: Sending a first connection request to the server, so that the server: establishes a first connection channel with the first client, and generates the first topic and the second topic for the first connection channel; receiving the first topic and the second topic sent by the server through the first connection channel; A subscription request for the second topic is sent to the server to subscribe to the second topic.
12. A data processing method, executed in a second client, comprising: Receive a first message from a first client forwarded by a server, where the first message includes a second topic subscribed by the first client; In response to the first message, sending a first response message published for the second topic to the server, so that the server forwards the first response message to a first client subscribed to the second topic, the first response message including a third topic subscribed by the second client; Receiving a second message forwarded by the server and published from the first client for the third topic, wherein the second message includes a signature request; generating a signature for the signature request in response to a user operation; A second response message published for the second topic is sent to the server, so that the server forwards the second response message to a first client subscribed to the second topic, wherein the second response message includes a signature for the signature request.
13. The method of claim 12, further comprising: Acquire a server address and a first topic from the first client; Based on the server address, sending a second connection request to the server, so that the server: establishes a second connection channel with the second client in response to the second connection request, and generates a third topic for the second connection channel; receiving the third topic sent by the server through the second connection channel; A subscription request for the first topic and the third topic is sent to the server to subscribe to the first topic and the third topic.
14. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the method according to any one of claims 1 to 13 when executing the program.
15. A computer-readable storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the method according to any one of claims 1 to 13.
16. A computer program product, comprising a computer program, wherein when the computer program is executed by a processor, the method according to any one of claims 1 to 13 is implemented.
Citation Information
Patent Citations
Resource allocation method and device based on block chain, storage medium and node equipment
CN110557403A
Multisignature key custody, key customization, and privacy service
US20220114578A1
Cited By
Communication method and device between decentralized application DAPP and digital wallet
CN119341828A
