Data processing method and device based on block chain and related equipment

By storing and managing the associated relationship data between objects on the blockchain, and using digital collection contracts to achieve unified management of relationships between objects, the security and universality of relationship data between objects are solved, and efficient and secure cross-platform relationship data management is achieved.

CN119720141APending Publication Date: 2025-03-28TENCENT TECHNOLOGY (SHENZHEN) CO LTD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202311260433.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-09-27
Publication Date
2025-03-28

AI Technical Summary

Technical Problem

The prior art is difficult to effectively solve the security and universality of relational data between objects, especially in the migration of associations and data security between different application platforms.

Method used

By storing the association data between objects on the blockchain, using digital collection contracts to cast attention to digital collections, and establishing association relationships on the blockchain, achieving unified management and secure storage of relationships between objects.

Benefits of technology

Ensure the security and universality of relational data between objects, allowing different application platforms to establish relationships between objects through unified association data on the blockchain, improving the reliability and cross-platform universality of relational data.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119720141A_ABST
    Figure CN119720141A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a block chain-based data processing method and device and related equipment, and the method comprises the steps: receiving a relationship establishment request submitted by a first object, the relationship establishment request comprising an identifier of an identity digital collection of a second object and a block chain account address of the first object; determining an access address of a concerned digital collection contract of the second object according to the identifier of the identity digital collection of the second object; calling an attention digital collection contract of the second object according to the access address to cast a first attention digital collection, and creating an association relationship between the first attention digital collection and a block chain account address of the first object; the association relationship is added in an association relationship data set of the first object stored in the block chain, and the association relationship data set of the first object is used for an application server of at least one application to determine the association relationship between the first object and other objects, so that the security of the relationship data between the objects can be ensured; and meanwhile, the universality of the relational data can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and in particular to a blockchain-based data processing method, device, and related equipment. Background Art

[0002] With the rapid development of Internet technology, a large number of application platforms have emerged. The same object (such as the user of the application) has different application accounts to maintain on different application platforms. The associations between objects are centrally managed by the application platform, and it is difficult to connect different application platforms. For example, if an object follows other objects on application platform A, when it wants to maintain the association again on application platform B, it needs to know the identification information of the other object on application platform B and perform the follow operation. The associations between objects cannot be migrated. In addition, the application platform can add associations between objects at will, and the associated data is at risk of being tampered with. If the application platform goes bankrupt or loses data, the association data between objects will also be lost. The associations owned by each object are becoming more and more complex and diverse, and the difficulty of maintenance is further increased.

[0003] Therefore, how to ensure the security of relational data between objects and improve the versatility of relational data has become a technical problem that needs to be solved urgently. Summary of the invention

[0004] The purpose of this application is to provide a data processing method, device and related equipment based on blockchain. This method can store the association relationship data between objects on the blockchain. Different application platforms establish relationships between objects through unified association relationship data on the blockchain, which can ensure the security of the relationship data between objects and improve the versatility of the relationship data.

[0005] In a first aspect, an embodiment of the present application provides a data processing method based on blockchain, the method comprising:

[0006] Receive a relationship establishment request submitted by the first object, the relationship establishment request including the identifier of the identity digital collection of the second object and the blockchain account address of the first object, the identity digital collection of the second object is minted by calling the identity digital collection contract;

[0007] Determine the access address of the digital collection contract of the second object according to the identifier of the identity digital collection of the second object;

[0008] Call the digital collection contract of the second object according to the access address to cast the first digital collection, and create an association relationship between the first digital collection and the blockchain account address of the first object;

[0009] The association relationship between the first digital collection of interest and the blockchain account address of the first object is added to the association relationship data set of the first object stored in the blockchain. The association relationship data set of the first object is used by an application server of at least one application to determine the association relationship between the first object and other objects.

[0010] In a second aspect, an embodiment of the present application provides a data processing method based on blockchain, the method comprising:

[0011] In response to a login request from a terminal device, a relationship data acquisition request is sent to a node of the blockchain network;

[0012] A receiving node sends a set of association relationship data of at least one object in response to a relationship data acquisition request, wherein at least one object is an object holding an identity digital collection, and the set of association relationship data of each object includes an association relationship between the blockchain account address of each object and the held digital collection of interest; the identity digital collection is minted by calling an identity digital collection contract, the digital collection of interest is minted by calling a digital collection of interest contract, and the access address of the digital collection of interest contract is stored in the corresponding identity digital collection;

[0013] An association relationship network between at least one object is constructed according to an association relationship data set of at least one object.

[0014] In a third aspect, an embodiment of the present application provides a data processing method based on blockchain, the method comprising:

[0015] In response to the object information acquisition instruction of the first object, sending an object information acquisition request to the application server;

[0016] Receiving description information of at least one object sent by the application server in response to the object information acquisition request, the description information includes the identification and characteristic information of the identity digital collection, and the at least one object is an object holding the identity digital collection;

[0017] Displaying description information of at least one object, and obtaining a second object selected by the first object according to the description information of the at least one object;

[0018] A relationship establishment request is sent to the application server, where the relationship establishment request includes the identifier of the identity digital collection of the second object and the blockchain account address of the first object, so that the application server sends a relationship establishment request to the node, where the relationship establishment request is used to instruct the node to call the second object's attention digital collection contract to cast the first attention digital collection according to the identifier of the identity digital collection of the second object, and add the association relationship between the first attention digital collection and the blockchain account address of the first object in the association relationship data set of the first object stored in the blockchain.

[0019] In a fourth aspect, an embodiment of the present application provides a data processing device based on blockchain, the device comprising:

[0020] A receiving module, configured to receive a relationship establishment request submitted by a first object, wherein the relationship establishment request includes an identifier of an identity digital collection of a second object and a blockchain account address of the first object, wherein the identity digital collection of the second object is minted by calling an identity digital collection contract;

[0021] A determination module, configured to determine an access address of a digital collection contract of interest of the second object according to an identifier of the identity digital collection of the second object;

[0022] A processing module is used to call the digital collection contract of the second object according to the access address to mint the first digital collection, and create an association relationship between the first digital collection and the blockchain account address of the first object; add the association relationship between the first digital collection and the blockchain account address of the first object in the association relationship data set of the first object stored in the blockchain, and the association relationship data set of the first object is used by an application server of at least one application to determine the association relationship between the first object and other objects.

[0023] In a fifth aspect, an embodiment of the present application provides a data processing device based on blockchain, the device comprising:

[0024] A sending module, configured to send a relationship data acquisition request to a node of the blockchain network in response to a login request of a terminal device;

[0025] A receiving module, used to receive a set of association relationship data of at least one object sent by the node in response to the relationship data acquisition request, wherein the at least one object is an object holding an identity digital collection, and the set of association relationship data of each object includes an association relationship between the blockchain account address of each object and the held digital collection of interest; the identity digital collection is minted by calling an identity digital collection contract, the digital collection of interest is minted by calling a digital collection of interest contract, and the access address of the digital collection of interest contract is stored in the corresponding identity digital collection;

[0026] The processing module is used to construct an association relationship network between the at least one object according to the association relationship data set of the at least one object.

[0027] In a sixth aspect, an embodiment of the present application provides a data processing device based on blockchain, the device comprising:

[0028] A sending module, configured to send an object information acquisition request to an application server in response to an object information acquisition instruction of a first object;

[0029] A receiving module, configured to receive description information of at least one object sent by the application server in response to the object information acquisition request, wherein the description information includes an identifier and feature information of the identity digital collection, and the at least one object is an object holding the identity digital collection;

[0030] A display module, configured to display description information of the at least one object;

[0031] An acquisition module, configured to acquire a second object selected by the first object according to the description information of the at least one object;

[0032] The sending module is also used to send a relationship establishment request to the application server, wherein the relationship establishment request includes the identifier of the identity digital collection of the second object and the blockchain account address of the first object, so that the application server sends a relationship establishment request to the node, wherein the relationship establishment request is used to instruct the node to call the digital collection contract of the second object to mint the first digital collection according to the identifier of the identity digital collection of the second object, and add the association relationship between the first digital collection and the blockchain account address of the first object in the association relationship data set of the first object stored in the blockchain.

[0033] In the seventh aspect, an embodiment of the present application provides a computer device, comprising a processor, a network interface and a storage device, wherein the processor, the network interface and the storage device are interconnected, wherein the network interface is controlled by the processor for sending and receiving data, the storage device is used to store a computer program, the computer program comprises program instructions, and the processor is configured to call the program instructions to execute the blockchain-based data processing method as described in the first aspect or the second aspect.

[0034] In the eighth aspect, an embodiment of the present application provides a terminal device, comprising a processor, a network interface, a storage device, an input device and an output device, wherein the processor, the network interface, the storage device, the input device and the output device are interconnected, wherein the network interface is controlled by the processor for sending and receiving data, the input device is used to receive operation signals, the output device is used to display data, the storage device is used to store a computer program, the computer program comprises program instructions, and the processor is configured to call the program instructions to execute the blockchain-based data processing method described in the third aspect.

[0035] In the ninth aspect, an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, wherein the computer program includes program instructions, and the program instructions are executed by a processor to execute the blockchain-based data processing method as described in the first aspect, the second aspect, or the third aspect.

[0036] In the tenth aspect, an embodiment of the present application provides a computer program product, including a computer program, which, when executed by a computer processor, implements the blockchain-based data processing method as described in the first aspect, the second aspect, or the third aspect.

[0037] In an embodiment of the present application, a terminal device submits a relationship establishment request to a node of a blockchain network, the relationship establishment request including an identifier of an identity digital collection of a second object and a blockchain account address of a first object, the identity digital collection of the second object being minted by calling an identity digital collection contract; the node of the blockchain network receives the relationship establishment request, determines an access address of a digital collection contract of interest of the second object according to the identifier of the identity digital collection of the second object, calls the digital collection contract of interest of the second object according to the access address to mint a first digital collection of interest, and creates an association relationship between the first digital collection of interest and the blockchain account address of the first object; the node of the blockchain network adds an association relationship between the first digital collection of interest and the blockchain account address of the first object to an association relationship data set of the first object stored in the blockchain, so that an application server of at least one application determines an association relationship between the first object and other objects according to the association relationship data set of the first object, thereby enabling the association relationship data between objects to be stored on the blockchain, and different application platforms establish relationships between objects through unified association relationship data on the blockchain, thereby ensuring the security of the relationship data between objects and improving the universality of the relationship data. BRIEF DESCRIPTION OF THE DRAWINGS

[0038] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the background technology, the drawings required for use in the embodiments of the present application or the background technology will be described below.

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

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

[0041] Figure 1c It is a schematic diagram of a process of generating a new block provided by an embodiment of the present application;

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

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

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

[0045] Figure 5 This is a flowchart of another data processing method based on blockchain provided in an embodiment of the present application;

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

[0047] Figure 6b This is a schematic diagram of a blockchain-based association relationship management process provided by an embodiment of the present application;

[0048] Figure 6c This is a schematic diagram of an association relationship application based on blockchain provided in an embodiment of the present application;

[0049] Figure 7 is a structural schematic diagram of a data processing device provided in an embodiment of the present application;

[0050] Figure 8 is a structural schematic diagram of another data processing device provided in an embodiment of the present application;

[0051] Fig. 9 is a structural diagram of another data processing device provided in an embodiment of the present application;

[0052] Fig.10 is a structural schematic diagram of a computer device provided in an embodiment of the present application;

[0053] Fig.11 It is a structural diagram of a terminal device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0054] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0055] Blockchain: (English: blockchain or block chain) is a series of text records (also called blocks) that are connected and protected by cryptography. Each block contains the encrypted hash of the previous block, the corresponding timestamp, and transaction data (usually represented by the hash value calculated by the Merkle tree algorithm). This design makes the block content difficult to tamper with. The distributed ledger connected by blockchain technology allows two parties to effectively record transactions and can permanently check the transaction.

[0056] Digital collectibles: In essence, they are unique and trustworthy digital rights certificates in the blockchain network. They are data objects with multi-dimensional and complex attributes that can be recorded and processed on the blockchain.

[0057] In order to facilitate understanding of the embodiments of the present application, the following describes the data processing method based on blockchain provided by the embodiments of the present application. Figure 1a , Figure 1a 1 is a schematic diagram of the architecture of a blockchain-based data processing system provided in an embodiment of the present application. The data processing system includes a blockchain network 11, an application server 102, and a terminal device 13, wherein:

[0058] The blockchain network 11 refers to a network for data sharing between node devices, and the blockchain network may include multiple node devices 101. Each node device 101 can receive input information when performing normal work, and maintain the shared data (i.e., blockchain) in the blockchain network based on the received input information. In order to ensure the information intercommunication in the blockchain network, there can be an information connection between each node device 101, and point-to-point communication can be achieved between any two node devices 101, and point-to-point communication can be performed specifically through a wired communication link or a wireless communication link. For example, when any node device 101 in the blockchain network receives input information, other node devices 101 obtain the input information according to the consensus algorithm, and store the input information as data in the shared data, so that the data stored on all node devices 101 in the blockchain network are consistent. Among them, the blockchain maintained by the blockchain network 11 can store the identity digital collections of different objects, as well as the association relationship data set between each object and other objects. The association relationship data set includes the association relationship between the digital collection of interest cast by each object and the blockchain account address of other objects. When the association relationship between objects changes, it can be updated to the blockchain in a timely manner.

[0059] Optionally, the blockchain maintained by the blockchain network 11 may be a consortium chain or other forms of blockchain, such as a public chain or a private chain, etc.

[0060] Each application server 102 may correspond to different applications, for example Figure 1a The three application servers 102 shown in the figure may be application servers for application 1, application 2, and application 3, respectively. The application servers 102 are used to provide service functions of corresponding applications, such as interaction between objects, dynamic push between objects, etc.

[0061] The terminal device 13 can communicate with the application server 102, for example, submitting an object information acquisition request, a relationship establishment request, etc. to the application server 102. The object information acquisition request can be used to instruct the application server 102 to obtain the description information of other objects holding identity digital collections from the blockchain network 11 for reference by the object; if it is determined to pay attention to at least one other object mentioned above, a relationship establishment request can be further submitted. The relationship establishment request can be used by the node device 101 to call the digital collection contract of at least one other object according to the identification of the identity digital collection of at least one other object determined to cast the digital collection of interest, and add the association relationship between the digital collection of interest and the blockchain account address of the object to the association relationship data set of the object stored on the blockchain network 11. Among them, the terminal device 13 can be a smart phone, a tablet computer, a laptop computer, a desktop computer, a smart terminal mounted on a mobile platform, etc., which is not limited in the embodiments of the present application.

[0062] It should be noted that Figure 1a The number of node devices 101, application servers 102, terminal devices 13, and the number of blockchain networks 11 and application servers 102 shown in the figure are only schematic. Any number of nodes, blockchain networks, terminal devices, and application server clusters can be deployed according to actual needs. Node devices 101 and application servers 102 can be independent physical servers, or server clusters or distributed systems composed of multiple physical servers, or 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, content delivery networks (CDNs), and big data.

[0063] Among them, for each node device in the blockchain network, there is a node identifier corresponding to it, and each node device in the blockchain network can store the node identifiers of other node devices in the blockchain network, so that the generated blocks can be broadcast to other node devices in the blockchain network according to the node identifiers of other node devices. A node identifier list as shown in the following table can be maintained in each node device, and the node name and node identifier are stored in the node identifier list accordingly. Among them, the node identifier can be an Internet Protocol (IP) address and any other information that can be used to identify the node. The table only uses the IP address as an example for illustration.

[0064] Node Name Node ID Node 1 000.000.000.000 Node 2 111.111.111.111 … … Node N 999.999.999.999

[0065] Each node device in the blockchain network stores the same blockchain. The blockchain consists of multiple blocks, see Figure 1b The blockchain consists of multiple blocks. 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 takes the genesis block as the parent block. 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. 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.

[0066] Among them, when generating each block in the blockchain, see Figure 1c When the node device where the blockchain is located receives the input information, it verifies the input information. After the verification is completed, the input information is stored in the memory pool and the hash tree used to record the input information is updated; then, the update timestamp is updated to the time when the input information is received, and different random numbers are tried to calculate the eigenvalue multiple times so that the calculated eigenvalue can satisfy the following formula:

[0067] SHA256(SHA256(version+prev_hash+merkle_root+ntime+nbits+x)) <TARGET

[0068] Among them, SHA256 is the eigenvalue algorithm used to calculate the eigenvalue; version (version number) is the version information of the relevant block protocol in the blockchain; prev_hash is the block header eigenvalue of the parent block of the current block; merkle_root is the eigenvalue of the input information; ntime is the update time of the update timestamp; nbits is the current difficulty, which is a fixed value within a period of time and is determined again after exceeding the fixed time period; x is a random number; TARGET is the eigenvalue threshold, which can be determined based on nbits.

[0069] In this way, when the random number that satisfies the above formula is calculated, the information can be stored accordingly, the block header and block body can be generated, and the current block can be obtained. Subsequently, the node device where the blockchain is located sends the newly generated block to other node devices in the blockchain network according to the node identification of other node devices in the blockchain network. Other node devices verify the newly generated block and add the newly generated block to the blockchain stored in them after the verification is completed.

[0070] Among them, smart contracts can be run on the node devices of the blockchain network. Smart contracts are code implementations that are executed when certain conditions are met. The contract logic can be defined through programming languages ​​and published to the blockchain (smart contract registration). According to the logic of the contract terms, the key or other events are called to trigger the execution and complete the contract logic. At the same time, it also provides the function of updating and canceling the smart contract.

[0071] Combine the following Figure 1aThe implementation process of the blockchain-based data processing solution provided in the embodiment of the present application is described as follows: when any object (for example, a first object) needs to pay attention to other objects (for example, a second object), the terminal device 13 can submit a relationship establishment request to the node device 101 of the blockchain network, and the node device 101 of the blockchain network receives the relationship establishment request submitted by the first object through the terminal device 13. The relationship establishment request can be first received by the application server 102, and then the application server 102 sends the relationship establishment request to the node device 101, or it can be directly sent by the terminal device 13 to the node device 101. The relationship establishment request includes the identifier of the identity digital collection of the second object and the blockchain account address of the first object. The identity digital collection of the second object is minted by calling the identity digital collection contract; after the node device 101 determines the access address of the second object's attention digital collection contract based on the identifier of the second object's identity digital collection, it calls the second object's attention digital collection contract based on the access address to mint the first attention digital collection, and creates an association relationship between the first attention digital collection and the blockchain account address of the first object; the node device 101 adds the association relationship between the first attention digital collection and the blockchain account address of the first object to the association relationship data set of the first object stored in the blockchain network 11, and stores the association relationship between objects on the blockchain with the help of digital collections, thereby ensuring the security of the relationship data between objects.

[0072] Furthermore, when the first object opens any application, the application server 102 corresponding to any application can obtain the association relationship data set of the first object from the blockchain, and determine the association relationship between the first object and other objects based on the association relationship data set. Alternatively, the application server 102 can also periodically obtain the association relationship data set of the first object from the blockchain, and determine the association relationship between the first object and other objects based on the association relationship data set, thereby ensuring the security of the relationship data between objects and improving the versatility of the relationship data.

[0073] It is understandable that in the specific implementation of this application, when the information and other data of the object are involved, when the above embodiments of this application are applied to specific products or technologies, it is necessary to obtain the permission or consent of the object, and the collection, use and processing of the relevant data need to comply with the relevant laws, regulations and standards of the relevant countries and regions.

[0074] The implementation details of the technical solution of the embodiment of the present application are described in detail below:

[0075] See also Figure 2 , Figure 2 1 is a flowchart of a data processing method based on blockchain provided in an embodiment of the present application. The method is executed by a node device 101 of a blockchain network, such as Figure 2 As shown, the blockchain-based data processing method may include the following steps:

[0076] S201. A node of the blockchain network receives a relationship establishment request submitted by a first object. The relationship establishment request includes the identifier of the identity digital collection of the second object and the blockchain account address of the first object. The identity digital collection of the second object is minted by calling the identity digital collection contract.

[0077] Among them, the relationship establishment request is used to instruct the node to create and store the association relationship between the first digital collection of interest minted by the second object and the blockchain account address of the first object, and the identity digital collection of the second object includes the identifier of the identity digital collection of the second object.

[0078] Specifically, when the first object A needs to pay attention to the second object B, the first object A first submits a relationship establishment request with the second object B to the application server of the application through the application in the first terminal device. The relationship establishment request includes the identity of the second object B's digital collection and the blockchain account address of the first object A. The application server obtains the relationship establishment request submitted by the first terminal device. Then, the application server sends the relationship establishment request submitted by the first object A to the node of the blockchain network.

[0079] Optionally, when the first object A needs to pay attention to the second object B, the first object A can directly submit a relationship establishment request with the second object B to the node of the blockchain network through the first terminal device. The relationship establishment request includes the identifier of the identity digital collection of the second object B and the blockchain account address of the first object A. The node of the blockchain network obtains the relationship establishment request submitted by the first terminal device.

[0080] S202. The node of the blockchain network determines the access address of the digital collection contract of the second object according to the identifier of the identity digital collection of the second object.

[0081] S203. The node of the blockchain network calls the digital collection contract of the second object according to the access address to cast the first digital collection, and creates an association relationship between the first digital collection and the blockchain account address of the first object.

[0082] It should be noted that each object holding an identity digital collection on the blockchain has a unique identity digital collection identifier and an access address of the digital collection contract. The identity digital collection can be used to uniquely represent the identity information of an object on the blockchain. The identity information includes the identity digital collection identifier of the object and the characteristic information of the object (such as the gender, nickname, etc. of the object). The identity digital collection can include the access address of the digital collection contract. The digital collection contract is used to mint vouchers (i.e., digital collections of interest) for the object that is concerned with itself, and to create an association relationship between the digital collection of interest and the blockchain account address of the object that is concerned with itself. For example, the digital collection contract of the first object A is used to mint digital collections of interest for other objects that are concerned with the first object A, and to create an association relationship between the digital collection of interest and the blockchain account addresses of other objects that are concerned with the first object A.

[0083] Specifically, after the node of the blockchain network obtains the request for establishing a relationship with the second object B submitted by the first object A, it obtains the identity digital collection of the second object B according to the identifier of the identity digital collection of the second object B contained in the request for establishing a relationship, and determines the access address of the digital collection contract of the second object B according to the identity digital collection of the second object B.

[0084] Furthermore, the node of the blockchain network calls the digital collection contract of the second object B according to the access address of the digital collection contract of the second object B, mints the first digital collection a for the first object A, and creates an association relationship between the first digital collection a and the blockchain account address of the first object A.

[0085] S204. Add the association relationship between the first digital collection and the blockchain account address of the first object to the association relationship data set of the first object stored in the node of the blockchain network. The association relationship data set of the first object is used by the application server of at least one application to determine the association relationship between the first object and other objects.

[0086] Specifically, the nodes of the blockchain network store the association relationship between the first digital collection a and the blockchain account address of the first object A in the association relationship data set of the first object A. After the first object A logs in to the first application, the application server of the application pulls the association relationship data set of the first object A from the nodes of the blockchain network, and determines the association relationship between the first object A and other objects based on the relationship data set, thereby obtaining the relevant data of the other objects in the first application and pushing it to the first object A. For example, according to the relationship data set, it is determined that the first object A follows the second object B, the third object C and the fourth object D, then the relevant data of the second object B, the third object C and the fourth object D in the first application (such as the latest developments) can be obtained, and these relevant data can be pushed to the first object A.

[0087] In an embodiment of the present application, a node of a blockchain network receives a relationship establishment request submitted by a first object, the relationship establishment request includes an identifier of an identity digital collection of a second object and a blockchain account address of the first object, the identity digital collection of the second object is minted by calling an identity digital collection contract; the access address of the digital collection contract of the second object is determined according to the identifier of the identity digital collection of the second object; the digital collection contract of the second object is called according to the access address to mint the first digital collection of interest, and an association relationship is created between the first digital collection of interest and the blockchain account address of the first object; the association relationship between the first digital collection of interest and the blockchain account address of the first object is added to the association relationship data set of the first object stored in the blockchain, and the association relationship data set of the first object is used by an application server of at least one application to determine the association relationship between the first object and other objects. By adopting an embodiment of the present application, the association relationship data between objects can be stored on the blockchain, and different application platforms can establish relationships between objects through unified association relationship data on the blockchain, which can ensure the security of the relationship data between objects and improve the versatility of the relationship data.

[0088] See also Figure 3 , Figure 3 1 is a flow chart of another data processing method based on blockchain provided in an embodiment of the present application. The method is executed by a node device 101 of a blockchain network, such as Figure 3 As shown, the blockchain-based data processing method may include the following steps:

[0089] S301. Receive an on-chain identity registration request submitted by a registration object, where the on-chain identity registration request includes a blockchain account address of the registration object, and the registration object includes a first object and a second object.

[0090] Among them, the on-chain identity registration request is used to instruct the node to assign a unique blockchain account address to each registered object.

[0091] Specifically, before the first object A and the second object B use the blockchain network, the first object A and the second object B first submit an on-chain identity registration request to the application server of the application through the application in the terminal device. The on-chain identity registration request includes the blockchain account address of the first object A and the second object B. Correspondingly, the application server obtains the on-chain identity registration request submitted by the terminal device. Then, the application server sends the on-chain identity registration request submitted by the first object A and the second object B to the node of the blockchain network, and the node of the blockchain network obtains the on-chain identity registration request submitted by the application server.

[0092] S302. Call the identity digital collection contract to mint the identity digital collection of the registered object according to the blockchain account address of the registered object.

[0093] Among them, the identity digital collection contract is used to mint a unique identity digital collection for each object. The identity digital collection includes the identifier of the identity digital collection of each object and the access address of the digital collection contract.

[0094] Specifically, after the node of the blockchain network obtains the on-chain identity registration request submitted by the first terminal device, it calls the identity digital collection contract on the blockchain network, and casts the identity digital collection of the first object A for the first object A according to the blockchain account address of the first object A, and casts the identity digital collection of the second object B for the second object B according to the blockchain account address of the second object B. The identity digital collection contract can also be called to create the attention digital collection contract of the first object A and the attention digital collection contract of the second object B, and the access address of the attention digital collection contract of the first object A is recorded in the identity digital collection of the first object, and the access address of the attention digital collection contract of the second object B is recorded in the identity digital collection of the second object B.

[0095] S303. Receive a relationship establishment request submitted by the first object, where the relationship establishment request includes the identifier of the identity digital collection of the second object and the blockchain account address of the first object. The identity digital collection of the second object is minted by calling the identity digital collection contract.

[0096] The specific implementation of S303 can refer to the relevant description of the relevant steps in the above embodiments, which will not be repeated here.

[0097] S304: Determine the access address of the digital collection contract of the second object according to the identifier of the identity digital collection of the second object.

[0098] In the specific implementation, after the node of the blockchain network obtains the relationship establishment request submitted by the first terminal device, it needs to call the identity digital collection contract and determine whether the identity digital collection of the first object A exists based on the blockchain account address of the first object A in the relationship establishment request. The purpose is to verify the authority of the first object A first. If the first object A has not performed on-chain identity registration, that is, the identity digital collection of the first object A does not exist, the following steps cannot be continued; if the identity digital collection of the first object A exists, the node of the blockchain network calls the identity digital collection contract and obtains the identity digital collection of the second object B based on the identifier of the identity digital collection of the second object B in the relationship establishment request; after obtaining the identity digital collection of the second object B, the node of the blockchain network calls the identity digital collection contract again, parses and processes the attention contract information included in the identity digital collection of the second object B, and obtains the access address of the attention digital collection contract of the second object B.

[0099] S305. Call the digital collection contract of the second object according to the access address to cast the first digital collection, and create an association relationship between the first digital collection and the blockchain account address of the first object.

[0100] Among them, the digital collection contract of each object may include a minting function, which is used to use the blockchain account address of the passed object to mint the digital collection corresponding to the object.

[0101] In the specific implementation, after the node of the blockchain network obtains the access address of the digital collection contract of the second object B, it calls the digital collection contract of the second object B according to the access address, and the digital collection contract includes a minting function; the node of the blockchain network passes the blockchain account address of the first object A into the minting function, and mints the first digital collection by executing the minting function.

[0102] S306. Add the association relationship between the first digital collection of interest and the blockchain account address of the first object to the association relationship data set of the first object stored in the blockchain. The association relationship data set of the first object is used by the application server of at least one application to determine the association relationship between the first object and other objects.

[0103] The specific implementation of S306 can refer to the relevant description of the relevant steps in the above embodiments, which will not be repeated here.

[0104] In some feasible implementations, after establishing an association relationship between objects using blockchain, the association relationship can be terminated according to their own needs. The node of the blockchain network obtains a relationship termination request submitted by the first object A through the first terminal device, and the relationship termination request includes the access address of the digital collection contract of the second object B and the identifier of the identity digital collection of the first object A. The relationship termination request is used to instruct the node of the blockchain network to delete the association relationship between the first digital collection of interest included in the association relationship data set of the first object A and the blockchain account address of the first object A; the node of the blockchain network calls the digital collection contract of the second object B according to the access address of the digital collection contract of the second object B, and destroys the first digital collection of interest; thereby deleting the association relationship between the first digital collection of interest included in the association relationship data set of the first object A and the blockchain account address of the first object A, so that the first object A terminates the association relationship with the second object B, for example, the first object A realizes the cancellation of attention to the second object B.

[0105] S307: Obtain a relationship data acquisition request of a first application server, where the first application server is any one of the at least one application server.

[0106] Specifically, when the first object A opens the first application through the terminal device, the application server of the application initiates a relationship data acquisition request to the node of the blockchain network in order to provide relevant service functions, such as displaying the dynamics of other objects associated with the first object A and realizing interaction between objects.

[0107] S308. Respond to the relationship data acquisition request to obtain a set of association relationship data of at least one object holding an identity digital collection stored in the blockchain.

[0108] S309: Send the association relationship data set of at least one object to the first application server, so that the first application server constructs an association relationship network between at least one object according to the association relationship data set of at least one object.

[0109] Specifically, after the node of the blockchain network obtains the relationship data acquisition request submitted by the application server 1, the node of the blockchain network responds to the relationship data acquisition request, thereby obtaining the association relationship data set of at least one object holding the identity digital collection stored in the blockchain, and sends the association relationship data set to the application server 1. The application server 1 constructs an association relationship network between at least one object based on the association relationship data set of at least one object.

[0110] In an embodiment of the present application, a node of a blockchain network receives an on-chain identity registration request submitted by a registered object, the on-chain identity registration request includes the blockchain account address of the registered object, and the registered object includes a first object and a second object; the identity digital collection contract is called to cast the identity digital collection of the registered object according to the blockchain account address of the registered object; the node of the blockchain network receives a relationship establishment request submitted by the first object, the relationship establishment request includes the identifier of the identity digital collection of the second object and the blockchain account address of the first object, and the identity digital collection of the second object is cast by calling the identity digital collection contract; the access address of the attention digital collection contract of the second object is determined according to the identifier of the identity digital collection of the second object; the attention digital collection contract of the second object is called according to the access address to cast the first attention digital collection, and the first attention digital collection is created The association relationship between the first digital collection of interest and the blockchain account address of the first object is added to the association relationship data set of the first object stored in the blockchain, and the association relationship data set of the first object is used by the application server of at least one application to determine the association relationship between the first object and other objects; the node of the blockchain network obtains the relationship data acquisition request of the first application server, and the first application server is any one of the at least one application server; in response to the relationship data acquisition request, the association relationship data set of at least one object holding the identity digital collection stored in the blockchain is obtained; the association relationship data set of at least one object is sent to the first application server, so that the first application server builds an association relationship network between at least one object according to the association relationship data set of at least one object. By adopting the embodiment of the present application, the association relationship data between objects can be stored on the blockchain, and different application platforms establish the relationship between objects through the unified association relationship data on the blockchain, which can ensure the security of the relationship data between objects and improve the versatility of the relationship data.

[0111] See also Figure 4 , Figure 4 1 is a flowchart of another data processing method based on blockchain provided in an embodiment of the present application. The method is executed by the application server 102, such as Figure 4 As shown, the blockchain-based data processing method may include the following steps:

[0112] S401. In response to a login request from a terminal device, a relationship data acquisition request is sent to a node of the blockchain network.

[0113] The login request is sent by the object holding the identity digital collection to the application server of the application after opening any application through the terminal device, and is used to indicate that the application server needs to pull the association relationship data set from the blockchain to the terminal device, so as to build an association relationship network between at least one object. Specifically, after receiving and responding to the login request sent by the first object A through the first terminal device, the application server 1 sends a relationship data acquisition request to the node of the blockchain network, which is used to instruct the node to send the association relationship data set of at least one object holding the identity digital collection in the blockchain network to the application server 1.

[0114] S402. The receiving node sends a set of association relationship data of at least one object in response to a request for obtaining relationship data. At least one object is an object holding an identity digital collection. The set of association relationship data of each object includes the association relationship between the blockchain account address of each object and the held digital collection. The identity digital collection is minted by calling an identity digital collection contract. The digital collection of interest is minted by calling a digital collection of interest contract. The access address of the digital collection of interest contract is stored in the corresponding identity digital collection.

[0115] S403: construct an association relationship network between at least one object according to the association relationship data set of at least one object.

[0116] Specifically, after the application server 1 submits a relationship data acquisition request to the node of the blockchain network, the node of the blockchain network receives and responds to the relationship data acquisition request, thereby obtaining a set of association relationship data of at least one object holding an identity digital collection stored on the blockchain, and sending the association relationship data set to the application server 1. The application server 1 receives the association relationship data set sent by the node of the blockchain network.

[0117] Furthermore, the application server 1 constructs an association relationship network between at least one object based on the association relationship data set of at least one object, so that the application server 1 can push relevant data of other objects associated with it in the application server 1 to each object, such as the dynamics of other objects, interactions between objects, etc.

[0118] In an optional implementation, the application server 102 may further perform the following steps:

[0119] Step 1: In response to an object information acquisition request submitted by a first object through a terminal device, the description information of at least one object is sent to the terminal device so that the terminal device displays the description information of at least one object, wherein the description information includes an identifier and feature information of the identity digital collection.

[0120] Specifically, after the application server 1 receives the object information acquisition request submitted by the first object A through the first terminal device, the application server 1 sends the description information of at least one object (such as the gender, nickname, location area, etc. of the object) to the first terminal device based on the object information acquisition request, so that the first terminal device can display the description information of at least one object to the first object A through the display screen. The description information of at least one object is issued to the blockchain through the identity digital collection contract.

[0121] Step 2: Receive a relationship establishment request sent by a terminal device, where the relationship establishment request includes an identifier of the identity digital collection of the second object and a blockchain account address of the first object, and the second object is selected by the first object based on description information of at least one object.

[0122] Accordingly, the terminal device sends a relationship establishment request to the application server. Optionally, before sending the relationship establishment request to the application server, the terminal device also selects an operation based on the description information of at least one object held by the object of the identity digital collection, and determines the second object from the description information of the at least one object.

[0123] Specifically, the first object A determines the second object (e.g., the third object C, the fourth object D) that it wants to focus on based on the description information of at least one object displayed on the display screen, and sends a relationship establishment request with the second object to the application server 1, and the application server 1 receives the relationship establishment request. The relationship establishment request includes the identifier of the identity digital collection of the third object C, the identifier of the identity digital collection of the fourth object D, and the blockchain account address of the first object A.

[0124] Step three: send a relationship establishment request to the node, where the relationship establishment request is used to instruct the node to call the second object's digital collection contract to cast the first digital collection according to the identifier of the second object's identity digital collection, and add the association relationship between the first digital collection and the blockchain account address of the first object in the association relationship data set of the first object stored in the blockchain.

[0125] Specifically, the application server 1 receives an object information acquisition request sent by the first object A through the first terminal device. Secondly, in response to the object information acquisition request, the description information of 10 objects is sent to the first terminal device used by the first object A, so that the description information of the 10 objects is displayed in the first terminal device used by the first object A. Based on the description information of the 10 objects displayed by the first terminal device, the first object A performs a selection operation through the first terminal device to determine the second object (for example, the third object C, the fourth object D) that it wants to pay attention to, and sends a relationship establishment request with the second object to the application server 1. The application server 1 receives the relationship establishment request and sends the relationship establishment request to the node of the blockchain network, so that the node of the blockchain network adds the association relationship between the digital collection of interest cast by the second object and the blockchain account address of the first object A in the association relationship data set of the first object A stored on the blockchain. The relationship establishment request includes the identifier of the identity digital collection of the third object C, the identifier of the identity digital collection of the fourth object D, and the blockchain account address of the first object A.

[0126] Furthermore, when the first object A opens the application corresponding to the application server 1, the application server 1 can obtain the association relationship data set of the first object A from the blockchain, and determine the association relationship between the first object A and other objects based on the association relationship data set. Alternatively, the application server 1 can also periodically obtain the association relationship data set of the first object A from the blockchain, and determine the association relationship between the first object A and other objects based on the association relationship data set, so that when the first object A uses the application corresponding to the application server 1, the application server 1 pushes the relevant data (such as the latest dynamics) generated by other objects associated with it on the application server 1 to the first object A. In this way, when the object opens different application platforms, it can use the application platform without registering on the application platform, and has the association relationship data between the object and other objects stored on the blockchain, thereby improving the universality of relationship data in various application platforms. In the embodiment of the present application, the application server sends a relationship data acquisition request to the node of the blockchain network in response to the login request of the terminal device; the receiving node sends a set of association relationship data of at least one object in response to the relationship data acquisition request, at least one object is an object holding an identity digital collection, and the set of association relationship data of each object includes the association relationship between the blockchain account address of each object and the held digital collection of interest; the identity digital collection is minted by calling the identity digital collection contract, and the digital collection of interest is minted by calling the digital collection of interest contract, and the access address of the digital collection of interest contract is stored in the corresponding identity digital collection; and the association relationship network between at least one object is constructed based on the set of association relationship data of at least one object. By using the embodiment of the present application, the association relationship data between objects can be stored on the blockchain, and different application platforms can establish relationships between objects through unified association relationship data on the blockchain, which can improve the versatility of relationship data.

[0127] See also Figure 5 , Figure 5 1 is a flowchart of another data processing method based on blockchain provided in an embodiment of the present application. The method is executed by a terminal device 13, such as Figure 5 As shown, the blockchain-based data processing method may include the following steps:

[0128] S501. In response to an object information acquisition instruction of a first object, send an object information acquisition request to an application server.

[0129] The object information acquisition instruction indicates that the first object wants to obtain the description information of other objects that the first object wants to follow from the terminal device, and is used to instruct the terminal device to send an object information acquisition request to the application server. The object information acquisition request is used to instruct the application server to send the description information of other objects that the first object wants to follow to the terminal device. The object information acquisition instruction and the object information acquisition request include the description information of the object that the first object wants to follow.

[0130] Specifically, the first terminal device receives an object information acquisition instruction of the first object A, and the object information acquisition instruction includes the description information of other objects that the first object A wants to pay attention to (the gender of the object is male, and the location area of ​​the object is area x). Based on the object information acquisition instruction, the first terminal device sends an object information acquisition request to the application server 1, and the object information acquisition request includes the description information.

[0131] S502. Receive description information of at least one object sent by the application server in response to the object information acquisition request, where the description information includes the identifier and feature information of the identity digital collection, and the at least one object is an object that holds the identity digital collection.

[0132] Specifically, after the first terminal device sends an object information acquisition request to the application server 1, the application server 1 responds to the object information acquisition request and sends the description information of 20 objects including description information (the gender of the object is male, and the location area of ​​the object is area x) to the first terminal device. The description information includes the identification of the identity digital collections of the 20 objects and some of their characteristic information.

[0133] S503: Display description information of at least one object, and obtain a second object selected by the first object according to the description information of the at least one object.

[0134] Specifically, the first terminal device can display the description information of 20 objects obtained from the application server 1 to the first object A through the display screen, and obtain the second object (for example, object C, object D) selected by the first object A based on the description information of the 20 objects, so that the first object A can establish an association relationship with the second object.

[0135] It should be noted that the second object that the first object can select can be one object or multiple objects, that is, the first object is allowed to submit relationship establishment requests, such as follow requests, to multiple objects at the same time.

[0136] S504. Send a relationship establishment request to the application server, the relationship establishment request includes the identifier of the identity digital collection of the second object and the blockchain account address of the first object, so that the application server sends a relationship establishment request to the node, the relationship establishment request is used to instruct the node to call the second object's attention digital collection contract to cast the first attention digital collection according to the identifier of the identity digital collection of the second object, and add the association relationship between the first attention digital collection and the blockchain account address of the first object in the association relationship data set of the first object stored in the blockchain.

[0137] Specifically, the first terminal device selects the second object (for example, object C, object D) according to the description information of 20 objects for the first object A, determines the second object (for example, object C, object D) that the first object A wants to pay attention to, and sends a relationship establishment request with the second object to the application server 1, wherein the relationship establishment request includes the identifier of the identity digital collection of object C, the identifier of the identity digital collection of object D, and the blockchain account address of the first object A.

[0138] Further, the application server 1 responds to the relationship establishment request and sends the relationship establishment request to the node of the blockchain network, so that the node of the blockchain network adds the association relationship between the digital collection of interest minted by the second object and the blockchain account address of the first object A to the association relationship data set of the first object A stored on the blockchain.

[0139] In the embodiment of the present application, the terminal device responds to the object information acquisition instruction of the first object, sends an object information acquisition request to the application server; receives the description information of at least one object sent by the application server in response to the object information acquisition request, the description information includes the identification and characteristic information of the identity digital collection, and at least one object is an object holding the identity digital collection; displays the description information of at least one object to the first object, and obtains the second object selected by the first object according to the description information of at least one object; the terminal device sends a relationship establishment request to the application server, the relationship establishment request includes the identification of the identity digital collection of the second object and the blockchain account address of the first object, so that the application server sends a relationship establishment request to the node, the relationship establishment request is used to instruct the node to call the digital collection contract of the second object according to the identification of the identity digital collection of the second object to cast the first digital collection of interest, and add the association relationship between the first digital collection of interest and the blockchain account address of the first object in the association relationship data set of the first object stored in the blockchain. By adopting the embodiment of the present application, each object can be more quickly and accurately associated with other objects that want to be concerned about, and the association relationship data between objects can be stored on the blockchain. Different application platforms establish relationships between objects through unified association relationship data on the blockchain, which can ensure the security of the relationship data between objects and improve the universality of the relationship data.

[0140] See also Figure 6a , Figure 6a 1 is a flowchart of another data processing method based on blockchain provided by the embodiment of the present application. The method is executed by the node device 101, the application server 102 and the terminal device 13 of the blockchain network, such as Figure 6a As shown, the blockchain-based data processing method may include the following steps:

[0141] S601. The terminal device sends an on-chain identity registration request to a node of the blockchain network. The on-chain identity registration request includes the blockchain account address of the registration object.

[0142] S602. The node of the blockchain network responds to the on-chain identity registration request, calls the identity digital collection contract to mint the identity digital collection of the registered object according to the blockchain account address of the registered object, and the node of the blockchain network sends the identity digital collection of the registered object to the terminal device.

[0143] S603: The terminal device sends an object information acquisition request to the application server.

[0144] S604: The application server sends description information of the at least one object to the terminal device in response to the object information acquisition request, where the description information includes an identifier and feature information of the identity digital collection.

[0145] Specifically, the application server obtains the description information of the at least one object from the node of the blockchain network in response to the object information acquisition request submitted by the terminal device, and sends the description information of the at least one object to the terminal device.

[0146] S605: The terminal device displays description information of the at least one object.

[0147] S606: When the terminal device receives the operation of the registered object determining to select the second object according to the description information of the at least one object, the terminal device sends a relationship establishment request to the application server.

[0148] S607. The application server sends the relationship establishment request to the node of the blockchain network.

[0149] S608. The node of the blockchain network responds to the relationship establishment request, determines the access address of the digital collection contract of the second object according to the identifier of the identity digital collection of the second object, calls the digital collection contract of the second object according to the access address to mint the digital collection, and creates an association relationship between the digital collection and the blockchain account address of the registered object, and adds the association relationship between the digital collection and the blockchain account address of the registered object to the association relationship data set of the registered object stored in the blockchain.

[0150] S609: The terminal device sends a login request to the application server.

[0151] S610. The application server sends a relationship data acquisition request to a node of the blockchain network.

[0152] S611. The node of the blockchain network responds to the relationship data acquisition request and obtains a set of association relationship data of at least one object holding an identity digital collection stored in the blockchain.

[0153] S612. The node of the blockchain network sends a set of association relationship data of the at least one object to the application server.

[0154] S613: The application server constructs an association relationship network between the at least one object according to the association relationship data set of the at least one object.

[0155] The specific implementation of S601-S613 can refer to the relevant description of the corresponding steps in the above embodiments, which will not be repeated here.

[0156] See also Figure 6b , Figure 6b This is a schematic diagram of a blockchain-based association relationship management process provided by an embodiment of the present application. Figure 6b As shown in the figure, the association relationship management process is:

[0157] The identity digital collection contract is deployed on the blockchain. When an object needs to register an identity on the chain, the identity digital collection contract will cast an identity digital collection for the object. The identity digital collection contains two types of data structures, namely the identity information (profile info) structure and the follow contract information (follows info) structure. Among them, the profile info structure can contain fields such as name, website, logo, etc., which are used to record the basic information of the object on the chain. The data of this structure can be checked by anyone, but only the holding address of the identity digital collection (that is, the object himself) can be modified; in the follow contract information structure, a follow digital collection contract will be created for each object holding an identity digital collection, which is used to actually record the follow relationship between objects holding identity digital collections. The follow contract information structure can include the access address of the follow digital collection contract, and the follow digital collection contract can cast follow digital collections for other objects.

[0158] Specifically, taking two objects (object A and object B) as an example, both object A and object B register their identities on the chain and obtain their own identity digital collections. When object B wants to follow object A, the blockchain network uses object A's digital collection contract to issue a digital collection to object B, and associates the digital collection with object B's blockchain account address, indicating that object B successfully follows object A. When object B wants to stop following object A, object A's digital collection contract destroys the digital collection issued to object B, deletes the association between the digital collection and object B's blockchain account address, and stops following object A.

[0159] See also Figure 6c , Figure 6c This is a schematic diagram of an association relationship application based on blockchain provided in an embodiment of the present application. Figure 6c As shown in the figure, the application process of this association relationship is:

[0160] Each application platform (e.g., application platform 1, 2, and 3) constructs a relationship network between objects by parsing the identity digital collections held by the blockchain account addresses of multiple objects registered on the chain and the data in the digital collections of interest. Each application platform has its own corresponding application database, which records the relationship network between the constructed objects and the data generated by each object on the application platform, such as pictures, posts, short videos, etc. corresponding to the identifiers of the identity digital collections held by each object. Based on the constructed relationship network, each application platform pushes the relevant data generated by other objects that the object follows on the application platform to each object.

[0161] See also Figure 7 , is a schematic diagram of the structure of a data processing device according to an embodiment of the present application, the device comprising:

[0162] A receiving module 701 is used to receive a relationship establishment request submitted by a first object, wherein the relationship establishment request includes an identifier of an identity digital collection of a second object and a blockchain account address of the first object, wherein the identity digital collection of the second object is minted by calling an identity digital collection contract;

[0163] A determination module 702 is used to determine the access address of the digital collection contract of interest of the second object according to the identifier of the identity digital collection of the second object;

[0164] Processing module 703 is used to call the digital collection contract of the second object according to the access address to mint the first digital collection, and create an association relationship between the first digital collection and the blockchain account address of the first object; add the association relationship between the first digital collection and the blockchain account address of the first object in the association relationship data set of the first object stored in the blockchain, and the association relationship data set of the first object is used by the application server of at least one application to determine the association relationship between the first object and other objects.

[0165] Optionally, the receiving module 701 is further used to receive an on-chain identity registration request submitted by a registration object, the on-chain identity registration request includes a blockchain account address of the registration object, and the registration object includes the first object and the second object;

[0166] The processing module 703 is also used to call the identity digital collection contract to mint the identity digital collection of the registered object according to the blockchain account address of the registered object.

[0167] Optionally, the determining module 702 is specifically configured to:

[0168] Calling the identity digital collection contract to determine whether there is an identity digital collection corresponding to the blockchain account address of the first object;

[0169] If it exists, calling the identity digital collection contract to obtain the identity digital collection of the second object according to the identifier of the identity digital collection of the second object;

[0170] The identity digital collection contract is called to parse and process the attention contract information included in the identity digital collection of the second object, and obtain the access address of the attention digital collection contract of the second object.

[0171] Optionally, the receiving module 701 is further used to receive a relationship termination request submitted by the first object, wherein the relationship termination request includes an access address of the digital collection contract of the second object and an identifier of the identity digital collection of the first object;

[0172] The processing module 703 is also used to call the digital collection contract of the second object according to the access address of the digital collection contract of the second object to destroy the first digital collection; delete the association relationship between the first digital collection and the blockchain account address of the first object included in the association relationship data set of the first object.

[0173] Optionally, the device further includes an acquisition module 704 and a sending module 705, wherein:

[0174] The acquisition module 704 is configured to acquire a relationship data acquisition request from a first application server, where the first application server is any one of the at least one application server; and to acquire a set of association relationship data of at least one object holding an identity digital collection stored in the blockchain in response to the relationship data acquisition request;

[0175] The sending module 705 is used to send the association relationship data set of the at least one object to the first application server, so that the first application server constructs an association relationship network between the at least one object according to the association relationship data set of the at least one object.

[0176] Optionally, the processing module 703 is specifically configured to:

[0177] Calling the digital collection contract of the second object according to the access address, wherein the digital collection contract of the second object includes a casting function;

[0178] The blockchain account address of the first object is passed into the minting function, and the first digital collectible of interest is minted by executing the minting function.

[0179] It should be noted that the functions of each functional module of the data processing device of the embodiment of the present application can be specifically implemented according to the method in the above method embodiment, and its specific implementation process can refer to the relevant description of the above method embodiment, which will not be repeated here.

[0180] See also Figure 8 , is a schematic diagram of the structure of another data processing device according to an embodiment of the present application, the device comprising:

[0181] The sending module 801 is used to send a relationship data acquisition request to a node of the blockchain network in response to a login request of a terminal device;

[0182] The receiving module 802 is used to receive the association relationship data set of at least one object sent by the node in response to the relationship data acquisition request, wherein the at least one object is an object holding an identity digital collection, and the association relationship data set of each object includes the association relationship between the blockchain account address of each object and the held digital collection of interest; the identity digital collection is minted by calling the identity digital collection contract, the digital collection of interest is minted by calling the digital collection of interest contract, and the access address of the digital collection of interest contract is stored in the corresponding identity digital collection;

[0183] The processing module 803 is used to construct an association relationship network between the at least one object according to the association relationship data set of the at least one object.

[0184] Optionally, the sending module 801 is further configured to send the description information of the at least one object to the terminal device in response to the object information acquisition request submitted by the first object through the terminal device, so that the terminal device displays the description information of the at least one object, wherein the description information includes the identifier and feature information of the identity digital collection;

[0185] The receiving module 802 is further configured to receive a relationship establishment request sent by the terminal device, wherein the relationship establishment request includes an identifier of the identity digital collection of the second object and a blockchain account address of the first object, wherein the second object is selected by the first object according to the description information of the at least one object;

[0186] The sending module 801 is also used to send the relationship establishment request to the node, and the relationship establishment request is used to instruct the node to call the digital collection contract of the second object to cast the first digital collection according to the identifier of the identity digital collection of the second object, and add the association relationship between the first digital collection and the blockchain account address of the first object in the association relationship data set of the first object stored in the blockchain.

[0187] It should be noted that the functions of each functional module of the data processing device of the embodiment of the present application can be specifically implemented according to the method in the above method embodiment, and its specific implementation process can refer to the relevant description of the above method embodiment, which will not be repeated here.

[0188] See also Fig. 9 , is a structural diagram of another data processing device according to an embodiment of the present application, the device comprising:

[0189] The sending module 901 is used to send an object information acquisition request to the application server in response to the object information acquisition instruction of the first object;

[0190] A receiving module 902 is used to receive description information of at least one object sent by the application server in response to the object information acquisition request, wherein the description information includes an identifier and feature information of the identity digital collection, and the at least one object is an object holding the identity digital collection;

[0191] A display module 903, configured to display description information of the at least one object;

[0192] An acquisition module 904 is configured to acquire a second object selected by the first object according to the description information of the at least one object;

[0193] The sending module 901 is also used to send a relationship establishment request to the application server, wherein the relationship establishment request includes the identifier of the identity digital collection of the second object and the blockchain account address of the first object, so that the application server sends a relationship establishment request to the node, wherein the relationship establishment request is used to instruct the node to call the digital collection contract of the second object to mint the first digital collection according to the identifier of the identity digital collection of the second object, and add the association relationship between the first digital collection and the blockchain account address of the first object in the association relationship data set of the first object stored in the blockchain.

[0194] It should be noted that the functions of each functional module of the data processing device in the embodiment of the present application can be specifically implemented according to the method in the above method embodiment. The specific implementation process can refer to the relevant description of the above method embodiment, which will not be repeated here.

[0195] See also Fig.10 , is a schematic diagram of the structure of a computer device in an embodiment of the present application, wherein the computer device in an embodiment of the present application includes a power supply module and other structures, and includes a processor 1001, a storage device 1002, and a network interface 1003. The processor 1001, the storage device 1002, and the network interface 1003 can exchange data.

[0196] The storage device 1002 may include a volatile memory, such as a random-access memory (RAM); the storage device 1002 may also include a non-volatile memory, such as a flash memory, a solid-state drive (SSD), etc.; the storage device 1002 may also include a combination of the above-mentioned types of memory.

[0197] The processor 1001 may be a central processing unit (CPU). In one embodiment, the processor 1001 may also be a graphics processing unit (GPU). The processor 1001 may also be a combination of a CPU and a GPU.

[0198] When the computer device is a node of the blockchain network described above, the storage device 1002 is used to store program instructions, and the processor 1001 can call the program instructions to perform the following operations:

[0199] Receive a relationship establishment request submitted by a first object, wherein the relationship establishment request includes an identifier of an identity digital collection of a second object and a blockchain account address of the first object, wherein the identity digital collection of the second object is minted by calling an identity digital collection contract;

[0200] Determine the access address of the digital collection contract of the second object according to the identifier of the identity digital collection of the second object;

[0201] The digital collection contract of the second object is called according to the access address to cast the first digital collection, and an association relationship is created between the first digital collection and the blockchain account address of the first object; the association relationship between the first digital collection and the blockchain account address of the first object is added to the association relationship data set of the first object stored in the blockchain, and the association relationship data set of the first object is used for the application server of at least one application to determine the association relationship between the first object and other objects.

[0202] Optionally, the processor 1001 is further configured to:

[0203] Receive an on-chain identity registration request submitted by a registration object, wherein the on-chain identity registration request includes a blockchain account address of the registration object, and the registration object includes the first object and the second object;

[0204] The identity digital collection contract is called to mint the identity digital collection of the registered object according to the blockchain account address of the registered object.

[0205] Optionally, the processor 1001 is specifically configured to:

[0206] Calling the identity digital collection contract to determine whether there is an identity digital collection corresponding to the blockchain account address of the first object;

[0207] If it exists, calling the identity digital collection contract to obtain the identity digital collection of the second object according to the identifier of the identity digital collection of the second object;

[0208] The identity digital collection contract is called to parse and process the attention contract information included in the identity digital collection of the second object, and obtain the access address of the attention digital collection contract of the second object.

[0209] Optionally, the processor 1001 is further configured to:

[0210] Receive a relationship termination request submitted by the first object, wherein the relationship termination request includes an access address of the digital collection contract of the second object and an identifier of the identity digital collection of the first object;

[0211] Call the digital collection contract of the second object to destroy the first digital collection according to the access address of the digital collection contract of the second object;

[0212] Delete the association relationship between the first digital collection of interest and the blockchain account address of the first object included in the association relationship data set of the first object.

[0213] Optionally, the processor 1001 is further configured to:

[0214] Obtain a relationship data acquisition request of a first application server, where the first application server is any one of the at least one application server;

[0215] Responding to the relationship data acquisition request, acquiring a set of association relationship data of at least one object holding an identity digital collection stored in the blockchain;

[0216] The association relationship data set of the at least one object is sent to the first application server, so that the first application server constructs an association relationship network between the at least one object according to the association relationship data set of the at least one object.

[0217] Optionally, the processor 1001 is specifically configured to:

[0218] Calling the digital collection contract of the second object according to the access address, wherein the digital collection contract of the second object includes a casting function;

[0219] The blockchain account address of the first object is passed into the minting function, and the first digital collectible of interest is minted by executing the minting function.

[0220] In a specific implementation, the processor 901, the storage device 902, and the network interface 903 described in the embodiments of the present application can execute the embodiments of the present application. Figure 2 , Figure 3 The implementation described in the related embodiments of the provided method can also be implemented in the embodiments of the present application Figure 7 The implementation methods described in the relevant embodiments of the provided device will not be repeated here.

[0221] When the computer device is the application server described above, the storage device 1002 is used to store program instructions, and the processor 1001 can call the program instructions to perform the following operations:

[0222] In response to a login request from a terminal device, a relationship data acquisition request is sent to a node of the blockchain network;

[0223] Receive the association relationship data set of at least one object sent by the node in response to the relationship data acquisition request, the at least one object is an object holding an identity digital collection, and the association relationship data set of each object includes the association relationship between the blockchain account address of each object and the held digital collection of interest; the identity digital collection is minted by calling the identity digital collection contract, the digital collection of interest is minted by calling the digital collection of interest contract, and the access address of the digital collection of interest contract is stored in the corresponding identity digital collection;

[0224] An association relationship network between the at least one object is constructed according to the association relationship data set of the at least one object.

[0225] Optionally, the processor 1001 is further configured to:

[0226] In response to an object information acquisition request submitted by the first object through a terminal device, sending description information of the at least one object to the terminal device so that the terminal device displays the description information of the at least one object, the description information including the identifier and feature information of the identity digital collection;

[0227] Receiving a relationship establishment request sent by the terminal device, the relationship establishment request including an identifier of the identity digital collection of the second object and a blockchain account address of the first object, the second object being selected by the first object according to the description information of the at least one object;

[0228] The relationship establishment request is sent to the node, and the relationship establishment request is used to instruct the node to call the digital collection contract of the second object to mint the first digital collection according to the identifier of the identity digital collection of the second object, and add the association relationship between the first digital collection and the blockchain account address of the first object in the association relationship data set of the first object stored in the blockchain.

[0229] In a specific implementation, the processor 1001, the storage device 1002, and the network interface 1003 described in the embodiments of the present application can execute the embodiments of the present application. Figure 4 The implementation described in the related embodiments of the provided method can also be implemented in the embodiments of the present application Figure 8 The implementation methods described in the relevant embodiments of the provided device will not be repeated here.

[0230] See also Fig.11 , is a schematic diagram of the structure of a terminal device in an embodiment of the present application, wherein the terminal device in the embodiment of the present application includes a power supply module and other structures, and includes a processor 1101, a storage device 1102, a network interface 1103, an input device 1104, and an output device 1105. The processor 1101, the storage device 1102, the network interface 1103, the input device 1104, and the output device 1105 can exchange data.

[0231] The storage device 1102 may include a volatile memory, such as a random-access memory (RAM); the storage device 1102 may also include a non-volatile memory, such as a flash memory, a solid-state drive (SSD), etc.; the storage device 1102 may also include a combination of the above-mentioned types of memory. The input device 1104 is used to receive an operation signal, such as a selection operation for the description information of an object in the display interface. The output device 1105 is used to display data, such as the interaction between objects and the latest dynamics of objects.

[0232] The processor 1101 may be a central processing unit (CPU). In one embodiment, the processor 1101 may also be a graphics processing unit (GPU). The processor 1101 may also be a combination of a CPU and a GPU.

[0233] The storage device 1102 is used to store program instructions. The processor 1101 can call the program instructions to perform the following operations:

[0234] In response to the object information acquisition instruction of the first object, sending an object information acquisition request to the application server;

[0235] Receiving description information of at least one object sent by the application server in response to the object information acquisition request, the description information including the identifier and feature information of the identity digital collection, the at least one object being an object holding the identity digital collection;

[0236] Displaying description information of the at least one object, and acquiring a second object selected by the first object according to the description information of the at least one object;

[0237] A relationship establishment request is sent to the application server, wherein the relationship establishment request includes the identifier of the identity digital collection of the second object and the blockchain account address of the first object, so that the application server sends a relationship establishment request to the node, wherein the relationship establishment request is used to instruct the node to call the digital collection contract of the second object to mint the first digital collection according to the identifier of the identity digital collection of the second object, and add the association relationship between the first digital collection and the blockchain account address of the first object in the association relationship data set of the first object stored in the blockchain.

[0238] In a specific implementation, the processor 1101, the storage device 1102, the network interface 1103, the input device 1104 and the output device 1105 described in the embodiments of the present application can execute the embodiments of the present application. Figure 5 The implementation described in the related embodiments of the provided method can also be implemented in the embodiments of the present application Fig. 9 The implementation methods described in the relevant embodiments of the provided device will not be repeated here.

[0239] In the above embodiments, the description of each embodiment has its own emphasis. For the part that is not described in detail in a certain embodiment, please refer to the relevant description of other embodiments. The technical solution of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions to enable a computer device (which can be a computer, a server or a network device, etc., specifically a processor in a computer device) to perform all or part of the steps of the above methods of each embodiment of the present application. Among them, the aforementioned storage medium may include: U disk, mobile hard disk, magnetic disk, optical disk, read-only memory (English: Read-Only Memory, abbreviated: ROM) or random access memory (English: Random Access Memory, abbreviated: RAM) and other media that can store program codes.

[0240] As described above, the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit it. Although the present application has been described in detail with reference to the aforementioned embodiments, it should be understood that the technical solutions recorded in the aforementioned embodiments can still be modified, or some of the technical features therein can be replaced by equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present application.

Claims

1. A data processing method based on blockchain, characterized in that: include: Receive a relationship establishment request submitted by a first object, wherein the relationship establishment request includes an identifier of an identity digital collection of a second object and a blockchain account address of the first object, wherein the identity digital collection of the second object is minted by calling an identity digital collection contract; Determine the access address of the digital collection contract of the second object according to the identifier of the identity digital collection of the second object; The digital collection contract of the second object is called according to the access address to cast the first digital collection, and an association relationship is created between the first digital collection and the blockchain account address of the first object; the association relationship between the first digital collection and the blockchain account address of the first object is added to the association relationship data set of the first object stored in the blockchain, and the association relationship data set of the first object is used for the application server of at least one application to determine the association relationship between the first object and other objects.

2. The method according to claim 1, characterized in that Before receiving the relationship establishment request submitted by the first object, the method further includes: Receive an on-chain identity registration request submitted by a registration object, wherein the on-chain identity registration request includes a blockchain account address of the registration object, and the registration object includes the first object and the second object; The identity digital collection contract is called to mint the identity digital collection of the registered object according to the blockchain account address of the registered object.

3. The method according to claim 1 or 2, characterized in that The step of determining the access address of the digital collection contract of interest of the second object according to the identifier of the identity digital collection of the second object includes: Calling the identity digital collection contract to determine whether there is an identity digital collection corresponding to the blockchain account address of the first object; If it exists, calling the identity digital collection contract to obtain the identity digital collection of the second object according to the identifier of the identity digital collection of the second object; The identity digital collection contract is called to parse and process the attention contract information included in the identity digital collection of the second object, and obtain the access address of the attention digital collection contract of the second object.

4. The method according to claim 1 or 2, characterized in that: The method further comprises: Receive a relationship termination request submitted by the first object, wherein the relationship termination request includes an access address of the digital collection contract of the second object and an identifier of the identity digital collection of the first object; Call the digital collection contract of the second object to destroy the first digital collection according to the access address of the digital collection contract of the second object; Delete the association relationship between the first digital collection of interest and the blockchain account address of the first object included in the association relationship data set of the first object.

5. The method according to claim 1 or 2, characterized in that: The method further comprises: Obtain a relationship data acquisition request of a first application server, where the first application server is any one of the at least one application server; Responding to the relationship data acquisition request, acquiring a set of association relationship data of at least one object holding an identity digital collection stored in the blockchain; The association relationship data set of the at least one object is sent to the first application server, so that the first application server constructs an association relationship network between the at least one object according to the association relationship data set of the at least one object.

6. The method according to claim 1 or 2, characterized in that: The method of calling the digital collection contract of the second object according to the access address to cast the first digital collection includes: Calling the digital collection contract of the second object according to the access address, wherein the digital collection contract of the second object includes a casting function; The blockchain account address of the first object is passed into the minting function, and the first digital collectible of interest is minted by executing the minting function.

7. A data processing method based on blockchain, characterized in that: include: In response to a login request from a terminal device, a relationship data acquisition request is sent to a node of the blockchain network; Receive the association relationship data set of at least one object sent by the node in response to the relationship data acquisition request, the at least one object is an object holding an identity digital collection, and the association relationship data set of each object includes the association relationship between the blockchain account address of each object and the held digital collection of interest; the identity digital collection is minted by calling the identity digital collection contract, the digital collection of interest is minted by calling the digital collection of interest contract, and the access address of the digital collection of interest contract is stored in the corresponding identity digital collection; An association relationship network between the at least one object is constructed according to the association relationship data set of the at least one object.

8. The method according to claim 7, characterized in that The method further comprises: In response to an object information acquisition request submitted by the first object through a terminal device, sending description information of the at least one object to the terminal device so that the terminal device displays the description information of the at least one object, the description information including the identifier and feature information of the identity digital collection; Receiving a relationship establishment request sent by the terminal device, the relationship establishment request including an identifier of the identity digital collection of the second object and a blockchain account address of the first object, the second object being selected by the first object according to the description information of the at least one object; The relationship establishment request is sent to the node, and the relationship establishment request is used to instruct the node to call the digital collection contract of the second object to mint the first digital collection according to the identifier of the identity digital collection of the second object, and add the association relationship between the first digital collection and the blockchain account address of the first object in the association relationship data set of the first object stored in the blockchain.

9. A data processing method based on blockchain, characterized in that: include: In response to the object information acquisition instruction of the first object, sending an object information acquisition request to the application server; Receiving description information of at least one object sent by the application server in response to the object information acquisition request, the description information including the identifier and feature information of the identity digital collection, the at least one object being an object holding the identity digital collection; Displaying description information of the at least one object, and acquiring a second object selected by the first object according to the description information of the at least one object; A relationship establishment request is sent to the application server, wherein the relationship establishment request includes the identifier of the identity digital collection of the second object and the blockchain account address of the first object, so that the application server sends a relationship establishment request to the node, wherein the relationship establishment request is used to instruct the node to call the digital collection contract of the second object to mint the first digital collection according to the identifier of the identity digital collection of the second object, and add the association relationship between the first digital collection and the blockchain account address of the first object in the association relationship data set of the first object stored in the blockchain.

10. A data processing device based on blockchain, characterized in that: The device comprises: A receiving module, configured to receive a relationship establishment request submitted by a first object, wherein the relationship establishment request includes an identifier of an identity digital collection of a second object and a blockchain account address of the first object, wherein the identity digital collection of the second object is minted by calling an identity digital collection contract; A determination module, configured to determine an access address of a digital collection contract of interest of the second object according to an identifier of the identity digital collection of the second object; A processing module is used to call the digital collection contract of the second object according to the access address to mint the first digital collection, and create an association relationship between the first digital collection and the blockchain account address of the first object; add the association relationship between the first digital collection and the blockchain account address of the first object in the association relationship data set of the first object stored in the blockchain, and the association relationship data set of the first object is used by an application server of at least one application to determine the association relationship between the first object and other objects.

11. A data processing device based on blockchain, characterized in that: The device comprises: A sending module, used to send a relationship data acquisition request to a node of the blockchain network in response to a login request of a terminal device; A receiving module, used to receive a set of association relationship data of at least one object sent by the node in response to the relationship data acquisition request, wherein the at least one object is an object holding an identity digital collection, and the set of association relationship data of each object includes an association relationship between the blockchain account address of each object and the held digital collection of interest; the identity digital collection is minted by calling an identity digital collection contract, the digital collection of interest is minted by calling a digital collection of interest contract, and the access address of the digital collection of interest contract is stored in the corresponding identity digital collection; The processing module is used to construct an association relationship network between the at least one object according to the association relationship data set of the at least one object.

12. A data processing device based on blockchain, characterized in that: The device comprises: A sending module, configured to send an object information acquisition request to an application server in response to an object information acquisition instruction of a first object; A receiving module, configured to receive description information of at least one object sent by the application server in response to the object information acquisition request, wherein the description information includes an identifier and feature information of the identity digital collection, and the at least one object is an object holding the identity digital collection; A display module, configured to display description information of the at least one object; An acquisition module, configured to acquire a second object selected by the first object according to the description information of the at least one object; The sending module is also used to send a relationship establishment request to the application server, wherein the relationship establishment request includes the identifier of the identity digital collection of the second object and the blockchain account address of the first object, so that the application server sends a relationship establishment request to the node, wherein the relationship establishment request is used to instruct the node to call the digital collection contract of the second object to mint the first digital collection according to the identifier of the identity digital collection of the second object, and add the association relationship between the first digital collection and the blockchain account address of the first object in the association relationship data set of the first object stored in the blockchain.

13. A computer device, characterized in that: The computer device includes a processor, a network interface and a storage device, wherein the processor, the network interface and the storage device are interconnected, wherein the network interface is controlled by the processor for sending and receiving data, and the storage device is used to store a computer program, wherein the computer program includes program instructions, and the processor is configured to call the program instructions to execute the blockchain-based data processing method according to any one of claims 1 to 6, or the blockchain-based data processing method according to any one of claims 7 to 8.

14. A terminal device, characterized in that: The terminal device includes a processor, a network interface, a storage device, an input device and an output device, and the processor, the network interface, the storage device, the input device and the output device are interconnected, wherein the network interface is controlled by the processor to send and receive data, the input device is used to receive operation signals, the output device is used to display data, the storage device is used to store a computer program, and the computer program includes program instructions. The processor is configured to call the program instructions to execute the blockchain-based data processing method according to claim 9.

15. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, which includes program instructions, and the program instructions are executed by a processor to execute the blockchain-based data processing method described in any one of claims 1 to 6, or the blockchain-based data processing method described in claim 7 or 8, or the blockchain-based data processing method described in claim 9.

Citation Information

Cited By

  • Equipment account management method and equipment account management system

    CN121502744A