Data processing method and device based on block chain, equipment, medium and product

By using blockchain-based data processing methods to obtain authorization credentials for social accounts and establish a connection between blockchain addresses and social accounts, the problem of migrating social relationships from web2 networks to web3 networks is solved, thereby improving the social interactivity and user experience of web3 networks.

CN118646757APending Publication Date: 2024-09-13TENCENT TECHNOLOGY (SHENZHEN) CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202310261138.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-03-13
Publication Date
2024-09-13

AI Technical Summary

Technical Problem

When users migrate from a web2 network to a web3 network, they find it difficult to migrate their social relationship networks from the web2 network to the web3 network, resulting in a fragmentation of the social relationship network.

Method used

By using blockchain-based data processing methods, authorization credentials for social accounts are obtained, the authorization interface of the application platform is called to obtain social network information, a list of blockchain addresses is generated, and login and authorization are performed in the decentralized application client to establish the association between blockchain addresses and social accounts, thereby realizing the migration of social relationships.

Benefits of technology

It enables users to migrate their social relationships from the Web2 network to the Web3 network, meeting more social business needs and improving social interactivity and user experience in the Web3 network.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118646757A
    Figure CN118646757A
Patent Text Reader

Abstract

The invention provides a data processing method and device based on a block chain, equipment, a medium and a product. The method comprises: in response to an authorized login request initiated for a social account of a target object, obtaining an authorization certificate corresponding to the social account, the authorization certificate being used for performing authority verification when requesting data synchronization from an application platform of a target social application corresponding to the social account; calling an authorization interface of the application platform to initiate a data synchronization request carrying an authorization certificate, wherein the data synchronization request is used for requesting to obtain social network information of the target object in the target social application; receiving social network information returned by the application platform in response to the data synchronization request, and obtaining a block chain address list associated with the target object based on an associated account included in the social network information; and outputting a block chain address list associated with the target object. The method supports the migration of the social relation network, and can meet more business requirements in the block chain network.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of blockchain technology, and in particular to a blockchain-based data processing, a blockchain-based data processing device, a computer device, a computer-readable storage medium, and a computer program product. Background Art

[0002] At present, with the widespread deployment of various decentralized applications on the blockchain, the activities of off-chain users on the blockchain are increasing. Currently, users have established relatively mature social relationship networks in social application platforms in the web2 (second-generation Internet) network, such as Twitter, Facebook, and Discord. When users enter the web3 (third-generation Internet) platform, their social relationship networks in the web2 network and the web3 network are separated, and it is difficult for users to establish their own social relationship networks in the web3 network. Summary of the invention

[0003] The embodiments of the present application propose a blockchain-based data processing method, device, equipment, medium and product, which support migrating the social network information of the target object in the target social application in the web2 network to the web3 blockchain network, thereby meeting more business needs in the blockchain network.

[0004] On the one hand, the embodiment of the present application proposes a data processing method based on blockchain, which includes:

[0005] In response to an authorization login request initiated for the target object's social account, obtaining an authorization credential corresponding to the social account, the authorization credential being used to perform permission verification when requesting data synchronization from an application platform of a target social application corresponding to the social account;

[0006] Calling the authorization interface of the application platform to initiate a data synchronization request carrying the authorization credentials, where the data synchronization request is used to request to obtain the social network information of the target object in the target social application;

[0007] Receiving social network information returned by the application platform in response to the data synchronization request, and obtaining a blockchain address list associated with the target object based on the associated account included in the social network information, wherein the blockchain address list records the associated account and the blockchain address corresponding to the associated account;

[0008] Outputs a list of blockchain addresses associated with the target object.

[0009] On the one hand, the embodiment of the present application proposes a data processing method based on blockchain, which includes:

[0010] In response to an address login request initiated by a resource client of a target object, the address login request is used to request login in a decentralized application client based on the blockchain address of the target object;

[0011] After detecting a successful login based on the target object's blockchain address, an authorization login request is generated, and the authorization login request is initiated for the target object's social account in the target social application;

[0012] Sending an authorization login request to the backend server, the authorization login request is used to trigger the backend server to obtain a blockchain address list based on the authorization credentials of the social account, the blockchain address list records the associated accounts included in the social network information and the blockchain addresses corresponding to the associated accounts; the social network information is obtained from the application platform of the target social application based on the authorization credentials corresponding to the social account of the target object;

[0013] Receive the blockchain address list returned by the backend server.

[0014] On the one hand, an embodiment of the present application provides a data processing device based on blockchain, the device comprising:

[0015] A response unit, configured to respond to an authorization login request initiated for a target object's social account, and obtain an authorization credential corresponding to the social account, the authorization credential being used to perform permission verification when requesting data synchronization from an application platform of a target social application corresponding to the social account;

[0016] A processing unit, configured to call an authorization interface of an application platform to initiate a data synchronization request carrying an authorization credential, wherein the data synchronization request is used to request to obtain social network information of a target object in a target social application;

[0017] A receiving unit is used to receive the social network information returned by the application platform in response to the data synchronization request, and obtain a blockchain address list associated with the target object based on the associated account included in the social network information, wherein the blockchain address list records the associated account and the blockchain address corresponding to the associated account;

[0018] The processing unit is further configured to output a list of blockchain addresses associated with the target object.

[0019] In a possible implementation, before the response unit responds to the authorization login request initiated for the target object's social account, the processing unit is further configured to perform the following operations:

[0020] Receive an address login request for a target object, where the address login request is generated based on the blockchain address of the target object after a login request is made in a decentralized application client;

[0021] In response to the address login request, generate a login random parameter and return the login random parameter to the decentralized application client;

[0022] Among them, the login random parameter is used to trigger the decentralized application client to request the resource client of the target object to obtain the login signature data for the target object, and the login signature data is used to complete the login operation of the target object in the decentralized application client.

[0023] In a possible implementation, the processing unit is further configured to perform the following operations:

[0024] Receive the login signature data sent by the decentralized application client. The login signature data is determined by the target object's resource client after signing the target object's blockchain address and login random parameters;

[0025] Verify the login signature data. If the verification result is successful, it is determined that the blockchain address of the target object is successfully logged in in the decentralized application client.

[0026] Among them, after determining that the target object has successfully logged in, a first interaction parameter and a second interaction parameter are generated, and the first interaction parameter and the second interaction parameter are used for verification processing during the data interaction between the decentralized application client and the background server.

[0027] In a possible implementation, the processing unit is further configured to perform the following operations:

[0028] Obtaining the authorization code for the decentralized application client, which is generated by the application platform after detecting the authorization processing operation performed by the target object on the decentralized application client;

[0029] The authorization code is sent to the application platform. The authorization code is used to trigger the application platform to generate authorization credentials corresponding to the target object's social account after the authorization code is verified.

[0030] In a possible implementation, the authorization credential includes an access token, and the access token has a validity period; the processing unit is further configured to perform any one of the following steps:

[0031] If the access token is within the validity period, a data synchronization request is generated based on the access token, and the data synchronization request is sent to the application platform of the target social application, where the data synchronization request is used to trigger the acquisition of the social network information corresponding to the target object in the target social application;

[0032] If the access token is not within the validity period, a feedback message is generated and sent to the decentralized application client. The feedback message is used to trigger the target object to initiate authorization login again in the decentralized application client to regenerate new authorization credentials.

[0033] In a possible implementation, the authorization credential includes an access token and an update token, and the validity period of the update token is greater than the validity period of the access token; the processing unit is further configured to perform the following operations:

[0034] If the access token is not valid and the update token is valid, call the token update interface to update the update token to generate a new access token, and send the new access token to the decentralized application client; or,

[0035] If the access token is not valid and the update token is not valid, a feedback message is generated and sent to the decentralized application client. The feedback message is used to trigger the target object to initiate authorization login again in the decentralized application client to regenerate new authorization credentials.

[0036] In a possible implementation, the processing unit obtains a blockchain address list based on the associated accounts included in the social network information, and performs the following operations:

[0037] Obtain a mapping relationship table stored in the backend database, where the mapping relationship table is used to record the mapping relationship between social accounts and blockchain addresses;

[0038] According to the mapping relationship table, query the blockchain addresses corresponding to each associated account in the social network information;

[0039] Generate a list of blockchain addresses associated with the target object based on the queried blockchain addresses.

[0040] In a possible implementation, the processing unit is further configured to perform the following operations:

[0041] In response to a business request initiated by a target object in a decentralized application client, the business request is generated based on a business operation performed by a social account of the target object in a target social application;

[0042] Generate resource transfer transaction data based on the list of blockchain addresses associated with the target object, the resource transfer transaction data including a target resource amount of the digital resource to be transferred to the blockchain address of the target associated object of the target object;

[0043] The resource transfer transaction data is processed on the chain, wherein the on-chain processing includes: transferring the digital resources of the target resource quantity to the blockchain address of the target associated object of the target object.

[0044] On the one hand, an embodiment of the present application provides a data processing device based on blockchain, the device comprising:

[0045] A processing unit, configured to respond to an address login request initiated by a resource client of a target object, wherein the address login request is used to request login in a decentralized application client based on a blockchain address of the target object;

[0046] A processing unit, configured to generate an authorization login request after detecting a successful login based on the blockchain address of the target object, wherein the authorization login request is initiated for the social account of the target object in the target social application;

[0047] A sending unit, configured to send an authorization login request to a backend server, wherein the authorization login request is used to trigger the backend server to obtain a blockchain address list based on the authorization credentials of the social account, wherein the blockchain address list records the associated accounts included in the social network information and the blockchain addresses corresponding to the associated accounts; the social network information is obtained from the application platform of the target social application based on the authorization credentials corresponding to the social account of the target object;

[0048] The receiving unit is used to receive the blockchain address list returned by the backend server.

[0049] In a possible implementation, a communication connection is established between the resource client and the decentralized application client based on the relay server; before responding to the address login request initiated by the resource client, the processing unit is further configured to perform the following operations:

[0050] Send a client topic message to the relay server. The client topic message carries the client ID of the decentralized application client. The client topic message is used to indicate the initiation of a login request.

[0051] Receiving a resource topic message sent by a relay server, where the resource topic message is generated by a resource client after receiving a client topic message forwarded by the relay server and completing a login process;

[0052] Parse resource topic messages and establish a communication connection with the resource client of the target object.

[0053] In a possible implementation, after responding to the address login request initiated by the resource client of the target object, the processing unit is further configured to perform the following operations:

[0054] Receive the random login parameter sent by the backend server, which is generated by the backend server after receiving the address login request;

[0055] Send the login random parameters to the resource client of the target object;

[0056] Send the login signature data sent by the resource client to the backend server. The login signature data is determined by the target object's resource client after signing the target object's blockchain address and login random parameters;

[0057] If the second interaction parameter sent by the backend server is received, it is determined that the blockchain address of the target object is successfully logged in to the decentralized application client.

[0058] In a possible implementation, the processing unit is further configured to perform the following operations:

[0059] In response to the authorization access request initiated by the target object, sending the authorization access request to the application platform of the target social application corresponding to the social account of the target object;

[0060] Receive the authorization code returned by the application platform. The authorization code is generated by the application platform for the decentralized application client after detecting the authorization processing operation of the target object;

[0061] The authorization code is sent to the backend server, so that the backend server obtains the authorization credentials of the target object's social account based on the authorization code.

[0062] On the one hand, an embodiment of the present application provides a computer device, which includes a memory and a processor, wherein the memory stores a computer program, and when the computer program is executed by the processor, the processor executes the above-mentioned blockchain-based data processing method.

[0063] On the one hand, an embodiment of the present application provides a computer-readable storage medium, which stores a computer program. When the computer program is read and executed by a processor of a computer device, the computer device executes the above-mentioned blockchain-based data processing method.

[0064] On the one hand, the embodiments of the present application provide a computer program product or a computer program, which includes computer instructions stored in a computer-readable storage medium. The 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 above-mentioned blockchain-based data processing method.

[0065] In an embodiment of the present application, the backend server of the decentralized application client can respond to an authorization login request initiated for the social account of the target object, obtain the authorization credential corresponding to the social account, and the authorization credential is used to perform permission verification when requesting data synchronization from the application platform of the target social application corresponding to the social account. The authorization login request is generated after the decentralized application client successfully logs in based on the blockchain address of the target object; then the authorization interface of the application platform can be called to initiate a data synchronization request carrying the authorization credential, and the data synchronization request is used to request to obtain the social network information of the target object in the target social application; next, the social network information returned by the application platform in response to the data synchronization request is received, and based on the associated account included in the social network information, a blockchain address list is obtained, and the blockchain address list records the associated account and the blockchain address corresponding to the associated account; finally, the blockchain address list can be output. It can be seen that after the application successfully logs in to the decentralized application client based on the blockchain address of the target object, the background server can establish an association relationship between the blockchain address of the target object and the social account, and then the user can obtain the contact list of other social applications after authorization. Based on the mapping relationship between the account and the address stored in the background, the obtained contact list is converted into an on-chain address list, and then the network relationship constructed between the on-chain address list and the user's blockchain address is the network relationship in the web3 network, thereby realizing the migration of the user's social relationship in the web2 network to the social relationship in the web3 network, which can meet more business needs in social scenarios. BRIEF DESCRIPTION OF THE DRAWINGS

[0066] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present application. For ordinary technical objects in this field, other drawings can be obtained based on these drawings without paying creative labor.

[0067] Figure 1 This is a schematic diagram of the principle of a data processing solution based on blockchain provided in an embodiment of the present application;

[0068] Figure 2a It is a structural diagram of a blockchain system provided by an embodiment of the present application;

[0069] Figure 2b This is a schematic diagram of the structure of a blockchain provided by an embodiment of the present application;

[0070] Figure 3 This is a schematic diagram of the architecture of a blockchain-based data processing system provided in an embodiment of the present application;

[0071] Figure 4It is a flowchart of a data processing method based on blockchain provided in an embodiment of the present application;

[0072] Figure 5 It is a schematic diagram of an open authorization process provided in an embodiment of the present application;

[0073] Figure 6 It is a flowchart of another data processing method based on blockchain provided in an embodiment of the present application;

[0074] Figure 7 It is a flow chart of establishing a communication connection between a resource client and a decentralized application client provided in an embodiment of the present application;

[0075] Figure 8 This is a schematic diagram of a scenario of user authorization login provided in an embodiment of the present application;

[0076] Fig. 9 This is a schematic diagram of an interactive process of a blockchain-based data processing method provided in an embodiment of the present application;

[0077] Fig.10 It is a structural schematic diagram of a blockchain-based data processing device provided in an embodiment of the present application;

[0078] Fig.11 It is a structural schematic diagram of another blockchain-based data processing device provided in an embodiment of the present application;

[0079] Fig.12 It is a structural diagram of a computer device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0080] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present application. Instead, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the appended claims.

[0081] The present application provides a data processing scheme based on blockchain, which supports migrating the social network relationship built by the user in web2 to the user in the web3 network, so as to meet more business needs in social application scenarios and improve the social interactivity in the network. Specifically, firstly, based on the resource client logging in to the decentralized application client, the user logs in and performs the Oauth authorization (open authorization) process of the social account on the decentralized application page. The user authorizes his social account and authorizes the backend server to access the user's social network information (such as contact list information). The decentralized application client obtains the user's social network information and binds it to the corresponding blockchain address. Then, the backend service obtains the user's social account contact list information through the authorization credential of the user's social account, searches for the relevant blockchain address bound in the backend system through the contact list, and pushes the corresponding relationship between the social account and the address to the user, and finally achieves the transfer of the user's social relationship network in the web2 network to the web3 network, which can meet more social needs, thereby improving the user experience of decentralized applications in the web3 network.

[0082] See also Figure 1 , Figure 1 Schematic diagram of the principle of a data processing solution based on blockchain provided in the embodiment of the present application. Figure 1 As shown, the general principle of the complete process of blockchain-based data processing provided by this application is as follows:

[0083] 1. The decentralized application (DAPP) client (hereinafter referred to as the Dapp front end) sends a session request to the walletconnect bridge end (relay server). The session request is used to request to establish a socket connection with the relay server. Specifically, the Dapp front end initiates a DappclientID subscription request to the bridge end (detecting the Topic will get a message sent to the Dapp front end), and a Dapp topic subscription request (detecting the Topic will get a login request from the Dapp front end), and initiates a login request to the bridge end with the Topic being the Dapp topic.

[0084] 2. The Dapp frontend displays the login QR code (which may include the Dapp topic, relay server address, and password) to the wallet (resource client).

[0085] 3. The user scans the QR code to authorize login, so that the resource client establishes a socket connection with the relay server, and then generates a resource topic message wallet PeerID (detecting this Topic can obtain the message sent to the resource client). The resource client subscribes to the Dapp Topic message (client topic message) and the Wallet PeerID message (resource topic message) at the same time. The resource client detects the Dapp login request sent by the relay server through the Dapp Topic, and then after the authorization operation of login consent or rejection, it can send a message with the Topic of Dapp ClientID, and pass the processing result and the information of WalletPeerID to the Dapp front end.

[0086] 4. The Dapp front-end receives the login result message returned by the resource client. If it is determined that the resource client agrees to log in, a communication connection is established between the resource client and the Dapp front-end. If the Dapp front-end needs to send a message to the resource client later, it can send information with the Topic of Wallet PeerID; if the resource client needs to send a message to the Dapp front-end, it can send information with the Topic of Dapp ClientID. The Dapp front-end Topic and the resource client Topic together constitute the Session.

[0087] The above steps 1-4 are the general principles for establishing a communication connection between the Dapp front-end and the resource client. Next, you can perform authorization login on the Dapp front-end based on the resource client. The specific authorization login process is as follows:

[0088] 5. The Dapp front-end sends an authorization login request to the Dapp back-end server. The authorization login request is initiated for the social account corresponding to the target object in the target social application, and the authorization login request is generated based on the blockchain address of the target object after the decentralized application client successfully logs in.

[0089] 6. The Dapp backend server returns the login nonce random value to the Dapp frontend.

[0090] 7. The Dapp front-end returns the nonce random value to the resource client, and requests the resource client to log in and sign the address + nonce random value, thereby obtaining the login signature data returned by the resource client.

[0091] 8. The Dapp frontend returns the login signature data to the Dapp backend server.

[0092] 9. The Dapp backend server verifies the login signature data. If the verification is successful, a session (first interaction parameter) and a cookie (second interaction parameter) can be generated. The first interaction parameter is stored locally by the backend server.

[0093] 10. The Dapp backend server returns cookie information to the Dapp frontend, and the cookie data is saved by the user client (e.g., the Dapp frontend).

[0094] The above steps 5-10 refer to the user logging in to the Dapp front-end based on the blockchain address, thereby verifying whether the currently logged-in blockchain address actually belongs to the current user.

[0095] 11. The Dapp front-end initiates a third-party application authorization login request, which is initiated for the target object's corresponding social account in the target social application (such as: Twitter, Google, Stream and other third-party applications). When the user's authorization is passed, the Dapp back-end server establishes a binding relationship between the user's blockchain address and the social account.

[0096] 12. The Dapp backend server requests the user's contact list information in the third-party application through the API interface (Application, Programming Interface) of the third-party application. The contact list information includes the associated account of at least one associated object associated with the target object.

[0097] 13. The Dapp backend server stores a mapping table between each user’s blockchain address and social account. Based on the mapping table, the acquired contact list can be converted into a list of associated addresses associated with the user, and the list of associated addresses can be pushed to the Dapp front end, thereby realizing the migration of social network relationships from the web2 network to the web3 network.

[0098] 14. It should be understood that the backend server can provide a variety of backend services, such as distribution services, information services, resource services, etc. Among them, the distribution service can be used to distribute various types of information, resources, etc.; the information service can be used to provide the latest information and hot information on the Internet; resource services can be used to realize resource transfer services, such as digital collection resources, etc. For example, the backend server can transfer digital collections to the blockchain address of the target object based on the information service, etc.

[0099] It can be seen that the data processing scheme provided by this application obtains the user's blockchain address and the relevant access rights of the social account through the decentralized background service, binds the blockchain address to the user's social account, and obtains the user's social relationship network through the authorization certificate of the user's social account, and finally imports the network into the blockchain network by matching the relationship between the social account and the blockchain address. It can be seen that after the application successfully logs in to the decentralized application client based on the blockchain address of the target object, the background server can establish an association between the blockchain address of the target object and the social account, and then the user can obtain the contact list of other social applications after authorization, and based on the mapping relationship between the account and the address stored in the background, the obtained contact list is converted into an on-chain address list, and then the network relationship constructed by the on-chain address list and the user's blockchain address is the network relationship in the web3 network, thereby realizing the migration of the user's social relationship in the web2 network to the social relationship in the web3 network, which can meet more business needs in social scenarios.

[0100] Next, the relevant technical terms (blockchain technology and cloud technology) involved in the blockchain-based data processing solution provided by this application are introduced in detail in conjunction with the relevant drawings:

[0101] 1. Blockchain technology:

[0102] Blockchain is essentially a decentralized database, a string of data blocks generated by cryptographic methods. Each data block contains relevant information, which is used to verify the validity of its information (anti-counterfeiting) and generate the next block. Specifically, this application will introduce the relevant terms such as blockchain system and blockchain structure in detail.

[0103] (1) Blockchain system:

[0104] See also Figure 2a , Figure 2a This is a schematic diagram of the structure of a blockchain system provided by an embodiment of the present application. Figure 2aAs shown, the blockchain system can be a data sharing system. The so-called data sharing system refers to a system for sharing data between nodes. The data sharing system 200 may include: multiple blockchain nodes 101, any blockchain node 201 may refer to a computer device in the data sharing system, and the computer device may be, for example, a terminal device or a server. Among them, each node in the data sharing system 200 can form a peer-to-peer (P2P) network. The P2P protocol is an application layer protocol running on the Transmission Control Protocol (TCP) protocol, and the above data sharing system is maintained based on the TCP protocol.

[0105] Next, we will introduce how data is exchanged between nodes in the blockchain system and the related functions implemented by the nodes.

[0106] ①Data interaction between nodes:

[0107] Specifically, in order to ensure information intercommunication within the blockchain system, there may be an information connection between each node in the blockchain system, and information may be transmitted between nodes through the above information connection. The above information connection does not limit the specific connection method, for example, it may be directly or indirectly connected through a wired communication method, or directly or indirectly connected through a wireless communication method, or through other connection methods, which are not limited in this application.

[0108] In a possible implementation, each blockchain node 201 can receive input information during normal operation, and maintain the shared data in the data sharing system based on the received input information. For example, when any blockchain node 201 in the blockchain system receives input information (e.g., receives a resource transfer request from a first object to a second object), the blockchain node 201 can verify the account of the first object and the account of the second object corresponding to the resource transfer request (e.g., verify whether the account balance is sufficient, or whether there are security risks in the account, etc.), and after the account verification passes, perform the corresponding resource transfer operation.

[0109] ②Node functions:

[0110] a. Application functions are used to be deployed in the blockchain to implement specific services according to actual business needs. The data related to the implementation of the functions are recorded to form record data (transaction data). For example, transaction data can refer to data used to implement resource transfer services; transaction data can refer to data used to implement electronic invoice services; transaction data can refer to data used to implement gaming services, etc. A digital signature can be carried in the record data to indicate the source of the task data, and the record data can be sent to other verification nodes in the blockchain system, so that other verification nodes can add the record data to the temporary block when they successfully verify the source and integrity of the record data.

[0111] Specifically, the services implemented by the application functions include resource management services. The resource management service is used to provide the function of conducting transactions of digital resources, including initiating transactions (that is, sending the transaction record of the current transaction to other nodes in the blockchain system. After successful verification by other nodes, as a response to acknowledging the validity of the transaction, the transaction record data is stored in a temporary block of the blockchain; of course, the resource management service also supports querying the remaining digital resources in the blockchain address. In this application, the resource client can use the resource management service function to realize the communication connection with the decentralized application client based on the resource management service function.

[0112] b. Routing function: a basic function possessed by any node in the blockchain system, used to support communication between nodes. Specifically, in the process of block consensus between nodes, data interaction between nodes is involved. In the process of data interaction, the data interaction process between nodes is realized based on the routing function of each node.

[0113] ③Node identification:

[0114] Each node in the blockchain system has a corresponding node identifier, and each node in the blockchain system can store the node identifiers of other nodes in the blockchain system, so that the generated blocks can be broadcast to other nodes in the blockchain system based on the node identifiers of other nodes. Each node can maintain a node identifier list as shown in the following table, and store the node name and node identifier in the node identifier list.

[0115] The node identifier may be an IP (Internet Protocol, a protocol for interconnecting networks) address or any other information that can be used to identify the node. Table 1 only uses the IP address as an example for description.

[0116] Table 1. Node ID list

[0117] Node Name Node ID Node 1 000.000.000.000 Node 2 111.111.111.111 … … Node N xxx.xxx.xxx.xxx

[0118] In an embodiment of the present application, each node in the blockchain system can carry its own node identification during the data interaction process, so that other nodes can perform node verification processing based on the corresponding node identification before performing corresponding data processing, thereby improving the security of the data interaction process in the blockchain.

[0119] (2) Block structure:

[0120] See also Figure 2b , Figure 2b This is a schematic diagram of the structure of a blockchain provided by an embodiment of the present application. Figure 2b As shown in the figure, the blockchain consists of multiple blocks, and each blockchain contains a genesis block. As the name implies, the so-called genesis block is the first block or the initial block. The genesis block includes a block header and a block body. The block header stores the input information feature value, version number, timestamp and difficulty value, and the block body stores the input information. The next block of the genesis block uses the genesis block as the parent block, and the next block also includes a block header and a block body. The block header stores the input information feature value of the current block, the block header feature value, version number, timestamp and difficulty value of the parent block, and so on, so that the block data stored in each block in the blockchain is associated with the block data stored in the parent block, ensuring the security of the input information in the block, that is, the identity status of the proof object can be safely stored on the chain.

[0121] In a possible implementation, the social relationship network of the target object in the present application in a third-party application platform such as Twitter, Facebook, Discord, etc. can be migrated to the blockchain network based on the solution described above in the present application, and the social network relationship of the target object in the blockchain network is constructed based on the associated address list. Optionally, the associated address list can be uploaded to the blockchain for storage. Then, when the corresponding social operation is performed on the target object in the blockchain, the corresponding social application can be executed based on the associated address list, such as transferring a certain amount of digital resources to the reference object with the most frequent interactions with the target object in the blockchain; another example is transferring a corresponding amount of digital resources to the target object based on the associated address list in the blockchain. In such blockchain-based social applications, based on the block structure in the above-mentioned blockchain, the relevant data maintained on the chain cannot be tampered with, which improves the security of the data; in addition, based on the block structure in the above-mentioned blockchain, data traceability can also be performed, so as to provide a more complete and reliable data processing process.

[0122] 2. Cloud Technology:

[0123] In the blockchain-based data processing solution of the present application, the blockchain involves a large number of contract call services, contract verification services, and data storage services, all of which involve a large amount of data calculation and data storage services, and therefore require a large amount of computer costs. Therefore, the present application can implement the processing operations required for data processing based on the cloud storage technology in the cloud technology, which may specifically include: calling the circuit verification contract to verify the encrypted proof data corresponding to the proof object submitted by the identity issuing object, and after the proof encrypted data is verified, calling the state transfer contract to change the identity state of the proof object to the reference identity state.

[0124] The so-called cloud technology is a general term for network technology, information technology, integration technology, management platform technology, application technology, etc. based on the cloud computing business model. It can form a resource pool that can be used on demand and is flexible and convenient. Among them, cloud technology can include cloud storage technology. The so-called cloud storage is a new concept extended and developed from the concept of cloud computing. Distributed cloud storage system (hereinafter referred to as storage system) refers to a storage system that uses cluster applications, grid technology, and distributed storage file systems to bring together a large number of different types of storage devices (storage devices are also called storage nodes) in the network through application software or application interfaces to work together and provide data storage and business access functions to the outside world.

[0125] It is particularly important to note that in the subsequent specific implementation methods of this application, related data such as user information, social information (such as social network information, contact list information, social accounts, social applications), etc., when this application involves the application of relevant embodiments of the above data to specific products or technologies, it is necessary to obtain the object's permission or consent, or the relevant functions described in this application document are actively enabled by the user; and the collection, use and processing of relevant data need to comply with relevant laws, regulations and standards of relevant countries and regions.

[0126] Combined with the above description of the blockchain-based data processing solution provided by this application and the related technical terms involved, next, combined with Figure 3 The architecture of the blockchain-based data processing system provided in the embodiments of the present application is specifically introduced.

[0127] See also Figure 3 , Figure 3It is a schematic diagram of the architecture of a blockchain-based data processing system provided by an embodiment of the present application. The architecture diagram of the blockchain-based data processing system may include at least: a decentralized application client 301, a background server 302, a resource client 303, and at least one blockchain node 304. Among them, at least one blockchain node 304 together constitutes a blockchain system. In addition, the background server 302 can establish a communication connection with any blockchain node 304 in the blockchain system and the decentralized application client 301 respectively by wired or wireless means; and the decentralized application client 301 can establish a communication connection with the resource client 303. In addition, the number of blockchain nodes in the blockchain system is only for example, and this application does not specifically limit the number of nodes in the blockchain system.

[0128] Next, the main functions of each computer device in the above blockchain-based data processing system (such as decentralized application client 301, backend server 302, resource client 303) are introduced accordingly:

[0129] ① The decentralized application client 301 refers to the front end of the decentralized application. The client can be used to display the corresponding front end page. For example, if the decentralized application is a social platform, the front end page displayed by the client can be a social page; if the decentralized application is a shopping platform, the front end page displayed by the client can be an item display page; if the decentralized application is a game platform, the front end page displayed by the client can be a game page. The user can perform the corresponding account authorization operation in the front end page displayed by the client, thereby generating an authorization login request initiated for the target object's social account.

[0130] ② The backend server 302 refers to the service backend of the decentralized application client 301, which is used to provide various backend services corresponding to the frontend application (such as issuance services, information services, resource services, etc.). The backend server 302 can be used to send transaction data generated by off-chain users in the decentralized application client 301 to the blockchain network. For example, if the decentralized application is a social platform, the social data generated after the target object (user) performs the corresponding social operation in the decentralized application client 301 can be sent by the backend server 302 to the blockchain for storage. In this application, after obtaining the authorization certificate of the target object's social account, the backend server 302 can obtain the contact list information (social network information) of the user's social account in the corresponding social application (such as social application 1, social application 2, or social application 3) based on the corresponding authorization interface.

[0131] ③ Resource client 303 is a tool for managing and storing user digital resources. For example, digital resources can be transferred to other accounts based on the resource client, and digital resources transferred from other accounts can be received based on the resource client. The resource client 303 can be a hardware device or a software program. It should be understood that one user corresponds to a unique resource client. The resource client 303 in this application mainly refers to the resource client of the target object. In this application, the resource client 303 of the target object can establish a communication connection with the decentralized application client 301 to implement related operations such as authorized login of the target object.

[0132] The decentralized application client 301, backend server 302, resource client 303, and blockchain node 304 mentioned above may include but are not limited to: mobile phones, tablet computers, laptop computers, PDAs, mobile Internet devices (MIDs), intelligent voice interaction devices, vehicle terminals, roadside devices, aircraft, wearable devices, smart home appliances, or wearable devices with data processing functions such as smart watches, smart bracelets, pedometers, etc.

[0133] The decentralized application client 301, backend server 302, resource client 303, and blockchain node 304 mentioned above may also be independent physical servers, or may be a server cluster or distributed system composed of multiple physical servers. They may also be cloud servers that provide basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN (Content Delivery Network), as well as big data and artificial intelligence platforms, etc.

[0134] In a possible implementation, the blockchain-based data processing scheme of the present application is described again by taking the decentralized application client 301 and the backend server 302 as examples. Specifically, ① the decentralized application client 301 may request the backend server 302 to obtain the identity declaration information to be changed; then determine the reference identity state according to the historical state data of the proof object and the identity declaration information to be changed, wherein the historical state data includes: the Merkle path associated with the identity declaration information to be changed; next, the decentralized application client 301 sends the reference identity state corresponding to the proof object and the identity declaration information to be changed to the backend server 302. ② After the backend server 302 obtains the reference identity state corresponding to the proof object and the identity declaration information to be changed, it may perform zero-knowledge proof processing on the reference identity state and the identity declaration information to be changed to generate proof encryption data corresponding to the proof object. ③ The backend server 302 sends the proof encryption data to the verification object 304 for verification processing. ④ If it is determined that the verification processing result for the proof encryption data is verification passed, the blockchain node 304 is triggered to change the identity state of the proof object to the reference identity state in the blockchain. It should be noted that the specific steps performed by each device in this solution are only for illustration and do not constitute a specific limitation on the embodiment of the present application.

[0135] It can be understood that the blockchain-based data processing system described in the embodiment of the present application is to more clearly illustrate the technical solution of the embodiment of the present application, and does not constitute a limitation on the technical solution provided in the embodiment of the present application. It is known to those skilled in the art that with the evolution of the system architecture and the emergence of new business scenarios, the technical solution provided in the embodiment of the present application is also applicable to similar technical problems.

[0136] Based on the foregoing description of the blockchain-based data processing solution and the blockchain-based data processing system of the present application, the specific embodiments involved in the blockchain-based data processing solution will be described in detail with reference to the accompanying drawings.

[0137] See also Figure 4 , Figure 4 This is a flowchart of a data processing method based on blockchain provided in an embodiment of the present application. Figure 3 For the convenience of explanation, the background server in the blockchain-based data processing system shown in the embodiment of the present application is described by taking computer device execution as an example. Among them, the blockchain-based data processing mainly includes but is not limited to the following steps S401 to S404:

[0138] S401: In response to an authorization login request initiated for a target social account, obtaining an authorization credential corresponding to the social account, the authorization credential being used to perform permission verification when requesting data synchronization to an application platform of a target social application corresponding to the social account.

[0139] In the embodiment of the present application, the social account refers to the account corresponding to the target object in the target social application. The target social application can be any type of social application, such as picture type, video type, conversation type, etc. For example, the target social application can include but is not limited to: Twitter, Facebook, Discord, etc. The embodiment of the present application does not specifically limit the type of the target social application. The authorization credential refers to a credential data used to obtain the social network information corresponding to the target object in the target social application. The credential data can be: a string, a random number, a code, a picture, or other data in any format. It should be understood that the authorization credential is generated by the application platform of the target social application. The application platform here can be an authorization server, or it can be a device such as a client where the target social application is located.

[0140] It should be understood that a blockchain address corresponds to a unique user, that is, the blockchain address is the unique identifier of the user on the chain. The decentralized application client refers to the front end of the decentralized application (DAPP). Generally speaking, the decentralized application client can display the front-end page for interaction with the user. The backend server of the decentralized application client can be understood as a node device in the blockchain network.

[0141] The authorization login request may carry the target object's social account, which may include: user information registered by the target object in the target social application, such as avatar, nickname, logo, signature, etc. For example, if the target social application is a game application, the social account may be the user's game ID; for another example, if the target social application is a conversation application, the social account may be the user's nickname, avatar, etc. The authorization login request is initiated after the target object successfully logs in to the decentralized application client based on the blockchain address.

[0142] In one possible implementation, before the computer device responds to the authorized login request initiated for the social account of the target object, it is also used to perform the following operations: first, receive an address login request for the target object, which is generated after a login request is made in a decentralized application client based on the blockchain address of the target object; then, in response to the address login request, generate a login random parameter, and return the login random parameter to the decentralized application client; wherein the login random parameter is used to trigger the decentralized application client to request the resource client of the target object to obtain login signature data for the target object, and the login signature data is used to complete the login operation of the target object in the decentralized application client.

[0143] In the specific implementation, first, the computer device receives the login signature data sent by the decentralized application client, and the login signature data is determined by the target object's resource client after signing the target object's blockchain address and login random parameters; then, the login signature data is verified, and if the result of the verification is successful, the first interaction parameter and the second interaction parameter are generated, and the first interaction parameter is stored locally; the second interaction parameter is sent to the decentralized application client for storage. Among them, the first interaction parameter and the second interaction parameter are used for identity verification during the data interaction between the decentralized application client and the background server.

[0144] Next, the login process based on the user (target object) blockchain address is described in detail:

[0145] ① The decentralized application client sends a random number acquisition request to the backend server. The random number acquisition request is used to request the nonce random value (login random parameter) for login;

[0146] ②The backend server can generate the corresponding nonce random value based on the random algorithm and return the login nonce random value to the decentralized application client;

[0147] ③ The decentralized application client sends the nonce random value to the resource client of the target object to request login signature processing for the blockchain address and nonce random value;

[0148] ④ The resource client performs signature processing based on the nonce random value returned by the decentralized application client and the blockchain address of the target object, obtains the signature login data of the target object, and sends the signature login data to the decentralized application client;

[0149] ⑤The decentralized application client sends the login signature data to the backend server;

[0150] ⑥ The backend server verifies the signed login data and obtains the verification result. If the verification result is successful, the first interaction parameter (session) and the second interaction parameter (cookie) are generated. Session and cookie are a pair of session parameters. Generally speaking, session is stored on the server side and cookie is stored on the client side.

[0151] ⑦ Receive the user cookie returned by the backend server and store it locally. Later, the interaction between the decentralized application client and the backend server must carry the user cookie, so that the backend server can authenticate the target object.

[0152] Through the above steps, the correspondence between the blockchain address and the user can be verified based on the user's blockchain address during the decentralized application client login process, thereby verifying the user's identity information and improving the reliability and security of the authorized login process.

[0153] It should be understood that after the user successfully logs in to the decentralized application client, the backend server can be authorized to access the user's social network information in the target social application based on the Oauth authorization method, thereby generating the corresponding social account authorization credentials. Next, the specific process of how to perform Oauth authorization for social accounts is described in detail:

[0154] See also Figure 5 , Figure 5 Schematic diagram of an open authorization process provided by the embodiment of the present application. Figure 5 As shown, the open authorization process involves the following objects: resource owner (target object or user in this application), user agent (such as browser), authorization server (target social application application platform), and decentralized application client. Specifically, the open authorization process mainly includes the following steps:

[0155] A. The user accesses the decentralized application client, as described above, and can log in and access the front-end page of the decentralized application client based on the blockchain address of the target object; the decentralized application client directs the user to the authorization server.

[0156] B. The user chooses whether to authorize the decentralized application client.

[0157] C. If the user agrees to the authorization, the authorization server will direct the user to the "redirection URI" pre-specified by the decentralized application client, and attach an authorization code.

[0158] D. After receiving the authorization code returned by the authorization server, the decentralized application client can attach the earlier "redirection URI" and initiate a request to obtain the authorization credential from the authorization server. The specific steps of applying for the authorization credential are performed by the backend server of the decentralized application client and are not visible to the user.

[0159] E. The authorization server verifies the authorization code and redirection URI sent by the decentralized application client. After confirming that they are correct, it sends the authorization credentials of the social account to the decentralized application client.

[0160] In this way, after the user logs in to the decentralized application client, he can perform the oauth authorization process of the social account on the front-end page of the decentralized application client. After completing the authorization operation of the corresponding social account, the decentralized application client can establish a binding relationship between the user's social account and the blockchain address. The backend server is subsequently triggered to execute the steps of obtaining the corresponding social network information based on the authorization credentials. Next, the relevant content of obtaining the target object's social network information in the target social application with the authorization credentials is elaborated in detail:

[0161] In one possible implementation, an authorization code is obtained for a decentralized application client, and the authorization code is generated by the application platform after detecting the authorization processing operation performed by the target object on the decentralized application client; the authorization code is sent to the application platform, and the authorization code is used to trigger the application platform to generate an authorization credential corresponding to the target object's social account after the authorization code is verified. The authorization credential may include: an access token and a refresh token. Generally speaking, the validity period of the access token is less than the validity period of the refresh token. Optionally, when the decentralized application client sends the authorization code to the backend server, a cookie parameter may be attached at the same time. After receiving the cookie parameter, the backend server matches and verifies the cookie parameter based on the locally stored session parameter. If the match is successful, the identity of the decentralized application client can be confirmed, and then the step of applying to the application platform for the corresponding authorization credential is triggered based on the authorization code.

[0162] Optionally, if the authorization credential includes an access token, and the access token has a validity period; the background server may also perform any one of the following steps: ① If the access token is within the validity period, a data synchronization request is generated based on the access token, and the data synchronization request is sent to the application platform of the target social application. The data synchronization request is used to trigger the acquisition of the social network information corresponding to the target object in the target social application; ② If the access token is not within the validity period, a feedback message is generated and sent to the decentralized application client. The feedback message is used to trigger the target object to initiate an authorized login again in the decentralized application client to regenerate a new authorization credential.

[0163] Optionally, if the authorization credential includes an access token and an update token, and the validity period of the update token is greater than the validity period of the access token; the background server can also perform any one of the following steps: ① If the access token is not within the validity period, and the update token is within the validity period, call the token update interface to update the update token to generate a new access token, and send the new access token to the decentralized application client; ② If the access token is not within the validity period, and the update token is not within the validity period, generate a feedback message and send the feedback message to the decentralized application client. The feedback message is used to trigger the target object to initiate authorized login again in the decentralized application client to regenerate new authorization credentials.

[0164] From the above, it can be seen that if the authorization credential includes an access token with a validity period, if the access token expires, it is necessary to re-initiate the corresponding user authorization login in the decentralized application client. If the authorization credential also includes an update token, then when the access token expires, there is no need to re-initiate user authorization, and a new access token can be directly requested based on the update token. This can simplify the authorization operation process and thus improve authorization efficiency.

[0165] S402: Calling the authorization interface of the application platform to initiate a data synchronization request carrying the authorization credential, where the data synchronization request is used to request to obtain the social network information of the target object in the target social application.

[0166] In an embodiment of the present application, the authorization interface may be an open API interface, and the authorization interface corresponding to the application platform may be one or more. Different authorization interfaces may be used to request different types of data, such as a game API interface for requesting game data; or a shopping API interface for requesting shopping data. In one possible implementation, the background server may generate a data synchronization request based on the authorization credential, and call the authorization interface of the application platform to send the data synchronization request to the application platform of the target social application. Optionally, the identification of the application platform may be obtained, and a data synchronization request may be generated based on the identification of the application platform and the authorization credential.

[0167] S403: Receive social network information returned by the application platform in response to the data synchronization request, and obtain a blockchain address list associated with the target object based on the associated account included in the social network information, wherein the blockchain address list records the associated account and the blockchain address corresponding to the associated account.

[0168] In a possible implementation, after receiving a data synchronization request, the application platform parses the authorization credential in the data synchronization request and performs a permission check on the authorization credential. If the permission check passes, the application platform responds to the data synchronization request and obtains the social network information corresponding to the social account of the target object; if the permission check fails, the application platform does not respond to the data synchronization request, and can return a feedback message to the background server, the feedback message is used to indicate that the background server does not have the permission to obtain the corresponding data, or the feedback message is used to indicate that the authorization credential has not passed the permission check. Optionally, the application platform can also obtain the identifier of the background server, and then verify the background server according to the identifier. The verification here can include: any one or more of security verification and legality verification; if it is determined that the verification of the background server passes, the step of obtaining the social network information corresponding to the social account of the target object is triggered.

[0169] Specifically, social network information can be used to reflect the social network relationship of the target object's social account in the target social application, and the social network information includes contact list information associated with the target object. The contact list information may include, but is not limited to, information determined based on any one or more dimensions such as the number of interactions, the frequency of interactions, and the duration of interactions. More specifically, the contact list information may include: an associated account of at least one associated object associated with the target object in the target social application. For example, if the target social application is a game application, the contact list information may include the game accounts of the game friends of the target object in the game application; if the target social application is an information interaction application, the contact list information may include user accounts whose interaction frequency with the target object in the group chat session is greater than a frequency threshold.

[0170] In a possible implementation, the backend server obtains a list of blockchain addresses based on the associated accounts included in the social network information, specifically including the following steps: first, obtain a mapping relationship table stored in the backend server, the mapping relationship table is used to record the mapping relationship between social accounts and blockchain addresses; then, according to the mapping relationship table, query the blockchain addresses corresponding to each associated account in the social network information; finally, generate a list of blockchain addresses associated with the target object based on each queried blockchain address. In specific implementation, the mapping relationship table stored in the backend server can be constructed in advance, one user corresponds to a unique blockchain address, and the user uniformly corresponds to a unique social account in the target social application. Then, a mapping relationship table can be constructed based on the blockchain address and the user's social account. The mapping relationship table 2 is shown below:

[0171] Table 2. Mapping relationship table

[0172] user Blockchain address Social Accounts User 1 Address1 Id1 User 2 Address2 Id2 User 3 Address3 Id3 ... ... ...

[0173] Then, after obtaining the associated account of at least one associated object associated with the target object in the target social application, the present application can obtain the blockchain address of the corresponding associated object on the chain based on the above-mentioned mapping relationship table, thereby mapping the on-chain address of each associated object in the contact list, and finally generating a blockchain address list.

[0174] It should be understood that if the target object is associated with multiple target social applications, the authorization credentials corresponding to the user in each target social application can be obtained based on the above process, so that the social network information of the user in multiple social applications can be obtained. Subsequently, the social network information of the user in different social applications can be integrated to generate a more comprehensive and rich blockchain address list related to the user, so as to build a more comprehensive and rich social network in the web3 network and improve the social needs of users.

[0175] S404: Output a list of blockchain addresses associated with the target object.

[0176] In specific implementation, after generating the blockchain address list, the backend server can send the blockchain address list to the decentralized application client to display the blockchain address list on the front-end page of the decentralized application client.

[0177] In one possible implementation, the backend server may respond to a business request initiated by a target object in a decentralized application client, where the business request is generated based on a business operation performed by the target object's social account in a target social application; then, based on a list of blockchain addresses associated with the target object, generate resource transfer transaction data, where the resource transfer transaction data includes a target resource amount of digital resources transferred to a blockchain address of a target associated object of the target object; finally, perform on-chain processing on the resource transfer transaction data, where the on-chain processing includes: transferring a target resource amount of digital resources to a blockchain address of a target associated object of the target object.

[0178] Specifically, if the decentralized application is a game application, then after the user performs the corresponding game operation in the decentralized application client (for example, after playing a game, or completing the game level upgrade, etc.), a digital resource can be rewarded to the blockchain address of the user, such as transferring the corresponding digital collection to the blockchain address of the user; for example, if the game application involves multiple game players, the reference player who interacts most frequently with the game player can be determined based on the social relationship network constructed in the game application, and the corresponding digital resources can be transferred to the blockchain address of the reference player; for example, in a two-player game scenario, game player 1 beats game player 2, then the digital resources in the blockchain address of game player 2 can be transferred to the blockchain address of game player 1 based on the corresponding game rules. Based on the social relationship network in the above web3 network, more business needs of users can be met, thereby improving the user experience of the corresponding decentralized application.

[0179] In an embodiment of the present application, the backend server of the decentralized application client can respond to an authorization login request initiated for the social account of the target object, obtain the authorization credential corresponding to the social account, and the authorization credential is used to perform permission verification when requesting data synchronization from the application platform of the target social application corresponding to the social account. The authorization login request is generated after the decentralized application client successfully logs in based on the blockchain address of the target object; then the authorization interface of the application platform can be called to initiate a data synchronization request carrying the authorization credential, and the data synchronization request is used to request to obtain the social network information of the target object in the target social application; next, the social network information returned by the application platform in response to the data synchronization request is received, and based on the associated account included in the social network information, a blockchain address list is obtained, and the blockchain address list records the associated account and the blockchain address corresponding to the associated account; finally, the blockchain address list can be output. It can be seen that after the application successfully logs in to the decentralized application client based on the blockchain address of the target object, the background server can establish an association relationship between the blockchain address of the target object and the social account, and then the user can obtain the contact list of other social applications after authorization. Based on the mapping relationship between the account and the address stored in the background, the obtained contact list is converted into an on-chain address list, and then the network relationship constructed between the on-chain address list and the user's blockchain address is the network relationship in the web3 network, thereby realizing the migration of the user's social relationship in the web2 network to the social relationship in the web3 network, which can meet more business needs in social scenarios.

[0180] See also Figure 6 , Figure 6 is a flow chart of another data processing method based on blockchain provided in an embodiment of the present application. Figure 6 As shown, the data processing method can be Figure 3 The decentralized application client in the blockchain-based data processing system shown is executed. The blockchain-based data processing mainly includes but is not limited to the following steps S601 to S604:

[0181] S601: Responding to an address login request initiated by a resource client of a target object, the address login request is used to request login in a decentralized application client based on the blockchain address of the target object.

[0182] In the embodiment of the present application, the resource client refers to a tool for managing the digital resources of the target object. The resource client can establish a communication connection with the decentralized application client based on the relay server. Before the decentralized application client responds to the address login request initiated by the resource client, it is also used to perform the following operations: first, send a client topic message to the relay server, the client topic information carries the client identifier of the decentralized application client, and the client topic message is used to indicate the initiation of the login request; then, receive the resource topic message sent by the relay server, the resource topic message is generated by the resource client after receiving the client topic message forwarded by the relay server and completing the login process; finally, parse the resource topic message and establish a communication connection with the resource client of the target object.

[0183] See also Figure 7 , Figure 7 1 is a flow chart of establishing a communication connection between a resource client and a decentralized application client provided by an embodiment of the present application. Figure 7 The specific process of establishing a communication connection between the resource client and the decentralized application client is described in detail:

[0184] ① The Dapp client establishes a Socket connection with the relay server. The Dapp client generates a Dapp ClientID (detecting the Topic will get the message sent to the Dapp client), a Dapp Topic (detecting the Topic will get the login request sent by the Dapp), and subscribes to the Dapp ClientID;

[0185] ② The Dapp client sends information (client topic message) with the Topic of Dapp Topic to the relay server, and carries the Dapp ClientID information (client identifier of the decentralized application client);

[0186] ③The front-end page of the Dapp client can display a QR code, which is generated based on the Dapp Topic information, the address and password of the relay server; the resource client scans the QR code of the Dapp client, parses the QR code information to obtain the Dapp Topic information, the relay server address and password;

[0187] ④The resource client establishes a socket connection with the relay server, then generates a Wallet PeerID (detecting the Topic can obtain messages sent to the resource client), and subscribes to the Dapp Topic and Wallet PeerID;

[0188] ⑤The resource client receives the login request from the Dapp client forwarded by the relay server;

[0189] ⑥ The resource client processes whether to agree to the login of the Dapp client, sends a message with the Topic of Dapp ClientID, and returns the processing result and Wallet PeerID information to the relay server;

[0190] ⑦At this time, the connection between the decentralized application client and the resource client is successfully established;

[0191] ⑧If the decentralized application client needs to send a message to the resource client, it can send information with Topic as WalletPeerID;

[0192] ⑨If the resource client needs to send a message to the decentralized application client, it can send information with Topic DappClientID.

[0193] Through the above method, a communication connection between the resource client and the decentralized application client can be established based on the relay server, and then the step of initiating an authorized login request for the target object's social account in the decentralized application client can be triggered.

[0194] S602: After detecting successful login based on the blockchain address of the target object, generating an authorized login request, the authorized login request is initiated for the social account of the target object in the target social application.

[0195] In a possible implementation, after responding to the address login request initiated by the resource client of the target object, the decentralized application client is also used to perform the following operations: first, receive the login random parameter sent by the background server, which is generated by the background server after receiving the address login request; then, send the login random parameter to the resource client of the target object; next, send the login signature data sent by the resource client to the background server, which is determined by the resource client of the target object after signing the blockchain address and the login random parameter of the target object; finally, if the second interaction parameter sent by the background server is received, it is determined that the blockchain address of the target object is successfully logged in in the decentralized application client. In this way, the login can be verified in the decentralized application client based on the user's blockchain address to confirm that the address is held by the current user, thereby improving the reliability and security of the authorized login process.

[0196] In specific implementation, the decentralized application client can display a login interface. If an authorization processing operation is detected in the login interface, an authorization login request is generated. The login interface displays a QR code image for authorization login. If a user scans the QR code, an authorization login request is generated. Figure 8 , Figure 8 Schematic diagram of a scenario of user authorization login provided by an embodiment of the present application. Figure 8 As shown, in the process of requesting user authorization to log in, it is necessary to send an authorization request to the target object. The authorization request is used to request access rights to the social account corresponding to the target object in the target social application. Only when the target object agrees to the authorization can the target object's social network information in the target social application be obtained. For example, after the terminal device used by the target object obtains the authorization request sent by the decentralized application client, the authorization interface S800 can be displayed in the terminal device. The authorization interface S800 displays prompt information prompting the target object whether to confirm the authorization, and is provided with a confirmation control 801 and a rejection control 802. If the target object clicks the confirmation control 801, it means that the target object agrees to the authorization. If the target object clicks the rejection control 802, it means that the target object refuses the authorization. In this way, the security of the target object's social network information can be guaranteed to prevent the leakage of social network information.

[0197] S603: Send an authorization login request to the backend server, where the authorization login request is used to trigger the backend server to obtain a blockchain address list based on the authorization credentials of the social account, where the blockchain address list records the associated accounts included in the social network information and the blockchain addresses corresponding to the associated accounts; the social network information is obtained from the application platform of the target social application based on the authorization credentials corresponding to the social account of the target object.

[0198] In one possible implementation, the decentralized application client may attach corresponding cookie parameters when sending an authorization login request, and the cookie parameters are used to request identity authentication of the decentralized application client. After receiving the authorization login request, the backend server can match and verify the cookie parameters based on the session parameters. If the match is successful, the identity of the decentralized application client can be confirmed, and then respond to the authorization login request, and trigger the acquisition of the authorization credentials of the target object's social account. It should be noted that the specific steps for obtaining the target object's social network information from the application platform of the target social application based on the authorization credentials can be detailed with reference to the relevant steps involved in the above embodiment, and the embodiments of this application will not be repeated here.

[0199] S604: Receive the blockchain address list returned by the backend server.

[0200] In a possible implementation, after receiving the blockchain address list returned by the backend server, the decentralized application client can display the blockchain address list on the front-end page, and the blockchain address list records the associated accounts associated with the target object and the blockchain addresses corresponding to the associated accounts. Subsequently, the user can perform subsequent business operations on the blockchain address list on the front-end page, such as adding each blockchain address in the blockchain address list to the decentralized application, thereby building a corresponding social relationship network in the decentralized application to achieve the migration of the social relationship network from the web2 network to the web3 network.

[0201] In the embodiment of the present application, the user first uses the blockchain money address to log in to the decentralized application client. After the user logs in, the open authorization process of the social account is carried out in the decentralized application client. The user authorizes his or her own social account and authorizes the backend server to access the user's contact list information. After the decentralized application platform obtains the user's social account information, it can be bound to the blockchain address. Then, the backend server obtains the contact list information associated with the user's social account through the authorization certificate of the user's social account, and after searching the relevant blockchain address bound in the backend system through the contact list, the corresponding relationship between the social account and the blockchain address is pushed to the front-end user, and finally the user's web2 social relationship network is transferred to web3, and finally the user experience of web3 decentralized users is improved.

[0202] See also Fig. 9 , Fig. 9 Schematic diagram of the interactive process of a blockchain-based data processing method provided in an embodiment of the present application. Fig. 9 As shown, the interactive process diagram can be jointly executed by: a decentralized application client, a backend server, and an application platform of a target social application. The interactive method of data processing mainly includes but is not limited to the following steps S901 to S909:

[0203] S901: The resource client initiates an address login request for a target object to the decentralized application client.

[0204] In a specific implementation, the address login request is used to request login based on the blockchain address of the target object in the decentralized application client. In a possible implementation, before initiating the address login request for the target object, a communication connection needs to be established between the resource client and the decentralized application client. Specifically, a communication connection is established between the resource client and the decentralized application client based on the relay server. In a possible implementation, first, the decentralized application client sends a client topic message to the relay server, and the client topic information carries the client identifier of the decentralized application client. The client topic message is used to indicate the initiation of a login request; then, the decentralized application client receives the resource topic message sent by the relay server, and the resource topic message is generated by the resource client after receiving the client topic message forwarded by the relay server and completing the login process; finally, the decentralized application client parses the resource topic message and establishes a communication connection with the resource client of the target object. It should be noted that the specific process of establishing a communication connection between the resource client and the decentralized application client is detailed in the relevant steps involved in the above embodiment, and the embodiment of this application will not be repeated here.

[0205] S902: The decentralized application client generates an authorization login request.

[0206] In specific implementation, after detecting a successful login based on the blockchain address of the target object, the decentralized application client generates an authorization login request, which is initiated for the social account of the target object in the target social application.

[0207] In one possible implementation, first, the decentralized application client receives a random login parameter sent by a backend server, where the random login parameter is generated by the backend server after receiving an address login request; then, the decentralized application client sends the random login parameter to the resource client of the target object; next, the decentralized application client sends the login signature data sent by the resource client to the backend server, where the login signature data is determined after the resource client of the target object signs the blockchain address and the random login parameter of the target object; finally, if the second interaction parameter sent by the backend server is received, it is determined that the decentralized application client is successfully logged in based on the blockchain address of the target object.

[0208] S903: The decentralized application client sends an authorization login request to the backend server.

[0209] Optionally, the decentralized application client may send the second interaction parameter to the backend server during the process of sending the authorization login request. Subsequently, the backend server may perform identity authentication based on the second interaction parameter, thereby ensuring the security of the decentralized application client.

[0210] S904: The backend server obtains the authorization credential of the social account.

[0211] In specific implementation, if the backend server matches and verifies the second interaction parameter based on the first interaction parameter, the backend server can respond to the authorization login request to obtain the authorization credential corresponding to the social account, and the authorization credential is used to perform permission verification when requesting data synchronization from the application platform of the target social application corresponding to the social account. It should be noted that the steps for the backend server to obtain the authorization credential of the social account can be detailed in the relevant steps involved in the open authorization process in the above embodiment, and the embodiments of this application will not be repeated here.

[0212] It should be understood that the authorization credential may include an access token and an update token, wherein the access token has an expiration date and the update token is long-term valid; or, both the access token and the update token have an expiration date, but the expiration date of the access token is shorter than the expiration date of the update token. In addition, the update token can be used to refresh a new access token when the access token expires, thereby eliminating the need to re-perform user authorization and other related operations to obtain a new authorization credential, which can simplify the authorization processing steps and thus improve the efficiency of the authorization processing.

[0213] S905: The backend server sends a data synchronization request to the application platform of the target social application.

[0214] In specific implementation, the backend server can call the authorization interface of the application platform to initiate a data synchronization request, which carries the authorization credential corresponding to the target object's social account. Optionally, the backend server can encrypt the authorization credential to obtain an encrypted credential, and generate a data synchronization request based on the encrypted credential. Specifically, the authorization credential can be encrypted based on an encryption algorithm to obtain an encrypted credential corresponding to the authorization credential. In this way, the authorization credential can be prevented from being leaked, thereby improving the security of the data interaction process.

[0215] S906: The application platform returns the social network information to the backend server.

[0216] In specific implementation, after receiving the data synchronization request, the application platform of the target social application can parse and obtain the authorization credential of the social account, and verify the authorization credential. If the verification is successful, the data synchronization request is responded to and the social network information associated with the target object is obtained; if the verification is unsuccessful, the data synchronization request is deleted. The social network information may include: an associated account of at least one associated object associated with the social account of the target object in the target social application.

[0217] Optionally, the authorization credential is obtained through encryption, and the application platform can parse the data synchronization request to obtain the encrypted credential, and decrypt the encrypted credential based on a decryption algorithm to obtain the authorization credential, wherein the decryption algorithm used by the application platform matches the encryption algorithm corresponding to the authorization credential.

[0218] S907: The backend server obtains a list of blockchain addresses associated with the target object based on the associated accounts included in the social network information.

[0219] In a possible implementation, the backend server obtains a list of blockchain addresses associated with the target object based on the associated accounts included in the social network information, specifically including the following steps: first, obtaining a mapping relationship table stored in the backend database, the mapping relationship table being used to record the mapping relationship between the social account and the blockchain address; then, according to the mapping relationship table, querying the blockchain address corresponding to each associated account in the social network information; finally, generating a list of blockchain addresses associated with the target object based on each queried blockchain address.

[0220] S908: The backend server returns the blockchain address list to the decentralized application client.

[0221] S909: The decentralized application client outputs a list of blockchain addresses associated with the target object.

[0222] In specific implementation, the decentralized application client can display a front-end page, and then output a list of blockchain addresses associated with the target object in the front-end page. The target object can choose to build a social relationship network in the blockchain based on the list of blockchain addresses displayed in the front-end page. For example, the user can choose to add one or more associated accounts corresponding to the blockchain address to the blockchain network in the front-end page to build a corresponding social network.

[0223] In the embodiment of the present application, the user first uses the blockchain money address to log in to the decentralized application client. After the user logs in, the open authorization process of the social account is carried out in the decentralized application client. The user authorizes his social account and authorizes the backend server to access the user's contact list information. After the decentralized application platform obtains the user's social account information, it can be bound to the blockchain address. Then, the backend server obtains the contact list information associated with the user's social account through the authorization certificate of the user's social account, and after searching the relevant blockchain address bound in the backend system through the contact list, the corresponding relationship between the social account and the blockchain address is pushed to the front-end user. In summary, the decentralized application backend (the backend server of the decentralized application client) can bind the blockchain address and social account of the target object to each other through user authorization; and the decentralized application backend obtains the contact list information of the user's social application through user authorization, and converts the social network of the user's social application into a social network based on the blockchain address on the chain through the mapping relationship between the backend service's on-chain address and the social account, thereby improving the user social experience of the web3 application.

[0224] The above describes in detail the method of the embodiment of the present application. In order to facilitate the better implementation of the above scheme of the embodiment of the present application, the device of the embodiment of the present application is provided below accordingly. Next, in combination with the blockchain-based data processing scheme provided in the above embodiment of the present application, the relevant devices of the embodiment of the present application are introduced accordingly.

[0225] See also Fig.10 , Fig.10 Schematic diagram of a data processing device based on blockchain provided in an embodiment of the present application. Fig.10 As shown, the blockchain-based data processing device 1000 can be applied to the background server mentioned in the above embodiments. Specifically, the blockchain-based data processing device 1000 can be a computer program (including program code) running in a computer device, for example, the blockchain-based data processing device 1000 is an application software; the blockchain-based data processing device 1000 can be used to execute the corresponding steps in the blockchain-based data processing method provided in the embodiment of the present application. The blockchain-based data processing device 1000 can specifically include:

[0226] A response unit 1001 is used to respond to an authorization login request initiated for a target social account, and obtain an authorization credential corresponding to the social account, where the authorization credential is used to perform permission verification when requesting data synchronization from an application platform of a target social application corresponding to the social account;

[0227] Processing unit 1002 is used to call the authorization interface of the application platform to initiate a data synchronization request carrying the authorization credential, where the data synchronization request is used to request to obtain the social network information of the target object in the target social application;

[0228] The receiving unit 1003 is used to receive the social network information returned by the application platform in response to the data synchronization request, and obtain a blockchain address list associated with the target object based on the associated account included in the social network information, wherein the blockchain address list records the associated account and the blockchain address corresponding to the associated account;

[0229] The processing unit 1003 is further configured to output a list of blockchain addresses associated with the target object.

[0230] In a possible implementation, before the responding unit 1001 responds to the authorized login request initiated for the target object's social account, the processing unit 1002 is further configured to perform the following operations:

[0231] Receive an address login request for a target object, where the address login request is generated based on the blockchain address of the target object after a login request is made in a decentralized application client;

[0232] In response to the address login request, generate a login random parameter and return the login random parameter to the decentralized application client;

[0233] Among them, the login random parameter is used to trigger the decentralized application client to request the resource client of the target object to obtain the login signature data for the target object, and the login signature data is used to complete the login operation of the target object in the decentralized application client.

[0234] In a possible implementation, the processing unit 1002 is further configured to perform the following operations:

[0235] Receive the login signature data sent by the decentralized application client. The login signature data is determined by the target object's resource client after signing the target object's blockchain address and login random parameters;

[0236] Verify the login signature data. If the verification result is successful, it is determined that the blockchain address of the target object is successfully logged in in the decentralized application client.

[0237] Among them, after determining that the target object has successfully logged in, a first interaction parameter and a second interaction parameter are generated, and the first interaction parameter and the second interaction parameter are used for verification processing during the data interaction between the decentralized application client and the background server.

[0238] In a possible implementation, the processing unit 1002 is further configured to perform the following operations:

[0239] Obtaining the authorization code for the decentralized application client, which is generated by the application platform after detecting the authorization processing operation performed by the target object on the decentralized application client;

[0240] The authorization code is sent to the application platform. The authorization code is used to trigger the application platform to generate authorization credentials corresponding to the target object's social account after the authorization code is verified.

[0241] In a possible implementation, the authorization credential includes an access token, and the access token has a validity period; the processing unit 1002 is further configured to perform any one of the following steps:

[0242] If the access token is within the validity period, a data synchronization request is generated based on the access token, and the data synchronization request is sent to the application platform of the target social application, where the data synchronization request is used to trigger the acquisition of the social network information corresponding to the target object in the target social application;

[0243] If the access token is not within the validity period, a feedback message is generated and sent to the decentralized application client. The feedback message is used to trigger the target object to initiate authorization login again in the decentralized application client to regenerate new authorization credentials.

[0244] In a possible implementation, the authorization credential includes an access token and an update token, and the validity period of the update token is greater than the validity period of the access token; the processing unit 1002 is further configured to perform the following operations:

[0245] If the access token is not valid and the update token is valid, call the token update interface to update the update token to generate a new access token, and send the new access token to the decentralized application client; or,

[0246] If the access token is not valid and the update token is not valid, a feedback message is generated and sent to the decentralized application client. The feedback message is used to trigger the target object to initiate authorization login again in the decentralized application client to regenerate new authorization credentials.

[0247] In a possible implementation, the processing unit 1002 obtains a blockchain address list based on the associated accounts included in the social network information, and performs the following operations:

[0248] Obtain a mapping relationship table stored in the backend database, where the mapping relationship table is used to record the mapping relationship between social accounts and blockchain addresses;

[0249] According to the mapping relationship table, query the blockchain addresses corresponding to each associated account in the social network information;

[0250] Generate a list of blockchain addresses associated with the target object based on the queried blockchain addresses.

[0251] In a possible implementation, the processing unit 1002 is further configured to perform the following operations:

[0252] In response to a business request initiated by a target object in a decentralized application client, the business request is generated based on a business operation performed by a social account of the target object in a target social application;

[0253] Generate resource transfer transaction data based on the list of blockchain addresses associated with the target object, the resource transfer transaction data including a target resource amount of the digital resource to be transferred to the blockchain address of the target associated object of the target object;

[0254] The resource transfer transaction data is processed on the chain, wherein the on-chain processing includes: transferring the digital resources of the target resource quantity to the blockchain address of the target associated object of the target object.

[0255] After successfully logging into the decentralized application client based on the blockchain address of the target object, the background server can establish an association between the blockchain address of the target object and the social account. Then, after the user authorizes, the contact list of other social applications can be obtained. Based on the mapping relationship between the account and the address stored in the background, the obtained contact list is converted into an on-chain address list. Then, the network relationship constructed between the on-chain address list and the user's blockchain address is the network relationship in the web3 network, thereby realizing the migration of the user's social relationship in the web2 network to the social relationship in the web3 network, which can meet more business needs in social scenarios.

[0256] See also Fig.11 , Fig.11 Schematic diagram of another data processing device based on blockchain provided in an embodiment of the present application. Fig.11 As shown, the blockchain-based data processing device 1100 can be applied to the decentralized application client mentioned in the above embodiments. Specifically, the blockchain-based data processing device 1100 can be a computer program (including program code) running in a computer device, for example, the blockchain-based data processing device 1100 is an application software; the blockchain-based data processing device 1100 can be used to execute the corresponding steps in the blockchain-based data processing method provided in the embodiment of the present application. The blockchain-based data processing device 1100 can specifically include:

[0257] The processing unit 1101 is used to respond to an address login request initiated by a resource client of a target object, where the address login request is used to request login in a decentralized application client based on a blockchain address of the target object;

[0258] The processing unit 1101 is further configured to generate an authorization login request after detecting successful login based on the blockchain address of the target object, where the authorization login request is initiated for the social account of the target object in the target social application;

[0259] The sending unit 1102 is used to send an authorization login request to the backend server, where the authorization login request is used to trigger the backend server to obtain a blockchain address list based on the authorization credential of the social account, where the blockchain address list records the associated accounts included in the social network information and the blockchain addresses corresponding to the associated accounts; the social network information is obtained from the application platform of the target social application based on the authorization credential corresponding to the social account of the target object;

[0260] The receiving unit 1103 is used to receive the blockchain address list returned by the background server.

[0261] In a possible implementation, a communication connection is established between the resource client and the decentralized application client based on the relay server; before responding to the address login request initiated by the resource client, the processing unit 1101 is further configured to perform the following operations:

[0262] Send a client topic message to the relay server. The client topic message carries the client ID of the decentralized application client. The client topic message is used to indicate the initiation of a login request.

[0263] Receiving a resource topic message sent by a relay server, where the resource topic message is generated by a resource client after receiving a client topic message forwarded by the relay server and completing a login process;

[0264] Parse resource topic messages and establish a communication connection with the resource client of the target object.

[0265] In a possible implementation, after responding to the address login request initiated by the resource client of the target object, the processing unit 1101 is further configured to perform the following operations:

[0266] Receive the random login parameter sent by the backend server, which is generated by the backend server after receiving the address login request;

[0267] Send the login random parameters to the resource client of the target object;

[0268] Send the login signature data sent by the resource client to the backend server. The login signature data is determined by the target object's resource client after signing the target object's blockchain address and login random parameters;

[0269] If the second interaction parameter sent by the backend server is received, it is determined that the blockchain address of the target object is successfully logged in to the decentralized application client.

[0270] In a possible implementation, the processing unit 1101 is further configured to perform the following operations:

[0271] In response to the authorization access request initiated by the target object, sending the authorization access request to the application platform of the target social application corresponding to the social account of the target object;

[0272] Receive the authorization code returned by the application platform. The authorization code is generated by the application platform for the decentralized application client after detecting the authorization processing operation of the target object;

[0273] The authorization code is sent to the backend server, so that the backend server obtains the authorization credentials of the target object's social account based on the authorization code.

[0274] In the embodiment of the present application, the user first uses the blockchain money address to log in to the decentralized application client. After the user logs in, the open authorization process of the social account is carried out in the decentralized application client. The user authorizes his or her own social account and authorizes the backend server to access the user's contact list information. After the decentralized application platform obtains the user's social account information, it can be bound to the blockchain address. Then, the backend server obtains the contact list information associated with the user's social account through the authorization certificate of the user's social account, and after searching the relevant blockchain address bound in the backend system through the contact list, the corresponding relationship between the social account and the blockchain address is pushed to the front-end user, and finally the user's web2 social relationship network is transferred to web3, and finally the user experience of web3 decentralized users is improved.

[0275] See also Fig.12 , see Fig.12 , Fig.12It is a structural diagram of a computer device provided in an embodiment of the present application. The computer device 1200 is used to execute the steps performed by the decentralized application client and the background server in the aforementioned method embodiment. The computer device 1200 includes: one or more processors 1201; one or more input devices 1202, one or more output devices 1203 and a memory 1204. The above-mentioned processors 1201, input devices 1202, output devices 1203 and memory 1204 are connected via a bus 1205. Among them, the processor 1201 (or CPU (Central Processing Unit)) is the processing core of the computer device. The processor 1201 is suitable for implementing one or more program instructions, and is specifically suitable for loading and executing one or more program instructions to implement the above-mentioned blockchain-based data processing method process. Specifically, the memory 1204 is used to store a computer program, and the computer program includes program instructions. The processor 1201 calls the program instructions stored in the memory 1204 to perform the following operations:

[0276] In response to an authorization login request initiated for the target object's social account, obtaining an authorization credential corresponding to the social account, the authorization credential being used to perform permission verification when requesting data synchronization from an application platform of a target social application corresponding to the social account;

[0277] Calling the authorization interface of the application platform to initiate a data synchronization request carrying the authorization credentials, where the data synchronization request is used to request to obtain the social network information of the target object in the target social application;

[0278] Receiving social network information returned by the application platform in response to the data synchronization request, and obtaining a blockchain address list associated with the target object based on the associated account included in the social network information, wherein the blockchain address list records the associated account and the blockchain address corresponding to the associated account;

[0279] Outputs a list of blockchain addresses associated with the target object.

[0280] In a possible implementation, before responding to the authorization login request initiated for the target object's social account, the processor 1201 is further configured to perform the following operations:

[0281] Receive an address login request for a target object, where the address login request is generated based on the blockchain address of the target object after a login request is made in a decentralized application client;

[0282] In response to the address login request, generate a login random parameter and return the login random parameter to the decentralized application client;

[0283] Among them, the login random parameter is used to trigger the decentralized application client to request the resource client of the target object to obtain the login signature data for the target object, and the login signature data is used to complete the login operation of the target object in the decentralized application client.

[0284] In a possible implementation manner, the processor 1201 is further configured to perform the following operations:

[0285] Receive the login signature data sent by the decentralized application client. The login signature data is determined by the target object's resource client after signing the target object's blockchain address and login random parameters;

[0286] Verify the login signature data. If the verification result is successful, it is determined that the blockchain address of the target object is successfully logged in in the decentralized application client.

[0287] Among them, after determining that the target object has successfully logged in, a first interaction parameter and a second interaction parameter are generated, and the first interaction parameter and the second interaction parameter are used for verification processing during the data interaction between the decentralized application client and the background server.

[0288] In a possible implementation manner, the processor 1201 is further configured to perform the following operations:

[0289] Obtaining the authorization code for the decentralized application client, which is generated by the application platform after detecting the authorization processing operation performed by the target object on the decentralized application client;

[0290] The authorization code is sent to the application platform. The authorization code is used to trigger the application platform to generate authorization credentials corresponding to the target object's social account after the authorization code is verified.

[0291] In a possible implementation, the authorization credential includes an access token, and the access token has a validity period; the processor 1201 is further configured to perform any one of the following steps:

[0292] If the access token is within the validity period, a data synchronization request is generated based on the access token, and the data synchronization request is sent to the application platform of the target social application, where the data synchronization request is used to trigger the acquisition of the social network information corresponding to the target object in the target social application;

[0293] If the access token is not within the validity period, a feedback message is generated and sent to the decentralized application client. The feedback message is used to trigger the target object to initiate authorization login again in the decentralized application client to regenerate new authorization credentials.

[0294] In a possible implementation, the authorization credential includes an access token and an update token, and the validity period of the update token is greater than the validity period of the access token; the processor 1201 is further configured to perform the following operations:

[0295] If the access token is not valid and the update token is valid, call the token update interface to update the update token to generate a new access token, and send the new access token to the decentralized application client; or,

[0296] If the access token is not valid and the update token is not valid, a feedback message is generated and sent to the decentralized application client. The feedback message is used to trigger the target object to initiate authorization login again in the decentralized application client to regenerate new authorization credentials.

[0297] In a possible implementation, the processor 1201 obtains a blockchain address list based on the associated accounts included in the social network information, and performs the following operations:

[0298] Obtain a mapping relationship table stored in the backend database, where the mapping relationship table is used to record the mapping relationship between social accounts and blockchain addresses;

[0299] According to the mapping relationship table, query the blockchain addresses corresponding to each associated account in the social network information;

[0300] Generate a list of blockchain addresses associated with the target object based on the queried blockchain addresses.

[0301] In a possible implementation manner, the processor 1201 is further configured to perform the following operations:

[0302] In response to a business request initiated by a target object in a decentralized application client, the business request is generated based on a business operation performed by a social account of the target object in a target social application;

[0303] Generate resource transfer transaction data based on the list of blockchain addresses associated with the target object, the resource transfer transaction data including a target resource amount of the digital resource to be transferred to the blockchain address of the target associated object of the target object;

[0304] The resource transfer transaction data is processed on the chain, wherein the on-chain processing includes: transferring the digital resources of the target resource quantity to the blockchain address of the target associated object of the target object.

[0305] Specifically, the memory 1204 is used to store a computer program, where the computer program includes program instructions. The processor 1201 calls the program instructions stored in the memory 1204 and is also used to perform the following operations:

[0306] In response to an address login request initiated by a resource client of a target object, the address login request is used to request login in a decentralized application client based on the blockchain address of the target object;

[0307] After detecting a successful login based on the target object's blockchain address, an authorization login request is generated, and the authorization login request is initiated for the target object's social account in the target social application;

[0308] Sending an authorization login request to the backend server, the authorization login request is used to trigger the backend server to obtain a blockchain address list based on the authorization credentials of the social account, the blockchain address list records the associated accounts included in the social network information and the blockchain addresses corresponding to the associated accounts; the social network information is obtained from the application platform of the target social application based on the authorization credentials corresponding to the social account of the target object;

[0309] Receive the blockchain address list returned by the backend server.

[0310] In a possible implementation, a communication connection is established between the resource client and the decentralized application client based on the relay server; before responding to the address login request initiated by the resource client, the processor 1201 is further configured to perform the following operations:

[0311] Send a client topic message to the relay server. The client topic message carries the client ID of the decentralized application client. The client topic message is used to indicate the initiation of a login request.

[0312] Receiving a resource topic message sent by a relay server, where the resource topic message is generated by a resource client after receiving a client topic message forwarded by the relay server and completing a login process;

[0313] Parse resource topic messages and establish a communication connection with the resource client of the target object.

[0314] In a possible implementation, after responding to the address login request initiated by the resource client of the target object, the processor 1201 is further configured to perform the following operations:

[0315] Receive the random login parameter sent by the backend server, which is generated by the backend server after receiving the address login request;

[0316] Send the login random parameters to the resource client of the target object;

[0317] Send the login signature data sent by the resource client to the backend server. The login signature data is determined by the target object's resource client after signing the target object's blockchain address and login random parameters;

[0318] If the second interaction parameter sent by the backend server is received, it is determined that the blockchain address of the target object is successfully logged in to the decentralized application client.

[0319] In a possible implementation manner, the processor 1201 is further configured to perform the following operations:

[0320] In response to the authorization access request initiated by the target object, sending the authorization access request to the application platform of the target social application corresponding to the social account of the target object;

[0321] Receive the authorization code returned by the application platform. The authorization code is generated by the application platform for the decentralized application client after detecting the authorization processing operation of the target object;

[0322] The authorization code is sent to the backend server, so that the backend server obtains the authorization credentials of the target object's social account based on the authorization code.

[0323] In addition, it should be pointed out here that: the embodiment of the present application also provides a computer storage medium, and a computer program is stored in the computer storage medium, and the computer program includes program instructions. When the processor executes the above program instructions, the method in the corresponding embodiment of the foregoing text can be executed, so it will not be repeated here. For technical details not disclosed in the computer storage medium embodiment involved in this application, please refer to the description of the method embodiment of this application. As an example, the program instructions can be deployed on a computer device, or executed on multiple computer devices located in one place, or, executed on multiple computer devices distributed in multiple locations and interconnected by a communication network.

[0324] According to one aspect of the present application, a computer program product or a computer program is provided, the computer program product or the computer program includes a computer instruction, and the computer instruction is stored in a computer-readable storage medium. The processor of the computer device reads the computer instruction from the computer-readable storage medium, and the processor executes the computer instruction, so that the computer device can execute the method in the above corresponding embodiment, so it will not be repeated here.

[0325] A person of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiments can be implemented by instructing related hardware through a computer program, and the above-mentioned program can be stored in a computer-readable storage medium, and when the program is executed, it can include the processes of the embodiments of the above-mentioned methods. The above-mentioned storage medium can be a disk, an optical disk, a read-only memory (ROM) or a random access memory (RAM), etc.

[0326] The above disclosure is only the preferred embodiment of the present application, which certainly cannot be used to limit the scope of rights of the present application. Therefore, equivalent changes made according to the claims of the present application are still within the scope covered by the present application.

Claims

1. A data processing method based on blockchain, characterized in that: include: In response to an authorization login request initiated for a social account of a target object, obtaining an authorization credential corresponding to the social account, the authorization credential being used to perform permission verification when requesting data synchronization from an application platform of a target social application corresponding to the social account; Calling the authorization interface of the application platform to initiate a data synchronization request carrying the authorization credential, wherein the data synchronization request is used to request to obtain the social network information of the target object in the target social application; Receiving social network information returned by the application platform in response to the data synchronization request, and obtaining a blockchain address list associated with the target object based on the associated account included in the social network information, wherein the blockchain address list records the associated account and the blockchain address corresponding to the associated account; Output the blockchain address list associated with the target object.

2. The method according to claim 1, characterized in that Before responding to the authorization login request initiated for the target object's social account, the method further includes: Receiving an address login request for a target object, wherein the address login request is generated after a login request is made in a decentralized application client based on the blockchain address of the target object; In response to the address login request, generate a login random parameter, and return the login random parameter to the decentralized application client; Among them, the login random parameter is used to trigger the decentralized application client to request the resource client of the target object to obtain the login signature data for the target object, and the login signature data is used to complete the login operation of the target object in the decentralized application client.

3. The method according to claim 2, characterized in that The method further comprises: Receiving login signature data sent by the decentralized application client, where the login signature data is determined by the resource client of the target object after signing the blockchain address of the target object and the login random parameter; Performing verification processing on the login signature data, and if the result of the verification processing is successful, determining that the blockchain address of the target object is successfully logged in in the decentralized application client; Among them, after determining that the target object has successfully logged in, a first interaction parameter and a second interaction parameter are generated, and the first interaction parameter and the second interaction parameter are used for verification processing during the data interaction between the decentralized application client and the background server.

4. The method according to claim 1, characterized in that The method further comprises: Obtaining an authorization code for the decentralized application client, wherein the authorization code is generated by the application platform after detecting an authorization processing operation performed by the target object on the decentralized application client; The authorization code is sent to the application platform, and the authorization code is used to trigger the application platform to generate an authorization credential corresponding to the social account of the target object after the authorization code is verified.

5. The method according to claim 4, characterized in that The authorization credential includes an access token, and the access token has a validity period; the method further includes any one of the following steps: If the access token is within the validity period, generating a data synchronization request based on the access token, and sending the data synchronization request to the application platform of the target social application, wherein the data synchronization request is used to trigger acquisition of the social network information corresponding to the target object in the target social application; If the access token is not within the validity period, a feedback message is generated and sent to the decentralized application client. The feedback message is used to trigger the target object to re-initiate authorized login in the decentralized application client to regenerate new authorization credentials.

6. The method according to claim 5, characterized in that The authorization credential includes an access token and an update token, and the validity period of the update token is greater than the validity period of the access token; The method further comprises: If the access token is not within the validity period, and the update token is within the validity period, calling the token update interface to update the update token to generate a new access token, and sending the new access token to the decentralized application client; or, If the access token is not within the validity period and the update token is not within the validity period, a feedback message is generated and sent to the decentralized application client. The feedback message is used to trigger the target object to re-initiate authorized login in the decentralized application client to regenerate new authorization credentials.

7. The method according to claim 1, characterized in that The obtaining of a blockchain address list based on the associated accounts included in the social network information includes: Obtaining a mapping relationship table stored in a backend database, wherein the mapping relationship table is used to record a mapping relationship between a social account and a blockchain address; According to the mapping relationship table, query the blockchain addresses corresponding to the associated accounts in the social network information; A blockchain address list associated with the target object is generated based on the queried blockchain addresses.

8. The method according to claim 1, characterized in that The method further comprises: Responding to a service request initiated by a target object in a decentralized application client, the service request being generated after a service operation performed by a social account of the target object in the target social application; Generate resource transfer transaction data based on the list of blockchain addresses associated with the target object, wherein the resource transfer transaction data includes a target resource amount of digital resources to be transferred to the blockchain address of a target associated object of the target object; The resource transfer transaction data is processed on a chain, wherein the on-chain processing includes: transferring digital resources of a target resource quantity to a blockchain address of a target associated object of the target object.

9. A data processing method based on blockchain, characterized in that: include: Responding to an address login request initiated by a resource client of a target object, the address login request being used to request login on a decentralized application client based on the blockchain address of the target object; After detecting successful login based on the blockchain address of the target object, generating an authorization login request, wherein the authorization login request is initiated for the social account of the target object in the target social application; The authorization login request is sent to the backend server, wherein the authorization login request is used to trigger the backend server to obtain a blockchain address list based on the authorization credentials of the social account, wherein the blockchain address list records the associated accounts included in the social network information and the blockchain addresses corresponding to the associated accounts; the social network information is obtained from the application platform of the target social application based on the authorization credentials corresponding to the social account of the target object; Receive the blockchain address list returned by the backend server.

10. The method according to claim 9, characterized in that The resource client and the decentralized application client establish a communication connection based on the relay server; before responding to the address login request initiated by the resource client, it also includes: Sending a client topic message to the relay server, wherein the client topic message carries a client identifier of the decentralized application client, and the client topic message is used to indicate initiation of a login request; Receiving a resource topic message sent by the relay server, wherein the resource topic message is generated by the resource client after receiving the client topic message forwarded by the relay server and completing a login process; The resource subject message is parsed, and a communication connection is established with the resource client of the target object.

11. The method according to claim 9, characterized in that After responding to the address login request initiated by the resource client of the target object, the method further includes: Receiving a random login parameter sent by a backend server, wherein the random login parameter is generated by the backend server after receiving the address login request; Sending the login random parameter to the resource client of the target object; Sending the login signature data sent by the resource client to the backend server, wherein the login signature data is determined by the resource client of the target object after signing the blockchain address of the target object and the login random parameter; If the second interaction parameter sent by the backend server is received, it is determined that the decentralized application client is successfully logged in based on the blockchain address of the target object.

12. The method according to claim 9, characterized in that The method further comprises: In response to the authorization access request initiated by the target object, sending the authorization access request to an application platform of a target social application corresponding to the social account of the target object; Receiving an authorization code returned by the application platform, where the authorization code is generated by the application platform for the decentralized application client after detecting an authorization processing operation of the target object; The authorization code is sent to a backend server, so that the backend server obtains the authorization credential of the target object's social account based on the authorization code.

13. A data processing device based on blockchain, characterized in that: include: A response unit, configured to respond to an authorization login request initiated for a social account of a target object, and obtain an authorization credential corresponding to the social account, wherein the authorization credential is used to perform permission verification when requesting data synchronization from an application platform of a target social application corresponding to the social account; A processing unit, configured to call the authorization interface of the application platform to initiate a data synchronization request carrying the authorization credential, wherein the data synchronization request is used to request to obtain the social network information of the target object in the target social application; a receiving unit, configured to receive the social network information returned by the application platform in response to the data synchronization request, and obtain a blockchain address list associated with the target object based on the associated account included in the social network information, wherein the blockchain address list records the associated account and the blockchain address corresponding to the associated account; The processing unit is further configured to output the blockchain address list associated with the target object.

14. A data processing device based on blockchain, characterized in that: include: A processing unit, configured to respond to an address login request initiated by a resource client of a target object, wherein the address login request is used to request login in a decentralized application client based on a blockchain address of the target object; The processing unit is further configured to generate an authorization login request after detecting a successful login based on the blockchain address of the target object, wherein the authorization login request is initiated for the social account of the target object in the target social application; A sending unit, configured to send the authorization login request to a backend server, wherein the authorization login request is used to trigger the backend server to obtain a blockchain address list based on the authorization credentials of the social account, wherein the blockchain address list records the associated accounts included in the social network information and the blockchain addresses corresponding to the associated accounts; the social network information is obtained from the application platform of the target social application based on the authorization credentials corresponding to the social account of the target object; The receiving unit is used to receive the blockchain address list returned by the backend server.

15. A computer device, characterized in that: include: storage devices and processors; a memory storing one or more computer programs; A processor, configured to load the one or more computer programs to implement the blockchain-based data processing method as described in any one of claims 1-8 or 9-12.

16. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, which is suitable for being loaded by a processor and executing the blockchain-based data processing method as described in any one of claims 1-8 or 9-12.

17. A computer program product, characterized in that The computer program product includes a computer program, which is suitable for being loaded by a processor and executing the blockchain-based data processing method as described in any one of claims 1-8 or 9-12.

Citation Information

Patent Citations

  • System and method for storing and distributing consumer information

    CA3050487A1

  • Media content sharing system, routing management system and Social media platform method

    CN108319629A

  • Network identity protection method and device, electronic equipment and storage medium

    CN111353903A

  • System and method for storing and distributing consumer information

    US20200014691A1