Data processing method, apparatus, device, medium, and product

By indirectly establishing connections between web pages through blockchain nodes, the problem of needing to develop backend services and purchase servers for web page connections in existing technologies is solved, thus realizing a communication solution that saves manpower and costs.

CN115766744BActive Publication Date: 2026-11-06ZHONGCHAO CREDIT CARD IND DEV +1
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202211421594.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-11-14
Publication Date
2026-11-06
Estimated Expiration
2042-11-14

AI Technical Summary

Technical Problem

In existing technologies, establishing connections between web pages requires the development of backend services and the purchase of servers, resulting in a waste of manpower and costs.

Method used

By indirectly establishing connections between web pages through blockchain nodes in the blockchain, and using broadcast messages broadcast by blockchain nodes to match communication request identifiers, the dependence on backend services is avoided.

Benefits of technology

It eliminates the need to develop backend services and purchase servers, saving manpower and costs while solving the communication problem between web pages.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115766744B_ABST
    Figure CN115766744B_ABST
Patent Text Reader

Abstract

The application discloses a data processing method, device, equipment, medium and product, and belongs to the technical field of blockchains. The method is applied to a first blockchain node in a blockchain, the first blockchain node is connected with a first webpage, the blockchain further includes a second blockchain node, and the method comprises the following steps: receiving a broadcast message broadcasted by other blockchain nodes in the blockchain except the first blockchain node; matching a communication request identifier with a first communication request identifier; in the case that a first broadcast message in the broadcast message comprises a second communication request identifier matched with the first communication request identifier, acquiring an identifier of the second blockchain node in the first broadcast message, and the second blockchain node is connected with a second webpage. By using the data processing method, device, equipment, medium and product provided in the application, the connection between the first webpage and the second webpage can be established through the blockchain, without the need of developing a backend service and purchasing a server, so that manpower and cost are saved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application belongs to the field of blockchain technology, and in particular relates to a data processing method, apparatus, device, medium and product. Background Technology

[0002] Currently, for web pages to communicate, a connection must first be established between the web pages before communication can take place. In the existing technology, during the process of establishing a connection between web pages, information needs to be transmitted from the front-end application to the back-end server, and then the back-end server forwards the information to the other party's front-end application.

[0003] For example, in a Web Real-Time Communication (WebRTC) method, for webpage A and webpage B to communicate, webpage A must first send its Media Data Point (SDP) to a signaling server. The signaling server then forwards the SDP to webpage B. Webpage B, upon receiving webpage A's SDP, sends its own SDP to the signaling server, which returns it to webpage A. Thus, both webpages receive each other's SDPs. Next, webpage A obtains its network information through NAT and sends it to the signaling server, which then forwards it to webpage B. Similarly, webpage B obtains its network information through NAT and sends it to the signaling server, which then forwards it to webpage A. In this way, both webpages receive each other's network information. Once webpages A and B have obtained each other's media and network information, a connection is established, and communication can begin.

[0004] However, establishing links between web pages in this way requires developing backend services and purchasing servers, which consumes manpower and costs. Summary of the Invention

[0005] This application provides a data processing method, apparatus, device, medium, and product that can at least solve the problem in the prior art that when establishing connections between web pages, it is necessary to develop backend services and purchase servers, which consumes manpower and costs.

[0006] In a first aspect, embodiments of this application provide a data processing method. This method is applied to a first blockchain node in a blockchain, the first blockchain node being connected to a first webpage. The blockchain also includes a second blockchain node. The method includes:

[0007] Receive broadcast messages from other blockchain nodes besides the first blockchain node. The broadcast messages include a communication request identifier and the identifier of the blockchain node.

[0008] The communication request identifier is matched with the first communication request identifier, which is determined by the first webpage in response to the communication request identifier entered by the first user on the first webpage and sent by the first webpage to the first blockchain node;

[0009] If the first broadcast message in the broadcast message includes a second communication request identifier that matches the first communication request identifier, the identifier of the second blockchain node in the first broadcast message is obtained, and the second blockchain node is connected to the second webpage.

[0010] Secondly, embodiments of this application provide a data processing apparatus applied to a first blockchain node in a blockchain, the first blockchain node being connected to a first webpage, and the blockchain further including a second blockchain node. The apparatus includes:

[0011] The first receiving module is used to receive broadcast messages broadcast by other blockchain nodes in the blockchain, excluding the first blockchain node. The broadcast messages include a communication request identifier and the identifier of the blockchain node.

[0012] The matching module is used to match the communication request identifier with the first communication request identifier, which is determined by the first webpage in response to the communication request identifier entered by the first user on the first webpage and sent by the first webpage to the first blockchain node;

[0013] The acquisition module is used to acquire the identifier of the second blockchain node in the first broadcast message, where the first broadcast message in the broadcast message includes a second communication request identifier that matches the first communication request identifier, and the second blockchain node is connected to the second webpage.

[0014] Thirdly, embodiments of this application provide an electronic device, the device comprising: a processor and a memory storing computer program instructions;

[0015] When the processor executes the computer program instructions, it implements the data processing method as shown in any embodiment of the first aspect.

[0016] Fourthly, embodiments of this application provide a computer storage medium storing computer program instructions, which, when executed by a processor, implement the data processing method shown in any embodiment of the first aspect.

[0017] Fifthly, embodiments of this application provide a computer program product in which instructions, when executed by a processor of an electronic device, cause the electronic device to perform the data processing method shown in any embodiment of the first aspect.

[0018] The data processing method, apparatus, device, medium, and product of this application embodiment can receive broadcast messages broadcast by other blockchain nodes besides the first blockchain node. It then matches a communication request identifier included in the broadcast message with a first communication request identifier determined by the first webpage in response to a first user's input on the first webpage and sent by the first webpage to the first blockchain node. If the first broadcast message includes a second communication request identifier that matches the first communication request identifier, the identifier of the second blockchain node in the first broadcast message is obtained. This establishes a connection between the first and second blockchain nodes, allowing the first blockchain node to send information to the second blockchain node based on its identifier, so that the second webpage connected to the second blockchain can obtain that information from the second blockchain node. This indirect connection between the first and second webpages through blockchain nodes eliminates the need for backend service development and server purchase, saving manpower and costs. Attached Figure Description

[0019] To more clearly illustrate the technical solutions of the embodiments of this application, the accompanying drawings used in the embodiments of this application will be briefly introduced below. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0020] Figure 1 This is a flowchart of a data processing method provided in one embodiment of this application;

[0021] Figure 2 This is a flowchart of another data processing method provided in one embodiment of this application;

[0022] Figure 3 This is a schematic diagram of the structure of a data processing device provided in one embodiment of this application;

[0023] Figure 4 This is a schematic diagram of the structure of an electronic device provided in one embodiment of this application. Detailed Implementation

[0024] The features and exemplary embodiments of various aspects of this application will be described in detail below. To make the objectives, technical solutions, and advantages of this application clearer, the application will be further described in detail below with reference to the accompanying drawings and specific embodiments. It should be understood that the specific embodiments described herein are only intended to explain this application and not to limit it. For those skilled in the art, this application can be implemented without some of these specific details. The following description of the embodiments is merely to provide a better understanding of this application by illustrating examples.

[0025] It should be noted that, in this document, relational terms such as "first" and "second" are used merely to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising..." does not exclude the presence of additional identical elements in the process, method, article, or apparatus that includes said element.

[0026] Figure 1 The diagram illustrates a flowchart of a data processing method according to an embodiment of this application. It should be noted that this data processing method can be applied to a first blockchain node in a blockchain, which can be connected to a first webpage. The blockchain may also include a second blockchain node, such as... Figure 1 As shown, the data processing method may include the following steps:

[0027] S110 receives broadcast messages broadcast by other blockchain nodes in the blockchain, excluding the first blockchain node;

[0028] S120, Match the communication request identifier with the first communication request identifier;

[0029] S130, if the first broadcast message in the broadcast message includes a second communication request identifier that matches the first communication request identifier, obtain the identifier of the second blockchain node in the first broadcast message.

[0030] Therefore, it can receive broadcast messages from other blockchain nodes besides the first blockchain node, and then match the communication request identifier included in the broadcast message with the first communication request identifier determined by the first webpage in response to the first user's input on the first webpage and sent by the first webpage to the first blockchain node. If the first broadcast message includes a second communication request identifier that matches the first communication request identifier, the identifier of the second blockchain node in the first broadcast message can be obtained. In this way, a connection can be established between the first and second blockchain nodes, allowing the first blockchain node to send information to the second blockchain node based on the second blockchain node's identifier, so that the second webpage connected to the second blockchain can obtain that information from the second blockchain node. This indirect connection between the first and second webpages through blockchain nodes eliminates the need to develop backend services and purchase servers, saving manpower and costs.

[0031] Regarding S110, the first webpage can be a webpage from a first browser. The first webpage can respond to the address of the first blockchain node entered by the first user on the first webpage, establishing a connection between the first webpage and the first blockchain node. This connection allows the first webpage to obtain information from the first blockchain node through methods such as listening or polling; other methods are also possible and are not limited here. The first blockchain node can receive broadcast messages from other blockchain nodes in the blockchain, which may include a communication request identifier and the identifier of the blockchain node.

[0032] In connection with S120, the first blockchain node can match the received communication request identifier with a first communication request identifier, which can be determined by the first webpage in response to the communication request identifier entered by the first user on the first webpage and sent by the first webpage to the first blockchain node.

[0033] Regarding S130, the second blockchain node can connect to a second webpage, which can be a webpage of a second browser. The second browser and the first browser can be different browsers or the same browser. The second webpage can establish a connection with the second blockchain node in response to the address of the second blockchain node entered by the second user on the second webpage. The connection between the second webpage and the second blockchain node allows the second webpage to obtain information from the second blockchain node through methods such as listening or polling, and other methods are also possible, which are not limited here. If the first blockchain node receives a broadcast message containing a first broadcast message, the first blockchain node can obtain the identifier of the second blockchain node included in the first broadcast message. The first broadcast message may include a second communication request identifier that matches the first communication request identifier. This second communication request identifier can be determined by the second webpage in response to the communication request identifier entered by the second user on the second webpage, sent by the second webpage to the second blockchain node, and then broadcast by the second blockchain node in the blockchain.

[0034] Here, the communication between the first webpage and the second webpage is based on the first blockchain node and the second blockchain node. Therefore, before the first webpage and the second webpage can communicate, a connection between the first blockchain node and the second blockchain node needs to be established. Establishing a connection between the first blockchain node and the second blockchain node requires the first blockchain node to obtain the identifier of the second blockchain node so that the first blockchain node can send the information sent by the first webpage to the second blockchain node according to the identifier of the second blockchain node, thereby enabling the second webpage to obtain the information from the second blockchain node.

[0035] In some examples, the communication request identifier can be a room number. If the first user and the second user want to communicate, they can enter the same room number. Therefore, the first blockchain node can obtain the broadcast message and match the room number included in the broadcast message with room number A. If there is a first broadcast message that includes room number A, which is the same as the first room number entered by the first user, it indicates that the source of the first broadcast message, i.e., the second blockchain node, is the second user who wants to communicate with the first user. Therefore, the identifier of the blockchain node included in the first broadcast message can be obtained, which is the identifier of the second blockchain node.

[0036] In some implementations, communication between the first webpage and the second webpage can be enabled after a connection is established. Following S130, the method may further include:

[0037] Receive the first information sent by the first webpage, the first information being determined by the first webpage in response to the first user's first input information on the first webpage;

[0038] Based on the identifier of the second blockchain node received in advance, the first information is sent to the second blockchain node so that the second webpage can obtain the first information from the second blockchain node.

[0039] Here, the first information can be determined by the first webpage in response to the first user's first input information on the webpage. After the first user inputs the first input information on the webpage, the first webpage can determine the first information in response to the first input information and send the first information to the first blockchain node, which then receives it. Since the first blockchain node has already received the identifier of the second blockchain node before communication between the first and second webpages, it can send the first information sent by the first webpage to the second blockchain node based on this pre-received identifier. This allows the second webpage connected to the second blockchain node to obtain the first information from the second blockchain node, thus enabling communication between the first and second webpages.

[0040] In some examples, a first user enters the first information they want to send on webpage A. Webpage A can determine the first information based on the first input and send the first information to blockchain node A. Blockchain node A can then send the first information to blockchain node B through routing based on the identifier of blockchain node B, so that webpage B can obtain the first information received by blockchain node B.

[0041] Thus, no backend service development or server usage is required during the communication between the first and second web pages, saving manpower and costs. Furthermore, if the first and second web pages are accessed through different browsers, differences in browser support may affect communication. For example, the browser for the first web page might support sending and receiving video information, while the browser for the second web page might not, causing the second web page to be unable to receive video information sent by the first web page. However, this application, which uses blockchain to achieve communication between the first and second web pages, is not limited by browser support and will not prevent information from being sent or received due to differences in browser support.

[0042] In some implementations, before communication occurs between the first webpage and the second webpage, a connection needs to be established between the first blockchain node and the second blockchain node. Furthermore, in order for the second webpage to also send information to the first webpage, the second blockchain node also needs to obtain the identifier of the first blockchain node during connection establishment. To enable the second blockchain node to obtain the identifier of the first blockchain node, before S110, the method may further include:

[0043] Receive the first communication request identifier sent by the first webpage;

[0044] A second broadcast message is generated based on the first communication request identifier and the identifier of the first blockchain node;

[0045] The second broadcast message is broadcast in the blockchain so that the second blockchain node receives the first communication request identifier and the identifier of the first blockchain node.

[0046] Here, a first user can input a first communication request identifier on a first webpage. In response, the first webpage sends this identifier to a first blockchain node. Upon receiving the identifier, the first blockchain node generates a second broadcast message containing both the first communication request identifier and its own identifier, and broadcasts this message across the blockchain so that second blockchain nodes can receive it. Upon receiving the second broadcast message, the second blockchain node matches the first communication request identifier in the second broadcast message with the identifier sent by the second webpage. This confirms that the first and second communication request identifiers are the same. Therefore, the second blockchain node retrieves its own identifier from the second broadcast message.

[0047] In this way, the second blockchain node can obtain the identifier of the first blockchain node, thereby establishing a connection between the first and second blockchain nodes, enabling the second webpage to send information to the first webpage.

[0048] In some implementations, after the second blockchain node obtains the identifier of the first blockchain node, thereby establishing a connection between the first and second blockchain nodes, the second user can send information to the first webpage through the second webpage. To obtain the information sent by the second user through the second webpage, after broadcasting the second broadcast message in the blockchain to enable the second blockchain node to receive the first communication request identifier and the identifier of the first blockchain node, the method may further include:

[0049] Receive the second information sent by the second blockchain node so that the first webpage can obtain the second information.

[0050] Here, the second information can be determined by the second webpage in response to the second user's second input information on the second webpage, and then sent by the second webpage to the second blockchain node. The second user can input the second information on the first webpage. In response to the second user's input, the second webpage determines the second information and sends it to the second blockchain node. After receiving the second information, the second blockchain node can send the second information to the first blockchain node according to the identifier of the first blockchain node that it has received in advance. Then, the first webpage can obtain the second information from the first blockchain node.

[0051] In this way, the first webpage can obtain the second information sent by the second webpage, thus enabling communication between the first and second webpages.

[0052] In some implementations, the first blockchain node can send the first information to the second blockchain node via routing. However, when sending the first information from the first blockchain node to the second blockchain node via routing, the first few transmissions may not be the shortest path, and therefore the first information may be sent to other blockchain nodes and obtained by users other than the first and second users, resulting in information leakage. In addition, a blockchain node can be connected to multiple web pages. Therefore, both the first and second blockchain nodes may have established connections with multiple web pages, posing a risk that other users may obtain the first information from other web pages, resulting in information leakage. Therefore, to avoid information leakage, the first information can be obtained by encrypting the first input information entered by the first user according to the first communication request identifier.

[0053] Here, after the first user enters initial information on the first webpage, the first webpage can encrypt this initial information based on a first communication request identifier to obtain the first information. Upon receiving the first information, the second webpage can decrypt it based on a second communication request identifier, thereby obtaining the information the first user intended to transmit. The second communication request identifier is the same as the first communication request identifier. Because the first information is encrypted, information leakage can be avoided.

[0054] In some implementations, the second blockchain node can send the second information to the first blockchain node via routing. However, when sending the second information from the second blockchain node to the first blockchain node via routing, the first few transmissions may not be the shortest path, and therefore the second information may be sent to other blockchain nodes, allowing other users besides the first and second users to obtain it, thus causing information leakage. In addition, a blockchain node can be connected to multiple web pages. Therefore, both the first and second blockchain nodes may have established connections with multiple web pages, posing a risk that other users may obtain the second information from other web pages, causing information leakage. Therefore, to avoid information leakage, the second information can be obtained by encrypting the second input information entered by the second user according to the second communication request identifier.

[0055] Here, after the second user enters second input information on the second webpage, the second webpage can encrypt the second input information according to the second communication request identifier to obtain the second information. After receiving the second information, the first webpage can decrypt the second information according to the first communication request identifier, thereby obtaining the information that the second user wants to transmit. The first communication request identifier is the same as the second communication request identifier. Since the second information is encrypted, information leakage can be avoided.

[0056] In some implementations, if the first user wants to end the communication, they can make a first input on the first webpage. For example, the first input can be to close the first webpage. In response to the first input, the first webpage sends a first disconnect request to the first blockchain node. The first blockchain node can route the first disconnect request to the second blockchain node so that the second webpage can obtain the first disconnect request and let the second user know that the first user is no longer communicating.

[0057] In some implementations, if the second user wants to end the communication, they can make a second input on the second webpage. For example, the second input could be to close the second webpage. In response to this second input, the second webpage sends a second disconnect request to the second blockchain node. The second blockchain node can route the second disconnect request to the first blockchain node so that the first webpage can obtain the second disconnect request and inform the first user that the second user is no longer communicating.

[0058] To better describe the entire solution, based on the above embodiments, a specific example is given, such as... Figure 2 As shown, the data processing method may include S201-S218, which will be explained in detail below.

[0059] S201, Establish connection.

[0060] Specifically, the first user enters the address of blockchain node A (the first blockchain node) on webpage A (the first webpage) and clicks "connect" to establish a connection between webpage A and blockchain node A.

[0061] S202, Send the first room number.

[0062] Specifically, the first user enters the first room number on webpage A, which is also the first communication request identifier, and webpage A sends the first room number to blockchain node A.

[0063] S203, broadcasting the second broadcast message.

[0064] Specifically, after receiving the first room number, blockchain node A broadcasts a second broadcast message in the blockchain. After obtaining the second broadcast message, blockchain node B determines by matching that the first room number in the second broadcast message is the same as the second room number sent by webpage B. Therefore, blockchain node B will obtain the identifier of blockchain node A included in the second broadcast message.

[0065] S204, Establish connection.

[0066] Specifically, the second user enters the address of blockchain node B (the second blockchain node) on webpage B (the second webpage) and clicks "connect" to establish a connection between webpage B and blockchain node B.

[0067] S205, send the second room number and the first room number.

[0068] Specifically, the second user enters the second room number, which is also the second communication request identifier, on webpage B, and webpage B sends the second room number to blockchain node B.

[0069] S206, First Broadcast Message.

[0070] Specifically, after receiving the second room number, blockchain node B broadcasts the first broadcast message in the blockchain. After blockchain node A obtains the first broadcast message, it matches and determines that the second room number in the first broadcast message is the same as the first room number sent by webpage A. Therefore, blockchain node A will obtain the identifier of blockchain node B included in the first broadcast message.

[0071] It should be noted that S201-S203 can be performed before S204-S206, after S204-S206, or simultaneously; no restrictions are placed here.

[0072] A connection between blockchain node A and blockchain node B can be established through S201-S206, enabling communication between webpage A and webpage B.

[0073] S207, Send the first message.

[0074] Specifically, the first user enters the first input information they want to send on webpage A. Webpage A can encrypt the first input information based on the first room number to obtain the first information, and then send the first information to blockchain node A.

[0075] S208, send the first message.

[0076] Specifically, blockchain node A can send the first information to blockchain node B through routing based on the identifier of blockchain node B.

[0077] S209, Obtain First Information.

[0078] Specifically, webpage B can listen to the first information received by blockchain node B, and then decrypt the first information according to the second room number, so that the second user can obtain the first input information that the first user wants to transmit.

[0079] S210, send the second message.

[0080] Specifically, the second user enters the second input information they want to send on webpage B. Webpage B can encrypt the second input information based on the second room number to obtain the second information, and then send the second information to blockchain node B.

[0081] S211, send the second message.

[0082] Specifically, blockchain node B can send the second information to blockchain node A through routing based on the identifier of blockchain node A.

[0083] S212, Obtain the second information.

[0084] Specifically, webpage A can listen to the second information received by blockchain node A, and then decrypt the second information according to the first room number, so that the first user can obtain the second input information that the second user wants to transmit.

[0085] It should be noted that S207-S209 can be performed before S210-S212, after S210-S212, or simultaneously; no restrictions are placed here.

[0086] S213, Send the first disconnect request.

[0087] Specifically, when a user clicks to close webpage A, webpage A responds to the click by generating a first disconnect request and sends the first disconnect request to blockchain node A.

[0088] S214, Send the first disconnect request.

[0089] Specifically, after receiving the first disconnection request, blockchain node A sends the first disconnection request to blockchain node B through routing based on the identifier of blockchain node B.

[0090] S215, Obtain the first disconnect request.

[0091] Specifically, webpage B can listen to the first disconnection request received by blockchain node B and display it, so that the second user knows that the first user is no longer communicating.

[0092] S216, Send a second disconnect request.

[0093] Specifically, when the second user clicks to close webpage B, webpage B responds to the click by generating a second disconnect request and sends the second disconnect request to blockchain node B.

[0094] S217, Send a second disconnect request.

[0095] Specifically, after receiving the second disconnection request, blockchain node B sends the second disconnection request to blockchain node A through routing based on the identifier of blockchain node A.

[0096] S218, Obtain the second disconnect request.

[0097] Specifically, webpage A can listen for and display the second disconnect request received by blockchain node A, so that the first user knows that the second user is no longer communicating.

[0098] It should be noted that S213-S215 can be performed before S216-S218, after S216-S218, or simultaneously; no restrictions are placed here.

[0099] Therefore, it can receive broadcast messages from other blockchain nodes besides the first blockchain node, and then match the communication request identifier included in the broadcast message with the first communication request identifier determined by the first webpage in response to the first user's input on the first webpage and sent by the first webpage to the first blockchain node. If the first broadcast message includes a second communication request identifier that matches the first communication request identifier, the identifier of the second blockchain node in the first broadcast message can be obtained. In this way, a connection can be established between the first and second blockchain nodes, allowing the first blockchain node to send information to the second blockchain node based on the second blockchain node's identifier, so that the second webpage connected to the second blockchain can obtain that information from the second blockchain node. This indirect connection between the first and second webpages through blockchain nodes eliminates the need to develop backend services and purchase servers, saving manpower and costs.

[0100] Based on the same inventive concept, embodiments of this application also provide a data processing apparatus. The following, in conjunction with… Figure 3 The data processing apparatus provided in the embodiments of this application will be described in detail.

[0101] Figure 3 A schematic diagram of the structure of a data processing apparatus provided in one embodiment of this application is shown.

[0102] like Figure 3 As shown, the data processing device is applied to a first blockchain node in the blockchain, which is connected to a first webpage. The blockchain also includes a second blockchain node. The data processing device may include:

[0103] The first receiving module 301 is used to receive broadcast messages broadcast by other blockchain nodes in the blockchain besides the first blockchain node. The broadcast messages include a communication request identifier and the identifier of the blockchain node.

[0104] The matching module 302 is used to match the communication request identifier with the first communication request identifier, which is determined by the first webpage in response to the communication request identifier entered by the first user on the first webpage and sent by the first webpage to the first blockchain node;

[0105] The acquisition module 303 is used to acquire the identifier of the second blockchain node in the first broadcast message, where the first broadcast message in the broadcast message includes a second communication request identifier that matches the first communication request identifier, and the second blockchain node is connected to the second webpage.

[0106] Therefore, it can receive broadcast messages from other blockchain nodes besides the first blockchain node, and then match the communication request identifier included in the broadcast message with the first communication request identifier determined by the first webpage in response to the first user's input on the first webpage and sent by the first webpage to the first blockchain node. If the first broadcast message includes a second communication request identifier that matches the first communication request identifier, the identifier of the second blockchain node in the first broadcast message can be obtained. In this way, a connection can be established between the first and second blockchain nodes, allowing the first blockchain node to send information to the second blockchain node based on the second blockchain node's identifier, so that the second webpage connected to the second blockchain can obtain that information from the second blockchain node. This indirect connection between the first and second webpages through blockchain nodes eliminates the need to develop backend services and purchase servers, saving manpower and costs.

[0107] In some embodiments, communication between the first webpage and the second webpage can be enabled after a connection is established between them. The data processing apparatus may further include:

[0108] The second receiving module is used to receive first information sent by the first webpage after obtaining the identifier of the second blockchain node in the first broadcast message. The first information is determined by the first webpage in response to the first user's first input information on the first webpage.

[0109] The sending module is used to send the first information to the second blockchain node according to the identifier of the second blockchain node received in advance, so that the second webpage can obtain the first information from the second blockchain node and connect the second webpage to the second blockchain node.

[0110] In some implementations, before communication occurs between the first webpage and the second webpage, a connection needs to be established between the first blockchain node and the second blockchain node. Establishing this connection also requires the second blockchain node to obtain the identifier of the first blockchain node. To enable the second blockchain node to obtain the identifier of the first blockchain node, the data processing device may further include:

[0111] The third receiving module is used to receive the first communication request identifier sent by the first webpage before receiving the broadcast message broadcast by other blockchain nodes in the blockchain besides the first blockchain node.

[0112] The generation module is used to generate a second broadcast message based on the first communication request identifier and the identifier of the first blockchain node;

[0113] The broadcast module is used to broadcast the second broadcast message in the blockchain so that the second blockchain node receives the first communication request identifier and the identifier of the first blockchain node.

[0114] In some implementations, after the second blockchain node obtains the identifier of the first blockchain node, thereby establishing a connection between the first and second blockchain nodes, the second user can send information to the first webpage through the second webpage. To obtain the information sent by the second user through the second webpage, the data processing device may further include:

[0115] The fourth receiving module is used to receive second information sent by the second blockchain node after broadcasting the second broadcast message in the blockchain so that the second blockchain node receives the first communication request identifier and the identifier of the first blockchain node, so that the first webpage can obtain the second information. The second information is determined by the second webpage in response to the second user's second input information on the second webpage and sent by the second webpage to the second blockchain node.

[0116] In some implementations, the first blockchain node can send the first information to the second blockchain node via routing. However, when sending the first information from the first blockchain node to the second blockchain node via routing, the first few transmissions may not be the shortest path, and therefore the first information may be sent to other blockchain nodes and obtained by users other than the first and second users, resulting in information leakage. In addition, a blockchain node can be connected to multiple web pages. Therefore, both the first and second blockchain nodes may have established connections with multiple web pages, posing a risk that other users may obtain the first information from other web pages, resulting in information leakage. Therefore, to avoid information leakage, the first information can be obtained by encrypting the first input information entered by the first user according to the first communication request identifier.

[0117] In some implementations, the second blockchain node can send the second information to the first blockchain node via routing. However, when sending the second information from the second blockchain node to the first blockchain node via routing, the first few transmissions may not be the shortest path, and therefore the second information may be sent to other blockchain nodes, allowing other users besides the first and second users to obtain it, thus causing information leakage. In addition, a blockchain node can be connected to multiple web pages. Therefore, both the first and second blockchain nodes may have established connections with multiple web pages, posing a risk that other users may obtain the second information from other web pages, causing information leakage. Therefore, to avoid information leakage, the second information can be obtained by encrypting the second input information entered by the second user according to the second communication request identifier.

[0118] Figure 4A schematic diagram of the structure of an electronic device provided in one embodiment of this application is shown.

[0119] like Figure 4 As shown, the electronic device 4 is a structural diagram of an exemplary hardware architecture of an electronic device that can implement the data processing method and data processing apparatus according to the embodiments of this application. This electronic device may refer to the electronic device in the embodiments of this application.

[0120] The electronic device 4 may include a processor 401 and a memory 402 storing computer program instructions.

[0121] Specifically, the processor 401 may include a central processing unit (CPU), an application-specific integrated circuit (ASIC), or one or more integrated circuits that can be configured to implement the embodiments of this application.

[0122] Memory 402 may include a large-capacity memory for data or instructions. For example, and not limitingly, memory 402 may include a hard disk drive (HDD), a floppy disk drive, flash memory, optical disk, magneto-optical disk, magnetic tape, or a Universal Serial Bus (USB) drive, or a combination of two or more of these. Where appropriate, memory 402 may include removable or non-removable (or fixed) media. Where appropriate, memory 402 may be internal or external to an integrated gateway disaster recovery device. In a particular embodiment, memory 402 is non-volatile solid-state memory. In a particular embodiment, memory 402 may include read-only memory (ROM), random access memory (RAM), disk storage media devices, optical storage media devices, flash memory devices, electrical, optical, or other physical / tangible memory storage devices. Thus, generally, memory 402 includes one or more tangible (non-transitory) computer-readable storage media (e.g., memory devices) encoded with software including computer-executable instructions, and when the software is executed (e.g., by one or more processors), it is operable to perform the operations described with reference to the method according to one aspect of this application.

[0123] The processor 401 implements any of the data processing methods described in the above embodiments by reading and executing computer program instructions stored in the memory 402.

[0124] In one example, the electronic device may also include a communication interface 403 and a bus 404. Wherein, as... Figure 4 As shown, the processor 401, memory 402, and communication interface 403 are connected through bus 404 and complete communication with each other.

[0125] The communication interface 403 is mainly used to realize communication between various modules, devices, units and / or equipment in the embodiments of this application.

[0126] Bus 404 includes hardware, software, or both, that couples components of an electronic device together. For example, and not limitingly, the bus may include an Accelerated Graphics Port (AGP) or other graphics bus, an Enhanced Industry Standard Architecture (EISA) bus, a Front Side Bus (FSB), HyperTransport (HT) interconnect, an Industry Standard Architecture (ISA) bus, an Infinite Bandwidth Interconnect, a Low Pin Count (LPC) bus, a memory bus, a Microchannel Architecture (MCA) bus, a Peripheral Component Interconnect (PCI) bus, a PCI-Express (PCI-X) bus, a Serial Advanced Technology Attachment (SATA) bus, a Video Electronics Standards Association Local (VLB) bus, or other suitable buses, or combinations of two or more of these. Where appropriate, bus 404 may include one or more buses. Although specific buses are described and illustrated in embodiments of this application, any suitable bus or interconnect is contemplated herein.

[0127] The electronic device can execute the data processing method described in the embodiments of this application, thereby achieving the combination Figures 1 to 3 The data processing methods and apparatus described.

[0128] Furthermore, in conjunction with the data processing methods in the above embodiments, this application embodiment can provide a computer storage medium for implementation. The computer storage medium stores computer program instructions; when these computer program instructions are executed by a processor, they implement any of the data processing methods in the above embodiments.

[0129] It should be clarified that this application is not limited to the specific configurations and processes described above and shown in the figures. For the sake of brevity, detailed descriptions of known methods are omitted here. In the above embodiments, several specific steps are described and shown as examples. However, the method process of this application is not limited to the specific steps described and shown. Those skilled in the art can make various changes, modifications, and additions, or change the order of steps, after understanding the spirit of this application.

[0130] The functional blocks shown in the above-described structural diagram can be implemented as hardware, software, firmware, or a combination thereof. When implemented in hardware, they can be, for example, electronic circuits, application-specific integrated circuits (ASICs), appropriate firmware, plug-ins, function cards, etc. When implemented in software, the elements of this application are programs or code segments used to perform the required tasks. Programs or code segments can be stored on a machine-readable medium or transmitted over a transmission medium or communication link via data signals carried on a carrier wave. "Machine-readable medium" can include any medium capable of storing or transmitting information. Examples of machine-readable media include electronic circuits, semiconductor memory devices, ROM, flash memory, erasable ROM (EROM), floppy disks, CD-ROMs, optical disks, hard disks, fiber optic media, radio frequency (RF) links, etc. Code segments can be downloaded via computer networks such as the Internet, intranets, etc.

[0131] It should also be noted that the exemplary embodiments mentioned in this application describe methods or systems based on a series of steps or apparatus. However, this application is not limited to the order of the above steps; that is, the steps can be performed in the order mentioned in the embodiments, or in a different order, or several steps can be performed simultaneously.

[0132] The aspects of this application have been described above with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of this application. It should be understood that each block in the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing apparatus to produce a machine such that these instructions, executable via the processor of the computer or other programmable data processing apparatus, enable the implementation of the functions / actions specified in one or more blocks of the flowchart illustrations and / or block diagrams. Such a processor can be, but is not limited to, a general-purpose processor, a special-purpose processor, a special application processor, or a field-programmable logic circuit. It is also understood that each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, can also be implemented by dedicated hardware performing the specified functions or actions, or can be implemented by a combination of dedicated hardware and computer instructions.

[0133] The above description is merely a specific implementation of this application. Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the specific working processes of the systems, modules, and units described above can be referred to the corresponding processes in the foregoing method embodiments, and will not be repeated here. It should be understood that the protection scope of this application is not limited thereto. Any person skilled in the art can easily conceive of various equivalent modifications or substitutions within the technical scope disclosed in this application, and these modifications or substitutions should all be covered within the protection scope of this application.

Claims

1. A data processing method, characterized in that, The method is applied to a first blockchain node in a blockchain, the first blockchain node being connected to a first webpage, the blockchain further including a second blockchain node, the method comprising: Receive broadcast messages broadcast by other blockchain nodes in the blockchain besides the first blockchain node, the broadcast messages including a communication request identifier and the identifier of the blockchain node; The communication request identifier is matched with a first communication request identifier, which is determined by the first webpage in response to the communication request identifier entered by the first user on the first webpage and sent by the first webpage to the first blockchain node; If the first broadcast message in the broadcast message includes a second communication request identifier that matches the first communication request identifier, the identifier of the second blockchain node in the first broadcast message is obtained. The second blockchain node is connected to the second webpage. The second communication request identifier is determined by the second webpage in response to a communication request identifier entered by the second user on the second webpage and sent by the second webpage to the second blockchain node. Receive first information sent by the first webpage, wherein the first information is determined by the first webpage in response to the first input information of the first user on the first webpage; Based on the identifier of the second blockchain node received in advance, the first information is sent to the second blockchain node so that the second webpage can obtain the first information from the second blockchain node; The first information is obtained by encrypting the first input information input by the first user based on the first communication request identifier.

2. The method according to claim 1, characterized in that, Before receiving broadcast messages broadcast by other blockchain nodes besides the first blockchain node in the blockchain, the method further includes: Receive the first communication request identifier sent by the first webpage; A second broadcast message is generated based on the first communication request identifier and the identifier of the first blockchain node; The second broadcast message is broadcast in the blockchain so that the second blockchain node receives the first communication request identifier and the identifier of the first blockchain node.

3. The method according to claim 2, characterized in that, After broadcasting the second broadcast message in the blockchain to enable the second blockchain node to receive the first communication request identifier and the identifier of the first blockchain node, the method further includes: The first webpage receives second information sent by the second blockchain node so that it can obtain the second information. The second information is determined by the second webpage in response to the second user's second input information on the second webpage and sent by the second webpage to the second blockchain node.

4. The method according to claim 3, characterized in that, The second information is obtained by encrypting the second input information input by the second user based on the second communication request identifier.

5. A data processing apparatus, characterized in that, The device is applied to a first blockchain node in a blockchain, the first blockchain node being connected to a first webpage, the blockchain further including a second blockchain node, and the device comprising: The first receiving module is used to receive broadcast messages broadcast by other blockchain nodes in the blockchain besides the first blockchain node. The broadcast messages include a communication request identifier and an identifier of the blockchain node. The matching module is used to match the communication request identifier with a first communication request identifier, wherein the first communication request identifier is determined by the first webpage in response to the communication request identifier input by the first user on the first webpage and sent by the first webpage to the first blockchain node; The acquisition module is configured to, when the first broadcast message in the broadcast message includes a second communication request identifier that matches the first communication request identifier, acquire the identifier of the second blockchain node in the first broadcast message, wherein the second blockchain node is connected to the second webpage, and the second communication request identifier is determined by the second webpage in response to a communication request identifier input by the second user on the second webpage and sent by the second webpage to the second blockchain node; The second receiving module is used to receive the first information sent by the first webpage, wherein the first information is determined by the first webpage in response to the first input information of the first user on the first webpage; The sending module is used to send the first information to the second blockchain node according to the identifier of the second blockchain node received in advance, so that the second webpage can obtain the first information from the second blockchain node; The first information is obtained by encrypting the first input information input by the first user based on the first communication request identifier.

6. An electronic device, characterized in that, The device includes: a processor and a memory storing computer program instructions; the processor, when executing the computer program instructions, implements the data processing method as described in any one of claims 1-4.

7. A computer storage medium, characterized in that, The computer storage medium stores computer program instructions, which, when executed by a processor, implement the data processing method as described in any one of claims 1-4.

8. A computer program product, characterized in that, When the instructions in the computer program product are executed by the processor of the electronic device, the electronic device performs the data processing method as described in any one of claims 1-4.

Citation Information

Patent Citations

  • Block-link data transaction method, device, equipmentand storage medium

    CN109067724A

  • Method for processing interaction information for playing real-time video through block chain

    CN114286192A