Data processing method and device based on block chain, equipment, medium and product
By using meta-identity credentials to record social operations on the blockchain, the problem of low data security on traditional Internet platforms is solved, and the high reliability and security of content data is achieved.
Patent Information
- Application Number
- CN202311061584.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-08-22
- Publication Date
- 2025-02-28
AI Technical Summary
Traditional Internet platforms have the risk of data leakage or tampering when storing and managing content data, and third-party platforms control data, resulting in low security.
The blockchain-based data processing method is adopted to record social operations on the blockchain through the user's meta-identity credentials, ensuring that the storage and management of content data is more secure and reliable.
Improve the reliability and security of content data, prevent data tampering, and enhance user control over data.
Smart Images

Figure CN119544176A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of blockchain technology, and in particular to a blockchain-based data processing method, a blockchain-based data processing device, a computer device, a computer-readable storage medium, and a computer program product. Background Art
[0002] In the traditional Internet field, the social relationships and content data between objects are actually managed and maintained by large Internet companies. The content data published by an object and the related data generated by social operations such as forwarding and commenting on the content data performed by other objects are all stored in the centralized data background of the Internet company. Although the content data is generated by the object, it is actually stored by a third-party platform (i.e. the above-mentioned Internet company). This storage method has the risk of data leakage or tampering, and has low security. Summary of the invention
[0003] The embodiments of the present application propose a data processing method, apparatus, device, medium and product based on blockchain, which can record the social operations performed by the user on the content data on the chain based on the user's meta-identity credentials on the blockchain, thereby improving the reliability of the content data.
[0004] On the one hand, an embodiment of the present application provides a data processing method based on blockchain, the method comprising:
[0005] Receiving a first transaction request initiated by a first object, the first transaction request is used to request to perform a social operation on content data on a blockchain, and the first transaction request carries: a storage address of the content data and a meta-identity credential identifier of the first object;
[0006] Based on the meta-identity credential identifier of the first object, obtaining the meta-identity credential owned by the first object on the blockchain;
[0007] Assigning a first indication identifier to the meta-identity credential of the first object, and establishing an association relationship between the first indication identifier and a storage address of the content data;
[0008] The first indication identifier with an associated relationship and the storage address of the content data are recorded in the meta-identity credential of the first object; wherein, when the first indication identifier with an associated relationship and the storage address of the content data are successfully stored in the meta-identity credential of the first object, it indicates that a social operation has been successfully performed on the content data on the blockchain.
[0009] On the one hand, an embodiment of the present application provides a data processing device based on blockchain, the device comprising:
[0010] A receiving unit, configured to receive a first transaction request initiated by a first object, the first transaction request being used to request a social operation to be performed on content data on a blockchain, the first transaction request carrying: a storage address of the content data and a meta-identity credential identifier of the first object;
[0011] An acquisition unit, configured to acquire a meta-identity credential owned by the first object on the blockchain based on the meta-identity credential identifier of the first object;
[0012] A processing unit, configured to assign a first indication identifier to the meta-identity credential of the first object, and to establish an association relationship between the first indication identifier and a storage address of the content data;
[0013] The processing unit is further used to record the first indication identifier with an associated relationship and the storage address of the content data into the meta-identity credential of the first object; wherein, when the first indication identifier with an associated relationship and the storage address of the content data are successfully stored in the meta-identity credential of the first object, it indicates that the social operation of the content data on the blockchain has been successfully executed.
[0014] In a possible implementation, the meta-identity credential of the first object includes a content recording area, where the content recording area is used to record at least one type of data structure; the processing unit records the first indication identifier and the storage address of the content data having an associated relationship into the meta-identity credential of the first object, and performs the following operations:
[0015] Acquire the type of the social operation performed by the first object, and determine a matching data structure in the content recording area based on the type of the social operation;
[0016] Recording the first indication identifier and the storage address of the content data having an associated relationship into a matching data structure;
[0017] Among them, the type of social operation is the publishing type, and the matching data structure is the publishing data structure; the type of social operation is the forwarding type, and the matching data structure is the forwarding data structure; the type of social operation is the comment type, and the matching data structure is the comment data structure.
[0018] In a possible implementation, after the processing unit records the first indication identifier having an associated relationship and the storage address of the content data into the meta-identity credential of the first object, it is further configured to perform the following operations:
[0019] receiving a second transaction request initiated by a second object, the second transaction request being used to request to forward content data published by the first object on the blockchain, the second transaction request carrying: a meta-identity credential identifier of the first object and a first indication identifier;
[0020] Allocating a second indication identifier to the meta-identity credential of the second object, and recording the second indication identifier in a forwarding data structure of the meta-identity credential of the second object;
[0021] An association relationship is established between the second indication identifier, the meta-identity credential identifier of the second object, and the first indication identifier; wherein the second indication identifier and the first indication identifier having the association relationship are used to instruct the second object to forward the content data published by the first object on the blockchain.
[0022] In a possible implementation, after the processing unit records the first indication identifier and the storage address of the content data having the association relationship into the meta-identity credential of the first object, it is further configured to perform the following operations:
[0023] receiving a third transaction request initiated by a third object, the third transaction request being used to request to comment on content data published by the first object on the blockchain, the third transaction request carrying: a meta-identity credential identifier of the first object, a first indication identifier, and a storage address of the comment data, the comment data being data generated after the third object comments on the content data;
[0024] A third indication identifier is allocated to the meta-identity credential of the third object, and an association relationship is established between the third indication identifier, the meta-identity credential identifier of the first object, and the storage address of the comment data in the meta-identity credential of the third object.
[0025] In a possible implementation, the processing unit establishes an association relationship between the third indication identifier, the meta-identity credential identifier of the first object, and the storage address of the comment data in the meta-identity credential of the third object, so as to perform the following operations:
[0026] Establishing an association relationship between the third indicator and the storage address of the comment data;
[0027] Recording the associated third indicator and the storage address of the comment data into the comment data structure of the meta-identity credential of the third object; and
[0028] An association relationship is established between the third indication identifier, the meta-identity credential identifier of the first object, and the first indication identifier.
[0029] In a possible implementation manner, before receiving the first transaction request initiated by the first object, the processing unit is further configured to perform the following operations:
[0030] In response to an identity registration request initiated by the first object, the identity registration request includes identity information of the first object;
[0031] Verifying the identity information of the first object;
[0032] If the verification is successful, the credential management contract is called to allocate a meta-identity credential to the first object, and the meta-identity credential and the meta-identity credential identifier are returned to the terminal device where the first object is located.
[0033] In a possible implementation, the processing unit is further configured to perform the following operations:
[0034] Acquire each associated indication identifier that has an associated relationship with the first indication identifier, where the associated indication identifier includes: any one or more of the second indication identifier and the third indication identifier;
[0035] Determine a plurality of matching associated meta-identity credentials based on each associated indication identifier, wherein one associated indication identifier corresponds to one associated meta-identity credential;
[0036] The determined associated identity credentials are used as nodes, and the association relationships between the associated indication identifiers and the first indication identifier are used as connecting edges between the nodes to construct a network relationship graph of the first object.
[0037] In a possible implementation, the processing unit is further configured to perform the following operations:
[0038] Obtaining a content data query request for the first object, wherein the content data query request includes: a meta-identity credential identifier to be queried and an indication identifier to be queried;
[0039] In the network relationship graph of the first object, determining the target meta-identity credential according to the meta-identity credential identifier to be queried; and,
[0040] In the content recording area of the target meta-identity credential, obtaining a storage address associated with the indication identifier to be queried;
[0041] Based on the associated storage address, target content data stored in the database is obtained.
[0042] In a possible implementation, the processing unit is further configured to perform the following operations:
[0043] Performing data analysis on the network relationship graph corresponding to the first object to generate a corresponding feature tag for the first object, where the feature tag is used to reflect the social interest of the first object;
[0044] Based on the social interests of the first object reflected by the feature tag, obtaining content data to be recommended that matches the social interests of the first object from at least one social application platform;
[0045] The content data to be recommended is recommended to the terminal device where the first object is located.
[0046] In a possible implementation manner, the feature tag is further used to reflect the social interaction relationship between the first object and at least one social object; and the processing unit is further used to perform the following operations:
[0047] Based on the social interaction relationship of the first object reflected by the feature tag, determining a target object whose social interaction frequency with the first object is greater than or equal to a preset frequency threshold;
[0048] When it is detected that the first object publishes new content data, the new content data published by the first object is pushed to the terminal device where the target object is located.
[0049] On the one hand, an embodiment of the present application provides a computer device, which includes a memory and a processor, wherein the memory stores a computer program, and when the computer program is executed by the processor, the processor executes the above-mentioned blockchain-based data processing method.
[0050] On the one hand, an embodiment of the present application provides a computer-readable storage medium, which stores a computer program. When the computer program is read and executed by a processor of a computer device, the computer device executes the above-mentioned blockchain-based data processing method.
[0051] On the one hand, the embodiments of the present application provide a computer program product or a computer program, which includes computer instructions stored in a computer-readable storage medium. The processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the above-mentioned blockchain-based data processing method.
[0052] In an embodiment of the present application, a first transaction request initiated by a first object can be received, and the first transaction request is used to request to perform a social operation on content data on the blockchain. The first transaction request carries: the storage address of the content data and the meta-identity credential identifier of the first object; and based on the meta-identity credential identifier of the first object, the meta-identity credential owned by the first object on the blockchain is obtained; a first indication identifier is assigned to the meta-identity credential of the first object, and an association relationship is established between the first indication identifier and the storage address of the content data; and the first indication identifier with an association relationship and the storage address of the content data are recorded in the meta-identity credential of the first object. It can be seen that when the first object needs to perform a social operation on the content data in the blockchain, a first indication identifier can be assigned, and the first indication identifier and the storage address of the content data can be associated and recorded in the meta-identity credential of the first object, so that when the first indication identifier with an association relationship and the storage address of the content data are successfully stored in the meta-identity credential of the first object, it indicates that the social operation is successfully performed on the content data on the blockchain. Since the meta-identity credential is held by the first object personally, the first indication identifier and the storage address of the content data stored in the meta-identity credential are difficult to be tampered with, thereby improving the security and reliability of the content data on the chain. BRIEF DESCRIPTION OF THE DRAWINGS
[0053] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present application. For ordinary technical objects in this field, other drawings can be obtained based on these drawings without paying creative labor.
[0054] Figure 1 This is a schematic diagram of the principle of a data processing solution based on blockchain provided in an embodiment of the present application;
[0055] Figure 2a It is a structural diagram of a blockchain system provided by an embodiment of the present application;
[0056] Figure 2b This is a schematic diagram of the structure of a blockchain provided by an embodiment of the present application;
[0057] Figure 3 This is a schematic diagram of the architecture of a blockchain-based data processing system provided in an embodiment of the present application;
[0058] Figure 4 It is a flowchart of a data processing method based on blockchain provided in an embodiment of the present application;
[0059] Figure 5 This is a schematic diagram of a scenario for obtaining identity information provided by an embodiment of the present application;
[0060] Figure 6 It is an interactive flow chart of a data processing method based on blockchain provided in an embodiment of the present application;
[0061] Figure 7 This is a schematic diagram of a flow chart of comment content data provided by an embodiment of the present application;
[0062] Figure 8 It is a flowchart of another data processing method based on blockchain provided in an embodiment of the present application;
[0063] Fig. 9 It is a schematic diagram of a network relationship map provided in an embodiment of the present application;
[0064] Fig.10 It is a structural schematic diagram of a blockchain-based data processing device provided in an embodiment of the present application;
[0065] Fig.11 It is a structural diagram of a computer device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0066] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present application. Instead, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the appended claims.
[0067] This application provides a data processing solution based on blockchain, which can be applied to social application scenarios. Based on the meta-identity credentials owned by the object, the social operations such as publishing, forwarding, and commenting on the content data performed by the object on the blockchain can be recorded in the blockchain, thereby improving the security and reliability of the content data. Figure 1 , Figure 1 Schematic diagram of the principle of a data processing solution based on blockchain provided in the embodiment of the present application. Figure 1 As shown, the principle of the blockchain-based data processing solution provided by this application is roughly as follows:
[0068] ① When the first object (e.g., object A) needs to publish content data on the blockchain (e.g., publish an article, publish a Weibo post, etc.), it can submit a first transaction request to the blockchain, which carries: the storage address of the content data and the meta-identity credential identifier of the first object;
[0069] ② In the blockchain, the credential management contract can be called to respond to the first transaction request, and based on the meta-identity credential identifier of object A, the meta-identity credential owned by object A on the blockchain can be obtained;
[0070] ③ Allocate a first indication identifier to the meta-identity credential of object A, and establish an association relationship between the first indication identifier and the storage address of the content data;
[0071] ④ Record the first indication identifier with an associated relationship and the storage address of the content data into the meta-identity certificate of object A; specifically, the meta-identity certificate of object A includes a content recording area, which is used to record at least one type of data structure, such as a publishing data structure, a forwarding data structure, and a comment data structure. When object A publishes content data on the blockchain, the type of social operation performed by object A is a publishing type, then the first indication identifier with an associated relationship and the storage address of the content data can be recorded in the publishing data structure, and the storage address is used to associate the specific content of the content data stored in the database under the blockchain.
[0072] Subsequently, a second object (for example, object B) may forward the content data published by object A. During the forwarding process of the content data, the forwarding operation of the content data may be recorded in the blockchain based on the meta-identity credential of object B, thereby recording the social operations performed by different objects on the content data in the corresponding meta-identity credential in the blockchain.
[0073] It can be seen that when an object performs a social operation (for example, when publishing content data), an indicator identifier must be assigned to the object's meta-identity credential. Since the meta-identity credential of the object in the blockchain is held by the object alone, and the indicator identifier is associated with the storage address of the content data and stored in the object's meta-identity credential, the content data is maintained by the publishing object (i.e., the first object that publishes the content data) itself, which can prevent the content data from being tampered with, thereby improving the reliability and security of the content data; in addition, when the object publishes content data, the specific content of the published content data is not directly stored in the blockchain, but the storage address is stored in the meta-identity credential on the blockchain, which can reduce the storage burden of the data on the chain, thereby improving the efficiency of data processing.
[0074] The following is a detailed introduction to the relevant technical terms involved in the blockchain-based data processing solution provided in this application.
[0075] 1. Social Operations and Content Data
[0076] Social operations refer to operations performed on content data. For example, social operations may include but are not limited to: operations of publishing content data, operations of forwarding content data, operations of commenting on content data, and the like.
[0077] Content data refers to data generated in a social session, which may include a single session and a group chat session. A single session refers to a social session in which two objects participate, and is used to exchange information between the two objects. A group chat session refers to a social session in which multiple (greater than two) objects participate, and is used to exchange information between the multiple objects. Social session types may include but are not limited to text type, audio and video type, live broadcast type, mixed type, and the like. A text type social session may publish text data in a social session. An audio and video type social session may publish data containing audio and video in a social session. A live broadcast type social session may publish live broadcast data in a social session. A mixed type social session may allow the publication of multiple forms of content in a social session, and the forms here may include but are not limited to: text form, audio and video form, picture form, and live broadcast form; for example, a mixed type social session may allow the publication of information containing only text content, information containing only audio and video content, and information containing only pictures in a social session; it may also allow the publication of information containing both text content and audio and video content, and may even allow the publication of live broadcast content, or allow the publication of information containing both pictures and text content, and the like. Therefore, the type of content data is not specifically limited in this application, and the content data can be an article, one or more pictures, a video, etc.
[0078] 2. Meta-Identity Credentials
[0079] A meta-identity credential refers to a credential that uniquely identifies the identity of an object, that is, a meta-identity credential is a unique credential of an object. The meta-identity credential may be a digital collection, which may refer to resources generated based on a digital collection protocol. The so-called digital collection may be the ownership and title of a virtual digital commodity. For example, digital collections may include but are not limited to various forms such as digital paintings, pictures, music, videos, and 3D models. Optionally, the meta-identity credential has a corresponding identifier (meta-identity credential identifier). For example, the meta-identity credential identifier may be represented as: Profile id. In one example, the corresponding meta-identity credential may be obtained based on the meta-identity credential identifier Profile id.
[0080] 3. First indicator
[0081] The first indicator identifier refers to the identifier assigned to the meta-identity certificate of the first object. The first indicator identifier is a self-increasing digital number (Pubid). The so-called self-increasing digital number means that the digital number increases in sequence (for example, plus 1) as certain conditions change. That is, each time a new social operation (such as a content data publishing operation, a content data forwarding operation, or a content data comment operation) is detected on the blockchain by the first object, a new digital number can be assigned to the meta-identity certificate of the first object. The assigned new digital number needs to be determined in combination with the current digital number stored in the meta-identity certificate. For example, if the current digital number stored in the meta-identity certificate of the first object is Pubid=5, then the new digital number assigned when a new social operation is detected is Pubid=6. Similarly, if the first object is detected to have a new social operation next time, a new digital number Pubid=7 can be assigned to the meta-identity certificate of the first object. By analogy, each time a new social operation is generated by the first object (or when a transaction request initiated by the first object to the blockchain is detected), the first indicator identifier can be assigned to the meta-identity certificate of the first object.
[0082] 4. Blockchain Technology
[0083] Blockchain is essentially a decentralized database, a string of data blocks generated by cryptographic methods. Each data block contains relevant information, which is used to verify the validity of its information (anti-counterfeiting) and generate the next block. Specifically, this application will introduce the relevant terms such as blockchain system and blockchain structure in detail.
[0084] (1) Blockchain system:
[0085] See also Figure 2a , Figure 2a This is a schematic diagram of the structure of a blockchain system provided by an embodiment of the present application. Figure 2a As shown, the blockchain system can be a data sharing system. The so-called data sharing system refers to a system for sharing data between node devices. The data sharing system 200 may include multiple node devices 201. The multiple node devices 201 may refer to various computer devices in the data sharing system. The computer device may be, for example, a terminal device or a server. Among them, the device types of different node devices 201 may be the same or different. For example, a node device 201 may be a terminal device, and another node device 201 may be a server.
[0086] Specifically, each node device 201 can receive input information when performing normal work, and maintain the shared data in the data sharing system based on the received input information. For example, when any node device 201 in the blockchain system receives input information (for example, receiving a first transaction request initiated by a first object), the node device 201 can obtain the meta-identity credential owned by the first object on the blockchain according to the meta-identity credential identifier carried in the first transaction request, and assign a first indication identifier to the meta-identity credential of the first object, and store the first indication identifier in the meta-identity credential of the first object. Based on this, each node device 201 in the blockchain can jointly maintain the meta-identity credential with the first indication identifier stored in the blockchain.
[0087] (2) Blockchain Node:
[0088] ①Node function:
[0089] a. Application functions are used to be deployed in the blockchain to implement specific businesses according to actual business needs, and record data related to the implementation of business functions to form record data (such as content data). The content data can be used to implement social interaction functions. For example, the content data can include an article to be published, a post, a hot topic, etc., and other data related to social interaction between other objects. In one implementation, a digital signature (i.e., the digital signature of the object performing the social operation) can be carried in the content data to indicate the source of the content data, and the content data can be sent to other nodes in the blockchain system. When other nodes successfully verify the source and integrity of the content data, the content data is added to the temporary block, and the on-chain processing of the content data can be completed.
[0090] b. Contract function. Any blockchain node in the blockchain system has the function of calling and executing the corresponding smart contract. The so-called smart contract (referred to as contract): smart contract has three major elements: commitment, agreement, and digital form. Therefore, it can expand the application scope of blockchain to all aspects of financial industry transactions, payments, settlements and clearing. Smart contract means that when a pre-compiled condition is triggered, the smart contract will immediately execute the corresponding contract terms. Its working principle is similar to the if-then statement of a computer program. Among them, a smart contract virtual machine (a virtual machine that can execute smart contracts) runs in the blockchain node, and the smart contract virtual machine can understand and execute these codes to realize the function of the smart contract. In the embodiment of the present application, a credential management contract runs in the blockchain node, and the corresponding meta-identity credential can be assigned to the object based on the credential management contract; or, based on the credential management contract, data (such as a first indication identifier) is added to the meta-identity credential held by the object, so that the credential management contract can be used to record the social operations performed by the object on the content data on the blockchain.
[0091] ②Node identification:
[0092] Each node in the blockchain system has a corresponding node identifier, and each node in the blockchain system can store the node identifiers of other nodes in the blockchain system, so that the generated blocks can be broadcast to other nodes in the blockchain system based on the node identifiers of other nodes. Each node can maintain a node identifier list as shown in the following table, and store the node name and node identifier in the node identifier list.
[0093] The node identifier may be an IP (Internet Protocol, a protocol for interconnecting networks) address or any other information that can be used to identify the node. Table 1 only uses the IP address as an example for description.
[0094] Table 1. Node ID list
[0095] Node Name Node ID Node 1 000.000.000.000 Node 2 111.111.111.111 … … Node N xxx.xxx.xxx.xxx
[0096] In the embodiment of the present application, each blockchain node can perform blockchain consensus on the storage address of the content data, and the blockchain consensus process involves data interaction between blockchain nodes. During the data interaction process, any blockchain node can carry its own node identification, so that other nodes can perform node verification processing based on the corresponding node identification before performing consensus processing, thereby improving the security of the blockchain consensus process.
[0097] (3) Block structure:
[0098] See also Figure 2b , Figure 2b This is a schematic diagram of the structure of a blockchain provided by an embodiment of the present application. Figure 2b As shown, the blockchain consists of multiple blocks, and each blockchain contains a genesis block. As the name implies, the so-called genesis block is the first block, the initial block. The genesis block includes a block header and a block body. The block header stores the input information feature value, version number, timestamp and difficulty value, and the block body stores the input information (such as the storage address of the content data); the next block of the genesis block uses the genesis block as the parent block, and the next block also includes a block header and a block body. The block header stores the input information feature value of the current block, the block header feature value, version number, timestamp and difficulty value of the parent block, and so on, so that the storage address of the content data stored in each block in the blockchain is associated with the storage address of the content data stored in the parent block, ensuring the security of the task data in the block.
[0099] In the embodiment of the present application, the meta-identity credentials held by each object can be Figure 2bThe block structure shown is stored in the blockchain, so that the security of the meta-identity credentials of each object can be guaranteed. Then the storage address of the content data recorded based on the meta-identity credentials in this application is also relatively safe and reliable, thereby improving the reliability and security of performing social operations on the chain.
[0100] 5. Cloud Technology:
[0101] In the data processing scheme based on blockchain proposed in this application, blockchain involves more data computing services and data storage services, so a lot of computer operating costs are required. Then, this application can perform corresponding data processing operations based on cloud storage technology in cloud technology, specifically including: based on the data storage service, the first indicator identifier with an associated relationship and the storage address of the content data can be recorded in the meta-identity credential of the first object; and, based on the data computing service, the first indicator identifier can be assigned to the social operation in the meta-identity credential of the first object, and an associated relationship can be established between the first indicator identifier and the storage address of the content data. Among them, the so-called cloud technology is a general term for network technology, information technology, integration technology, management platform technology, application technology, etc. based on the cloud computing business model application, which can form a resource pool, which is used on demand and is flexible and convenient. Among them, cloud technology can include cloud storage technology, so-called cloud storage (cloud storage) is a new concept extended and developed from the concept of cloud computing, and a distributed cloud storage system (hereinafter referred to as storage system) refers to a storage system that uses cluster applications, grid technology, and distributed storage file systems to collect a large number of storage devices of various types in the network (storage devices are also called storage nodes) through application software or application interfaces to work together and provide data storage and business access functions to the outside world.
[0102] It should be noted that the relevant data involved in the data processing process in this application, for example: content data, storage address of content data, meta-identity credential identifier of the first object, and first indicator identifier, etc. When the above embodiments of this application are applied to specific products or technologies, user permission or consent must be obtained, and the relevant data collection, use and processing processes must comply with relevant national and regional laws, regulations and standards, and comply with the principles of legality, legitimacy and necessity, and do not involve obtaining data types prohibited or restricted by laws and regulations. In some optional embodiments, the relevant data involved in the embodiments of this application are obtained after the object has been authorized separately. In addition, when obtaining the object's separate authorization, the purpose of the relevant data involved is indicated to the object.
[0103] Combine the following Figure 3 The architecture diagram of the data processing system provided in the embodiment of the present application is introduced in detail.
[0104] See also Figure 3 , Figure 3 This is a schematic diagram of the architecture of a blockchain-based data processing system provided in an embodiment of the present application. Figure 3 As shown, the architecture diagram of the data processing system may include at least: a terminal device 301 and at least one blockchain node 302. Each blockchain node 302 constitutes a blockchain network. It should be noted that the number of nodes in the blockchain network is only used for example and does not specifically limit the number of nodes in this application. Any blockchain node 302 in the blockchain network can be directly or indirectly connected to the terminal device 301 through wired or wireless communication.
[0105] Any computer device (terminal device 301 or blockchain node 302) in the data processing system can be a mobile phone, tablet computer, laptop computer, PDA, mobile Internet device (MID), vehicle, vehicle-mounted equipment, roadside equipment, aircraft, wearable device, smart devices such as smart watches, smart bracelets, pedometers, etc., virtual reality devices... and so on.
[0106] Any computer device (terminal device 301 or blockchain node 302) in the data processing system can be a server. Specifically, the server can be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN (Content Delivery Network), and big data and artificial intelligence platforms.
[0107] It is understandable that the types of various computer devices in the data processing system can be the same or different. For example, the terminal device 301 can be a mobile phone, and the blockchain node 302 can also be a mobile phone; for another example, the terminal device 301 can be a mobile phone, and the blockchain node 302 can be a server. This application does not limit the number and type of various computer devices in the data processing system.
[0108] (1) The functions of the terminal device 301 and the blockchain node 302 in the data processing system are introduced accordingly:
[0109] ① Terminal device 301: A social application is running, a social session is allowed to run in the social application, and content data can be generated in the social session. Any object is supported to perform social operations on content data in the social application, such as supporting the first object to publish content data (such as articles, posts, etc.) in the social session, supporting the first object to forward content data in the social session, and supporting the first object to give feedback on content data in the social session (such as comments, likes, etc.).
[0110] ② Blockchain node 302: runs a credential management contract. When receiving an identity registration request initiated by the first object, the credential management contract can be called to allocate a corresponding meta-identity credential to the first object; when receiving a first transaction request initiated by the first object in the terminal device 301, the credential management contract can be called to allocate a first indication identifier to the meta-identity credential of the first object, and the first indication identifier can be stored in the meta-identity credential of the first object.
[0111] (2) A detailed introduction to the data interaction process between the terminal device 301 and the blockchain node 302 in the data processing system:
[0112] ① The terminal device 301 may generate a first transaction request in response to the social operation performed by the first object on the content data on the blockchain, wherein the first transaction request carries: the storage address of the content data and the meta-identity credential identifier of the first object.
[0113] ② The terminal device 301 sends the first transaction request to the blockchain node 302 in the blockchain network; here, the blockchain node 302 can be any node in the blockchain network, and the blockchain node 302 can also be a designated node (such as a master node) in the blockchain network. This application does not make any specific limitations on this.
[0114] ③ The blockchain node 302 responds to the first transaction request and obtains the meta-identity credential of the first object on the blockchain based on the meta-identity credential identifier of the first object.
[0115] ④ The blockchain node 302 assigns a first indication identifier to the meta-identity credential of the first object, and establishes an association between the first indication identifier and the storage address of the content data.
[0116] ⑤ The blockchain node 302 records the first indication identifier with an associated relationship and the storage address of the content data into the meta-identity credential of the first object; wherein, when the first indication identifier with an associated relationship and the storage address of the content data are successfully stored in the meta-identity credential of the first object, it indicates that the social operation of the content data on the blockchain has been successfully executed.
[0117] ⑥ Subsequently, the blockchain node 302 may return an execution result indicating that the content data has been successfully executed on the blockchain to the terminal device 301.
[0118] The data processing system provided by the present application can receive a first transaction request initiated by a first object, the first transaction request is used to request to perform a social operation on content data on a blockchain, and the first transaction request carries: the storage address of the content data and the meta-identity credential identifier of the first object; and based on the meta-identity credential identifier of the first object, obtain the meta-identity credential owned by the first object on the blockchain; assign a first indication identifier to the meta-identity credential of the first object, and establish an association relationship between the first indication identifier and the storage address of the content data; and record the first indication identifier with an association relationship and the storage address of the content data in the meta-identity credential of the first object. It can be seen that when the first object needs to perform a social operation on the content data in the blockchain, a first indication identifier can be assigned, and the first indication identifier and the storage address of the content data can be associated and recorded in the meta-identity credential of the first object, so that when the first indication identifier with an association relationship and the storage address of the content data are successfully stored in the meta-identity credential of the first object, it indicates that the content data has been successfully executed on the blockchain. The social operation is performed, and since the meta-identity credential is held by the first object personally, the first indication identifier and the storage address of the content data stored in the meta-identity credential are difficult to be tampered with, thereby improving the security and reliability of the content data on the chain.
[0119] It can be understood that the data processing system described in the embodiment of the present application is to more clearly illustrate the technical solution of the embodiment of the present application, and does not constitute a limitation on the technical solution provided in the embodiment of the present application. It is known to those skilled in the art that with the evolution of the system architecture and the emergence of new business scenarios, the technical solution provided in the embodiment of the present application is also applicable to similar technical problems.
[0120] The following describes specific embodiments of the blockchain-based data processing solution in conjunction with the accompanying drawings.
[0121] See also Figure 4 , Figure 4 is a flowchart of a data processing method based on blockchain provided by an embodiment of the present application. The data processing method can be Figure 3 The blockchain node in the blockchain-based data processing system shown is executed. The blockchain-based data processing method mainly includes but is not limited to the following steps S401 to S404:
[0122] S401: Receive a first transaction request initiated by a first object, where the first transaction request is used to request to perform a social operation on content data on a blockchain, and the first transaction request carries: a storage address of the content data and a meta-identity credential identifier of the first object.
[0123] In a possible implementation, before receiving the first transaction request initiated by the first object, the blockchain node further includes: responding to the identity registration request initiated by the first object, the identity registration request including the identity information of the first object; verifying the identity information of the first object; if the verification is successful, calling the credential management contract to assign a meta-identity credential to the first object, and returning the meta-identity credential and the meta-identity credential identifier to the terminal device where the first object is located. When obtaining the identity information of the first object, please refer to Figure 5 , Figure 5 Schematic diagram of a scenario for obtaining identity information provided by an embodiment of the present application. Figure 5 As shown, before obtaining the identity information of the first object, the blockchain node needs to send an authorization request to the first object. The authorization request is used to request the authorization of the first object. The identity information of the first object can be obtained only after the first object agrees to the authorization. For example, after the terminal device used by the first object obtains the authorization request sent by the blockchain node, the terminal device can display an interface S500 in the terminal device. The interface S500 displays a prompt message, which is used to prompt the first object whether to authorize the identity information, and is provided with a confirmation control 501 and a rejection control 502. If the first object clicks the confirmation control 501, it means that the first object agrees to the authorization. If the first object clicks the rejection control 502, it means that the first object refuses the authorization. In this way, when obtaining the identity information of the first object, the authorization of the first object can be requested, thereby improving the security of the identity information of the first object and avoiding data leakage.
[0124] In a possible implementation, after receiving the first transaction request sent by the terminal device where the first object is located, the blockchain node can obtain the device identification of the terminal device that sent the first transaction request, and verify the current terminal device according to the device identification. If it is determined that the verification of the current terminal device is passed, the first transaction request is responded to; if the verification of the current terminal device is not passed, the first transaction request is deleted. Wherein, the above verification includes: any one or more of authority verification, security verification, and legality verification; for example, a device list is stored in the blockchain node, and the device list records the device identification of at least one terminal device with transaction authority. If the device identification of the current terminal device is recorded in the device list, it is determined that the authority verification of the current terminal device is passed; for another example, the blockchain node can send a security test package to the current terminal device. If the current terminal device can correctly return a secure test instruction (for example, return 1) after receiving the security test package, it can be determined that the security verification of the current device is passed; for another example, the blockchain node can perform legality verification based on the IP address of the current terminal device.
[0125] S402: Based on the meta-identity credential identifier of the first object, obtain the meta-identity credential owned by the first object on the blockchain.
[0126] Specifically, the blockchain address of the first object and the meta-identity certificate of the first object may be associated and stored in the certificate management contract. Optionally, since the blockchain address (or private key) uniquely identifies an object, the meta-identity certificate identifier corresponding to the meta-identity certificate of the first object in the certificate management contract may be the blockchain address of the first object. Then, the meta-identity certificate identifier Profile id carried in the first transaction request may be the blockchain address of the first object.
[0127] In one possible implementation, based on the meta-identity credential identifier (eg, blockchain address) of the first object, a meta-identity credential matching the blockchain address of the first object is obtained in a credential management contract.
[0128] S403: Allocate a first indication identifier to the meta-identity credential of the first object, and establish an association relationship between the first indication identifier and the storage address of the content data.
[0129] In one possible implementation, each time a new social operation (such as a content data publishing operation, a content data forwarding operation, or a content data commenting operation) is detected on the blockchain by the first object, a new digital number may be assigned to the meta-identity credential of the first object. The assigned new digital number needs to be determined in combination with the current digital number stored in the meta-identity credential. For example, if the current digital number stored in the meta-identity credential of the first object is Pubid=5, then when a new social operation is detected, the new digital number assigned is Pubid=6. Therefore, the first indicator is a digital number that increases dynamically with the change of social operations. For example, when the first object publishes an article, a new digital number may be assigned to the meta-identity credential of the first object; for example, when the first object forwards a post, a new digital number may also be assigned to the meta-identity credential of the first object. Among them, the increase range of the first indicator may be a default range (such as adding 1 each time) or a custom setting, and this application does not make specific limitations on this.
[0130] It should be understood that establishing an association relationship between the first indicator and the storage address of the content data means that the first indicator can be used to indicate the content data. For example, the first indicator Pubid=1 indicates the content data data data1, and the first indicator Pubid=2 indicates the content data data2. Wherein, different first indicator identifiers may be associated with the same or different content data. For example, if the social operation performed by the first object each time refers to the operation of publishing content data, the content data associated with different first indicator identifiers are different; for another example, if the social operation performed by the first object at a certain time is the operation of publishing content data, the content data associated with the first indicator identifier is data1, and the social operation performed by the first object at another time is the operation of forwarding the content data data1 published last time, then the content data associated with different first indicator identifiers are the same, and are all the above-mentioned content data data1. Therefore, in this implementation, by assigning the first indicator identifier to the meta-identity credential of the first object and establishing an association relationship between the first indicator identifier and the storage address of the content data, the social operations such as publishing, forwarding, and commenting performed by the first object on the content data can be recorded.
[0131] S404: Recording the first indication identifier with an associated relationship and the storage address of the content data into the meta-identity credential of the first object; wherein, when the first indication identifier with an associated relationship and the storage address of the content data are successfully stored in the meta-identity credential of the first object, it indicates that a social operation has been successfully performed on the content data on the blockchain.
[0132] In a possible implementation, the meta-identity credential of the first object may be a list structure, and the storage address of the first indication identifier and the content data having an associated relationship may be directly recorded in the meta-identity credential of the first object. For example, the structure of the meta-identity credential may be as shown in Table 2-1 below:
[0133] Table 2-1. Meta-identity credentials
[0134]
[0135] As shown in Table 2-1 above, in the meta-identity credential of the first object, each time the first object performs a social operation, a new first indication identifier is generated, and the storage address of the content data is associated with the first indication identifier and stored in the meta-identity credential of the first object, for example, Pubid1 is associated with ContentUrl_1, and Pubid2 is associated with ContentUrl_2, and so on.
[0136] In another possible implementation, the meta-identity credential of the first object includes a content recording area, and the content recording area is used to record at least one type of data structure. Recording the first indicator identifier with an associated relationship and the storage address of the content data into the meta-identity credential of the first object includes: obtaining the type of social operation; based on the type of social operation, determining a matching data structure in the content recording area; recording the first indicator identifier with an associated relationship and the storage address of the content data into the matching data structure. For example, the structure of the meta-identity credential can be as shown in Table 2-2 below:
[0137] Table 2-2. Meta-identity credentials
[0138]
[0139]
[0140] As shown in Table 2-2 above, according to the type of social operation, the first indicator identifier and the storage address of the content data with an associated relationship are recorded in the matching data structure. Specifically, ① the type of social operation is the publishing type, and the matching data structure is the publishing data structure, in which each first indicator identifier and the storage address of the content data are stored in association, such as Pubid1 and ContentUrl_1 are stored in association, and Pubid2 and ContentUrl_2 are stored in association; ② the type of social operation is the forwarding type, and the matching data structure is the forwarding data structure, in which each first indicator identifier and the storage address of the content data are stored in association, such as Pubid4 and ContentUrl_4 are stored in association, and Pubid6 and ContentUrl_6 are stored in association; ③ the type of social operation is the comment type, and the matching data structure is the comment data structure, in which each first indicator identifier and the storage address of the content data are stored in association, such as Pubid5 and ContentUrl_5 are stored in association, and Pubid7 and ContentUrl_7 are stored in association. In this implementation, the first indicator identifier and the storage address of the content data can be associated and stored in a matching data structure according to different types of social operations, and differentiated by type, which can make data storage and management more convenient.
[0141] Optional, see Figure 1 The data structure of the meta-identity credential can also be as follows Figure 1As shown, each object has a unique meta-identity credential in the blockchain, and the meta-identity credential of these objects is managed and maintained based on the credential management contract. The meta-identity credential of any object is used to store the meta-identity information (Profile Info) of the corresponding object, and these meta-identity information is recorded in the content recording area (publication), and the content recording area is used to record at least one type of data structure, for example: any one or more of the publishing data structure (post structure), forwarding data structure (mirror structure), and comment data structure (comment structure). These data structures are managed based on a unified node in a meta-identity credential, thereby forming a tree management structure. In the meta-identity credential of the first object, the corresponding first indication identifier is stored in each data management structure according to the type of social operation. For example, if the type of social operation is a publishing type, the first indication identifier is stored in the post structure, and if the type of social operation is a forwarding type, the first indication identifier is stored in the mirror structure, and if the type of social operation is a comment type, the first indication identifier is stored in the comment structure.
[0142] Further, when the first indication identifier with an associated relationship and the storage address of the content data are successfully stored in the meta-identity credential of the first object, it indicates that the content data has been successfully socially operated on the blockchain. It can be understood that whenever it is detected that the first object initiates a social operation on the content data on the blockchain, a new first indication identifier can be generated in the meta-identity credential of the first object, and the first indication identifier with an associated relationship and the storage address of the content data are stored in the meta-identity credential of the first object. Since the content data is not directly stored in the meta-identity credential, but the storage address Content URL (Uniform Resource Locator) of the content data is stored, the URL can indicate the storage address on the blockchain, and can also point to a third-party storage space under the blockchain, such as IPFS (Inter Planetary File System), Arweave (a decentralized storage platform), AWS (Amazon Web Services, a cloud computing service platform), and centralized cloud servers and other databases, so the data storage burden of the blockchain can be reduced.
[0143] In an embodiment of the present application, a first transaction request initiated by a first object can be received, and the first transaction request is used to request to perform a social operation on content data on the blockchain. The first transaction request carries: the storage address of the content data and the meta-identity credential identifier of the first object; and based on the meta-identity credential identifier of the first object, the meta-identity credential owned by the first object on the blockchain is obtained; a first indication identifier is assigned to the meta-identity credential of the first object, and an association relationship is established between the first indication identifier and the storage address of the content data; and the first indication identifier with an association relationship and the storage address of the content data are recorded in the meta-identity credential of the first object. It can be seen that when the first object needs to perform a social operation on the content data in the blockchain, a first indication identifier can be assigned, and the first indication identifier and the storage address of the content data can be associated and recorded in the meta-identity credential of the first object, so that when the first indication identifier with an association relationship and the storage address of the content data are successfully stored in the meta-identity credential of the first object, it indicates that the social operation is successfully performed on the content data on the blockchain. Since the meta-identity credential is held by the first object personally, the first indication identifier and the storage address of the content data stored in the meta-identity credential are difficult to be tampered with, thereby improving the security and reliability of the content data on the chain.
[0144] See also Figure 6 , Figure 6 This is an interactive flow chart of a data processing method based on blockchain provided by an embodiment of the present application. Figure 6 As shown, the interactive process of the data processing method can be jointly executed by: a first terminal device, a second terminal device, a third terminal device, and a blockchain node, wherein the first terminal device refers to the terminal device where the first object is located (used or logged in), the second terminal device refers to the terminal device where the second object is located, and the third terminal device refers to the terminal device where the third object is located. Specifically, the interactive process of the data processing method specifically includes: a content data publishing process, a content data forwarding process, and a content data comment process; wherein the above process mainly includes the following steps S601-S608:
[0145] 1. Content Data Publishing Process (S601-S605)
[0146] S601: The first terminal device generates a first transaction request.
[0147] In a specific implementation, the first object can perform social operations on the content data in the first terminal device. For example, the social operations may include: publishing operations on the content data, forwarding operations on the content data, commenting operations on the content data, etc. The first terminal device generates a first transaction request in response to the social operations performed by the first object on the content data. Among them, the embodiment of the present application takes the social operation performed by the first object as an operation of publishing content data as an example for detailed description; specifically, the first transaction request carries: the storage address of the content data and the meta-identity credential identifier of the first object.
[0148] S602: The first terminal device sends a first transaction request to a blockchain node.
[0149] In specific implementation, the first terminal device can send the first transaction request to any blockchain node in the blockchain network; or, the first transaction request also carries a node identifier of the blockchain node, and the first terminal device can send the first transaction request to the blockchain node indicated by the node identifier; or, the first terminal device can send the first transaction request to the blockchain node in the blockchain network that has the best communication quality or is closest to the first terminal device, and so on. This application does not specifically limit the blockchain node that receives the first transaction request.
[0150] S603: The blockchain node obtains the meta-identity credential of the first object on the blockchain based on the meta-identity credential identifier of the first object.
[0151] In specific implementation, the specific execution steps of the blockchain node to obtain the meta-identity credential owned by the first object in the blockchain can refer to the relevant steps involved in step S402 in the above embodiment, and the embodiments of the present application will not be repeated here.
[0152] S604: The blockchain node assigns a first indication identifier to the meta-identity credential of the first object, and establishes an association between the first indication identifier and the storage address of the content data.
[0153] In one possible implementation, each time a new social operation (such as a content data publishing operation, a content data forwarding operation, or a content data commenting operation) is detected on the blockchain by the first object, a new digital number may be assigned to the meta-identity credential of the first object. The assigned new digital number needs to be determined in combination with the current digital number stored in the meta-identity credential. For example, if the current digital number stored in the meta-identity credential of the first object is Pubid=5, then when a new social operation is detected, the new digital number assigned is Pubid=6. Therefore, the first indicator is a digital number that increases dynamically with the change of social operations. For example, when the first object publishes an article, a new digital number may be assigned to the meta-identity credential of the first object; for example, when the first object forwards a post, a new digital number may also be assigned to the meta-identity credential of the first object. Among them, the increase range of the first indicator may be a default range (such as adding 1 each time) or a custom setting, and this application does not make specific limitations on this.
[0154] S605: The blockchain node records the first indication identifier having an associated relationship and the storage address of the content data into the meta-identity credential of the first object.
[0155] When the first indication identifier having an associated relationship and the storage address of the content data are successfully stored in the meta-identity credential of the first object, it indicates that the social operation of the content data is successfully performed on the blockchain.
[0156] In a possible implementation, the meta-identity credential of the first object may be a list structure, and the first indication identifier and the storage address of the content data having an associated relationship may be directly recorded in the meta-identity credential of the first object.
[0157] In another possible implementation, the meta-identity credential of the first object includes a content recording area, and the content recording area is used to record at least one type of data structure. Recording the first indication identifier with an associated relationship and the storage address of the content data into the meta-identity credential of the first object includes: obtaining the type of social operation; based on the type of social operation, determining a matching data structure in the content recording area; and recording the first indication identifier with an associated relationship and the storage address of the content data into the matching data structure. For example, when the first object publishes content data, the first indication identifier with an associated relationship and the storage address of the content data are recorded in the publishing data structure (i.e., Figure 1 The post structure shown).
[0158] In the above steps, when the first object needs to perform a social operation on the content data in the blockchain, a first indication identifier can be assigned, and the first indication identifier and the storage address of the content data can be associated and recorded in the meta-identity credential of the first object. Therefore, when the first indication identifier and the storage address of the content data with an associated relationship are successfully stored in the meta-identity credential of the first object, it indicates that the social operation has been successfully performed on the content data on the blockchain. Since the meta-identity credential is held by the first object personally, the first indication identifier and the storage address of the content data stored in the meta-identity credential are difficult to be tampered with, thereby improving the security and reliability of the content data on the chain.
[0159] 2. Content Data Forwarding Process (S606-S609)
[0160] S606: The second terminal device generates a second transaction request.
[0161] In a specific implementation, the second object can perform a forwarding operation on the content data published by the first object in the second terminal device, and then the second terminal device can generate a second transaction request in response to the forwarding operation performed by the second object on the content data. The second transaction request carries: the meta-identity credential identifier of the first object, the first indication identifier, and the meta-identity credential identifier of the second object.
[0162] S607: The second terminal device sends the second transaction request to the blockchain node.
[0163] In specific implementation, this application also does not specifically limit the blockchain node that receives the second transaction request. For example, the second terminal device can send the second transaction request to any blockchain node in the blockchain network; or, the second transaction request also carries the node identifier of the blockchain node, and the second terminal device can send the second transaction request to the blockchain node indicated by the node identifier; or, the second terminal device can send the second transaction request to the blockchain node in the blockchain network that has the best communication quality or the closest distance to the second terminal device, etc. Among them, the blockchain nodes that receive the first transaction request and the second transaction request can be the same or different.
[0164] S608: The blockchain node assigns a second indication identifier to the meta-identity credential of the second object.
[0165] In a possible implementation, after receiving the second transaction request, the blockchain node may call the credential management contract to obtain the meta-identity credential owned by the second object on the blockchain based on the meta-identity credential identifier of the second object. For example, if the meta-identity credential identifier of the second object is the blockchain address of the second object, the meta-identity credential of the second object stored in the credential management contract may be obtained according to the blockchain address of the second object.
[0166] In another possible implementation, after receiving the second transaction request sent by the second terminal device, the blockchain node can obtain the device identification of the second terminal device, and verify the second terminal device according to the device identification of the second terminal device, and respond to the second transaction request if it is determined that the verification of the second terminal device is passed; if the verification of the second terminal device is not passed, the second transaction request is deleted. The above verification includes: any one or more of authority verification, security verification, and legality verification.
[0167] In specific implementation, similar to the first indicator, the second indicator is also a self-incrementing digital number. Wherein, each time a new social operation (such as a content data publishing operation, a content data forwarding operation, or a content data comment operation) is detected on the blockchain by the second object, a new digital number can be assigned to the meta-identity certificate of the second object. The assigned new digital number needs to be determined in combination with the current digital number stored in the meta-identity certificate. For example, if the current digital number stored in the meta-identity certificate of the second object is Pubid=2, then when it is detected that the second object performs a forwarding operation, the new digital number assigned is Pubid=3.
[0168] S609: Store the second indication identifier in the meta-identity credential of the second object, and establish an association relationship between the second indication identifier, the first indication identifier, and the meta-identity credential identifier of the first object.
[0169] In one possible implementation, ① first, the second indication identifier is stored in the meta-identity credential of the second object. Specifically, the meta-identity credential of the second object includes a content recording area, and the content recording area is used to record at least one type of data structure, for example: any one or more of a publishing data structure, a forwarding data structure, and a comment data structure. Since the second object forwards the content data published by the first object, the second indication identifier can be stored in the forwarding data structure (such as a mirror structure) of the meta-identity credential of the second object. ② Further, an association relationship is established between the second indication identifier and the first indication identifier and the meta-identity credential identifier of the first object. For example, the first indicator identifier is Pubid1 and the second indicator identifier is Pubid2, then the second indicator identifier Pubid2 can be associated with the meta-identity credential identifier of the first object and the first indicator identifier Pubid1. Since the first indicator identifier is associated with the storage address of the content data, based on the association relationship between the second indicator identifier and the meta-identity credential identifier of the first object and the first indicator identifier, it can be associated with the storage address of the content data, and the meta-identity credential identifier Profileid+first indicator identifier Pubid can uniquely identify a content data, so the above-mentioned association relationship constructed in the meta-identity credential of the second object can be traced back to the specific content of the content data.
[0170] In the above steps, when the second object requests to forward the content data published by the first object, it can carry the first indication identifier corresponding to the content data published by the first object and the meta-identity credential identifier of the first object, thereby assigning a second indication identifier to the meta-identity credential of the second object, and the second indication identifier can be stored in the meta-identity credential of the second object, and an association relationship can be established between the second indication identifier and the first indication identifier and the meta-identity credential identifier of the first object, so that the social operations performed by the second object on the content data can be recorded based on the meta-identity credential of the second object.
[0171] 3. Content Data Review Process (S610-S613)
[0172] S610: The third terminal device generates a third transaction request.
[0173] In specific implementation, the third object can perform a comment operation on the content data published by the first object in the third terminal device, and then the third terminal device can generate a third transaction request in response to the comment operation performed by the third object on the content data. The third transaction request carries: the meta-identity credential identifier of the first object, the first indication identifier, the meta-identity credential identifier of the third object, and the storage address of the comment data, where the comment data includes the data generated after the third object comments on the content data.
[0174] S611: The third terminal device sends the third transaction request to the blockchain node.
[0175] In specific implementation, this application also does not specifically limit the blockchain node that receives the third transaction request. For example, the third terminal device can send the third transaction request to any blockchain node in the blockchain network; or, the third transaction request also carries the node identifier of the blockchain node, and the third terminal device can send the third transaction request to the blockchain node indicated by the node identifier; or, the third terminal device can send the third transaction request to the blockchain node in the blockchain network that has the best communication quality or the closest distance to the third terminal device, etc. Among them, the blockchain nodes that receive the first transaction request, the second transaction request, and the third transaction request can be the same or different.
[0176] S612: The blockchain node assigns a third indication identifier to the meta-identity credential of the third object.
[0177] In a possible implementation, after receiving the third transaction request, the blockchain node may call the credential management contract to obtain the meta-identity credential owned by the third object on the blockchain based on the meta-identity credential identifier of the third object. For example, if the meta-identity credential identifier of the third object is the blockchain address of the third object, the meta-identity credential of the third object stored in the credential management contract may be obtained according to the blockchain address of the third object.
[0178] In another possible implementation, after receiving the third transaction request sent by the third terminal device, the blockchain node can obtain the device identification of the third terminal device, and verify the third terminal device according to the device identification of the third terminal device, and respond to the third transaction request if it is determined that the verification of the third terminal device is passed; if the verification of the third terminal device is not passed, the third transaction request is deleted. The above verification includes: any one or more of: authority verification, security verification, and legality verification.
[0179] In specific implementation, similar to the first indicator, the third indicator is also a self-incrementing digital number. Wherein, each time a new social operation (such as a content data publishing operation, a content data forwarding operation, or a content data comment operation) is detected on the blockchain by the third object, a new digital number can be assigned to the meta-identity certificate of the third object. The assigned new digital number needs to be determined in combination with the current digital number stored in the meta-identity certificate. For example, if the current digital number stored in the meta-identity certificate of the third object is Pubid=3, then when it is detected that the third object performs a forwarding operation, the new digital number assigned is Pubid=4.
[0180] S613: Store the third indication identifier in the meta-identity credential of the third object, and establish an association relationship between the third indication identifier, the first indication identifier, and the meta-identity credential identifier of the first object.
[0181] In one possible implementation, see Figure 7 , Figure 7 This is a flow chart of a review content data provided by an embodiment of the present application. Figure 7 As shown, the first object's meta-identity certificate and the third object's meta-identity certificate both have content recording areas, and the content recording areas record three data structures: a publishing data structure, a forwarding data structure, and a comment data structure. Figure 7 The specific steps involved in S613 are described in detail.
[0182] ① First, establish an association relationship between the third indicator and the storage address of the comment data; wherein, the storage address of the comment data can indicate the storage address on the blockchain, or point to a third-party storage space under the blockchain, such as IPFS, Arweave, AWS, and centralized cloud servers and other databases. In other words, the specific content of the comment data is stored in the database under the blockchain, and there is no need to store the specific comment content on the blockchain, so this can reduce the data storage burden of the blockchain.
[0183] ② Further, the third indicator identifier and the storage address of the comment data having an associated relationship are recorded in the meta-identity credential of the third object. Specifically, the meta-identity credential of the third object includes a content recording area, and the content recording area is used to record at least one type of data structure, for example: any one or more of a publishing data structure, a forwarding data structure, and a comment data structure. Since the third object comments on the content data published by the first object, the third indicator identifier can be stored in the comment data structure (such as a comment structure) of the meta-identity credential of the third object.
[0184] ③Finally, establish an association relationship between the third indicator and the first indicator and the meta-identity credential of the first object. For example, if the first indicator is Pubid1 and the third indicator is Pubid3, then the third indicator Pubid3 can be associated with the meta-identity credential of the first object and the first indicator Pubid1. Since the first indicator is associated with the storage address of the content data, based on the association relationship between the third indicator and the meta-identity credential of the first object and the first indicator, it can be associated with the storage address of the content data, and the meta-identity credential Profileid + the first indicator Pubid can uniquely identify a content data, so the above association relationship constructed in the meta-identity credential of the third object can be traced back to the specific content of the content data.
[0185] In the above steps, when the third object requests to comment on the content data published by the first object, it can carry the first indicator corresponding to the content data published by the first object and the meta-identity credential identifier of the first object, thereby assigning a third indicator to the meta-identity credential of the third object, and the third indicator and the storage address of the comment data can be associated and stored in the comment data structure of the meta-identity credential of the third object. In addition, the specific content of the comment data is stored under the blockchain, and the specific content of the comment data does not need to be stored in the blockchain, thereby reducing the storage burden of the blockchain.
[0186] In the embodiment of the present application, each object has a meta-identity certificate as an identity identifier in the blockchain. Based on the meta-identity certificate, the social operations (such as publishing, forwarding, commenting, etc.) performed by each object on the content data can be numbered and recorded, and associated with each other. First, the first object can publish content data on the blockchain, thereby assigning a first indicator identifier to the meta-identity certificate of the first object, and the storage address of the published content data and the first indicator identifier can be associated and stored in the publishing data structure of the meta-identity certificate of the first object. Next, the second object and the third object can respectively forward, comment, and perform other operations on the content data published by the first object, and then based on the association relationship between the second indicator identifier or the third indicator identifier and the first indicator identifier, the social operations performed by multiple objects on the same content data can be recorded in the corresponding meta-identity certificate, so that the social network structure of the content data can be restored on the blockchain.
[0187] The following is a description of an application example of the data processing solution based on blockchain in an embodiment of the present application.
[0188] See also Figure 8 , Figure 8 is a flow chart of another data processing method based on blockchain provided in an embodiment of the present application. Figure 8 As shown, the data processing method can be Figure 3 The blockchain node in the blockchain-based data processing system shown is executed. The blockchain-based data processing method mainly includes but is not limited to the following steps S801 to S803:
[0189] S801: Acquire each associated indication identifier that has an associated relationship with the first indication identifier.
[0190] Among them, as mentioned above Figure 6 As described in the embodiment, the associated indicator having an associated relationship with the first indicator may include at least: a second indicator and a third indicator. It should be understood that the second indicator refers to the indicator stored in the identity certificate of the second object, and the third indicator refers to the indicator stored in the identity certificate of the third object. Among them, the number of the second indicator and the third indicator can be one or more. For the convenience of explanation, the embodiments of the present application are described in detail later with the number of the first indicator, the second indicator, and the third indicator being one.
[0191] S802: Determine a plurality of matching associated meta-identity credentials based on each associated indication identifier, where one associated indication identifier corresponds to one associated meta-identity credential.
[0192] In specific implementation, since one association indicator corresponds to one association meta-identity credential, the matching association meta-identity credentials can be determined based on each association indicator. For example, the association meta-identity credential corresponding to the second indicator is the meta-identity credential of the second object, and the association meta-identity credential corresponding to the third indicator is the meta-identity credential of the third object.
[0193] In a possible implementation, when there are multiple second indicator identifiers and third indicator identifiers, a matching associated meta-identity credential may be determined based on any one of the second indicator identifiers or any one of the third indicator identifiers.
[0194] S803: Use the determined associated identity credentials as nodes, and use the association relationships between the associated indication identifiers and the first indication identifier as connecting edges between the nodes to construct a network relationship graph of the first object.
[0195] See also Fig. 9 , Fig. 9 Schematic diagram of a network relationship map provided by the embodiment of the present application. Fig. 9 The network relationship graph is constructed based on each associated meta-identity credential associated with the first object, and the association relationship between each associated indicator and the first indicator. Specifically, any associated meta-identity credential is used as a node, and the association relationship between each associated indicator and the first indicator is used as a connection edge between nodes. For example, if the meta-identity credential of the first object is represented as meta-identity credential 1, the meta-identity credential of the second object is represented as meta-identity credential 2, and the meta-identity credential of the third object is represented as meta-identity credential 3, then meta-identity credential 1, meta-identity credential 2, and meta-identity credential 3 can be used as node 1, node 2, and node 3 respectively. Since there is an association relationship between the first indicator and the second indicator, that is, there is an association relationship between the second indicator stored in the forwarding data structure in meta-identity credential 2 and the first indicator stored in the publishing data structure in meta-identity credential 1, there is a connection edge S12 between node 1 and node 2; similarly, there is an association relationship between the third indicator stored in the comment data structure in meta-identity credential 3 and the first indicator stored in the publishing data structure in meta-identity credential 1, and there is a connection edge S13 between node 1 and node 3. By adopting the above method, a network relationship graph of the first object can be constructed.
[0196] In a possible implementation, after constructing the network relationship graph of the first object, a content data query request for the first object can also be obtained, and the content data query request includes: the meta-identity credential identifier to be queried and the indication identifier to be queried; in the network relationship graph of the first object, the target meta-identity credential is determined according to the meta-identity credential identifier to be queried; and in the content recording area of the target meta-identity credential, the storage address associated with the indication identifier to be queried is obtained; based on the associated storage address, the target content data stored in the database is obtained. For example, the meta-identity credential identifier to be queried is Profileid1, and the indication identifier to be queried is Pubid1, such as Fig. 9 As shown, in the network relationship graph, the target meta-identity credential can be determined as meta-identity credential 1 based on Profileid1, and the storage address of the content data can be determined based on Pubid1, and the stored content data can be obtained from the database based on the storage address of the content data as the target content data.
[0197] In a possible implementation, after constructing a network relationship map for the first object, data analysis can be performed on the network relationship map corresponding to the first object to generate a corresponding feature tag for the first object, the feature tag is used to reflect the social interest of the first object; based on the social interest of the first object reflected by the feature tag, the recommended content data matching the social interest of the first object is obtained from at least one social application platform; and the recommended content data is recommended to the first object. For example, based on the data analysis of the feature tag of the first object, it can be determined that the first object is interested in sports events, and video data related to sports events can be obtained from the sports platform, and the video data related to sports events can be recommended to the first object, so that content recommendation based on the object's interests can improve the social experience.
[0198] In a possible implementation, the feature tag is also used to reflect the social interaction relationship between the first object and at least one social object. Based on the social interaction relationship of the first object reflected by the feature tag, a target object whose social interaction frequency with the first object is greater than or equal to a preset frequency threshold is determined; when it is detected that the first object publishes new content data, the new content data published by the first object is pushed to the terminal device where the target object is located. Wherein, the social object refers to the object to which the meta-identity credential has a connection edge between the meta-identity credential 1 in the network relationship graph of the first object belongs, for example, the social object includes: the second object and the third object; the social interaction frequency may include: any one or more of the number of interactions and the interaction duration, optionally, the social interaction frequency can be obtained by weighted summation based on the number of interactions and the interaction duration, or the number of interactions or the interaction duration can be used alone as the social interaction frequency, which is not limited in the embodiment of the present application. In this implementation, according to the social interaction frequency between the objects, the social object that interacts more frequently with the first object can be determined, so that when the first object publishes new content data, the new content data can be pushed to the target object synchronously, so that the target object can pay attention to the social dynamics of the first object as much as possible.
[0199] In an embodiment of the present application, a corresponding network relationship graph can be constructed for a first object based on the corresponding indicator identifiers in the meta-identity credentials of each object. A feature label of the first object can be constructed based on the network relationship graph. A more accurate social recommendation algorithm can be generated according to the feature label, thereby designing better interactive applications and providing them to the corresponding objects to enhance the activity between objects in social scenarios.
[0200] The following provides a device of an embodiment of the present application. Next, in combination with the blockchain-based data processing solution provided in the above-mentioned embodiment of the present application, the relevant devices of the embodiment of the present application are introduced accordingly.
[0201] See also Fig.10 , Fig.10 Schematic diagram of a data processing device based on blockchain provided in an embodiment of the present application. Fig.10 As shown, the blockchain-based data processing device 1000 can be applied to the blockchain node mentioned in the above embodiments. Specifically, the blockchain-based data processing device 1000 can be a computer program (including program code) running in a computer device, for example, the data processing device 1000 is an application software; the data processing device 1000 can be used to execute the corresponding steps of the blockchain-based data processing method provided in the embodiment of the present application. In specific implementation, the blockchain-based data processing device 1000 can specifically include:
[0202] The receiving unit 1001 is used to receive a first transaction request initiated by a first object, where the first transaction request is used to request to perform a social operation on content data on a blockchain, and the first transaction request carries: a storage address of the content data and a meta-identity credential identifier of the first object;
[0203] An acquisition unit 1002 is configured to acquire a meta-identity credential owned by the first object on the blockchain based on the meta-identity credential identifier of the first object;
[0204] The processing unit 1003 is configured to allocate a first indication identifier to the meta-identity credential of the first object, and establish an association relationship between the first indication identifier and a storage address of the content data;
[0205] The processing unit 1003 is further used to record the first indication identifier with an associated relationship and the storage address of the content data into the meta-identity credential of the first object; wherein, when the first indication identifier with an associated relationship and the storage address of the content data are successfully stored in the meta-identity credential of the first object, it indicates that the social operation of the content data is successfully executed on the blockchain.
[0206] In a possible implementation, the meta-identity credential of the first object includes a content recording area, where the content recording area is used to record at least one type of data structure; the processing unit 1003 records the first indication identifier and the storage address of the content data having an associated relationship into the meta-identity credential of the first object, and performs the following operations:
[0207] Acquire the type of the social operation performed by the first object, and determine a matching data structure in the content recording area based on the type of the social operation;
[0208] Recording the first indication identifier and the storage address of the content data having an associated relationship into a matching data structure;
[0209] Among them, the type of social operation is the publishing type, and the matching data structure is the publishing data structure; the type of social operation is the forwarding type, and the matching data structure is the forwarding data structure; the type of social operation is the comment type, and the matching data structure is the comment data structure.
[0210] In a possible implementation, after the processing unit 1003 records the first indication identifier having an associated relationship and the storage address of the content data into the meta-identity credential of the first object, it is further configured to perform the following operations:
[0211] receiving a second transaction request initiated by a second object, the second transaction request being used to request to forward content data published by the first object on the blockchain, the second transaction request carrying: a meta-identity credential identifier of the first object and a first indication identifier;
[0212] Allocating a second indication identifier to the meta-identity credential of the second object, and recording the second indication identifier in a forwarding data structure of the meta-identity credential of the second object;
[0213] An association relationship is established between the second indication identifier, the meta-identity credential identifier of the second object, and the first indication identifier; wherein the second indication identifier and the first indication identifier having the association relationship are used to instruct the second object to forward the content data published by the first object on the blockchain.
[0214] In a possible implementation, after the processing unit 1003 records the first indication identifier and the storage address of the content data having the association relationship into the meta-identity credential of the first object, it is further configured to perform the following operations:
[0215] receiving a third transaction request initiated by a third object, the third transaction request being used to request to comment on content data published by the first object on the blockchain, the third transaction request carrying: a meta-identity credential identifier of the first object, a first indication identifier, and a storage address of the comment data, the comment data being data generated after the third object comments on the content data;
[0216] A third indication identifier is allocated to the meta-identity credential of the third object, and an association relationship is established between the third indication identifier, the meta-identity credential identifier of the first object, and the storage address of the comment data in the meta-identity credential of the third object.
[0217] In a possible implementation, the processing unit 1003 establishes an association relationship between the third indication identifier, the meta-identity credential identifier of the first object, and the storage address of the comment data in the meta-identity credential of the third object, so as to perform the following operations:
[0218] Establishing an association relationship between the third indicator and the storage address of the comment data;
[0219] Recording the associated third indicator and the storage address of the comment data into the comment data structure of the meta-identity credential of the third object; and
[0220] An association relationship is established between the third indication identifier, the meta-identity credential identifier of the first object, and the first indication identifier.
[0221] In a possible implementation, before receiving the first transaction request initiated by the first object, the processing unit 1003 is further configured to perform the following operations:
[0222] In response to an identity registration request initiated by the first object, the identity registration request includes identity information of the first object;
[0223] Verifying the identity information of the first object;
[0224] If the verification is successful, the credential management contract is called to allocate a meta-identity credential to the first object, and the meta-identity credential and the meta-identity credential identifier are returned to the terminal device where the first object is located.
[0225] In a possible implementation, the processing unit 1003 is further configured to perform the following operations:
[0226] Acquire each associated indication identifier that has an associated relationship with the first indication identifier, where the associated indication identifier includes: any one or more of the second indication identifier and the third indication identifier;
[0227] Determine a plurality of matching associated meta-identity credentials based on each associated indication identifier, wherein one associated indication identifier corresponds to one associated meta-identity credential;
[0228] The determined associated identity credentials are used as nodes, and the association relationships between the associated indication identifiers and the first indication identifier are used as connecting edges between the nodes to construct a network relationship graph of the first object.
[0229] In a possible implementation, the processing unit 1003 is further configured to perform the following operations:
[0230] Obtaining a content data query request for the first object, wherein the content data query request includes: a meta-identity credential identifier to be queried and an indication identifier to be queried;
[0231] In the network relationship graph of the first object, determining the target meta-identity credential according to the meta-identity credential identifier to be queried; and,
[0232] In the content recording area of the target meta-identity credential, obtaining a storage address associated with the indication identifier to be queried;
[0233] Based on the associated storage address, target content data stored in the database is obtained.
[0234] In a possible implementation, the processing unit 1003 is further configured to perform the following operations:
[0235] Performing data analysis on the network relationship graph corresponding to the first object to generate a corresponding feature tag for the first object, where the feature tag is used to reflect the social interest of the first object;
[0236] Based on the social interests of the first object reflected by the feature tag, obtaining content data to be recommended that matches the social interests of the first object from at least one social application platform;
[0237] The content data to be recommended is recommended to the terminal device where the first object is located.
[0238] In a possible implementation, the feature tag is further used to reflect the social interaction relationship between the first object and at least one social object; and the processing unit 1003 is further used to perform the following operations:
[0239] Based on the social interaction relationship of the first object reflected by the feature tag, determining a target object whose social interaction frequency with the first object is greater than or equal to a preset frequency threshold;
[0240] When it is detected that the first object publishes new content data, the new content data published by the first object is pushed to the terminal device where the target object is located.
[0241] In an embodiment of the present application, a first transaction request initiated by a first object can be received, and the first transaction request is used to request to perform a social operation on content data on the blockchain. The first transaction request carries: the storage address of the content data and the meta-identity credential identifier of the first object; and based on the meta-identity credential identifier of the first object, the meta-identity credential owned by the first object on the blockchain is obtained; a first indication identifier is assigned to the meta-identity credential of the first object, and an association relationship is established between the first indication identifier and the storage address of the content data; and the first indication identifier with an association relationship and the storage address of the content data are recorded in the meta-identity credential of the first object. It can be seen that when the first object needs to perform a social operation on the content data in the blockchain, a first indication identifier can be assigned, and the first indication identifier and the storage address of the content data can be associated and recorded in the meta-identity credential of the first object, so that when the first indication identifier with an association relationship and the storage address of the content data are successfully stored in the meta-identity credential of the first object, it indicates that the social operation is successfully performed on the content data on the blockchain. Since the meta-identity credential is held by the first object personally, the first indication identifier and the storage address of the content data stored in the meta-identity credential are difficult to be tampered with, thereby improving the security and reliability of the content data on the chain.
[0242] See also Fig.11 , Fig.11It is a structural diagram of a computer device provided in an embodiment of the present application. The computer device 1100 is used to execute the steps performed by the terminal device or blockchain node in the aforementioned method embodiment, and the computer device 1100 includes: one or more processors 1101; one or more input devices 1102, one or more output devices 1103 and a memory 1104. The above-mentioned processor 1101, input device 1102, output device 1103 and memory 1104 are connected via a bus 1105. Among them, the processor 1101 (or CPU (Central Processing Unit)) is the processing core of the computer device. The processor 1101 is suitable for implementing one or more program instructions, and is specifically suitable for loading and executing one or more program instructions to implement the above-mentioned process of the blockchain-based data processing method. Specifically, the memory 1104 is used to store a computer program, and the computer program includes program instructions. The processor 1101 is used to call the program instructions stored in the memory 1104 to perform the following operations:
[0243] Receiving a first transaction request initiated by a first object, the first transaction request is used to request to perform a social operation on content data on a blockchain, and the first transaction request carries: a storage address of the content data and a meta-identity credential identifier of the first object;
[0244] Based on the meta-identity credential identifier of the first object, obtaining the meta-identity credential owned by the first object on the blockchain;
[0245] Assigning a first indication identifier to the meta-identity credential of the first object, and establishing an association relationship between the first indication identifier and a storage address of the content data;
[0246] The first indication identifier with an associated relationship and the storage address of the content data are recorded in the meta-identity credential of the first object; wherein, when the first indication identifier with an associated relationship and the storage address of the content data are successfully stored in the meta-identity credential of the first object, it indicates that a social operation has been successfully performed on the content data on the blockchain.
[0247] In a possible implementation, the meta-identity credential of the first object includes a content recording area, where the content recording area is used to record at least one type of data structure; the processor 1101 records the first indication identifier and the storage address of the content data having an associated relationship into the meta-identity credential of the first object, and performs the following operations:
[0248] Acquire the type of the social operation performed by the first object, and determine a matching data structure in the content recording area based on the type of the social operation;
[0249] Recording the first indication identifier and the storage address of the content data having an associated relationship into a matching data structure;
[0250] Among them, the type of social operation is the publishing type, and the matching data structure is the publishing data structure; the type of social operation is the forwarding type, and the matching data structure is the forwarding data structure; the type of social operation is the comment type, and the matching data structure is the comment data structure.
[0251] In a possible implementation, after recording the first indication identifier having an associated relationship and the storage address of the content data into the meta-identity credential of the first object, the processor 1101 is further configured to perform the following operations:
[0252] receiving a second transaction request initiated by a second object, the second transaction request being used to request to forward content data published by the first object on the blockchain, the second transaction request carrying: a meta-identity credential identifier of the first object and a first indication identifier;
[0253] Allocating a second indication identifier to the meta-identity credential of the second object, and recording the second indication identifier in a forwarding data structure of the meta-identity credential of the second object;
[0254] An association relationship is established between the second indication identifier, the meta-identity credential identifier of the second object, and the first indication identifier; wherein the second indication identifier and the first indication identifier having the association relationship are used to instruct the second object to forward the content data published by the first object on the blockchain.
[0255] In a possible implementation, after recording the first indication identifier and the storage address of the content data having the association relationship into the meta-identity credential of the first object, the processor 1101 is further configured to perform the following operations:
[0256] receiving a third transaction request initiated by a third object, the third transaction request being used to request to comment on content data published by the first object on the blockchain, the third transaction request carrying: a meta-identity credential identifier of the first object, a first indication identifier, and a storage address of the comment data, the comment data being data generated after the third object comments on the content data;
[0257] A third indication identifier is allocated to the meta-identity credential of the third object, and an association relationship is established between the third indication identifier, the meta-identity credential identifier of the first object, and the storage address of the comment data in the meta-identity credential of the third object.
[0258] In a possible implementation, the processor 1101 establishes an association relationship between the third indication identifier, the meta-identity credential identifier of the first object, and the storage address of the comment data in the meta-identity credential of the third object, so as to perform the following operations:
[0259] Establishing an association relationship between the third indicator and the storage address of the comment data;
[0260] Recording the associated third indicator and the storage address of the comment data into the comment data structure of the meta-identity credential of the third object; and
[0261] An association relationship is established between the third indication identifier, the meta-identity credential identifier of the first object, and the first indication identifier.
[0262] In a possible implementation manner, before receiving the first transaction request initiated by the first object, the processor 1101 is further configured to perform the following operations:
[0263] In response to an identity registration request initiated by the first object, the identity registration request includes identity information of the first object;
[0264] Verifying the identity information of the first object;
[0265] If the verification is successful, the credential management contract is called to allocate a meta-identity credential to the first object, and the meta-identity credential and the meta-identity credential identifier are returned to the terminal device where the first object is located.
[0266] In a possible implementation manner, the processor 1101 is further configured to perform the following operations:
[0267] Acquire each associated indication identifier that has an associated relationship with the first indication identifier, where the associated indication identifier includes: any one or more of the second indication identifier and the third indication identifier;
[0268] Determine a plurality of matching associated meta-identity credentials based on each associated indication identifier, wherein one associated indication identifier corresponds to one associated meta-identity credential;
[0269] The determined associated identity credentials are used as nodes, and the association relationships between the associated indication identifiers and the first indication identifier are used as connecting edges between the nodes to construct a network relationship graph of the first object.
[0270] In a possible implementation manner, the processor 1101 is further configured to perform the following operations:
[0271] Obtaining a content data query request for the first object, wherein the content data query request includes: a meta-identity credential identifier to be queried and an indication identifier to be queried;
[0272] In the network relationship graph of the first object, determining the target meta-identity credential according to the meta-identity credential identifier to be queried; and,
[0273] In the content recording area of the target meta-identity credential, obtaining a storage address associated with the indication identifier to be queried;
[0274] Based on the associated storage address, target content data stored in the database is obtained.
[0275] In a possible implementation manner, the processor 1101 is further configured to perform the following operations:
[0276] Performing data analysis on the network relationship graph corresponding to the first object to generate a corresponding feature tag for the first object, where the feature tag is used to reflect the social interest of the first object;
[0277] Based on the social interests of the first object reflected by the feature tag, obtaining content data to be recommended that matches the social interests of the first object from at least one social application platform;
[0278] The content data to be recommended is recommended to the terminal device where the first object is located.
[0279] In a possible implementation, the feature tag is further used to reflect the social interaction relationship between the first object and at least one social object; the processor 1101 is further used to perform the following operations:
[0280] Based on the social interaction relationship of the first object reflected by the feature tag, determining a target object whose social interaction frequency with the first object is greater than or equal to a preset frequency threshold;
[0281] When it is detected that the first object publishes new content data, the new content data published by the first object is pushed to the terminal device where the target object is located.
[0282] In an embodiment of the present application, a first transaction request initiated by a first object can be received, and the first transaction request is used to request to perform a social operation on content data on the blockchain. The first transaction request carries: the storage address of the content data and the meta-identity credential identifier of the first object; and based on the meta-identity credential identifier of the first object, the meta-identity credential owned by the first object on the blockchain is obtained; a first indication identifier is assigned to the meta-identity credential of the first object, and an association relationship is established between the first indication identifier and the storage address of the content data; and the first indication identifier with an association relationship and the storage address of the content data are recorded in the meta-identity credential of the first object. It can be seen that when the first object needs to perform a social operation on the content data in the blockchain, a first indication identifier can be assigned, and the first indication identifier and the storage address of the content data can be associated and recorded in the meta-identity credential of the first object, so that when the first indication identifier with an association relationship and the storage address of the content data are successfully stored in the meta-identity credential of the first object, it indicates that the social operation is successfully performed on the content data on the blockchain. Since the meta-identity credential is held by the first object personally, the first indication identifier and the storage address of the content data stored in the meta-identity credential are difficult to be tampered with, thereby improving the security and reliability of the content data on the chain.
[0283] In addition, it should be pointed out here that: the embodiment of the present application also provides a computer storage medium, and a computer program is stored in the computer storage medium, and the computer program includes program instructions. When the processor executes the above program instructions, the method in the corresponding embodiment of the foregoing text can be executed, so it will not be repeated here. For technical details not disclosed in the computer storage medium embodiment involved in this application, please refer to the description of the method embodiment of this application. As an example, the program instructions can be deployed on a computer device, or executed on multiple computer devices located in one place, or, executed on multiple computer devices distributed in multiple locations and interconnected by a communication network.
[0284] According to one aspect of the present application, an embodiment of the present application further provides a computer program product or a computer program, the computer program product or the computer program including computer instructions, the computer instructions being stored in a computer-readable storage medium. The processor of the computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device can execute the method in the above corresponding embodiment, and therefore, it will not be described in detail here.
[0285] A person skilled in the art can appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed in this application can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. A person skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0286] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present invention is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions can be stored in a computer-readable storage medium or transmitted through a computer-readable storage medium. The computer instructions can be transmitted from a website site, a computer, a server or a data center to another website site, a computer, a server or a data center by wired (e.g., coaxial cable, optical fiber, digital line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that a computer can access or a data processing device such as a server, a data center, etc. that includes one or more available media integrated. The available medium can be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state drive (SSD)), etc.
[0287] The above disclosure is only the preferred embodiment of the present application, which certainly cannot be used to limit the scope of rights of the present application. Therefore, equivalent changes made according to the claims of the present application are still within the scope covered by the present application.
Claims
1. A data processing method based on blockchain, characterized in that: include: Receiving a first transaction request initiated by a first object, the first transaction request being used to request a social operation to be performed on content data on a blockchain, the first transaction request carrying: a storage address of the content data and a meta-identity credential identifier of the first object; Based on the meta-identity credential identifier of the first object, obtaining the meta-identity credential owned by the first object on the blockchain; Allocating a first indication identifier to the meta-identity credential of the first object, and establishing an association relationship between the first indication identifier and the storage address of the content data; Recording a first indication identifier with an associated relationship and the storage address of the content data into the meta-identity credential of the first object; wherein, when the first indication identifier with an associated relationship and the storage address of the content data are successfully stored in the meta-identity credential of the first object, it indicates that a social operation has been successfully performed on the content data on the blockchain.
2. The method according to claim 1, characterized in that The meta-identity certificate of the first object includes a content recording area, and the content recording area is used to record at least one type of data structure; recording the first indication identifier having an associated relationship and the storage address of the content data into the meta-identity certificate of the first object includes: Acquire the type of the social operation performed by the first object, and determine a matching data structure in the content recording area based on the type of the social operation; Recording the first indication identifier having an associated relationship and the storage address of the content data into the matching data structure; Among them, the type of social operation is the publishing type, and the matching data structure is the publishing data structure; the type of social operation is the forwarding type, and the matching data structure is the forwarding data structure; the type of social operation is the comment type, and the matching data structure is the comment data structure.
3. The method according to claim 2, characterized in that After recording the first indication identifier having an associated relationship and the storage address of the content data into the meta-identity credential of the first object, the method further includes: receiving a second transaction request initiated by a second object, the second transaction request being used to request forwarding content data published by the first object on the blockchain, the second transaction request carrying: a meta-identity credential identifier of the first object and the first indication identifier; Allocating a second indication identifier to the meta-identity credential of the second object, and recording the second indication identifier into a forwarding data structure of the meta-identity credential of the second object; An association relationship is established between the second indicator identifier, the meta-identity credential identifier of the second object, and the first indicator identifier; wherein the second indicator identifier and the first indicator identifier having the association relationship are used to instruct the second object to forward the content data published by the first object on the blockchain.
4. The method according to claim 2, characterized in that After recording the first indication identifier having an associated relationship and the storage address of the content data into the meta-identity credential of the first object, the method further includes: receiving a third transaction request initiated by a third object, the third transaction request being used to request a comment on content data published by the first object on the blockchain, the third transaction request carrying: a meta-identity credential identifier of the first object, the first indication identifier, and a storage address of comment data, the comment data being data generated after the third object comments on the content data; A third indication identifier is allocated to the meta-identity credential of the third object, and an association relationship is established in the meta-identity credential of the third object between the third indication identifier, the meta-identity credential identifier of the first object, and the storage address of the comment data.
5. The method according to claim 4, characterized in that The step of establishing an association relationship between the third indication identifier, the meta-identity credential identifier of the first object, and the storage address of the comment data in the meta-identity credential of the third object includes: Establishing an association relationship between the third indication mark and the storage address of the comment data; Recording the third indication mark having an associated relationship and the storage address of the comment data into the comment data structure of the meta-identity credential of the third object; and An association relationship is established between the third indication identifier, the meta-identity credential identifier of the first object, and the first indication identifier.
6. The method according to claim 1, characterized in that Before receiving the first transaction request initiated by the first object, the method further includes: In response to an identity registration request initiated by a first object, the identity registration request includes identity information of the first object; Verifying the identity information of the first object; If the verification is successful, the credential management contract is called to allocate a meta-identity credential to the first object, and the meta-identity credential and the meta-identity credential identifier are returned to the terminal device where the first object is located.
7. The method according to any one of claims 1 to 6, characterized in that: The method further comprises: Acquire each associated indication identifier associated with the first indication identifier, wherein the associated indication identifier includes: any one or more of the second indication identifier and the third indication identifier; Determine a plurality of matching associated meta-identity credentials based on each associated indication identifier, wherein one associated indication identifier corresponds to one associated meta-identity credential; The determined associated identity credentials are used as nodes, and the association relationship between each associated indication identifier and the first indication identifier is used as a connecting edge between nodes to construct a network relationship graph of the first object.
8. The method according to claim 7, characterized in that The method further comprises: Acquire a content data query request for the first object, wherein the content data query request includes: a meta-identity credential identifier to be queried and an indication identifier to be queried; In the network relationship graph of the first object, determining a target meta-identity credential according to the meta-identity credential identifier to be queried; and, In the content recording area of the target meta-identity credential, obtaining a storage address associated with the indication identifier to be queried; Based on the associated storage address, target content data stored in the database is acquired.
9. The method according to claim 7, characterized in that The method further comprises: Performing data analysis on the network relationship graph corresponding to the first object to generate a corresponding feature tag for the first object, wherein the feature tag is used to reflect the social interest of the first object; Based on the social interests of the first object reflected by the feature tag, obtaining content data to be recommended that matches the social interests of the first object from at least one social application platform; The content data to be recommended is recommended to the terminal device where the first object is located.
10. The method according to claim 9, characterized in that The feature tag is also used to reflect the social interaction relationship between the first object and at least one social object; the method further includes: Based on the social interaction relationship of the first object reflected by the feature tag, determining a target object whose social interaction frequency with the first object is greater than or equal to a preset frequency threshold; When it is detected that the first object publishes new content data, the new content data published by the first object is pushed to the terminal device where the target object is located.
11. A data processing device based on blockchain, characterized in that: include: A receiving unit, configured to receive a first transaction request initiated by a first object, wherein the first transaction request is used to request to perform a social operation on content data on a blockchain, and the first transaction request carries: a storage address of the content data and a meta-identity credential identifier of the first object; an acquiring unit, configured to acquire, based on the meta-identity credential identifier of the first object, the meta-identity credential possessed by the first object on the blockchain; a processing unit, configured to assign a first indication identifier to the meta-identity credential of the first object, and to establish an association relationship between the first indication identifier and a storage address of the content data; The processing unit is further used to record a first indication identifier with an associated relationship and the storage address of the content data into the meta-identity credential of the first object; wherein, when the first indication identifier with an associated relationship and the storage address of the content data are successfully stored in the meta-identity credential of the first object, it indicates that a social operation has been successfully performed on the content data on the blockchain.
12. A computer device, characterized in that: include: storage devices and processors; a memory storing one or more computer programs; A processor, configured to load the one or more computer programs to implement the blockchain-based data processing method as described in any one of claims 1 to 10.
13. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, which is suitable for being loaded by a processor and executing the blockchain-based data processing method as described in any one of claims 1 to 10.
14. A computer program product, characterized in that The computer program product includes a computer program, which is suitable for being loaded by a processor and executing the blockchain-based data processing method as described in any one of claims 1 to 10.