Data processing method and device based on block chain, equipment and storage medium
By adopting blockchain-based data processing methods in social applications and using digital certificates and consensus networks to achieve point-to-point communication, the security and efficiency of central servers are solved, and the security and efficiency of data transmission are improved.
Patent Information
- Application Number
- CN202311763118.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-12-19
- Publication Date
- 2025-06-20
AI Technical Summary
The prior art has security and efficiency problems when transmitting business data in social applications. The central server is prone to illegal intrusion, and the load is too high, resulting in a reduced transmission efficiency.
The blockchain-based data processing method is adopted, and the digital certificate of the target object is obtained by initiating the service node, encapsulating the request for social addition in the consensus network, obtaining the address and digital certificate of the target service node, realizing point-to-point communication and avoiding forwarding by the central server.
It improves the security and efficiency of social applications to transmit business data, avoids the problem of excessive load on the central server, allocates the pressure of business data transmission, and improves the security and speed of the transmission process.
Smart Images

Figure CN120185835A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of blockchain technology, and in particular, to a data processing method, apparatus, device, and storage medium based on blockchain. Background Art
[0002] Currently, with the development of Internet technology, the usage frequency of various social application programs is getting higher and higher, so the frequency of using social application programs to transmit business data is getting higher and higher. In the current process of transmitting business data, the business data needs to be sent to a central server, and the central server forwards the business data to the target object. That is to say, if the central server is illegally invaded, all the business data forwarded by the central server will be leaked, increasing the risk of business data transmission. Moreover, when the amount of business data to be transmitted increases, the amount of business data that the central server needs to forward increases accordingly, resulting in an increased load on the central server. Furthermore, when the load of the central server is too high, the newly added business data needs to queue up during transmission, reducing the transmission efficiency of the social application program for transmitting business data. Summary of the Invention
[0003] Embodiments of this application provide a data processing method, apparatus, device, and storage medium based on blockchain, which can improve the transmission efficiency and security of application programs for transmitting business data.
[0004] On the one hand, embodiments of this application provide a data processing method based on blockchain. This method is executed by an initiating service node in a blockchain network. The initiating service node includes a social client. The method includes:
[0005] The initiating service node obtains a first digital certificate corresponding to the target object; the target object refers to the object logged in to the social client;
[0006] Obtain the associated social identification information corresponding to the object to be added;
[0007] Encapsulate the first digital certificate, the associated social identification information, and the social contract identifier into a social addition request, and send the social addition request to the consensus network, so that the consensus network calls a social smart contract through the social contract identifier in the social addition request, and obtains a response result for the social addition request feedback by the target service node through the social smart contract; the target service node refers to the service node corresponding to the associated social identification information;
[0008] When both the social addition request and the response result are successfully consensus in the consensus network, and the response result is a message agreeing to the addition, obtain the target node address and the second digital certificate corresponding to the target service node from the service execution result returned by the consensus network; the first digital certificate, the second digital certificate, and the target node address are used to provide the initiating service node with the ability to communicate with the target service node.
[0009] On the one hand, an embodiment of the present application provides a blockchain-based data processing method, which is executed by a consensus node in a consensus network. The method includes:
[0010] The consensus node receives a social addition request sent by an initiating service node;
[0011] Call the social smart contract through the social contract identifier in the social addition request, and obtain the response result of the social addition request feedback by the target service node through the social smart contract; the social addition request is obtained by the initiating service node encapsulating the first digital certificate, the associated social identifier information corresponding to the object to be added, and the social contract identifier; the first digital certificate refers to the first digital certificate corresponding to the target object, and the target object refers to the object that logs in to the social client included in the initiating service node; the target service node refers to the service node corresponding to the associated social identifier information.
[0012] When both the social addition request and the response result are successfully consensus in the consensus network, and the response result is a message agreeing to the addition, send the service execution result obtained when the consensus is successful to the initiating service node, so that the initiating service node can obtain the target node address and the second digital certificate corresponding to the target service node from the service execution result; the first digital certificate, the second digital certificate, and the target node address are used to provide the initiating service node with the ability to communicate with the target service node.
[0013] On the one hand, an embodiment of the present application provides a blockchain-based data processing device, which includes:
[0014] The certificate acquisition module is used to obtain the first digital certificate corresponding to the target object for the initiating service node; the target object refers to the object that logs in to the social client;
[0015] The identification information acquisition module is used to obtain the associated social identification information corresponding to the object to be added;
[0016] A request encapsulation module, which is used to encapsulate the first digital certificate, associated social identification information, and social contract identification into a social addition request, and send the social addition request to the consensus network, so that the consensus network can call the social smart contract through the social contract identification in the social addition request, and obtain the response result of the target service node to the social addition request through the social smart contract; the target service node refers to the service node corresponding to the associated social identification information;
[0017] An address acquisition module, which is used to obtain the target node address and the second digital certificate corresponding to the target service node from the service execution result returned by the consensus network when both the social addition request and the response result are successfully consensus in the consensus network and the response result is an approval message; the first digital certificate, the second digital certificate, and the target node address are used to provide the initiating service node with the ability to communicate with the target service node.
[0018] Among them, the certificate acquisition module includes:
[0019] An identification information acquisition unit, which is used for the initiating service node to obtain the target social identification information corresponding to the target object logging in to the social client, generate a target private key and a target public key corresponding to the target private key;
[0020] A public key sending unit, which is used to send the target social identification information and the target public key to the certification authority, so that the certification authority performs identity authentication processing based on the target social identification information, and generates the first digital certificate based on the target public key when the identity authentication is passed;
[0021] A certificate receiving unit, which is used to receive the first digital certificate sent by the certification authority.
[0022] Among them, the certificate acquisition module further includes:
[0023] A public key acquisition unit, which is used to obtain the certificate service public key in the first digital certificate sent by the certification authority;
[0024] A public key comparison unit, which is used to compare the certificate service public key with the target public key;
[0025] An encapsulation step execution unit, which is used to continue to execute the step of encapsulating the first digital certificate, associated social identification information, and social contract identification into a social addition request if the certificate service public key is the same as the target public key;
[0026] An error prompt information generation unit, which is used to generate error prompt information if the certificate service public key is different from the target public key; the error prompt information is used to instruct the initiating service node to regenerate a new first digital certificate through the certification authority.
[0027] Among them, the certificate acquisition module further includes:
[0028] A channel establishment unit, configured to establish a first communication channel with a target service node based on a target node address;
[0029] A communication request generation unit, configured to generate a social communication request, send the social communication request based on the first communication channel, so that the target service node receives the social communication request, generate a social communication response for the social communication request, and send the social communication response to the initiating service node through the first communication channel;
[0030] A communication response receiving unit, configured to receive the social communication response sent by the target service node, and generate a session window with the target service node according to the social communication response;
[0031] A communication message generation unit, configured to generate a social communication message through the session window;
[0032] A communication message sending unit, configured to send the social communication message to the target service node through the first communication channel, the first digital certificate, and the second digital certificate.
[0033] Wherein, the communication message sending unit includes:
[0034] A public key acquisition subunit, configured to acquire a second service public key corresponding to the target service node in the second digital certificate;
[0035] An encryption subunit, configured to perform encryption processing on the obtained social communication message based on the second service public key, and sign the encrypted social communication message through the target private key to obtain social signature information;
[0036] A signature information sending subunit, configured to send the first digital certificate, the encrypted social communication message, and the social signature information to the target service node, so that the target service node verifies the social signature information through the certificate service public key in the first digital certificate. If the verification is successful, the encrypted social communication message is decrypted through the private key corresponding to the target service node to obtain the social communication message.
[0037] Wherein, the data processing device further includes:
[0038] A notification information receiving module, configured to receive a rejection notification information generated by the target service node sent by the consensus network when both the social addition request and the response result are successfully consensus in the consensus network and the response result is a message of rejecting addition; the rejection notification information is used to notify the initiating service node that the target service node has rejected adding a friend.
[0039] Wherein, the address acquisition module includes:
[0040] An identifier acquisition unit, configured to acquire an address field identifier and a certificate field identifier in the service execution result;
[0041] An address field division unit, configured to divide the service execution result based on the address field identifier to obtain the target node address corresponding to the target service node;
[0042] A certificate field division unit, configured to divide the service execution result based on the certificate field identifier to obtain the second digital certificate corresponding to the target service node.
[0043] An embodiment of the present application provides a blockchain-based data processing device on the one hand. The data processing device includes:
[0044] A request receiving module, configured to receive a social addition request sent by an initiating service node by a consensus node;
[0045] A contract calling module, configured to call a social intelligent contract through the social contract identifier in the social addition request, and obtain a response result of the target service node for the social addition request through the social intelligent contract; the social addition request is obtained by an initiating service node encapsulating a first digital certificate, associated social identification information corresponding to an object to be added, and a social contract identifier; the first digital certificate refers to the first digital certificate corresponding to the target object, and the target object refers to the object that logs in to the social client included in the initiating service node; the target service node refers to the service node corresponding to the associated social identification information.
[0046] An execution result sending module, configured to, when both the social addition request and the response result are successfully consensus in the consensus network and the response result is an agreed addition message, send the service execution result obtained at the time of successful consensus to the initiating service node, so that the initiating service node obtains the target node address and the second digital certificate corresponding to the target service node from the service execution result; the first digital certificate, the second digital certificate, and the target node address are used to provide the initiating service node with the ability to communicate with the target service node.
[0047] Among them, the contract calling module includes:
[0048] A contract calling unit, configured to call a social intelligent contract through the social contract identifier in the social addition request, and broadcast a direct connection communication request message in the blockchain network through the social intelligent contract; the direct connection communication request message is used to request to establish a second communication channel with the target service node;
[0049] A request sending unit, configured to, when the second communication channel is successfully established, send a social communication addition request to the target service node based on the second communication channel, and obtain a response result of the target service node for the social addition request through the second communication channel.
[0050] Among them, the data processing device further includes:
[0051] An identity information detection module, which is used for a consensus node to detect the identity information of the first digital certificate in a social addition request to obtain the initiating identity information;
[0052] A result acquisition step execution module, which is used for if the initiating identity information corresponding to the first digital certificate exists in the legal object table of the consensus node, then continue to execute the step of obtaining the response result of the social addition request feedback by the target service node through the social smart contract;
[0053] A failure information generation module, which is used for if the initiating identity information corresponding to the first digital certificate does not exist in the legal object table of the consensus node, then generate an authentication failure information; the authentication failure information is used to instruct the initiating service node to resend the initial identity information for identity authentication to the authentication institution; the authentication institution is used to authenticate the initial identity information.
[0054] On the one hand, the present application provides a computer device, including: a processor, a memory, and a network interface;
[0055] The above-mentioned processor is connected to the above-mentioned memory and the above-mentioned network interface. Among them, the above-mentioned network interface is used to provide a data communication function, the above-mentioned memory is used to store a computer program, and the above-mentioned processor is used to call the above-mentioned computer program so that the computer device executes the method in the embodiment of the present application.
[0056] On the one hand, the embodiment of the present application provides a computer-readable storage medium, in which a computer program is stored, and the computer program is suitable for being loaded and executed by a processor to execute the method in the embodiment of the present application.
[0057] On the one hand, the embodiment of the present application provides a computer program product or a computer program. The computer program product or the computer program includes computer instructions, and the computer instructions are stored in a computer-readable storage medium; a processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the method in the embodiment of the present application.
[0058] In the embodiments of the present application, the initiating service node obtains the first digital certificate corresponding to the target object, providing a perfect guarantee basis for the identity authentication of the target object. Further, by encapsulating the first digital certificate, the associated social identification information of the object to be added obtained, and the social contract identifier into a social addition request, the social addition request contains identity authentication information. By authenticating the identity authentication information, the illegal intrusion of objects without identity authentication information can be reduced, improving the security of the social addition request. Further, by sending the social addition request to the consensus network, the consensus network calls the social smart contract through the social contract identifier in the social addition request, and obtains the response result of the target service node for the social addition request through the social smart contract; when both the social addition request and the response result are successfully consensus in the consensus network and the response result is a message agreeing to add, obtain the target node address and the second digital certificate corresponding to the target service node from the service execution result returned by the consensus network. Among them, through the process of adding social friends of the object to be added by the consensus network, relying on the security of the consensus network, the security of the object to be added during the social friend addition process is guaranteed. Further, through the first digital certificate, the second digital certificate, and the target node address corresponding to the target service node, direct point-to-point communication is carried out between the initiating service node and the target service node. This process avoids the need for forwarding in the central server when transmitting service data. That is, even if the central server is illegally invaded, the service data will not be leaked, ensuring the security during the transmission of service data. Moreover, the first digital certificate, the second digital certificate, and the target node address provide the initiating service node with the ability to communicate with the target service node. Further, after the consensus processing is successfully carried out through the consensus network in the embodiments of the present application, point-to-point communication can be performed based on the obtained second digital certificate and target node address, avoiding the service data forwarding process of the central server. Thus, there is no problem of excessive load on the central server, that is, the transmission pressure of service data will be distributed to each service node in the blockchain network, so that for the time spent in the transmission process of service data, the service data queuing time will not be too long due to excessive load, improving the transmission efficiency of the social application program for transmitting service data. Description of the Drawings
[0059] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the following will briefly introduce the drawings required for use in the description of the embodiments or the prior art. Obviously, the drawings in the following description are only some embodiments of the present application. For those of ordinary skill in the art, without creative efforts, other drawings can be obtained based on these drawings.
[0060] Figure 1It is a schematic structural diagram of a blockchain network provided by an embodiment of the present application;
[0061] Figure 2 It is a schematic scenario diagram of sending a social addition request provided by an embodiment of the present application;
[0062] Figure 3 It is a schematic flowchart of a data processing method provided by an embodiment of the present application;
[0063] Figure 4 It is a schematic flowchart of another data processing method provided by an embodiment of the present application;
[0064] Figure 5 It is a schematic flowchart of yet another data processing method provided by an embodiment of the present application;
[0065] Figure 6 It is a schematic scenario diagram of obtaining a first digital certificate in a social client provided by an embodiment of the present application;
[0066] Figure 7 It is a schematic timing diagram of sending a social addition request provided by an embodiment of the present application;
[0067] Figure 8 It is a schematic structural diagram of a data processing device provided by an embodiment of the present application;
[0068] Figure 9 It is a schematic structural diagram of another data processing device provided by an embodiment of the present application;
[0069] Figure 10 It is a schematic structural diagram of a computer device provided by an embodiment of the present application. Detailed implementation manners
[0070] Next, the technical solutions in the embodiments of the present application will be clearly and completely described in conjunction with the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present application.
[0071] It can be understood that in the specific implementation manners of the present application, for data related to objects or users (such as payment data), when the following embodiments of the present application are applied to specific products or technologies, user permission or consent needs to be obtained, and the collection, use, and processing of relevant data need to comply with relevant laws, regulations, and standards in the relevant regions.
[0072] The solution provided by the embodiment of the present application relates to blockchain technology, and the specific process will be described through the following embodiments.
[0073] Please refer to Figure 1 , Figure 1 which is a schematic structural diagram of a blockchain network provided by an embodiment of the present application. As Figure 1 shown, the blockchain network may include, but is not limited to, a distributed network corresponding to blockchain services. The blockchain network may include multiple blockchain nodes, and the multiple blockchain nodes may specifically include blockchain node 10a, blockchain node 10b, blockchain node 10c, blockchain node 10d, …, blockchain node 10n. For example, a blockchain node may be a client or a server in the distributed network corresponding to blockchain services. Among them, when each blockchain node is working properly, it can receive data sent from the outside world and perform block on-chain processing based on the received data, or send data to the outside world. To ensure data intercommunication between blockchain nodes, there may be data connections between each blockchain node. For example, there is a data connection between blockchain node 10a and blockchain node 10b, a data connection between blockchain node 10a and blockchain node 10c, and a data connection between blockchain node 10b and blockchain node 10c.
[0074] It can be understood that data or blocks can be transmitted between blockchain nodes through the above data connections. The blockchain network can implement data connections between blockchain nodes based on node identifiers. For each blockchain node in the blockchain network, there is a corresponding node identifier, and each of the above blockchain nodes can store the node identifiers of other blockchain nodes that are connected to itself, so as to broadcast the obtained data or generated blocks to other blockchain nodes according to the node identifiers of other blockchain nodes in the future. For example, blockchain node 10a can maintain a node identifier list as shown in Table 1, and this node identifier list stores the node names and node identifiers of other nodes:
[0075] Table 1
[0076] Node Name Node Identifier Node 10a AAA.AAA.AAA.AAA Node 10b BBB.BBB.BBB.BBB Node 10c CCC.CCC.CCC.CCC Node 10d DDD.DDD.DDD.DDD … … Node 10n EEE.EEE.EEE.EEE
[0077] Among them, the node identifier may be an Internet Protocol (IP) address for interconnection between networks and any other information that can be used to identify nodes in the blockchain network. Only the IP address is used as an example in Table 1 for illustration. For example, blockchain node 10a can send blockchain data (for example, encrypted data packaged in block format) to blockchain node 10b through the node identifier BBB.BBB.BBB.BBB, and blockchain node 10b can determine that this information is sent by blockchain node 10a through the node identifier AAA.AAA.AAA.AAA.
[0078] In a blockchain, before a block is added to the blockchain, the block must go through consensus among the consensus nodes in the blockchain network, and can be added to the blockchain only after the consensus is passed. It can be understood that when the blockchain is used in some scenarios of commercial institutions, not all participating nodes in the blockchain (i.e., the blockchain nodes in the above-mentioned blockchain network) have sufficient resources and necessity to become the consensus nodes of the blockchain. For example, in Figure 1 In the blockchain network shown, blockchain nodes 10a, 10b, 10c, and 10d can be used as the consensus nodes in this blockchain network. The consensus nodes in the blockchain network participate in consensus, that is, conduct consensus on the block (including a batch of transactions), that is, vote on the block; non-consensus nodes do not participate in consensus, but will help spread the block and voting messages, and synchronize the status with each other, etc.
[0079] It can be understood that the method provided in the embodiments of the present application can be executed by a computer device, and the computer device includes but is not limited to the above-mentioned blockchain nodes (which can be a social client in the embodiments of the present application). Among them, in the embodiments of the present application, the server can be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud databases, cloud services, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN, and big data and artificial intelligence platforms. Among them, the above-mentioned client can be an electronic device, including but not limited to mobile phones, tablets, desktop computers, laptop computers, palmtop computers, in-vehicle devices, augmented reality / virtual reality (AR / VR) devices, head-mounted displays, smart TVs, wearable devices, smart speakers, digital cameras, cameras, and other mobile internet devices (MID) with network access capabilities, or terminal devices in scenarios such as trains, ships, and flights. In the embodiments of the present application, the client can include a resource client.
[0080] It can be understood that the embodiments of the present application can be applied to various scenarios, including but not limited to scenarios such as cloud technology, artificial intelligence, and intelligent transportation. For example, the blockchain node system can conduct consensus on some driving behavior data, road trajectory data, etc. sent by in-vehicle terminals, and store them on the blockchain after the consensus is passed.
[0081] It can be understood that in a specific embodiment, the initiating business node (such as can be Figure 1The blockchain node 10a) therein can obtain the first digital certificate corresponding to the target object. Among them, the initiating service node includes a social client, and the target object refers to the object logging in to the social client. Further, the initiating service node can obtain the associated social identification information corresponding to the object to be added (which can be the object identity information of the object to be added, such as the user name or user account). The first digital certificate, the associated social identification information, and the social contract identifier are encapsulated into a social addition request, and the social addition request is sent to the consensus network so that the consensus network can call the social smart contract through the social contract identifier in the social addition request, and obtain the response result of the social addition request feedback by the target service node (such as the blockchain node 10b) in Figure 1 therein). The target service node refers to the service node corresponding to the associated social identification information. Further, when both the social addition request and the response result are successfully consensus in the consensus network, and the response result is an approval to add message, obtain the target node address and the second digital certificate corresponding to the target service node from the service execution result returned by the consensus network (that is, the social addition request can be regarded as a transaction to be chained, and the service execution result can be obtained by executing this transaction to be chained). The first digital certificate, the second digital certificate, and the target node address are used to provide the initiating service node with the ability to communicate with the target service node.
[0082] Among them, the social client can include an interface for interacting with the blockchain network. Specifically, the social client can be used to implement the resource management service function related to social networking, and based on this resource management service function, establish a communication connection with the decentralized application client. Briefly speaking, the social client is a tool for managing and storing user digital resources. For example, digital resources can be transferred to other accounts based on the social client, or digital resources transferred from other accounts can be received based on the social client. The social client can be a hardware device or a software program. In this application, the social client of the target object can establish a communication connection with the decentralized application client to implement related operations such as authorized login of the target object. It can be understood that with the wide deployment of various decentralized applications on the blockchain and the increase in user activities on the blockchain, when ordinary users use decentralized applications, they can use the blockchain key management tool for login. The address in the blockchain key management tool corresponds to a user on the blockchain, and the decentralized application can obtain the user address from the key management tool through some interfaces.
[0083] Further, please refer to Figure 2 , Figure 2 which is a schematic diagram of a scenario for sending a social addition request provided by an embodiment of this application. As shown in Figure 2As shown in the figure, an embodiment of the present application provides a data processing method based on a blockchain. This method is executed by the initiating service node 24A in the blockchain network, and the initiating service node 24A may include a social client. Specifically, the initiating service node 24A obtains the first digital certificate 241N corresponding to the target object 23P. Herein, the target object 23P refers to the object logging in to the social client. Further, the initiating service node 24A may obtain the associated social identification information 242A corresponding to the object to be added. Further, the initiating service node 24A may encapsulate the first digital certificate 241N, the associated social identification information 242A, and the social contract identifier 243S into a social addition request 2400Q, and send the social addition request 2400Q to the consensus network 25S, so that the consensus network 25S calls the social smart contract through the social contract identifier 243S in the social addition request 2400Q, and obtains the response result of the social addition request 2400Q feedback by the target service node 26P through the social smart contract. Herein, the target service node 26P refers to the service node corresponding to the associated social identification information. Specifically, the target service node may include the target service node 26P, the target service node 27P, the target service node 28P,..., the target service node yP, etc., where y is a positive integer. Further, when both the social addition request 2400Q and the response result are successfully consensus in the consensus network 25S, and the response result is an approval message for addition, obtain the target node address and the second digital certificate corresponding to the target service node 26P from the business execution result returned by the consensus network 25S. The first digital certificate 241N, the second digital certificate, and the target node address are used to provide the initiating service node 24A with the ability to communicate with the target service node 26P.
[0084] Specifically, the consensus service nodes in the consensus network 25S can obtain the social addition request 2400Q sent by the initiating service node. It should be understood that the consensus service nodes can send the social addition request 2400Q to other consensus service nodes in the consensus network 25S, so that each consensus service node in the normal state can jointly conduct a consensus vote on the social addition request 2400Q. If the consensus on the social addition request 2400Q is successful, the consensus service node can send the social addition request 2400Q to the target service node 26P. Further, the consensus service node can receive the response result from the target service node 26P. Further, the consensus service node can send the response result to other consensus service nodes in the consensus network 25S, so that each consensus service node in the normal state can jointly conduct a consensus vote on the response result. When both the social addition request 2400Q and the response result are successfully consensus in the consensus network 25S, and the response result is an approval message for addition, the initiating service node 24A can obtain the target node address and the second digital certificate corresponding to the target service node 26P from the service execution result returned by the consensus network 25S. Further, the initiating service node 24A can send a communication message for communication to the target service node 26P through the target node address and the second digital certificate corresponding to the target service node 26P. That is to say, the initiating service node 24A can communicate with the target service node 26P through the target node address and the second digital certificate corresponding to the target service node 26P for communication processing.
[0085] Specifically, the social addition request (such as the social addition request 2400Q) can be understood as a business transaction. Among them, generally speaking, a business transaction can be understood as the computer term transaction. Correspondingly, in detail, a business transaction refers to a data transfer on the blockchain. For example, a business transaction can include asset transfer between users of blockchain services, data transfer related to the blockchain, or transfer of executing a smart contract, etc. From another perspective, in terms of the components of a business transaction, a business transaction can include a business request and operations that need to be submitted to the blockchain network for execution, etc.
[0086] Among them, the initiating service node 24A can obtain the transaction execution result after a service transaction. Specifically, the transaction execution result refers to the processing result of the service transaction. For example, the transaction execution result may include that the service transaction is successful or the service transaction fails, etc. Optionally, the transaction execution result may further include the completion time of the service transaction, the failed steps of the service transaction, and the overall process data of the service transaction, etc. For example, the initiating service node 24A can obtain the transaction execution result through the remote procedure call transfer protocol (JSON-RPC) interface provided by the blockchain nodes in the blockchain node system 25S. Specifically, the initiating service node 24A can obtain components such as a social addition request, a service transaction response message, an interface version number, and a method name through the JSON-RPC interface. Among them, the social addition request may include the method name and request parameters of the social addition request. Further, the service transaction response message may include the specific information of the service transaction response object (such as information such as the nickname or address of the service transaction response object) and the service transaction error information. Among them, the interface version number may include version data for identifying the JSON-RPC interface. Correspondingly, the method name can be used to indicate the method to be called. Specifically, the response result may include a header, a payload, and a signature.
[0087] Further, please refer to Figure 3 , Figure 3 which is a schematic flowchart of a data processing method provided by an embodiment of the present application. As Figure 3 shown, this method can be executed by the initiating service node in the blockchain node system, and the initiating service node can be the above-mentioned Figure 1 shown blockchain node 10b, which is not limited here. For ease of understanding, an embodiment of the present application takes this method being executed by the initiating service node as an example for description. This data processing method may at least include the following steps S101-step S104:
[0088] Step S101, the initiating service node obtains the first digital certificate corresponding to the target object; the target object refers to the object logging in to the social client.
[0089] Specifically, the initiating service node can obtain the first digital certificate corresponding to the target object through a wired network or a wireless network. Among them, the initiating service node can obtain the first digital certificate corresponding to the target object through the communication network in wired transmission. Specifically, the communication network may include a communication system composed of a gateway device, a router, and a transmission cable. Among them, the initiating service node can obtain the first digital certificate corresponding to the target object through the Bluetooth function in wireless transmission.
[0090] Step S102, obtain the associated social identification information corresponding to the object to be added.
[0091] Specifically, the initiating service node can obtain the associated social identification information corresponding to the object to be added through the input control in the social application. Herein, the object to be added may refer to the object for which business data transmission is required. Optionally, the initiating service node can obtain the associated social identification information corresponding to the object to be added through wired transmission or wireless transmission. Among them, the initiating service node can obtain the associated social identification information corresponding to the object to be added through the communication network in wired transmission. Specifically, the communication network may include a communication system composed of a gateway device, a router, and a transmission cable. Among them, the initiating service node can obtain the associated social identification information corresponding to the object to be added through the Bluetooth function in wireless transmission. For example, the initiating service node can receive the associated social identification information corresponding to the object to be added in the communication network through the communication network. For another example, the initiating service node can also receive the associated social identification information corresponding to the object to be added through the AirDrop method in the Bluetooth function. Herein, the associated social identification information refers to the information associated with the object to be added and used for identification in the social process. Generally speaking, the associated social identification information may refer to the information related to the object to be added and capable of representing the object to be added. In detail, the associated social identification information may refer to the object identity information of the object to be added, such as the user name, user account, user identification, or user address, etc.
[0092] Step S103, encapsulate the first digital certificate, the associated social identification information, and the social contract identifier into a social addition request, and send the social addition request to the consensus network, so that the consensus network calls the social smart contract through the social contract identifier in the social addition request, and obtains the response result of the target service node for the social addition request through the social smart contract; the target service node refers to the service node corresponding to the associated social identification information.
[0093] Specifically, the initiating service node can encapsulate the first digital certificate, the associated social identification information, and the social contract identifier into a social addition request in sequence. Optionally, the initiating service node can encapsulate the first digital certificate, the associated social identification information, and the social contract identifier into a social addition request in a random order, and generate a social request tag based on this random order. Herein, the social request tag is used to determine the order among the first digital certificate, the associated social identification information, and the social contract identifier in the social addition request. Further, the initiating service node can send the social addition request to the consensus network, so that the consensus network calls the social smart contract through the social contract identifier in the social addition request, and obtains the response result of the target service node for the social addition request through the social smart contract. Herein, the target service node refers to the service node corresponding to the associated social identification information.
[0094] Step S104: When both the social addition request and the response result are successfully consensus in the consensus network and the response result is a message agreeing to the addition, obtain the target node address and the second digital certificate corresponding to the target service node from the service execution result returned by the consensus network; the first digital certificate, the second digital certificate, and the target node address are used to provide the initiating service node with the ability to communicate with the target service node.
[0095] Specifically, when both the social addition request and the response result are successfully consensus in the consensus network and the response result is a message agreeing to the addition, the initiating service node can perform data partitioning processing on the service execution result returned in the consensus network to obtain the target node address and the second digital certificate corresponding to the target service node. Briefly speaking, the initiating service node can perform data partitioning processing on different fields of the service execution result to obtain the target node address and the second digital certificate corresponding to the target service node. Optionally, when both the social addition request and the response result are successfully consensus in the consensus network and the response result is a message agreeing to the addition, the initiating service node can perform data extraction processing on the service execution result returned in the consensus network to obtain the target node address and the second digital certificate corresponding to the target service node. Briefly speaking, the initiating service node can perform data extraction processing on a specified field (such as the address field) to obtain the target node address and the second digital certificate corresponding to the target service node.
[0096] In detail, the initiating service node can obtain the address field identifier and the certificate field identifier in the service execution result. Further, the initiating service node can perform address field partitioning on the service execution result based on the address field identifier to obtain the target node address corresponding to the target service node. Correspondingly, the initiating service node can perform certificate field partitioning on the service execution result based on the certificate field identifier to obtain the second digital certificate corresponding to the target service node.
[0097] Further, the initiating service node (such as Figure 2 the initiating service node 24A shown) can pass through the target service node (such as Figure 2The target node address and the second digital certificate corresponding to the target service node 26P) shown are used to send a communication message for communication to the target service node. That is, the initiating service node can communicate with the target service node through the target node address and the second digital certificate corresponding to the target service node. Specifically, the initiating service node can establish a session communication channel with the target service node based on the target node address. Further, a communication window with the target service node is generated through the session communication channel, and a communication message for communication is sent through the communication window. It should be understood that the initiating service node can send one or more communication messages through the session communication channel. That is, the initiating service node can implement multi-round communication with the target service node through the session communication channel. Among them, one round of communication can at least include the initiating service node sending a communication message to the target service node and the initiating service node receiving a communication message sent by the target service node. Further, if no new communication message is detected in the communication window after exceeding a pre-set fixed time, the initiating service node can close the communication window and determine that this communication ends. That is, if no new communication message is detected in the communication window after exceeding a pre-set fixed time, it is determined that the communication process ends.
[0098] It can be understood that in the specific implementation of this application, data such as business transaction-related data, data corresponding to the initiating service node, and data associated with the target service node are involved. When the above and below embodiments of this application are applied to specific products or technologies, the collection and processing of relevant data should strictly comply with the requirements of relevant regional laws and regulations, obtain the informed consent or separate consent (or have a legal basis) of the personal information subject, and carry out subsequent data use and processing behaviors within the scope authorized by laws and regulations and the personal information subject. When it comes to face (or other biometric) recognition technology, the collection, use, and processing of relevant data should comply with the requirements of relevant regional laws and regulations. Before collecting face information, the information processing rules should be informed and the separate consent of the target object should be solicited (or have a legal basis), and the face information should be processed strictly in accordance with the requirements of laws and regulations and personal information processing rules, and technical measures should be taken to ensure the security of relevant data.
[0099] The embodiment of the present application obtains the first digital certificate corresponding to the target object by initiating a business node, which provides a perfect guarantee basis for the identity authentication of the target object. Further, by encapsulating the first digital certificate, the associated social identification information of the object to be added, and the social contract identification into a social adding request, the social adding request contains the identity authentication information. By authenticating the identity authentication information, the illegal intrusion of the object without identity authentication information can be reduced, and the security of the social adding request is improved. Further, by sending the social adding request to the consensus network, so that the consensus network calls the social smart contract through the social contract identification in the social adding request, the response result of the social adding request fed back by the target business node is obtained through the social smart contract; when the social adding request and the response result are both successfully agreed in the consensus network, and the response result is the consent to add message, the target node address and the second digital certificate corresponding to the target business node are obtained from the business execution result returned by the consensus network. Among them, the social friend adding process of the object to be added is carried out through the consensus network, and the security of the consensus network is used to ensure the security of the object to be added in the social friend adding process. Furthermore, through the first digital certificate, the second digital certificate and the target node address corresponding to the target business node, point-to-point communication is directly carried out between the initiating business node and the target business node, which avoids the process of forwarding in the central server when transmitting business data. In other words, even if the central server is illegally invaded, the business data will not be leaked, ensuring the security of the business data transmission process. Moreover, the first digital certificate, the second digital certificate and the target node address provide the initiating business node with the ability to communicate with the target business node. Further, after the consensus processing is successfully carried out through the consensus network, the embodiment of the present application can perform point-to-point communication based on the obtained second digital certificate and the target node address, avoiding the business data forwarding process of the central server, so that there is no problem of excessive load on the central server, that is, the transmission pressure of the business data will be shared on each business node in the blockchain network, so that in terms of the time spent in the transmission process of the business data, the business data queuing time will not be too long due to excessive load, thereby improving the transmission efficiency of the social application to transmit business data.
[0100] For further information, see Figure 4 , Figure 4 FIG. 1 is a flow chart of another data processing method provided in an embodiment of the present application. Figure 4 As shown, the method can be executed by an initiating service node in the blockchain node system, and the initiating service node can be the above Figure 1 The blockchain node 10b shown is not limited here. For ease of understanding, the present application embodiment takes the method executed by the initiating service node as an example for explanation, and the data processing method may at least include the following steps S201-S206:
[0101] Step S201, the initiating service node obtains the target social identification information corresponding to the target object logging in to the social client, generates a target private key and a target public key corresponding to the target private key.
[0102] Specifically, the initiating service node can perform data extraction processing on the data stored in the social client for the social client in the logged-in successful state to obtain the target social identification information corresponding to the target object logging in to the social client. Among them, the data stored in the social client can refer to the association information of the user object (i.e., the target object in the embodiments of the present application) entered into the social client by the user object logging in to the social client. Specifically, the association information can refer to the name of the user object or the code name of the user object, etc. That is to say, in the embodiments of the present application, the social identification information of the user object refers to the target social identification information corresponding to the target object. Among them, the initiating service node can obtain the association information of the user object through the information entry control when the user object of the social client logs in for the first time (i.e., when the user object registers in the social client).
[0103] Optionally, the initiating service node can obtain the target social identification information corresponding to the target object logging in to the social client through the input control included in the social client. That is to say, the initiating service node can directly obtain the content input by the target object logging in to the social client through the input control included in the social client, and determine the content input by the target object logging in to the social client as the target social identification information. For example, if the content input by the target object logging in to the social client obtained is "hahaha", then the target social identification information is determined as "hahaha". It should be understood that the content input by the target object logging in to the social client can include various formats of content, such as character format content, text format content, or image format content, and the specific format of the content is not limited here.
[0104] Specifically, the initiating service node can generate the target public key and the target private key by means of asymmetric encryption. Among them, asymmetric encryption refers to the process of encrypting and decrypting using a pair of asymmetric keys. Specifically, the initiating service node can use different target keys (i.e., the target public key and the target private key) respectively during the encryption process and the decryption process. Among them, the target public key refers to the public key associated with the target object generated by the initiating service node through asymmetric encryption. Correspondingly, the target private key refers to the private key associated with the target object generated by the initiating service node through asymmetric encryption. Specifically, the target public key can be broadcast and published, but the target private key is only stored locally at the target. For example, in a specific embodiment, the asymmetric encryption algorithm can include the RSA (Ron Rivest Adi Shamir Leonard Adleman) algorithm.
[0105] Further, the initiating service node may send the generated target public key to the certification authority, so that the certification authority receives the target public key, generates a first digital certificate based on the target public key, and sends the first digital certificate to the initiating service node. Herein, the certification authority refers to the institution that issues digital certificates (CA, Certificate Authority), that is, the institution that issues digital certificates.
[0106] Step S202: Send the target social identification information and the target public key to the certification authority, so that the certification authority performs identity authentication processing based on the target social identification information, and generates a first digital certificate based on the target public key when the identity authentication is passed.
[0107] Specifically, the initiating service node may send the target social identification information and the target public key to the certification authority through a wired network or a wireless network. Herein, the initiating service node may send the target social identification information and the target public key to the certification authority through the communication network in wired transmission. Correspondingly, the initiating service node may send the target social identification information and the target public key to the certification authority through the Bluetooth function in wireless transmission.
[0108] Step S203: Receive the first digital certificate sent by the certification authority.
[0109] Specifically, the initiating service node may receive the first digital certificate sent by the certification authority. Further, the initiating service node may perform certificate detection processing on the first digital certificate sent by the certification authority. Specifically, the initiating service node may determine whether the generated first digital certificate is correct by detecting the public key information in the first digital certificate.
[0110] In detail, the initiating service node may obtain the certificate service public key in the first digital certificate sent by the certification authority. Further, the initiating service node may compare the certificate service public key with the target public key. Herein, if the certificate service public key is the same as the target public key, it may be determined that the first digital certificate is legal. Correspondingly, if the certificate service public key is different from the target public key, an error prompt message is generated. Herein, the error prompt message is used to instruct the initiating service node to regenerate a new first digital certificate through the certification authority.
[0111] Step S204: Obtain the associated social identification information corresponding to the object to be added.
[0112] Specifically, for the specific process of the initiating service node obtaining the associated social identification information corresponding to the object to be added, please refer to the detailed description in step S102 above Figure 3 about the process of the initiating service node obtaining the associated social identification information corresponding to the object to be added, and details will not be elaborated here.
[0113] Step S205: Package the first digital certificate, associated social identification information, and social contract identification into a social addition request, and send the social addition request to the consensus network, so that the consensus network can call the social smart contract through the social contract identification in the social addition request, and obtain the response result of the target business node to the social addition request through the social smart contract; the target business node refers to the business node corresponding to the associated social identification information.
[0114] Specifically, for the specific process of the initiating business node packaging the first digital certificate, associated social identification information, and social contract identification into a social addition request, please refer to the above Figure 3 for the detailed description of the process in step S103 above where the initiating business node packages the first digital certificate, associated social identification information, and social contract identification into a social addition request, and details will not be elaborated here.
[0115] Furthermore, the consensus network can conduct consensus on the received social addition request in the consensus network. Specifically, the first consensus node in the consensus network can send the social addition request to other consensus nodes in the consensus network for consensus voting. If the consensus voting passes, the consensus on this social addition request is successful. Furthermore, the consensus network can call the social smart contract through the social contract identification in the social addition request, and obtain the response result of the target business node to the social addition request through the social smart contract. Specifically, the consensus network can activate the social smart contract through the social contract identification in the social addition request, and start the calling process of the social smart contract to obtain the response result of the target business node sent for the social addition request.
[0116] Furthermore, when both the social addition request and the response result are successfully consensus in the consensus network, and the response result is a rejection message for addition, the initiating business node can receive the rejection notice information generated by the target business node sent by the consensus network. The rejection notice information is used to notify the initiating business node that the addition of friends has been rejected by the target business node.
[0117] Step S206: When both the social addition request and the response result are successfully consensus in the consensus network, and the response result is an approval message for addition, obtain the target node address and the second digital certificate corresponding to the target business node from the business execution result returned by the consensus network; the first digital certificate, the second digital certificate, and the target node address are used to provide the initiating business node with the ability to communicate with the target business node.
[0118] Specifically, for the specific process of the initiating business node obtaining the target node address and the second digital certificate corresponding to the target business node, please refer to the above Figure 3The detailed description of the process in step S104 of the initiating service node for obtaining the target node address and the second digital certificate corresponding to the target service node will not be elaborated here.
[0119] Furthermore, the initiating service node can establish a first communication channel with the target service node based on the target node address. Furthermore, the initiating service node can generate a social communication request, send the social communication request based on the first communication channel, so that the target service node receives the social communication request, generates a social communication response to the social communication request, and sends the social communication response to the initiating service node through the first communication channel. Furthermore, the initiating service node can receive the social communication response sent by the target service node and generate a session window with the target service node according to the social communication response. Furthermore, the initiating service node can generate a social communication message through the session window and send the social communication message to the target service node through the first communication channel, the first digital certificate, and the second digital certificate.
[0120] Specifically, the initiating service node can obtain the second service public key corresponding to the target service node in the second digital certificate. Furthermore, the initiating service node can encrypt the obtained social communication message based on the second service public key, sign the encrypted social communication message with the target private key to obtain social signature information. Furthermore, the initiating service node can send the first digital certificate, the encrypted social communication message, and the social signature information to the target service node, so that the target service node verifies the social signature information with the certificate service public key in the first digital certificate. If the verification is successful, the target service node decrypts the encrypted social communication message with the private key corresponding to the target service node to obtain the social communication message. Correspondingly, if the verification fails, verification failure information is generated. The verification failure information is used to intercept other data sent by the target object corresponding to the verification failure information. The other data sent by the target object corresponding to the verification failure information may include other encrypted social communication messages sent by the target object corresponding to the verification failure information.
[0121] In the embodiment of the present application, by initiating a service node to obtain the first digital certificate corresponding to the target object, a perfect guarantee basis is provided for the identity authentication of the target object. In the embodiment of the present application, the security protection of the target public key is carried out during the transmission process by generating the first digital certificate, which can reduce the possibility and probability of the target public key being intercepted and cracked during the transmission process, and improve the security coefficient of the target public key during the transmission process. Further, by encapsulating the first digital certificate, the associated social identification information of the object to be added obtained, and the social contract identification into a social addition request, the social addition request contains identity authentication information, which improves the security of the social addition request. Furthermore, a secure environment is provided for the object to be added to receive the social addition request, so that a wider range of objects can be determined as the object to be added, and the range of the object to be added is improved. Further, by sending the social addition request to the consensus network, the consensus network calls the social smart contract through the social contract identification in the social addition request, and obtains the response result of the target service node for the social addition request through the social smart contract; when both the social addition request and the response result are successfully consensus in the consensus network and the response result is a message agreeing to add, obtain the target node address and the second digital certificate corresponding to the target service node from the service execution result returned by the consensus network. Among them, through the application of the social smart contract, the consensus process of the social addition request can be made procedural and regular, reducing the probability of errors in the consensus process of the social addition request. The cumbersome and redundant consensus steps can be reduced through the processes in the pre-set social smart contract, reducing the time spent on the consensus of the social addition request, improving the speed of the consensus of the social addition request, and further improving the consensus efficiency of the social addition request. Moreover, the first digital certificate, the second digital certificate, and the target node address provide the initiating service node with the ability to communicate with the target service node. By performing signature verification through the target public key in the first digital certificate, the signature information can be made more secure, strengthening the correlation between the signature information and the user of the social client corresponding to the initiating service node, making the signature information more representative of the user. That is to say, the signature information has stronger identity representative information than the prior art, improving the identity authentication effect after applying the first digital certificate. Further, after the consensus processing is successfully carried out through the consensus network in the embodiment of the present application, point-to-point communication can be performed based on the obtained second digital certificate and the target node address, avoiding the business data forwarding process of the central server. Therefore, there is no problem of excessive load on the central server, that is, the transmission pressure of the business data will be distributed to each service node in the node network where the initiating service node is located. In terms of the time spent on the transmission process of the business data, the business data queuing time will not be too long due to excessive load, improving the transmission efficiency of the social application program for transmitting business data.
[0122] Further, please refer to Figure 5 , Figure 5 which is a schematic flowchart of another data processing method provided by an embodiment of this application. As Figure 5 shown, this method can be executed by a gateway device connected to a target service node in a blockchain node system. The gateway device can be a gateway device connected to the blockchain node 10b (i.e., the target service node) shown in the above Figure 1 , which is not limited herein. For ease of understanding, an embodiment of this application takes this method being executed by the gateway device as an example for description. This data processing method can at least include the following steps S301 - step S303:
[0123] Step S301, the consensus node receives a social addition request sent by the initiating service node.
[0124] Specifically, the consensus node can detect the identity information of the first digital certificate in the social addition request to obtain the initiating identity information. Among them, if the initiating identity information corresponding to the first digital certificate exists in the legal object table of the consensus node, then continue to execute the step of obtaining the response result of the target service node for the social addition request through the social smart contract. Correspondingly, if the initiating identity information corresponding to the first digital certificate does not exist in the legal object table of the consensus node, then an authentication failure message is generated. The authentication failure message is used to instruct the initiating service node to resend the initial identity information for identity authentication to the authentication agency. Specifically, the authentication agency is used to authenticate the initial identity information.
[0125] Step S302, call the social smart contract through the social contract identifier in the social addition request, and obtain the response result of the target service node for the social addition request through the social smart contract; the social addition request is obtained by the initiating service node encapsulating the first digital certificate, the associated social identifier information corresponding to the object to be added, and the social contract identifier; the first digital certificate refers to the first digital certificate corresponding to the target object, and the target object refers to the object logging in to the social client included in the initiating service node; the target service node refers to the service node corresponding to the associated social identifier information.
[0126] Specifically, the consensus node can call the social smart contract through the social contract identifier in the social addition request, and broadcast a direct connection communication request message in the blockchain network through the social smart contract. The direct connection communication request message is used to request the establishment of a second communication channel with the target service node. Further, when the second communication channel is successfully established, the consensus node can send the social communication addition request to the target service node based on the second communication channel, and obtain the response result of the target service node for the social addition request through the second communication channel.
[0127] Step S303, when both the social addition request and the response result are successfully consensus in the consensus network and the response result is a message of agreeing to add, send the service execution result obtained at the time of successful consensus to the initiating service node, so that the initiating service node can obtain the target node address and the second digital certificate corresponding to the target service node from the service execution result; the first digital certificate, the second digital certificate and the target node address are used to provide the initiating service node with the ability to communicate with the target service node.
[0128] Further, when both the social addition request and the response result are successfully consensus in the consensus network and the response result is a message of refusing to add, the consensus node may send the rejection notice information generated by the target service node to the initiating service node. The rejection notice information is used to notify the initiating service node that the addition of friends by the target service node is refused.
[0129] The embodiment of the present application obtains the first digital certificate corresponding to the target object by initiating a business node, which provides a perfect guarantee basis for the identity authentication of the target object. Further, by encapsulating the first digital certificate, the associated social identification information of the object to be added, and the social contract identification into a social adding request, the social adding request contains the identity authentication information. By authenticating the identity authentication information, the illegal intrusion of the object without identity authentication information can be reduced, and the security of the social adding request is improved. Further, by sending the social adding request to the consensus network, so that the consensus network calls the social smart contract through the social contract identification in the social adding request, the response result of the social adding request fed back by the target business node is obtained through the social smart contract; when the social adding request and the response result are both successfully agreed in the consensus network, and the response result is the consent to add message, the target node address and the second digital certificate corresponding to the target business node are obtained from the business execution result returned by the consensus network. Among them, the social friend adding process of the object to be added is carried out through the consensus network, and the security of the consensus network is used to ensure the security of the object to be added in the social friend adding process. Furthermore, through the first digital certificate, the second digital certificate and the target node address corresponding to the target business node, point-to-point communication is directly carried out between the initiating business node and the target business node, which avoids the process of forwarding in the central server when transmitting business data. In other words, even if the central server is illegally invaded, the business data will not be leaked, ensuring the security of the business data transmission process. Moreover, the first digital certificate, the second digital certificate and the target node address provide the initiating business node with the ability to communicate with the target business node. Further, after the consensus processing is successfully carried out through the consensus network, the embodiment of the present application can perform point-to-point communication based on the obtained second digital certificate and the target node address, avoiding the business data forwarding process of the central server, so that there is no problem of excessive load on the central server, that is, the transmission pressure of the business data will be shared on each business node in the blockchain network, so that in terms of the time spent in the transmission process of the business data, the business data queuing time will not be too long due to excessive load, thereby improving the transmission efficiency of the social application to transmit business data.
[0130] For easier understanding, see Figure 6 , Figure 6 1 is a schematic diagram of a scenario for obtaining a first digital certificate in a social client provided by an embodiment of the present application. Figure 6 In a possible embodiment, when the user object corresponding to the initiating service node logs in to the social client, the social client may display the following Figure 6The forward and backward component 61K, the refresh component 62K, the login address 63S corresponding to the social client, the certificate identification control 64Z corresponding to the first digital certificate, and the service display interface 65P as shown. Among them, the forward and backward component 61K can be used to perform jumps between the current interface and the historical interfaces associated with the current interface in the social client. For example, the user of the social client can trigger the forward and backward component 61K to jump from the current interface to the previous interface among the historical interfaces associated with the current interface. Specifically, the initiating service node can sort the interfaces in the historical interfaces associated with the current interface according to time. For example, the initiating node can arrange the interfaces with earlier jump times (i.e., the times to jump to the interfaces) in the front of the historical interface queue. For example, if the jump time of interface A (i.e., the time to jump to interface A) is "11:25" and the jump time of interface B (i.e., the time to jump to interface B) is "12:05", then interface A can be arranged in the front and interface B in the back in the historical interface queue. Optionally, the initiating service node can sort the interfaces in the historical interfaces associated with the current interface according to the degree of association with the current interface. Specifically, the initiating service node can set a specific association degree algorithm and sort the interfaces in the historical interfaces associated with the current interface according to the set association degree algorithm. Among them, the specific association degree algorithm is not limited here.
[0131] Among them, the refresh component 62K can be used to refresh the current interface of the social client. Further, the login address 63S corresponding to the social client can be used to display the address of the initiating service node in the social client. Among them, the certificate identification control 64Z corresponding to the first digital certificate can be used to indicate whether the initiating service node has obtained the first digital certificate. Specifically, the initiating service node can set a specified icon for display at the position of the certificate identification control 64Z corresponding to the first digital certificate. For example, the specified icon set by the initiating service node can be an icon such as a shield, a circle, a square, or a tick, and specific limitations are not imposed here. Further, if the initiating service node obtains the first digital certificate, the set specified icon is displayed at the position of the certificate identification control 64Z corresponding to the first digital certificate. Correspondingly, if the initiating service node does not obtain the first digital certificate, a blank icon can be displayed at the position of the certificate identification control 64Z corresponding to the first digital certificate. Optionally, the initiating service node can set other styles of icons (i.e., icons different from the specified icon) for display when the initiating service node does not obtain the first digital certificate. For example, if the initiating service node obtains the first digital certificate, a shield icon is displayed at the position of the certificate identification control 64Z corresponding to the first digital certificate; then correspondingly, if the initiating service node does not obtain the first digital certificate, a flower icon is displayed at the position of the certificate identification control 64Z corresponding to the first digital certificate. Further, the service display interface 65P is used to display the specific interface of the social client. Specifically, the service display interface 65P can include an information search control 661S and a first hot search display control 671K. For example, the first hot search display control 671K can display "Today's weather". Among them, the user of the social client can trigger the first hot search display control 671K to jump to the page displayed by the first hot search display control 671K. That is to say, if a shield icon is displayed at the position of the certificate identification control 64Z corresponding to the first digital certificate, it means that the page displayed by the first hot search display control 671K is a page with a digital certificate issued by a certification authority. Based on this, the user of the social client can safely jump to the page displayed by the first hot search display control 671K by triggering the first hot search display control 671K.
[0132] For ease of understanding, please refer to Figure 7 , Figure 7 is a timing diagram of sending a social addition request provided by an embodiment of the present application. In Figure 7 , the initiating service node, the certification authority, the consensus network, and the target service node can be determined as a service transaction network for executing service transactions. For ease of understanding, an embodiment of the present application takes the process of the service transaction network executing service transactions as an example for description. The data processing method can at least include the following steps S70-step S78:
[0133] Step S70, the initiating service node sends registration information to the certification authority.
[0134] Specifically, the initiating service node can perform information extraction processing on the association information of the usage object (i.e., the target object in the embodiments of the present application) stored in the social client to obtain the registration information. For the specific description of the association information of the usage object (i.e., the target object in the embodiments of the present application) stored in the social client, please refer to the above Figure 4 specific description of the association information of the usage object in step S201, which will not be elaborated here. Specifically, the registration information may include the target social identification information of the target object. For example, the target social identification information of the target object may refer to the name "Beautiful Little Cloud" entered by the target object by triggering the information input control of the social client. Optionally, the registration information may further include information related to the social theme of the social client. For example, if the social client is a job hunting client (including application software for job hunting), the social theme may refer to the job hunting theme. At this time, the information related to the job hunting theme may refer to the job position, the number of job positions (e.g., one person holds at least two positions), the personal information of the job hunter (such as the resume of the job hunter), or what the job hunter wants to say about the job position applied for, etc., and the specific content thereof is not limited here. Further, the initiating service node can send the registration information to the certification authority.
[0135] Step S71, the initiating service node obtains the first digital certificate corresponding to the target object.
[0136] Specifically, for the specific process of the initiating service node obtaining the first digital certificate corresponding to the target object, please refer to the above Figure 3 detailed description of the process of the initiating service node obtaining the first digital certificate corresponding to the target object in step S101, which will not be elaborated here.
[0137] Step S72, the initiating service node obtains the associated social identification information corresponding to the object to be added.
[0138] Specifically, for the specific process of the initiating service node obtaining the associated social identification information corresponding to the object to be added, please refer to the above Figure 3 detailed description of the process of the initiating service node obtaining the associated social identification information corresponding to the object to be added in step S102, which will not be elaborated here.
[0139] Step S73, the initiating service node encapsulates a social addition request.
[0140] Specifically, for the specific process of the initiating service node encapsulating the social addition request, please refer to the above Figure 3The detailed description of the process in step S103 where the initiating service node encapsulates the first digital certificate, associated social identification information, and social contract identification into a social addition request will not be elaborated here.
[0141] Step S74, the initiating service node sends a social addition request to the consensus network.
[0142] Specifically, for the specific process of the initiating service node sending a social addition request to the consensus network, please refer to the above Figure 3 The detailed description of the process in step S103 where the initiating service node sends the social addition request to the consensus network will not be elaborated here.
[0143] Step S75, the consensus network invokes the social smart contract.
[0144] Specifically, for the specific process of the consensus network invoking the social smart contract, please refer to the above Figure 5 The detailed description of the process in step S302 where the consensus network invokes the social smart contract through the social contract identification in the social addition request will not be elaborated here.
[0145] Step S76, the consensus network sends the social addition request.
[0146] Specifically, the consensus network can send the social addition request to the target service node so that after the target service node receives the social addition request, it generates a response result through the social addition request. Among them, the response result can refer to the response message for the social addition request. For example, the response can be successful (i.e., agreeing to the social addition request) or failed (i.e., rejecting the social addition request).
[0147] Step S77, the target service node sends the business execution result.
[0148] Specifically, after the target service node receives the social addition request, it can generate a response result through the social addition request. In addition, the target service node can generate a business execution result through the social addition request. Among them, the business execution result can include the operation result of the operations that have been performed on the social addition request in the target service node. For example, the business execution result can refer to that the social addition request has been stored in the target service node or a storage space with a preset fixed size has been reserved in the storage space of the target service node for the target object corresponding to the social addition request. It should be understood that the business execution result can include the response result. That is to say, the business execution result not only includes the response result but also includes the operation result of the operations that have been performed on the social addition request in the target service node. Further, the target service node can send the generated business execution result to the consensus network.
[0149] Step S78, the consensus network sends the service execution result to the initiating service node.
[0150] Specifically, for the specific process of the consensus network sending the service execution result to the initiating service node, please refer to the detailed description of the process of the consensus network sending the service execution result to the initiating service node in step S303 above. Figure 5 There is no need to repeat it here.
[0151] Optionally, in the embodiment of the present application, the initiating service node may send a social addition request to a peer network (or a peer-to-peer network). The social addition request may include a first digital certificate. For the specific process of obtaining the first digital certificate, please refer to Figure 3 the detailed process of the initiating service node obtaining the digital certificate in step S101 above and Figure 4 the detailed process of the initiating service node obtaining the digital certificate in steps S201 - S203 above. There is no need to repeat it here. Further, after receiving the social addition request sent by the initiating service node, the peer network may send the social addition request to the target service node through the business smart contract configured in the peer network, so that the target service node generates a service execution result and sends the generated service execution result to the peer network. Further, the initiating service node may receive the service execution result generated by the target service node sent by the peer network, and obtain the target node address and the second digital certificate corresponding to the target service node from the service execution result.
[0152] The embodiment of the present application obtains the first digital certificate corresponding to the target object by initiating a business node, which provides a perfect guarantee basis for the identity authentication of the target object. Further, by encapsulating the first digital certificate, the associated social identification information of the object to be added, and the social contract identification into a social adding request, the social adding request contains the identity authentication information. By authenticating the identity authentication information, the illegal intrusion of the object without identity authentication information can be reduced, and the security of the social adding request is improved. Further, by sending the social adding request to the consensus network, so that the consensus network calls the social smart contract through the social contract identification in the social adding request, the response result of the social adding request fed back by the target business node is obtained through the social smart contract; when the social adding request and the response result are both successfully agreed in the consensus network, and the response result is the consent to add message, the target node address and the second digital certificate corresponding to the target business node are obtained from the business execution result returned by the consensus network. Among them, the social friend adding process of the object to be added is carried out through the consensus network, and the security of the consensus network is used to ensure the security of the object to be added in the social friend adding process. Furthermore, through the first digital certificate, the second digital certificate and the target node address corresponding to the target business node, point-to-point communication is directly carried out between the initiating business node and the target business node, which avoids the process of forwarding in the central server when transmitting business data. In other words, even if the central server is illegally invaded, the business data will not be leaked, ensuring the security of the business data transmission process. Moreover, the first digital certificate, the second digital certificate and the target node address provide the initiating business node with the ability to communicate with the target business node. Further, after the consensus processing is successfully carried out through the consensus network, the embodiment of the present application can perform point-to-point communication based on the obtained second digital certificate and the target node address, avoiding the business data forwarding process of the central server, so that there is no problem of excessive load on the central server, that is, the transmission pressure of the business data will be shared on each business node in the blockchain network, so that in terms of the time spent in the transmission process of the business data, the business data queuing time will not be too long due to excessive load, thereby improving the transmission efficiency of the social application to transmit business data.
[0153] For further information, see Figure 8 , Figure 8 : is a schematic diagram of the structure of a data processing device provided in an embodiment of the present application. The above-mentioned data processing device may be a computer program (including program code) running in a computer device, for example, the data processing device is an application software; the device may be used to execute the corresponding steps in the method provided in an embodiment of the present application. Figure 8As shown in the figure, the data processing device 1 is applied to a business management platform. The data processing device 1 may include: a certificate acquisition module 11, an identification information acquisition module 13, a request encapsulation module 14, and an address acquisition module 15.
[0154] The certificate acquisition module 11 is used to initiate a business node to obtain a first digital certificate corresponding to a target object; the target object refers to an object logging in to a social client.
[0155] The identification information acquisition module 13 is used to obtain associated social identification information corresponding to an object to be added.
[0156] The request encapsulation module 14 is used to encapsulate the first digital certificate, the associated social identification information, and the social contract identification into a social addition request, and send the social addition request to a consensus network, so that the consensus network calls a social smart contract through the social contract identification in the social addition request, and obtains a response result of the social addition request feedback by a target business node through the social smart contract; the target business node refers to a business node corresponding to the associated social identification information.
[0157] The address acquisition module 15 is used to, when both the social addition request and the response result are successfully consensus in the consensus network and the response result is a message agreeing to add, obtain a target node address and a second digital certificate corresponding to the target business node from the business execution result returned by the consensus network; the first digital certificate, the second digital certificate, and the target node address are used to provide the initiating business node with the ability to communicate with the target business node.
[0158] Among them, for the specific functional implementation manners of the certificate acquisition module 11, the identification information acquisition module 13, the request encapsulation module 14, and the address acquisition module 15, reference may be made to steps S101 - S104 in the corresponding embodiment above, which will not be elaborated here. Figure 3 Corresponding to the steps S101 - step S104 in the corresponding embodiment, no further elaboration will be made here.
[0159] Please refer to Figure 8 again, among which, the certificate acquisition module 11 includes:
[0160] The identification information acquisition unit 111 is used to initiate a business node to obtain target social identification information corresponding to a target object logging in to a social client, generate a target private key, and a target public key corresponding to the target private key.
[0161] The public key sending unit 112 is used to send the target social identification information and the target public key to a certification authority, so that the certification authority performs identity authentication processing based on the target social identification information, and generates a first digital certificate based on the target public key when the identity authentication is passed.
[0162] The certificate receiving unit 113 is used to receive the first digital certificate sent by the certification authority.
[0163] Among them, the specific functional implementation manners of the identification information acquisition unit 111, the public key sending unit 112, and the certificate receiving unit 113 can be referred to the above Figure 3 corresponding step S102 in the embodiment, which will not be elaborated here.
[0164] Please refer to Figure 8 again. Among them, the certificate acquisition module 11 further includes:
[0165] A public key acquisition unit 114, configured to acquire the certificate service public key in the first digital certificate sent by the certification authority;
[0166] A public key comparison unit 115, configured to compare the certificate service public key with the target public key;
[0167] An encapsulation step execution unit 116, configured to, if the certificate service public key is the same as the target public key, continue to execute the step of encapsulating the first digital certificate, the associated social identification information, and the social contract identification into a social addition request;
[0168] A prompt information generation unit 117, configured to, if the certificate service public key is different from the target public key, generate an error prompt information; the error prompt information is used to instruct the initiating service node to regenerate a new first digital certificate through the certification authority.
[0169] Among them, the specific functional implementation manners of the public key acquisition unit 114, the public key comparison unit 115, the encapsulation step execution unit 116, and the prompt information generation unit 117 can be referred to the above Figure 3 corresponding step S102 in the embodiment, which will not be elaborated here.
[0170] Please refer to Figure 8 again. Among them, the certificate acquisition module 11 further includes:
[0171] A channel establishment unit 118, configured to establish a first communication channel with the target service node based on the target node address;
[0172] A communication request generation unit 119, configured to generate a social communication request, send the social communication request based on the first communication channel, so that the target service node receives the social communication request, generates a social communication response for the social communication request, and sends the social communication response to the initiating service node through the first communication channel;
[0173] A communication response receiving unit 120, configured to receive the social communication response sent by the target service node, and generate a session window with the target service node according to the social communication response;
[0174] A communication message generation unit 121, configured to generate a social communication message through the session window;
[0175] A communication message sending unit 122, configured to send a social communication message to a target service node through a first communication channel, a first digital certificate, and a second digital certificate.
[0176] Wherein, for the specific function implementation manners of the channel establishing unit 118, the communication request generating unit 119, the communication response receiving unit 120, the communication message generating unit 121, and the communication message sending unit 122, reference may be made to step S102 in the corresponding embodiment above, which will not be elaborated herein. Figure 3 Please refer to it again.
[0177] Please refer to it again. Figure 8 Among them, the communication message sending unit 122 includes:
[0178] A public key obtaining subunit 1221, configured to obtain a second service public key corresponding to the target service node in the second digital certificate;
[0179] An encryption subunit 1222, configured to encrypt the obtained social communication message based on the second service public key, and sign the encrypted social communication message through a target private key to obtain social signature information;
[0180] A signature information sending subunit 1223, configured to send the first digital certificate, the encrypted social communication message, and the social signature information to the target service node, so that the target service node verifies the social signature information through the certificate service public key in the first digital certificate. If the verification is successful, the target service node decrypts the encrypted social communication message through its corresponding private key to obtain the social communication message.
[0181] Wherein, for the specific function implementation manners of the public key obtaining subunit 1221, the encryption subunit 1222, and the signature information sending subunit 1223, reference may be made to step S104 in the corresponding embodiment above, which will not be elaborated herein. Figure 3 Please refer to it again.
[0182] Please refer to it again. Figure 8 Among them, the data processing device 1 further includes:
[0183] A notification information receiving module 16, configured to receive, when both the social addition request and the response result are successfully consensus in the consensus network and the response result is a reject addition message, a reject notification information generated by the target service node and sent by the consensus network; the reject notification information is used to notify the initiating service node that the addition of a friend by the target service node is rejected.
[0184] Wherein, for the specific function implementation manner of the notification information receiving module 16, reference may be made to step S205 in the corresponding embodiment above, which will not be elaborated herein. Figure 4 Please refer to it again.
[0185] Please refer to again Figure 8 , wherein, the address acquisition module 15 includes:
[0186] The identifier acquisition unit 151 is configured to acquire the address field identifier and the certificate field identifier in the service execution result;
[0187] The address field division unit 152 is configured to divide the service execution result based on the address field identifier to obtain the target node address corresponding to the target service node;
[0188] The certificate field division unit 153 is configured to divide the service execution result based on the certificate field identifier to obtain the second digital certificate corresponding to the target service node.
[0189] Among them, the specific functional implementation manners of the identifier acquisition unit 151, the address field division unit 152, and the certificate field division unit 153 can refer to step S104 in the corresponding embodiment above, and will not be elaborated here. Figure 3 Corresponding embodiments, and will not be elaborated here.
[0190] Further, please refer to Figure 9 , Figure 9 which is a schematic structural diagram of another data processing device provided by an embodiment of the present application. The above data processing device may be a computer program (including program code) running in a computer device. For example, the data processing device is an application software; the device may be used to execute the corresponding steps in the method provided by the embodiment of the present application. As Figure 9 shown, the data processing device 2 is applied to the service management platform, and the data processing device 2 may include a request receiving module 21, a contract calling module 22, and an execution result sending module 23.
[0191] The request receiving module 21 is configured to receive a social addition request sent by an initiating service node by a consensus node;
[0192] The contract calling module 22 is configured to call a social smart contract through the social contract identifier in the social addition request, and obtain a response result of the target service node for the social addition request through the social smart contract; the social addition request is obtained by encapsulating a first digital certificate, associated social identification information corresponding to the object to be added, and a social contract identifier by the initiating service node; the first digital certificate refers to the first digital certificate corresponding to the target object, and the target object refers to the object logging in to the social client included in the initiating service node; the target service node refers to the service node corresponding to the associated social identification information;
[0193] An execution result sending module 23, configured to, when both the social addition request and the response result are successfully consensus in the consensus network and the response result is an approval addition message, send the business execution result obtained at the time of successful consensus to the initiating service node, so that the initiating service node obtains the target node address and the second digital certificate corresponding to the target service node from the business execution result; the first digital certificate, the second digital certificate, and the target node address are used to provide the initiating service node with the ability to communicate with the target service node.
[0194] Among them, the specific function implementation manners of the request receiving module 21, the contract calling module 22, and the execution result sending module 23 can refer to the steps S301 - S303 in the above Figure 5 corresponding embodiments, and details are not described herein again.
[0195] Please refer to Figure 9 , among which, the contract calling module 22 includes:
[0196] A contract calling unit 221, configured to call a social smart contract through the social contract identifier in the social addition request, and broadcast a direct connection communication request message in the blockchain network through the social smart contract; the direct connection communication request message is used to request to establish a second communication channel with the target service node;
[0197] A request sending unit 222, configured to, when the second communication channel is successfully established, send the social communication addition request to the target service node based on the second communication channel, and obtain the response result feedback by the target service node for the social addition request through the second communication channel.
[0198] Among them, the specific function implementation manners of the contract calling unit 221 and the request sending unit 222 can refer to the step S302 in the above Figure 5 corresponding embodiments, and details are not described herein again.
[0199] Please refer to Figure 9 , among which, the data processing device 2 further includes:
[0200] An identity information detection module 24, configured to perform identity information detection on the first digital certificate in the social addition request by the consensus node to obtain the initiating identity information;
[0201] A result obtaining step execution module 25, configured to, if the initiating identity information corresponding to the first digital certificate exists in the legal object table of the consensus node, continue to execute the step of obtaining the response result feedback by the target service node for the social addition request through the social smart contract;
[0202] The failure information generation module 26 is configured to generate an authentication failure information if the initiating identity information corresponding to the first digital certificate does not exist in the legal object table of the consensus node; the authentication failure information is used to instruct the initiating service node to re - send the initial identity information for identity authentication to the authentication institution; the authentication institution is configured to perform identity authentication on the initial identity information.
[0203] Among them, the specific functional implementation manners of the identity information detection module 24, the result acquisition step execution module 25, and the failure information generation module 26 can refer to step S301 in the corresponding embodiment above, and will not be elaborated here. Figure 5 Corresponding to the steps in the corresponding embodiment, there is no need to repeat them here.
[0204] The embodiment of the present application obtains the first digital certificate corresponding to the target object by initiating a business node, which provides a perfect guarantee basis for the identity authentication of the target object. Further, by encapsulating the first digital certificate, the associated social identification information of the object to be added, and the social contract identification into a social adding request, the social adding request contains the identity authentication information. By authenticating the identity authentication information, the illegal intrusion of the object without identity authentication information can be reduced, and the security of the social adding request is improved. Further, by sending the social adding request to the consensus network, so that the consensus network calls the social smart contract through the social contract identification in the social adding request, the response result of the social adding request fed back by the target business node is obtained through the social smart contract; when the social adding request and the response result are both successfully agreed in the consensus network, and the response result is the consent to add message, the target node address and the second digital certificate corresponding to the target business node are obtained from the business execution result returned by the consensus network. Among them, the social friend adding process of the object to be added is carried out through the consensus network, and the security of the consensus network is used to ensure the security of the object to be added in the social friend adding process. Furthermore, through the first digital certificate, the second digital certificate and the target node address corresponding to the target business node, point-to-point communication is directly carried out between the initiating business node and the target business node, which avoids the process of forwarding in the central server when transmitting business data. In other words, even if the central server is illegally invaded, the business data will not be leaked, ensuring the security of the business data transmission process. Moreover, the first digital certificate, the second digital certificate and the target node address provide the initiating business node with the ability to communicate with the target business node. Further, after the consensus processing is successfully carried out through the consensus network, the embodiment of the present application can perform point-to-point communication based on the obtained second digital certificate and the target node address, avoiding the business data forwarding process of the central server, so that there is no problem of excessive load on the central server, that is, the transmission pressure of the business data will be shared on each business node in the blockchain network, so that in terms of the time spent in the transmission process of the business data, the business data queuing time will not be too long due to excessive load, thereby improving the transmission efficiency of the social application to transmit business data.
[0205] For further information, see Figure 10 , Figure 10 Schematic diagram of the structure of a computer device provided in an embodiment of the present application. Figure 10As shown in the figure, the computer device 1000 may include: at least one processor 1001, such as a CPU, at least one network interface 1004, a user interface 1003, a memory 1005, and at least one communication bus 1002. Among them, the communication bus 1002 is used to realize the connection and communication between these components. Among them, the user interface 1003 may include a display screen (Display) and a keyboard (Keyboard). Optionally, the network interface 1004 may include a standard wired interface and a wireless interface (such as a WI-FI interface). The memory 1005 may be a high-speed RAM memory or a non-volatile memory, such as at least one disk memory. Optionally, the memory 1005 may also be at least one storage device located far from the aforementioned processor 1001. As Figure 10 shown, the memory 1005, as a computer storage medium, may include an operating system, a network communication module, a user interface module, and a device control application program.
[0206] In Figure 10 the computer device 1000 shown in the figure, the network interface 1004 can provide network communication functions; the user interface 1003 is mainly used to provide an input interface for users; and the processor 1001 can be used to call the device control application program stored in the memory 1005 to achieve:
[0207] Initiate a service node to obtain a first digital certificate corresponding to a target object; the target object refers to the object logging in to the social client; obtain the associated social identification information corresponding to the object to be added; encapsulate the first digital certificate, the associated social identification information, and the social contract identifier into a social addition request, and send the social addition request to the consensus network, so that the consensus network calls the social smart contract through the social contract identifier in the social addition request, and obtains the response result of the target service node for the social addition request through the social smart contract; the target service node refers to the service node corresponding to the associated social identification information; when both the social addition request and the response result are successfully consensus in the consensus network, and the response result is an approval message for addition, obtain the target node address and the second digital certificate corresponding to the target service node from the service execution result returned by the consensus network; the first digital certificate, the second digital certificate, and the target node address are used to provide the initiating service node with the ability to communicate with the target service node.
[0208] In Figure 10 the computer device 1000 shown in the figure, the network interface 1004 can provide network communication functions; the user interface 1003 is mainly used to provide an input interface for users; and the processor 1001 can be used to call the device control application program stored in the memory 1005 to achieve:
[0209] The consensus node receives a social addition request sent by the initiating service node; calls the social smart contract through the social contract identifier in the social addition request, and obtains the response result of the target service node for the social addition request through the social smart contract; the social addition request is obtained by the initiating service node encapsulating the first digital certificate, the associated social identifier information corresponding to the object to be added, and the social contract identifier; the first digital certificate refers to the first digital certificate corresponding to the target object, and the target object refers to the object that logs in to the social client included in the initiating service node; the target service node refers to the service node corresponding to the associated social identifier information; when both the social addition request and the response result are successfully consensus in the consensus network, and the response result is an approval message for addition, the service execution result obtained at the time of successful consensus is sent to the initiating service node, so that the initiating service node obtains the target node address and the second digital certificate corresponding to the target service node from the service execution result; the first digital certificate, the second digital certificate, and the target node address are used to provide the initiating service node with the ability to communicate with the target service node.
[0210] It should be understood that the computer device 1000 described in the embodiments of the present application can execute the description of the data processing method in the corresponding embodiments described above Figure 2 、 Figure 3 、 Figure 4 、 Figure 5 、 Figure 6 and Figure 7 as well as the description of the data processing method in the corresponding embodiments described above Figure 8 and the description of the data processing device 1 in the corresponding embodiments described above Figure 9 and the description of the data processing device 2 in the corresponding embodiments described above, which will not be elaborated here. In addition, the description of the beneficial effects of using the same method will not be elaborated either.
[0211] The embodiments of the present application further provide a computer-readable storage medium, which stores a computer program, and the computer program includes program instructions. When the program instructions are executed by a processor, they implement Figure 2 、 Figure 3 、 Figure 4 、 Figure 5 、 Figure 6 and Figure 7 the data processing methods provided in each step in Figure 2 、 Figure 3 、 Figure 4 、 Figure 5 、 Figure 6 and Figure 7 respectively. For the specific implementation methods, reference can be made to the implementation methods provided in each step in the above
[0212] The above computer-readable storage medium may be the data processing device provided in any of the foregoing embodiments or the internal storage unit of the above computer device, such as the hard disk or memory of the computer device. The computer-readable storage medium may also be an external storage device of the computer device, such as a plug-in hard disk, a smart media card (SMC), a secure digital (SD) card, a flash card, etc. equipped on the computer device. Further, the computer-readable storage medium may also include both the internal storage unit and the external storage device of the computer device. The computer-readable storage medium is used to store the computer program and other programs and data required by the computer device. The computer-readable storage medium may also be used to temporarily store the data that has been output or is to be output.
[0213] An embodiment of the present application also provides a computer program product or a computer program. The computer program product or the computer program includes computer instructions, and the computer instructions are stored in a computer-readable storage medium. The processor of the computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device can execute the descriptions of the data processing methods in the corresponding embodiments described above Figure 2 , Figure 3 , Figure 4 , Figure 5 , Figure 6 and Figure 7 . Details are not described herein again. In addition, the description of the beneficial effects of adopting the same method is not repeated either.
[0214] The terms "including" and any variations thereof in the specification, claims and drawings of the embodiments of the present application are intended to cover non-exclusive inclusion. For example, a process, method, device, product or equipment that includes a series of steps or units is not limited to the listed steps or modules, but may optionally further include steps or modules not listed, or may optionally further include other step units inherent to these processes, methods, devices, products or equipment.
[0215] Those of ordinary skill in the art can realize that the units and algorithm steps of the examples described in combination with the embodiments disclosed herein can be implemented by electronic hardware, computer software, or a combination of the two. To clearly illustrate the interchangeability of hardware and software, the components and steps of the examples have been generally described according to functions in the above description. Whether these functions are executed in a hardware or software manner depends on the specific application and design constraints of the technical solution. Professional technicians can use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of the present application.
[0216] The methods and related devices provided in the embodiments of this application are described with reference to the method flowcharts and / or structural schematic diagrams provided in the embodiments of this application. Specifically, each process and / or block of the method flowchart and / or structural schematic diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to the processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing devices to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing devices generate a device for implementing the functions specified in one process Figure 1 or multiple processes and / or structural schematic Figure 1 or multiple blocks. These computer program instructions can also be stored in a computer-readable memory that can direct a computer or other programmable data processing device to work in a specific manner, so that the instructions stored in the computer-readable memory generate a manufactured article including an instruction device, and the instruction device implements the functions specified in one process Figure 1 or multiple processes and / or structural schematic Figure 1 or multiple blocks. These computer program instructions can also be loaded onto a computer or other programmable data processing device, so that a series of operation steps are executed on the computer or other programmable device to generate a computer-implemented process. Thus, the instructions executed on the computer or other programmable device provide steps for implementing the functions specified in one process Figure 1 or multiple processes and / or structural schematic one block or multiple blocks.
[0217] The above-disclosed are only the preferred embodiments of this application. Of course, the scope of rights of this application cannot be limited thereby. Therefore, equivalent changes made according to the claims of this application still fall within the scope covered by this application.
Claims
1. A blockchain-based data processing method, characterized in that, The method is executed by an initiating service node in a blockchain network, and the initiating service node includes a social client. The method includes: The initiating service node obtains a first digital certificate corresponding to a target object, where the target object refers to an object that logs in to the social client; Obtain associated social identification information corresponding to the object to be added; Encapsulate the first digital certificate, the associated social identification information, and a social contract identifier into a social addition request, and send the social addition request to a consensus network, so that the consensus network invokes a social smart contract through the social contract identifier in the social addition request, and obtains a response result of the target service node for the social addition request through the social smart contract. The target service node refers to the service node corresponding to the associated social identification information; When both the social addition request and the response result are successfully consensus in the consensus network, and the response result is a message agreeing to add, obtain the target node address and a second digital certificate corresponding to the target service node from the business execution result returned by the consensus network. The first digital certificate, the second digital certificate, and the target node address are used to provide the initiating service node with the ability to communicate with the target service node.
2. The method according to claim 1, characterized in that, The initiating service node obtaining the first digital certificate corresponding to the target object includes: The initiating service node obtains target social identification information corresponding to a target object that logs in to the social client, generates a target private key and a target public key corresponding to the target private key; Send the target social identification information and the target public key to a certification authority, so that the certification authority performs identity authentication processing based on the target social identification information, and generates a first digital certificate based on the target public key when the identity authentication is passed; Receive the first digital certificate sent by the certification authority.
3. The method according to claim 2, characterized in that, The method further includes: Obtain the certificate service public key in the first digital certificate sent by the certification authority; Compare the certificate service public key with the target public key; If the certificate service public key is the same as the target public key, continue to execute the step of encapsulating the first digital certificate, the associated social identification information, and the social contract identifier into a social addition request; If the certificate service public key is different from the target public key, generate an error prompt message. The error prompt message is used to instruct the initiating service node to regenerate a new first digital certificate through the certification authority.
4. The method according to claim 2, characterized in that, The method further includes: Based on the target node address, establish a first communication channel with the target service node; Generate a social communication request, and send the social communication request based on the first communication channel, so that the target service node receives the social communication request, generates a social communication response for the social communication request, and sends the social communication response to the initiating service node through the first communication channel; Receive the social communication response sent by the target service node, and generate a session window with the target service node according to the social communication response; Generate a social communication message through the session window, and send the social communication message to the target service node through the first communication channel, the first digital certificate, and the second digital certificate.
5. The method according to claim 4, characterized in that, The step of sending the social communication message to the target service node through the first communication channel, the first digital certificate, and the second digital certificate includes: Obtain the second service public key corresponding to the target service node in the second digital certificate; Encrypt the obtained social communication message based on the second service public key, and sign the encrypted social communication message with the target private key to obtain social signature information; Send the first digital certificate, the encrypted social communication message, and the social signature information to the target service node, so that the target service node verifies the social signature information with the certificate service public key in the first digital certificate. If the verification is successful, decrypt the encrypted social communication message with the private key corresponding to the target service node to obtain the social communication message.
6. The method according to claim 1, characterized in that, The method further includes: When both the social addition request and the response result are successfully consensus in the consensus network, and the response result is a rejection addition message, receive the rejection notice information generated by the target service node sent by the consensus network; the rejection notice information is used to notify the initiating service node that the target service node has rejected adding a friend.
7. The method according to claim 1, characterized in that, The step of obtaining the target node address and the second digital certificate corresponding to the target service node from the business execution result returned by the consensus network includes: Obtain the address field identifier and the certificate field identifier in the business execution result; Perform address field division on the business execution result based on the address field identifier to obtain the target node address corresponding to the target service node; Perform certificate field division on the business execution result based on the certificate field identifier to obtain the second digital certificate corresponding to the target service node.
8. A blockchain-based data processing method, characterized in that, The method is executed by a consensus node in the consensus network, and the method includes: The consensus node receives a social addition request sent by an initiating service node; Invoke a social smart contract through the social contract identifier in the social addition request, and obtain a response result for the social addition request feedback by the target service node through the social smart contract; the social addition request is obtained by the initiating service node encapsulating a first digital certificate, associated social identifier information corresponding to the object to be added, and a social contract identifier; the first digital certificate refers to the first digital certificate corresponding to the target object, and the target object refers to the object logging in to the social client included in the initiating service node; the target service node refers to the service node corresponding to the associated social identifier information. When both the social addition request and the response result are successfully consensus in the consensus network, and the response result is an approval message for addition, the business execution result obtained at the time of successful consensus is sent to the initiating business node, so that the initiating business node obtains the target node address and the second digital certificate corresponding to the target business node from the business execution result; the first digital certificate, the second digital certificate, and the target node address are used to provide the initiating business node with the ability to communicate with the target business node.
9. The method according to claim 8, wherein The method of obtaining, by the social smart contract, the response result of the target business node for the social addition request through the social contract identifier in the social addition request includes: Calling a social smart contract through the social contract identifier in the social addition request, and broadcasting a direct connection communication request message in the blockchain network through the social smart contract; the direct connection communication request message is used to request the establishment of a second communication channel with the target business node; When the second communication channel is successfully established, sending the social communication addition request to the target business node based on the second communication channel, and obtaining, through the second communication channel, the response result of the target business node for the social addition request.
10. The method according to claim 8, wherein The method further includes: The consensus node performs identity information detection on the first digital certificate in the social addition request to obtain initiating identity information; If the initiating identity information corresponding to the first digital certificate exists in the legitimate object table of the consensus node, the step of obtaining, by the social smart contract, the response result of the target business node for the social addition request is continued; If the initiating identity information corresponding to the first digital certificate does not exist in the legitimate object table of the consensus node, an authentication failure message is generated; the authentication failure message is used to instruct the initiating business node to resend the initial identity information for identity authentication to the authentication institution; the authentication institution is used to perform identity authentication on the initial identity information.
11. A data processing device based on a blockchain, wherein The data processing device includes: A certificate acquisition module, configured to acquire, by the initiating business node, a first digital certificate corresponding to a target object; the target object refers to the object logged in to the social client; An identification information acquisition module, configured to acquire associated social identification information corresponding to the object to be added; A request encapsulation module, configured to encapsulate the first digital certificate, the associated social identification information, and the social contract identifier into a social addition request, and send the social addition request to the consensus network, so that the consensus network calls a social smart contract through the social contract identifier in the social addition request, and obtains, through the social smart contract, the response result of the target business node for the social addition request; the target business node refers to the business node corresponding to the associated social identification information. An address acquisition module, configured to, when both the social addition request and the response result are successfully consensus in the consensus network and the response result is an approval addition message, acquire a target node address and a second digital certificate corresponding to the target service node from the service execution result returned by the consensus network; the first digital certificate, the second digital certificate, and the target node address are used to provide the initiating service node with the ability to communicate with the target service node.
12. A data processing device based on a blockchain, wherein The data processing device includes: A request receiving module, configured to receive a social addition request sent by an initiating service node by the consensus node; A contract invocation module, configured to invoke a social smart contract through the social contract identifier in the social addition request, and obtain a response result of the target service node for the social addition request through the social smart contract; the social addition request is obtained by the initiating service node encapsulating a first digital certificate, associated social identifier information corresponding to the object to be added, and a social contract identifier; the first digital certificate refers to the first digital certificate corresponding to the target object, and the target object refers to the object logged in to the social client included in the initiating service node; the target service node refers to the service node corresponding to the associated social identifier information; An execution result sending module, configured to, when both the social addition request and the response result are successfully consensus in the consensus network and the response result is an approval addition message, send the service execution result obtained when the consensus is successful to the initiating service node, so that the initiating service node acquires a target node address and a second digital certificate corresponding to the target service node from the service execution result; the first digital certificate, the second digital certificate, and the target node address are used to provide the initiating service node with the ability to communicate with the target service node.
13. A computer device based on a blockchain, wherein It includes: A processor, a memory, and a network interface; The processor is connected to the memory and the network interface. Among them, the network interface is used to provide data communication functions, the memory is used to store computer programs, and the processor is used to call the computer programs so that the computer device executes the method according to any one of claims 1-10.
14. A computer-readable storage medium based on a blockchain, wherein A computer-readable storage medium stores a computer program, and the computer program is suitable for being loaded and executed by a processor so that a computer device with a processor executes the method according to any one of claims 1-10.
15. A computer program product based on a blockchain, wherein A computer program product includes a computer program, the computer program is stored in a computer-readable storage medium, and the computer program is suitable for being read and executed by a processor so that a computer device with a processor implements the steps of the method according to any one of claims 1-10.
Citation Information
Cited By
Alliance chain automatic admission treatment method and system and medium
CN120583096A
A consortium chain automatic access governance method and system and a medium
CN120583096B