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

By using blockchain-based data processing methods in social applications to generate and push social digital envelopes, the problem of difficult security of business data in social applications is solved, and the high security and reliability of business data during transmission is achieved.

CN119945690APending Publication Date: 2025-05-06TENCENT TECHNOLOGY (SHENZHEN) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311450453.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-11-01
Publication Date
2025-05-06

AI Technical Summary

Technical Problem

The prior art is difficult to effectively ensure the security of business data in social applications, especially when service providers are illegally invaded or malfunctioned, business data is easily leaked.

Method used

The blockchain-based data processing method is adopted to obtain business data and the recipient-related objects in social applications through resource clients, generate key information and encrypt the business data, and use the public key information of the recipient-related object to encrypt the key information, generate social digital envelopes, and send it to the blockchain network for consensus processing, and finally push it to the recipient-related object.

Benefits of technology

Through dual encryption and blockchain consensus mechanism, the security of business data during transmission can be ensured. Even if social digital envelopes are leaked, the security of business data can be ensured. Through the consensus mechanism of blockchain network, the reliability and security of data transmission records are increased.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119945690A_ABST
    Figure CN119945690A_ABST
Patent Text Reader

Abstract

The embodiment of the invention discloses a block chain-based data processing method and device, equipment and a storage medium, and the method comprises the steps that a resource client obtains business data initiated by a first object in a social application, and obtains M receiver associated objects selected by the first object for an associated object table in the social application; generating key information in the social application, and encrypting the service data through the key information to obtain a social data ciphertext; acquiring public key information corresponding to M receiver associated objects from a public key list corresponding to the associated object table, encrypting the key information through the M public key information to obtain a social key ciphertext, and generating a social digital envelope for service data according to the social data ciphertext and the social key ciphertext; and pushing the social digital envelope to M receiver associated objects through block chain network consensus. By adopting the embodiment of the invention, the security of sending the business data by the social application can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

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

[0002] At present, with the development of Internet technology, the frequency of use of social applications is increasing, so the application occasions for social application service providers are becoming more and more frequent. In order to ensure the normal transmission and display of business data in a large number of social applications, service providers are required to provide safe and stable services. However, when the service provider is illegally invaded or fails, it is very likely to cause business data leakage, thereby reducing the security of business data sent by social applications. Summary of the invention

[0003] The embodiments of the present application provide a blockchain-based data processing method, apparatus, device, and storage medium, which can improve the security of business data sent by social applications.

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

[0005] The resource client obtains the business data initiated by the first object in the social application, and obtains M recipient-related objects selected by the first object from the related object table in the social application;

[0006] Generate key information in the social application, encrypt the business data using the key information, and obtain the social data ciphertext;

[0007] Obtain the public key information corresponding to the M recipient-related objects from the public key list corresponding to the associated object table, encrypt the key information using the M public key information to obtain the social key ciphertext, and generate a social digital envelope for the business data based on the social data ciphertext and the social key ciphertext;

[0008] The social digital envelope is sent to the blockchain network, so that when the blockchain network successfully reaches a consensus on the social digital envelope, the social digital envelope is pushed to M recipient-related objects; the M recipient-related objects have the ability to obtain the business data in the social digital envelope through the private key information they hold.

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

[0010] The blockchain node obtains the social digital envelope sent by the resource client; the social digital envelope is generated according to the social data ciphertext and the social key ciphertext; the social key ciphertext is obtained by encrypting the key information respectively using the public key information corresponding to the M recipient associated objects, and the M public key information is obtained by the resource client from the public key list corresponding to the associated object table of the first object in the social application; the key information is generated by the resource client in the social application, and the social data ciphertext is obtained by encrypting the business data initiated by the first object in the social application using the key information;

[0011] Work with consensus nodes in the blockchain network to reach consensus on the social digital envelope;

[0012] When the consensus on the social digital envelope is successful, the social digital envelope is pushed to M recipient-related objects; the M recipient-related objects have the ability to obtain the business data in the social digital envelope through the private key information they hold.

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

[0014] A business data acquisition module, configured for a resource client to acquire business data initiated by a first object in a social application, and to acquire M recipient associated objects selected by the first object in the social application for an associated object table;

[0015] A key information generation module, used to generate key information in the social application;

[0016] A business data encryption module, used to encrypt the business data using the key information to obtain a social data ciphertext;

[0017] A public key information acquisition module, used to acquire the public key information corresponding to the M recipient associated objects respectively from the public key list corresponding to the associated object table;

[0018] A key information encryption module, used to encrypt the key information using M public key information to obtain a social key ciphertext;

[0019] A social digital envelope generation module, configured to generate a social digital envelope for the business data according to the social data ciphertext and the social key ciphertext;

[0020] A social digital envelope sending module is used to send the social digital envelope to a blockchain network, so that when the blockchain network successfully reaches a consensus on the social digital envelope, the social digital envelope is pushed to the M recipient-related objects; the M recipient-related objects have the ability to obtain the business data in the social digital envelope through the private key information they hold.

[0021] The data processing device further includes:

[0022] An object data acquisition module, used to acquire the privacy level and data volume corresponding to the business data initiated by the first object in the social application;

[0023] A security level generation module is used to generate a target security level corresponding to the business data according to the privacy level and the data volume, and obtain a security key mapping table; the security key mapping table includes key algorithms corresponding to multiple security levels; the multiple security levels include a target security level;

[0024] A target key algorithm acquisition module is used to obtain a target key algorithm corresponding to a target security level in a security key mapping table;

[0025] Among them, the key information generation module is specifically used to generate key information for business data through a target key algorithm in a social application.

[0026] Among them, the object data acquisition module includes:

[0027] An intention feature acquisition unit, configured to perform a specific detection on the business data through a privacy detection model, obtain an intention feature corresponding to the business data initiated by the first object in the social application, and generate a privacy level corresponding to the business data based on the intention feature;

[0028] A data type acquisition unit is used to obtain K data types associated with business data, obtain the unit data volume of unit business data under each data type from the business data, and perform weighted summation on the unit data volume corresponding to each data type based on the data volume weights corresponding to the K data types to obtain the data volume corresponding to the business data; K is a positive integer.

[0029] Among them, the social digital envelope generation module includes:

[0030] A capacity threshold acquisition unit, used to acquire a digital envelope capacity threshold, and compare the quantity M with the digital envelope capacity threshold;

[0031] a splitting unit, configured to split the M social key ciphertexts to obtain N social key ciphertext groups if the number M is greater than the digital envelope capacity threshold, where N is a positive integer less than M;

[0032] The social digital envelope generation unit is used to add the social data ciphertext to each social key ciphertext group respectively, obtain N updated social key ciphertext groups, and generate a social digital envelope corresponding to each updated social key ciphertext group; the number of social key ciphertexts in each social digital envelope is less than or equal to the digital envelope capacity threshold.

[0033] The split unit includes:

[0034] A multiple relationship acquisition subunit, used for acquiring the multiple relationship between the number M and the digital envelope capacity threshold if the number M is greater than the digital envelope capacity threshold;

[0035] The social key ciphertext equalization unit is used to equally divide M social key ciphertexts based on a multiple relationship between the number M and the digital envelope capacity threshold to obtain N social key ciphertext groups.

[0036] The split unit includes:

[0037] A multiple relationship acquisition subunit, used for acquiring the multiple relationship between the number M and the digital envelope capacity threshold if the number M is greater than the digital envelope capacity threshold;

[0038] A quantity determination subunit, configured to determine the number of initial social key ciphertext groups as N based on a multiple relationship between the number M and a digital envelope capacity threshold;

[0039] The set selection subunit is used to select N-1 social key ciphertext sets from the M social key ciphertexts; the number of social key ciphertexts contained in each social key ciphertext set is the digital envelope capacity threshold;

[0040] The filling subunit is used to fill N-1 social key ciphertext sets into the first N-1 initial social key ciphertext groups respectively, and fill the remaining social key ciphertexts into the Nth initial social key ciphertext group to obtain N social key ciphertext groups; the remaining social key ciphertexts refer to the social key ciphertexts in the M social key ciphertexts except the N-1 social key ciphertext sets.

[0041] The data processing device further includes:

[0042] An associated object acquisition module, used to acquire H associated objects having an associated relationship with the first object, where H is a positive integer greater than or equal to M; the H associated objects include M receiver associated objects;

[0043] The public key list generation module is used to obtain the object name of each associated object and the public key address of each associated object, generate an associated object table according to the object name of each associated object, and generate a public key list according to the public key address of each associated object.

[0044] The public key information acquisition module is specifically used to acquire the public key information having a mapping relationship with the M receiver-associated objects in the public key list according to the mapping relationship between the associated object table and the public key list.

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

[0046] A social digital envelope acquisition module is used for a blockchain node to acquire a social digital envelope sent by a resource client; the social digital envelope is generated based on a social data ciphertext and a social key ciphertext; the social key ciphertext is obtained by encrypting key information using public key information corresponding to M recipient-related objects, and the M public key information is obtained by the resource client from a public key list corresponding to an associated object table of a first object in a social application; the key information is generated by the resource client in a social application, and the social data ciphertext is obtained by encrypting business data initiated by the first object in the social application using the key information;

[0047] The consensus module is used to work with the consensus nodes in the blockchain network to reach consensus on the social digital envelope;

[0048] The social digital envelope push module is used to push the social digital envelope to M recipient-related objects when the consensus on the social digital envelope is successful; the M recipient-related objects have the ability to obtain the business data in the social digital envelope through the private key information they hold.

[0049] The data processing device further includes:

[0050] The envelope signature information receiving module is used to receive the envelope signature information sent by the resource client; the envelope signature information is obtained by the resource client signing the social digital envelope based on the resource client private key.

[0051] Among them, the consensus module includes:

[0052] The envelope signature information verification unit is used to package the social digital envelope and the envelope signature information into a block to be chained, verify the envelope signature information in the block to be chained, obtain the verification result, and verify the legitimacy of the social digital envelope in the block to be chained to obtain the legitimacy verification result;

[0053] The broadcast unit is used to broadcast the block to be chained, the signature verification result and the legitimacy verification result to the consensus nodes in the blockchain network, so that the consensus nodes can perform consensus processing on the block to be chained based on the signature verification result and the legitimacy verification result to obtain a consensus result;

[0054] The on-chain block determination unit is used to determine the to-be-on-chain block as an on-chain block if the consensus result indicates that the consensus of the to-be-on-chain block is successful, and determine that the consensus on the social digital envelope is successful.

[0055] On one hand, the present application provides a computer device, including: a processor, a memory, and a network interface;

[0056] The above-mentioned processor is connected to the above-mentioned memory and the above-mentioned network interface, wherein the above-mentioned network interface is used to provide a data communication function, the above-mentioned memory is used to store a computer program, and the above-mentioned processor is used to call the above-mentioned computer program so that the computer device executes the method in the embodiment of the present application.

[0057] On one hand, an embodiment of the present application provides a computer-readable storage medium, in which a computer program is stored. The computer program is suitable for being loaded by a processor and executing the method in the embodiment of the present application.

[0058] On the one hand, an embodiment of the present application provides a computer program product or a computer program, which includes computer instructions, and the computer instructions are stored in a computer-readable storage medium; a processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the method in the embodiment of the present application.

[0059] In an embodiment of the present application, a resource client obtains business data initiated by a first object in a social application, and obtains M recipient-related objects selected by the first object in the social application for an associated object table; generates key information in the social application, encrypts the business data through the key information, and obtains social data ciphertext; obtains public key information corresponding to the M recipient-related objects from a public key list corresponding to the associated object table, encrypts the key information through the M public key information, and obtains social key ciphertext; generates a social digital envelope for the business data based on the social data ciphertext and the social key ciphertext; sends the social digital envelope to a blockchain network, so that when the blockchain network successfully reaches a consensus on the social digital envelope, the social digital envelope is pushed to the M recipient-related objects; the M recipient-related objects have the ability to obtain the business data in the social digital envelope through the private key information they hold. The social digital envelope generated by the embodiment of the present application through the combination of social data ciphertext and social key ciphertext can make the transmission process of business data in an encrypted state, and through the two double encryption processes of encrypting business data and encrypting key information, not only the business data is protected, but also the key information is protected, which improves the security of the key information transmission process, and then improves the security of business data transmission. Even if the social digital envelope is leaked, the security of business data can still be guaranteed. Furthermore, the embodiment of the present application sends the social digital envelope to the blockchain network, and the blockchain network reaches a consensus on the social digital envelope, so that the transmission record of the social digital envelope will be saved on the blockchain network, further ensuring the security of the social digital envelope transmission. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0061] Figure 1 This is a schematic diagram of the structure of a blockchain network provided in an embodiment of the present application;

[0062] Figure 2 This is a schematic diagram of a scenario in which a social application sends business data, provided in an embodiment of the present application;

[0063] Figure 3 It is a flowchart of a data processing method provided in an embodiment of the present application;

[0064] Figure 4 It is a schematic diagram of a scenario for generating a social digital envelope provided by an embodiment of the present application;

[0065] Figure 5 It is a flowchart of another data processing method provided in an embodiment of the present application;

[0066] Figure 6 It is a structural diagram of a social digital envelope provided by an embodiment of the present application;

[0067] Figure 7 It is a timing diagram for sending a social digital envelope provided by an embodiment of the present application;

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

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

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

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

[0072] It is understandable that in the specific implementation of this application, data related to objects or users (such as business data) is involved. When the following embodiments of this application are applied to specific products or technologies, user permission or consent is required, and the collection, use and processing of relevant data need to comply with relevant laws, regulations and standards of the relevant regions and areas.

[0073] The solution provided in the embodiments of the present application involves blockchain technology, and the specific process is explained through the following embodiments.

[0074] See also Figure 1 , Figure 1 This is a schematic diagram of the structure of a blockchain network provided by an embodiment of the present application. Figure 1The blockchain network shown may include but is not limited to a distributed network corresponding to a blockchain business. The blockchain network may include multiple blockchain nodes, and the multiple blockchain nodes may specifically include blockchain node 10a, blockchain node 10b, blockchain node 10c, blockchain node 10d, ..., blockchain node 10n. In other words, the blockchain network can also be called a blockchain node system. For example, a blockchain node can be a client or a server in a distributed network corresponding to a blockchain business. Among them, each blockchain node can receive data sent from the outside world when performing normal work, and perform block chain processing based on the received data, and can also send data to the outside world. In order to ensure data intercommunication between each blockchain node, there may be a data connection between each blockchain node, for example, there is a data connection between blockchain node 10a and blockchain node 10b, there is a data connection between blockchain node 10a and blockchain node 10c, and there is a data connection between blockchain node 10b and blockchain node 10c.

[0075] It is understandable that data or blocks can be transferred between blockchain nodes through the above data connection. The blockchain network can realize data connection between blockchain nodes based on node identification. Each blockchain node in the blockchain network has a node identification corresponding to it, and each of the above blockchain nodes can store the node identifications of other blockchain nodes that are connected to itself, so that the acquired data or generated blocks can be broadcast to other blockchain nodes according to the node identifications of other blockchain nodes. For example, a node identification list as shown in Table 1 can be maintained in blockchain node 10a, and the node identification list stores the node names and node identifications of other nodes:

[0076] Table 1

[0077]

[0078]

[0079] The node identifier may be an Internet Protocol (IP) address for interconnecting networks or any other information that can be used to identify a node in a blockchain network. Table 1 only uses the IP address as an example for illustration. For example, blockchain node 10a may send blockchain data (e.g., encrypted data packaged in a block format) to blockchain node 10b via node identifier BBB.BBB.BBB.BBB, and blockchain node 10b may determine that the information is sent by blockchain node 10a via node identifier AAA.AAA.AAA.AAA.

[0080] In the blockchain, before a block is put on the chain, it must be agreed upon by the consensus nodes in the blockchain network. Only after the consensus is passed can the block be added to the blockchain. It is understandable that when the blockchain is used in some scenarios of commercial organizations, not all participating nodes in the blockchain (i.e., the blockchain nodes in the above blockchain network) have sufficient resources and necessity to become consensus nodes of the blockchain. For example, in Figure 1 In the blockchain network shown, blockchain nodes 10a, 10b, 10c and 10d can be used as consensus nodes in the blockchain network. Consensus nodes in the blockchain network participate in consensus, that is, consensus on blocks (including a batch of transactions), that is, voting on blocks; while non-consensus nodes do not participate in consensus, but will help spread block and voting messages, as well as synchronize status with each other.

[0081] It is understandable that the method provided in the embodiment of the present application can be performed by a computer device, and the computer device includes but is not limited to the above-mentioned blockchain node (in the embodiment of the present application, it can be a client or a server). Among them, in the embodiment of the present application, the server can be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud databases, cloud services, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN, and big data and artificial intelligence platforms. Among them, the client mentioned above can be an electronic device, including but not limited to mobile phones, tablet computers, desktop computers, laptops, PDAs, vehicle-mounted devices, augmented reality / virtual reality (Augmented Reality / Virtual Reality, AR / VR) devices, helmet displays, smart TVs, wearable devices, smart speakers, digital cameras, cameras and other mobile Internet devices (mobile internet device, MID) with network access capabilities, or terminal devices in scenes such as trains, ships, and flights.

[0082] It is understandable that the embodiments of the present application can be applied to various scenarios, including but not limited to cloud technology, artificial intelligence, smart transportation, etc. For example, the blockchain node system can reach a consensus on some driving behavior data, road trajectory data, etc. sent by the social application in the vehicle terminal, and store them on the chain after the consensus is reached.

[0083] It can be understood that, in a specific embodiment, for example, when a business object needs to send business data in a social application through a resource client, the social application can be opened through a personal smart car or a smart watch, a VR device, or other device, and the M recipient-related objects selected by the first object in the social application for the associated object table can be obtained through the resource client. Further, key information is generated in the social application, and the business data is encrypted by the key information to obtain social data ciphertext. Further, the public key information corresponding to the M recipient-related objects is obtained from the public key list corresponding to the associated object table, and the key information is encrypted by the M public key information to obtain the social key ciphertext, and a social digital envelope for the business data is generated according to the social data ciphertext and the social key ciphertext. Further, the social digital envelope is sent to the blockchain network, so that the blockchain network pushes the social digital envelope to the M recipient-related objects when the consensus on the social digital envelope is successful. Further, the M recipient-related objects can receive the social digital envelope through their respective personal smart cars or smart watches, VR devices, or other terminal devices.

[0084] It should be noted that business data may refer to data generated during the use of a social application. Specifically, business data may refer to message data sent by a resource client to M recipient-related objects. In a specific embodiment, the business data may include one of the formats of pictures, videos, text or voice, or may include data generated by a combination of these formats.

[0085] The computer device mentioned in this application may be a server or a client, or a system composed of a server and a client.

[0086] For further information, see Figure 2 , Figure 2 Schematic diagram of a scenario in which a social application sends business data provided by an embodiment of the present application. Figure 2As shown, the resource client can obtain the business data 201D initiated by the first object 22P in the social application 21A, and obtain the M recipient-related objects (i.e., recipient-related object 24P, recipient-related object 25P, recipient-related object 26P, ..., recipient-related object yP) selected by the first object 22P in the social application 21A for the associated object table, where y is a positive integer. Further, the resource client can generate key information 203X in the social application 21A, and encrypt the business data 201D through the key information 203X to obtain the social data ciphertext 202T. Further, the resource client can obtain the public key information corresponding to the M recipient-related objects from the public key list corresponding to the associated object table, and encrypt the key information 203X through the M public key information to obtain the social key ciphertext 204T, and generate the social digital envelope 205L for the business data according to the social data ciphertext 202T and the social key ciphertext 204T. Further, the resource client may send the social digital envelope 205L to the blockchain network 23S, so that the blockchain network 23S pushes the social digital envelope to the M recipient-associated objects when the consensus on the social digital envelope 205L is successful. The M recipient-associated objects have the ability to obtain the business data in the social digital envelope through the private key information they hold. The blockchain network 23S may include blockchain nodes 20a, 20b, 20c, 20d, ..., 20n. The generation process of the associated object table and the public key list may be as follows: the resource client may obtain the object name of each associated object and the public key address of each associated object, generate an associated object table according to the object name of each associated object, and generate a public key list according to the public key address of each associated object.

[0087] For example, in a specific embodiment, the resource client can obtain the specific business data 201D (such as a paragraph or a picture) initiated by the first object 22P in the social application 21A, and obtain the recipient associated object 24P selected by the first object 22P in the social application 21A for the associated object table. Further, the resource client can generate key information 203X in the social application 21A, and encrypt the specific business data 201D (such as a paragraph or a picture) through the key information 203X to obtain the social data ciphertext 204T. Further, the resource client can obtain the public key information corresponding to the recipient associated object 24P from the public key list corresponding to the associated object table, and encrypt the key information 203X through the public key information to obtain the social key ciphertext 204T, and generate the social digital envelope 205L for the business data 201D according to the social data ciphertext 202T and the social key ciphertext 204T. Further, the resource client can send the social digital envelope 205L to the blockchain network 23S, so that the blockchain network 23S can push the social digital envelope 205L to the recipient associated object 24P when the consensus on the social digital envelope 205L is successful. Among them, the recipient associated object 24P has the ability to obtain the business data 201D in the social digital envelope 205L through the private key information it holds. Further, the client corresponding to the recipient associated object 24P can decrypt the social key ciphertext 204T through the private key information corresponding to the public key information of the recipient associated object 24P to obtain the key information 203X. Further, the client corresponding to the recipient associated object 24P can decrypt the social data ciphertext 202T through the obtained key information 203X to obtain the decrypted data (i.e. a specific paragraph or a picture). Similarly, the blockchain network 23S can push the social digital envelope 205L to the recipient associated object 25P. That is to say, in a specific embodiment, the resource client can obtain the specific business data 201D (such as a paragraph or a picture) initiated by the first object 22P in the social application 21A, and obtain the recipient associated object 25P selected by the first object 22P in the social application 21A for the associated object table. Among them, the specific process by which the blockchain network 23S can push the social digital envelope 205L to the recipient associated object 25P, please refer to the detailed description of the blockchain network 23S being able to push the social digital envelope 205L to the recipient associated object 24P above, which will not be repeated here. Similarly, the blockchain network 23S can push the social digital envelope 205L to the recipient associated object 26P,..., the recipient associated object yP, etc. It should be understood that the recipient associated object can also be other than Figure 2 Other objects other than the receiver-related objects listed in the description are not specifically limited here.

[0088] For further information, see Figure 3 , Figure 3 is a flow chart of a data processing method provided in an embodiment of the present application. Figure 3 As shown, the method can be executed by a resource client, which can be the above-mentioned Figure 1 The blockchain node 10b shown is not limited here. For ease of understanding, the embodiment of the present application takes the method executed by the resource client as an example for explanation, and the data processing method may at least include the following steps S101-S104:

[0089] Step S101: The resource client obtains the business data initiated by the first object in the social application, and obtains M recipient-related objects selected by the first object from the related object table in the social application.

[0090] Specifically, the resource client can obtain the business data initiated by the first object through the data input control in the social application. Wherein, the data input control may refer to a control for inputting business data in the social application. For example, in a specific embodiment, the keyboard (including soft keyboard) of a laptop or mobile phone can be used as a data input control. Specifically, the resource client can view the business data initiated by the first object obtained in the display area of ​​the social application. Specifically, the data types of the business data include text data, video data, voice data, and image data. Wherein, text data may refer to data expressed in text form. For example, in a specific embodiment, text data may be a paragraph, or text data may be a poem, or text data may be emoticons composed of characters. Wherein, video data may refer to data expressed in video form. For example, in a specific embodiment, video data may be a scene video recorded by a video collection device (such as a camera) of the resource client, or video data may be business data in a video format selected from a database of the resource client. Wherein, voice data may refer to data expressed in voice form. For example, in a specific embodiment, voice data may be a conversation or a song collected by a voice collection device (such as a microphone) of a resource client, or voice data may be business data in a voice format selected from a database of a resource client. Image data may refer to data represented in the form of an image. For example, in a specific embodiment, image data may be a picture taken by an image collection device (such as a camera) of a resource client, or image data may be business data in an image format selected from a database of a resource client.

[0091] Specifically, the resource client can obtain the associated object table of the first object in the social application by triggering the control corresponding to the associated object table in the social application. Further, the resource client can select M recipient associated objects in the associated object table of the social application through the object selection rule. Among them, the associated object table can refer to a table of data composed of objects that have an associated relationship with the first object. For example, in a specific embodiment, the associated object table can be an address book of associated objects (such as friends) of the user object (i.e., the first object) in the social application, or the associated object table can be a communication address of the associated objects (such as friends) of the user object in the social application. Among them, the object selection rule can refer to a standard for selecting the recipient associated object. For example, in a specific embodiment, the object selection rule can refer to the association degree value of the associated object with the business data. Among them, the association degree value can refer to a value set by the first object. Specifically, the size of the association degree value represents the degree of association between the associated object and the business data. That is to say, the association degree value indicates the qualification of the associated object to receive business data. Specifically, the resource client can compare the association degree value of the associated object with the business data with the association degree threshold value preset by the user object. If the association value of the associated object is greater than the association threshold value preset by the user object, the associated object is determined as the recipient associated object. In other words, if the association value of the associated object and the business data is greater than the association threshold value preset by the user object, the associated object is qualified to receive the business data. In detail, the business data obtained by the resource client in the social application can be a paragraph of text, and the association value of the associated object and the business data (a paragraph of text) is used to set the permission for the first object to view the business data (i.e., the paragraph of text). Furthermore, if the association value of the associated object and the business data is greater than the association threshold value preset by the user object, it means that the associated object has the permission to receive the paragraph of business data (i.e., the paragraph of text), that is, the resource client can determine the associated object as the recipient associated object. For example, in another specific embodiment, the object selection rule may refer to the label that the user object of the social application pre-marks the associated object. Specifically, the label pre-marked by the user for the associated object can be a relationship type (such as friend, colleague or relative, etc.), or the label pre-marked by the user for the associated object can be the time when the associated object is added to the associated object table (including specific year, month, day, etc.).

[0092] Step S102, generating key information in the social application, encrypting the business data using the key information, and obtaining social data ciphertext.

[0093] Specifically, the resource client can obtain the privacy degree and data volume corresponding to the business data initiated by the first object in the social application. Further, according to the privacy degree and data volume, the resource client generates a target security level corresponding to the business data and obtains a security key mapping table. The security key mapping table includes key algorithms corresponding to multiple security levels. The multiple security levels include a target security level. Further, the resource client obtains a target key algorithm corresponding to the target security level in the security key mapping table. Further, in the social application, key information for the business data is generated by the target key algorithm. The privacy degree may refer to the degree of privacy of the business data. For example, in a specific embodiment, the privacy degree of the business data can be divided into a first privacy degree, a second privacy degree and a third privacy degree. Specifically, the first privacy degree may refer to that the business data initiated by the first object in the social application is visible to all associated objects in the associated object table; correspondingly, the second privacy degree may refer to that the business data initiated by the first object in the social application is visible to some associated objects in the associated object table; correspondingly, the third privacy degree may refer to that the business data initiated by the first object in the social application is visible only to the first object itself. It should be understood that the division of privacy may include other ways of privacy division. One possible way of privacy division is listed in this application, and other ways of privacy division will not be repeated here. Among them, the data volume may refer to the data level of business data. In other words, the data volume may refer to the amount of business data. For example, in a specific embodiment, the data volume can be divided according to the data storage unit of the computer device, such as bytes (B), kilobytes (KB), megabytes (MB) and gigabytes (GB). For example, if business data A is 300KB and business data B is 20MB, the data volume of business data A is in the kilobyte level, and the data volume of business data B is in the megabyte level. Optionally, the resource client can divide the data volume according to the data volume span. For example, the resource client can divide 0B-100B into the first data level, 101B-200B into the second data level, 201B-300B into the third data level, and so on. It should be understood that the resource client may divide the data volume in other ways. The possible data volume division methods are listed in this application, and other data volume division methods will not be described in detail here.

[0094] The specific process of the resource client obtaining the privacy and data volume corresponding to the business data initiated by the first object in the social application can be as follows: the business data is subjected to a specific detection through a privacy detection model to obtain the intention feature corresponding to the business data initiated by the first object in the social application, and the privacy corresponding to the business data is generated based on the intention feature. Further, K data types associated with the business data are obtained, the unit data volume of the unit business data under each data type is obtained from the business data, and the unit data volume corresponding to each data type is weighted and summed based on the data volume weights corresponding to the K data types, to obtain the data volume corresponding to the business data, where K is a positive integer. The intention feature may refer to the associated feature of the business data in terms of the privacy of the first object. For example, specifically, the intention feature may include the feature of the emotional association of the first object. If the business data C does not contain the emotional information of the first object, and the business data D contains the emotional information of the first object, the intention feature corresponding to the business data C is determined as a negative intention feature, and the intention feature corresponding to the business data D is determined as a positive intention feature. The division criteria of the negative intention feature and the positive intention feature only represent the degree of association between the intention feature and the emotional information of the first object. Specifically, the data types associated with the business data may include text data, video data, voice data, image data, etc. For a detailed description of the data types of the business data, please refer to the above Figure 3 The description of the data type of the business data in step S101 will not be repeated here.

[0095] Specifically, the training process of the privacy detection model can be as follows: the resource client obtains the initial privacy detection model, obtains sample business data and sample label data. Further, the resource client inputs the sample business data into the initial privacy detection model to obtain sample privacy data. Further, the resource client adjusts the parameters of the initial privacy detection model according to the difference between the sample privacy data and the sample label to obtain the target privacy detection model.

[0096] Step S103, obtain the public key information corresponding to the M recipient associated objects from the public key list corresponding to the associated object table, encrypt the key information using the M public key information to obtain the social key ciphertext, and generate a social digital envelope for the business data based on the social data ciphertext and the social key ciphertext.

[0097] Specifically, the resource client obtains H associated objects that have an associated relationship with the first object, where H is a positive integer greater than or equal to M. The H associated objects include M recipient associated objects. Further, the resource client obtains public key information that has a mapping relationship with the M recipient associated objects in the public key list according to the mapping relationship between the associated object table and the public key list. The H associated objects may refer to all associated objects of the first object in the social application, or may refer to a part of all associated objects of the first object in the social application. For example, in a specific embodiment, the resource client may classify all associated objects of the first object in the social application according to the first letter of the object name corresponding to the associated object. At this time, the H associated objects may refer to associated objects that begin with the first letter E of the object name corresponding to the associated object. The object name may refer to an identifier for the associated object. For example, the object name may refer to the real name of the associated object, or the object name may refer to the nickname of the first object to the associated object. The public key address of the associated object refers to the address corresponding to the public key information of the associated object. Among them, the associated object table may include a set of corresponding relationships between associated objects and object names, that is, the corresponding relationships between one or more associated objects and object names constitute the associated object table. Among them, the public key list refers to a list consisting of public key addresses of one or at least two associated objects. In simple terms, the public key list may refer to a set of public key addresses containing at least one associated object. Specifically, the resource client obtains the public key information having a mapping relationship with the M recipient associated objects in the public key list based on the mapping relationship between the object name in the associated object table and the public key information in the public key list.

[0098] Specifically, the specific process of the resource client generating a social digital envelope for business data according to the social data ciphertext and the social key ciphertext can be as follows: the resource client obtains the digital envelope capacity threshold and compares the number M with the digital envelope capacity threshold. Further, if the number M is greater than the digital envelope capacity threshold, the M social key ciphertexts are split to obtain N social key ciphertext groups, where N is a positive integer less than M. Further, the resource client adds the social data ciphertext to each social key ciphertext group respectively to obtain N updated social key ciphertext groups, and generates a social digital envelope corresponding to each updated social key ciphertext group. Among them, the number of social key ciphertexts in each social digital envelope is less than or equal to the digital envelope capacity threshold. Among them, the digital envelope capacity threshold refers to the maximum number of recipient-associated objects included in a single social digital envelope. For example, in a specific embodiment, if the digital envelope capacity threshold is 200 recipient-associated objects, and the number M of recipient-associated objects is 340, the 340 social key ciphertexts are split to obtain two social key ciphertext groups. Furthermore, the resource client adds the social key ciphertext to each social key ciphertext group respectively, obtains two updated social key ciphertext groups, and generates social digital envelopes corresponding to the two updated social key ciphertext groups respectively.

[0099] Among them, a possible way to split M social key ciphertexts to obtain N social key ciphertext groups can be as follows: if the number M is greater than the digital envelope capacity threshold, the resource client can obtain the multiple relationship between the number M and the digital envelope capacity threshold. Further, the resource client can evenly divide the M social key ciphertexts based on the multiple relationship between the number M and the digital envelope capacity threshold to obtain N social key ciphertext groups. For example, if in a specific embodiment, the number M is 340 and the digital envelope capacity threshold is 200 recipient-associated objects, the resource client can obtain 340 that exceeds 200 by one time, and 340 is less than 200 by two times. Based on this, the resource client can evenly divide the 340 social key ciphertexts into two social digital envelopes corresponding to two to three social key ciphertext groups, that is, each social key ciphertext group contains 170 social key ciphertexts.

[0100] Among them, another possible way to split the M social key ciphertexts to obtain N social key ciphertext groups can be as follows: if the number M is greater than the digital envelope capacity threshold, the resource client can obtain the multiple relationship between the number M and the digital envelope capacity threshold. Further, the resource client determines that the number of initial social key ciphertext groups is N based on the multiple relationship between the number M and the digital envelope capacity threshold. Further, the resource client can select N-1 social key ciphertext sets from the M social key ciphertexts. Among them, the number of social key ciphertexts contained in each social key ciphertext set is the digital envelope capacity threshold. Further, the resource client can fill the N-1 social key ciphertext sets into the first N-1 initial social key ciphertext groups respectively, and fill the remaining social key ciphertexts into the Nth initial social key ciphertext group to obtain N social key ciphertext groups. Among them, the remaining social key ciphertexts refer to the social key ciphertexts in the M social key ciphertexts except the N-1 social key ciphertext sets. For example, if in a specific embodiment, the number M is 340 and the digital envelope capacity threshold is 200 recipient-associated objects, the resource client can obtain 340 that exceeds 200 by one, and 340 is less than two times 200. Based on this, the resource client can determine that the number of initial social key ciphertext groups is 2. Further, the resource client can select 1 social key ciphertext set from the 340 social key ciphertexts. Among them, this social key ciphertext set includes 200 social key ciphertexts. Further, the resource client can fill this social key ciphertext set including 200 social key ciphertexts into the first initial social key ciphertext group, and fill the remaining social key ciphertexts (i.e., 140 social key ciphertexts) into the second initial social key ciphertext group to obtain two social key ciphertext groups. For another example, if in another specific embodiment, the number M is 950, and the digital envelope capacity threshold is 200 recipient-associated objects, the resource client can obtain 950 that exceeds four times 200, and 950 is less than five times 200. Based on this, the resource client can determine that the number of initial social key ciphertext groups is five. Further, the resource client can select four social key ciphertext sets from the 950 social key ciphertexts. Among them, each social key ciphertext set in the four social key ciphertext sets includes 200 social key ciphertexts. Further, the resource client can fill the four social key ciphertext sets including 200 social key ciphertexts into the first four initial social key ciphertext groups, and fill the remaining social key ciphertexts (i.e., 150 social key ciphertexts) into the fifth initial social key ciphertext group to obtain five social key ciphertext groups.

[0101] Optionally, in a social digital envelope, the resource client can use group encryption to encrypt the social digital envelope. Among them, the resource client can create a group inside a digital envelope. Further, the resource client can add the selected object to the created group. Among them, the selected object refers to the object invited to join the group among the M recipient-associated objects. Optionally, the resource client can also receive a request for joining the group sent by other objects (i.e., non-selected objects) to the group administrator, and join the group after the group administrator agrees. Further, the resource client can generate a group public key for the group based on the group private key corresponding to each group member. Among them, the resource client can detect the number of current group members. Optionally, the resource client can compare the number of current group members (i.e., the selected objects that have joined the group) with the number of group private keys corresponding to the group public key. If the number of group members is greater than the number of group private keys corresponding to the group public key, the resource client is triggered to regenerate a new group public key based on the current group private key. Further, the resource client can encrypt the social digital envelope using the group public key. Furthermore, the resource client can send the social digital envelope encrypted by the group public key to the blockchain network, so that when the blockchain network successfully reaches a consensus on the social digital envelope encrypted by the group, it can push the social digital envelope encrypted by the group to the group members. In addition, the resource client can equip the group with a smart contract.

[0102] Specifically, the process of the resource client calling the smart contract in the group can be as follows: after the resource client adds the selected object to the group whitelist of the smart contract, the selected object is added to the group. Further, the group members (i.e., the selected objects that have joined the group) can download the group whitelist in the smart contract and send the social digital envelope through the downloaded group whitelist. Further, the resource client asymmetrically encrypts the social digital envelope with the group public key of each selected object in the group whitelist to obtain the encrypted social digital envelope. Further, the resource client can send the obtained encrypted social digital envelope to the blockchain network. Further, the blockchain node in the blockchain network can obtain the hash value of the array ciphertext in the blockchain network and submit the hash value to the message queue of the smart contract in the blockchain node. Among them, the array ciphertext can include the social data ciphertext and the social key ciphertext corresponding to the social digital envelope in the group. Among them, the message queue refers to the data used to store the digital ciphertext hash value and the corresponding relationship between the digital ciphertext and the digital ciphertext hash value in the smart contract corresponding to the blockchain node. Specifically, the blockchain node can determine the block height as the identification number of the message queue of the smart contract in the blockchain node, and determine the hash value as the value of the message queue of the smart contract in the blockchain node. Further, group members can download the message queue of the smart contract respectively through the identification number (i.e., block height) in the message queue, and search the encrypted social digital envelope from the blockchain network through the hash value in the message queue. Each group member finds their own group public key, and uses their own group private key to decrypt the encrypted social digital envelope to obtain the decrypted message.

[0103] Among them, the process of the resource client generating a group key (i.e., a group public key and a group private key) can be as follows: the resource client arranges the group members into a ring set with an identifier according to the IP address (Internet Protocol Address) of the group members, the social application registration identification information, and the social application registration identity information, so that the group members can broadcast messages to each other, and save the broadcast information of the neighbor nodes corresponding to the adjacent left group members and the broadcast information of the neighbor nodes corresponding to the adjacent right group members. Further, the group member corresponding to the initiating node in the ring set passes the group key parameter to the group member corresponding to the adjacent node on the right side of the initiating node, and the group member corresponding to the adjacent node on the right side of the initiating node can receive the group key parameter and store the group key parameter in the blockchain node. Further, the group member corresponding to the adjacent node on the right side of the initiating node can pass the group key parameter to the group member corresponding to the adjacent node on the right side of the blockchain node in the ring set (i.e., the group member corresponding to the second blockchain node on the right side of the initiating node), and the cycle is repeated until it is passed to the group member corresponding to the adjacent node on the left side of the initiating node, and each blockchain node generates a group public key and a group private key corresponding to each blockchain node based on the group key parameter. Among them, the initiating node refers to the node that initiates the broadcast message in the blockchain network. Furthermore, the resource client may detect the group public key and the group private key. For example, in a specific embodiment, the resource client may encrypt the randomly generated random data by using the generated sample group public key, and decrypt the encrypted random data by using the sample group private key corresponding to the sample group public key to obtain the decrypted data. If the decrypted data is the same as the random data, it is determined that the group public key and the group private key are generated successfully. Correspondingly, if the decrypted data is not the same as the random data, a key generation error prompt message is generated, so that the resource client regenerates the group key (i.e., the group public key and the group private key) based on the key generation error prompt message.

[0104] For easier understanding, see Figure 4 , Figure 4 Schematic diagram of a scenario for generating a social digital envelope provided by an embodiment of the present application. Figure 4In the social application, the resource client can generate key information 403X. Specifically, key information 403X, key information 405X, key information 407X, ..., key information rX can all be the same key information, and r is a positive integer. Further, the resource client can encrypt key information 403X through the public key information corresponding to the third recipient association object among the M recipient association objects to obtain social key ciphertext 404T; correspondingly, the resource client can encrypt key information 405X through the public key information corresponding to the fifth recipient association object among the M recipient association objects to obtain social key ciphertext 406T; correspondingly, the resource client can encrypt key information 407X through the public key information corresponding to the seventh recipient association object among the M recipient association objects to obtain social key ciphertext 408T; ...; correspondingly, the resource client can encrypt key information rX through the public key information corresponding to the Nth recipient association object among the M recipient association objects to obtain social key ciphertext rT, where r is a positive integer. Furthermore, the resource client may encrypt the business data 401D through the key information 403X to obtain the social data ciphertext 402T. Furthermore, the resource client may associate the social data ciphertext 402T, the social key ciphertext 404T, the social key ciphertext 406T, the social key ciphertext 408T, ..., the social key ciphertext rT to obtain the social digital envelope 40L.

[0105] Step S104, sending the social digital envelope to the blockchain network, so that when the blockchain network successfully reaches a consensus on the social digital envelope, the social digital envelope is pushed to M recipient-related objects; the M recipient-related objects have the ability to obtain the business data in the social digital envelope through the private key information they hold.

[0106] Specifically, the resource client can send the social digital envelope to the blockchain nodes in the blockchain network, so that when the blockchain nodes in the blockchain network successfully reach a consensus on the social digital envelope, they push the social digital envelope to M recipient-related objects.

[0107] It is understandable that in the specific implementation of this application, when data such as business data, data corresponding to social digital envelopes, and data associated with blockchain networks are involved, when the above and following embodiments of this application are applied to specific products or technologies, the relevant data collection and processing should be strictly in accordance with the requirements of relevant laws and regulations when applied in the instance, and the informed consent or separate consent of the subject of personal information (or with a legal basis) should be obtained, and the subsequent data use and processing should be carried out within the scope of authorization of laws and regulations and the subject of personal information. When it comes to face (or other biometric) recognition technology, the relevant data collection, use and processing process should comply with the requirements of laws and regulations. Before collecting face information, the information processing rules should be informed and the separate consent of the target object should be sought (or with a legal basis), and the face information should be processed in strict accordance with the requirements of laws and regulations and the personal information processing rules, and technical measures should be taken to ensure the security of relevant data.

[0108] In an embodiment of the present application, a resource client obtains business data initiated by a first object in a social application, and obtains M recipient-related objects selected by the first object in the social application for an associated object table; generates key information in the social application, encrypts the business data through the key information, and obtains social data ciphertext; obtains public key information corresponding to the M recipient-related objects from a public key list corresponding to the associated object table, encrypts the key information through the M public key information, and obtains social key ciphertext; generates a social digital envelope for the business data based on the social data ciphertext and the social key ciphertext; sends the social digital envelope to a blockchain network, so that when the blockchain network successfully reaches a consensus on the social digital envelope, the social digital envelope is pushed to the M recipient-related objects; the M recipient-related objects have the ability to obtain the business data in the social digital envelope through the private key information they hold. The social digital envelope generated by the embodiment of the present application through the combination of social data ciphertext and social key ciphertext can make the transmission process of business data in an encrypted state, and through the two double encryption processes of encrypting business data and encrypting key information, not only the business data is protected, but also the key information is protected, which improves the security of the key information transmission process, and then improves the security of business data transmission. Even if the social digital envelope is leaked, the security of business data can still be guaranteed. Furthermore, the embodiment of the present application sends the social digital envelope to the blockchain network, and the social digital envelope is consensused through the blockchain network, so that the transmission process of the social digital envelope also uses the blockchain network, and then the transmission record of the social digital envelope will be saved on the blockchain network, reducing the probability of the transmission record of the social digital envelope being accidentally deleted, and further ensuring the security of the transmission of the social digital envelope. The embodiment of the present application can improve the security of business data sent by social applications.

[0109] For further information, see Figure 5 , Figure 5 FIG. 1 is a flow chart of another data processing method provided in an embodiment of the present application. Figure 5 As shown, the method can be executed by a blockchain node, which can be the above-mentioned Figure 1 The blockchain node 10b shown is not limited here. For ease of understanding, the present application embodiment takes the method executed by the blockchain node as an example for explanation, and the data processing method may at least include the following steps S201-S203:

[0110] In step S201, the blockchain node obtains a social digital envelope sent by a resource client; the social digital envelope is generated based on a social data ciphertext and a social key ciphertext; the social key ciphertext is obtained by encrypting key information using public key information corresponding to M recipient associated objects, and the M public key information is obtained by the resource client from a public key list corresponding to an associated object table of a first object in a social application; the key information is generated by the resource client in a social application, and the social data ciphertext is obtained by encrypting business data initiated by the first object in the social application using the key information.

[0111] Specifically, after receiving the social digital envelope sent by the resource client, the blockchain node can perform data detection processing on the social digital envelope. Specifically, the blockchain node can detect the data volume of the social digital envelope, and compare the data volume of the social digital envelope after detection with the data volume of the historical social digital envelope stored in the blockchain network to obtain the detection result. Furthermore, if the detection result is normal, consensus processing is performed in the blockchain network; correspondingly, if the detection result is abnormal, abnormal feedback information is sent to the resource client. Among them, the abnormal feedback information can be used to trigger the process of correcting and generating the social digital envelope.

[0112] Step S202, consensus processing on the social digital envelope is performed together with the consensus nodes in the blockchain network.

[0113] Specifically, the blockchain node can package the social digital envelope and the envelope signature information into a block to be chained, verify the envelope signature information in the block to be chained, obtain the verification result, and verify the legitimacy of the social digital envelope in the block to be chained to obtain the legitimacy verification result. Further, the blockchain node broadcasts the block to be chained, the verification result and the legitimacy verification result to the consensus node in the blockchain network, so that the consensus node performs consensus processing on the block to be chained based on the verification result and the legitimacy verification result to obtain the consensus result. Further, if the consensus result indicates that the consensus of the block to be chained is successful, the block to be chained is determined as a chained block, and the consensus on the social digital envelope is determined to be successful. Specifically, the blockchain node can receive the envelope signature information sent by the resource client. Among them, the envelope signature information is obtained by the resource client signing the social digital envelope based on the private key of the resource client.

[0114] Step S203: when the consensus on the social digital envelope is successful, the social digital envelope is pushed to M recipient-related objects; the M recipient-related objects have the ability to obtain the business data in the social digital envelope through the private key information they hold.

[0115] Specifically, when the consensus on the social digital envelope is successful, the blockchain node can push the social digital envelope to the background (i.e., server) of the social application, and the background of the social application can push the social digital envelope to M recipient-related objects. Further, after the M recipient-related objects receive the social digital envelope, the decryption process of the social digital envelope can be as follows: the client corresponding to each recipient-related object can decrypt the social key ciphertext through the private key information corresponding to the public key information of the recipient-related object to obtain the key information. Further, the client corresponding to the recipient-related object can decrypt the social data ciphertext through the key information to obtain the decrypted data.

[0116] For easier understanding, see Figure 6 , Figure 6 This is a schematic diagram of a social digital envelope provided by an embodiment of the present application. Figure 6In the example, the number of receiver-associated objects M is 1, and the resource client can generate key information 603X in the social application. Further, the resource client can encrypt the key information 603X through the public key information corresponding to the receiver-associated object to obtain the social key ciphertext 604T. Further, the resource client can encrypt the business data 601D through the key information 603X to obtain the social data ciphertext 602T. Further, the resource client can associate the social data ciphertext 602T with the social key ciphertext 604T to obtain the social digital envelope 61L. Further, the process of decrypting the social digital envelope corresponding to the process of generating the social digital envelope can be as follows: after receiving the social digital envelope, the client corresponding to the receiver-associated object can decrypt the social key ciphertext 606T through the private key information corresponding to the public key information of the receiver-associated object to obtain the key information 607X. It should be understood that the social key ciphertext 606T is the social key ciphertext 604T. Further, the client corresponding to the recipient's associated object can decrypt the social data ciphertext 605T through the key information 607X to obtain the decrypted data 62D. It should be understood that the social data ciphertext 605T is the social data ciphertext 602T. It can be understood that the data contained in the decrypted data 62D is the same as the data contained in the business data 601D.

[0117] In an embodiment of the present application, a blockchain node obtains a social digital envelope sent by a resource client; the social digital envelope is generated based on a social data ciphertext and a social key ciphertext; the social key ciphertext is obtained by encrypting the key information using the public key information corresponding to M recipient-related objects, and the M public key information is obtained by the resource client from a public key list corresponding to an associated object table of a first object in a social application; the key information is generated by the resource client in a social application, and the social data ciphertext is obtained by encrypting the business data initiated by the first object in the social application using the key information; consensus processing is performed on the social digital envelope together with a consensus node in the blockchain network; when consensus on the social digital envelope is successful, the social digital envelope is pushed to the M recipient-related objects; the M recipient-related objects have the ability to obtain the business data in the social digital envelope through the private key information they hold. In the embodiment of the present application, the social digital envelope generated by combining the social data ciphertext with the social key ciphertext can make the transmission process of the business data in an encrypted state, and through the two double encryption processes of encrypting the business data and encrypting the key information, not only the business data is protected, but also the key information is protected, which improves the security of the key information transmission process, thereby improving the security of the business data transmission. Even if the social digital envelope is leaked, the security of the business data can still be guaranteed. Further, in the embodiment of the present application, by sending the social digital envelope to the blockchain network and reaching a consensus on the social digital envelope through the blockchain network, the transmission process of the social digital envelope also uses the blockchain network, thereby reducing the probability of the transmission record of the social digital envelope being accidentally deleted, and further ensuring the security of the transmission of the social digital envelope. Further, when the consensus on the social digital envelope is successful, the social digital envelope is pushed to the M recipient-related objects, so that the push process is based on the premise of the successful consensus of the blockchain network, providing a reliable guarantee for the push process, and increasing the security of the social digital envelope push process. By adopting the embodiments of the present application, the security of business data sent by social applications can be improved.

[0118] For ease of understanding, see Figure 7 , Figure 7 1 is a timing diagram of sending a social digital envelope provided by an embodiment of the present application. Figure 7 In the embodiment, the terminal device, gateway device, detection device and service node can be regarded as a computer device that performs business transactions on a local area network. For ease of understanding, the embodiment of the present application takes the method executed by a computer device as an example, and the data processing method can at least include the following steps S71-S79:

[0119] Step S71: The resource client obtains the business data initiated by the first object in the social application, and obtains M recipient-related objects selected by the first object from the related object table in the social application.

[0120] For details, please refer to the above Figure 3 The detailed description of the process of the resource client acquiring the business data and the M recipient association objects in step S101 will not be repeated here.

[0121] Step S72: Generate key information in the social application.

[0122] For details on the process of generating key information in social applications, please refer to the above Figure 3 The detailed description of the process of generating key information in the social application in step S102 will not be repeated here.

[0123] Step S73: encrypt the business data using the key information to obtain social data ciphertext.

[0124] For details, please refer to the above Figure 3 The detailed description of the process of encrypting the business data by using the key information to obtain the social data ciphertext in step S102 will not be repeated here.

[0125] Step S74: Obtain the public key information corresponding to the M recipient associated objects from the public key list corresponding to the associated object table.

[0126] For details, please refer to the above Figure 3 The detailed description of the process of obtaining the public key information corresponding to the M recipient-associated objects in step S103 will not be repeated here.

[0127] Step S75: encrypt the key information using the M public key information to obtain a social key ciphertext.

[0128] Specifically, the process of encrypting the key information using M public key information to obtain the social key ciphertext can be found in the above Figure 3 The detailed description of the process of encrypting the key information using M public key information to obtain the social key ciphertext in step S103 will not be repeated here.

[0129] Step S76: Generate a social digital envelope for the business data based on the social data ciphertext and the social key ciphertext.

[0130] For details on the process of generating a social digital envelope for business data, please refer to the above Figure 3 The detailed description of the process of generating a social digital envelope for business data in step S103 will not be repeated here.

[0131] Step S77, the resource client sends the social digital envelope to the blockchain node of the blockchain network.

[0132] For details, please refer to the above Figure 3 The detailed description of the process in step S104 in which the resource client sends the social digital envelope to the blockchain node of the blockchain network will not be repeated here.

[0133] In step S78, the blockchain node and the consensus node in the blockchain network jointly perform consensus processing on the social digital envelope.

[0134] For details, please refer to the above section on the process of consensus processing of social digital envelopes by blockchain nodes and consensus nodes in the blockchain network. Figure 5 The detailed description of the consensus processing process of the social digital envelope with the consensus nodes in the blockchain network in step S202 will not be repeated here.

[0135] Step S79: When the consensus on the social digital envelope is successful, the social digital envelope is pushed to the M recipient-related objects.

[0136] For details, please refer to the above process of the blockchain node pushing the social digital envelope to the M recipients. Figure 5 The detailed description of the process of pushing the social digital envelope to the M recipient-related objects in step S203 will not be repeated here.

[0137] For further information, see Figure 8 , Figure 8 : is a schematic diagram of the structure of a data processing device provided in an embodiment of the present application. The above-mentioned data processing device may be a computer program (including program code) running in a computer device, for example, the data processing device is an application software; the device may be used to execute the corresponding steps in the method provided in an embodiment of the present application. Figure 8 As shown, the data processing device 1 is applied to a business management platform, and the data processing device 1 may include: a business data acquisition module 11, a key information generation module 12, a business data encryption module 13, a public key information acquisition module 14, a key information encryption module 15, a social digital envelope generation module 16 and a social digital envelope sending module 17.

[0138] The business data acquisition module 11 is used for the resource client to acquire the business data initiated by the first object in the social application, and acquire the M recipient associated objects selected by the first object in the social application for the associated object table;

[0139] A key information generation module 12, used to generate key information in the social application;

[0140] A business data encryption module 13, configured to encrypt the business data using the key information to obtain a social data ciphertext;

[0141] A public key information acquisition module 14 is used to acquire the public key information corresponding to the M recipient associated objects from the public key list corresponding to the associated object table;

[0142] A key information encryption module 15, configured to encrypt the key information using M public key information to obtain a social key ciphertext;

[0143] A social digital envelope generation module 16, configured to generate a social digital envelope for the business data according to the social data ciphertext and the social key ciphertext;

[0144] The social digital envelope sending module 17 is used to send the social digital envelope to the blockchain network, so that when the blockchain network successfully reaches a consensus on the social digital envelope, it pushes the social digital envelope to the M recipient-related objects; the M recipient-related objects have the ability to obtain the business data in the social digital envelope through the private key information they hold.

[0145] The specific functional implementation of the business data acquisition module 11, the key information generation module 12, the business data encryption module 13, the public key information acquisition module 14, the key information encryption module 15, the social digital envelope generation module 16 and the social digital envelope sending module 17 can be found in the above Figure 3 Steps S101 to S104 in the corresponding embodiment will not be described in detail here.

[0146] See also Figure 8 , wherein the data processing device 1 further comprises:

[0147] An object data acquisition module 18, configured to acquire the privacy level and data volume corresponding to the business data initiated by the first object in the social application;

[0148] The security level generating module 19 is used to generate a target security level corresponding to the business data according to the privacy level and the data volume, and obtain a security key mapping table; the security key mapping table includes key algorithms corresponding to multiple security levels respectively; the multiple security levels include the target security level;

[0149] A target key algorithm acquisition module 20 is used to acquire a target key algorithm corresponding to a target security level in a security key mapping table;

[0150] The specific functional implementation of the object data acquisition module 18, the security level generation module 19 and the target key algorithm acquisition module 20 can be found in the above Figure 3 The step S102 in the corresponding embodiment will not be described in detail here.

[0151] The key information generation module 12 is specifically used to generate key information for business data through a target key algorithm in a social application.

[0152] The specific function implementation of the key information generation module 12 can be found in the above Figure 3 The step S102 in the corresponding embodiment will not be described in detail here.

[0153] See also Figure 8 , wherein the object data acquisition module 18 includes:

[0154] The intention feature acquisition unit 181 is used to perform a specific detection on the business data through a privacy detection model, obtain the intention feature corresponding to the business data initiated by the first object in the social application, and generate the privacy level corresponding to the business data based on the intention feature;

[0155] The data type acquisition unit 182 is used to obtain K data types associated with the business data, obtain the unit data volume of the unit business data under each data type from the business data, and perform weighted summation on the unit data volume corresponding to each data type based on the data volume weights corresponding to the K data types to obtain the data volume corresponding to the business data; K is a positive integer.

[0156] The specific functional implementation of the intention feature acquisition unit 181 and the data type acquisition unit 182 can be found in the above Figure 3 The step S102 in the corresponding embodiment will not be described in detail here.

[0157] See also Figure 8 , wherein the social digital envelope generation module 16 comprises:

[0158] The capacity threshold acquisition unit 161 is used to acquire the digital envelope capacity threshold and compare the quantity M with the digital envelope capacity threshold;

[0159] a splitting unit 162, configured to split the M social key ciphertexts to obtain N social key ciphertext groups if the number M is greater than the digital envelope capacity threshold, where N is a positive integer less than M;

[0160] The social digital envelope generation unit 163 is used to add the social data ciphertext to each social key ciphertext group respectively, obtain N updated social key ciphertext groups, and generate a social digital envelope corresponding to each updated social key ciphertext group; the number of social key ciphertexts in each social digital envelope is less than or equal to the digital envelope capacity threshold.

[0161] The specific functional implementation of the capacity threshold acquisition unit 161, the splitting unit 162 and the social digital envelope generation unit 163 can be found in the above Figure 3 The step S103 in the corresponding embodiment will not be described in detail here.

[0162] See also Figure 8 , wherein the splitting unit 162 comprises:

[0163] The multiple relationship acquisition subunit 1621 is used to acquire the multiple relationship between the number M and the digital envelope capacity threshold if the number M is greater than the digital envelope capacity threshold;

[0164] The social key ciphertext equalizing unit 1622 is used to equally divide the M social key ciphertexts based on the multiple relationship between the number M and the digital envelope capacity threshold to obtain N social key ciphertext groups.

[0165] The specific functional implementation of the multiple relationship acquisition subunit 1621 and the social key ciphertext equalization subunit 1622 can be found in the above Figure 3 The step S103 in the corresponding embodiment will not be described in detail here.

[0166] See also Figure 8 , wherein the splitting unit 162 comprises:

[0167] The multiple relationship acquisition subunit 1621 is used to acquire the multiple relationship between the number M and the digital envelope capacity threshold if the number M is greater than the digital envelope capacity threshold;

[0168] The quantity determination subunit 1623 is used to determine the number of initial social key ciphertext groups as N based on the multiple relationship between the number M and the digital envelope capacity threshold;

[0169] The set selection subunit 1624 is used to select N-1 social key ciphertext sets from the M social key ciphertexts; the number of social key ciphertexts contained in each social key ciphertext set is the digital envelope capacity threshold;

[0170] The filling subunit 1625 is used to fill the N-1 social key ciphertext sets into the first N-1 initial social key ciphertext groups respectively, and fill the remaining social key ciphertexts into the Nth initial social key ciphertext group to obtain N social key ciphertext groups; the remaining social key ciphertexts refer to the social key ciphertexts in the M social key ciphertexts except the N-1 social key ciphertext sets.

[0171] The specific functional implementation of the multiple relationship acquisition subunit 1621, the quantity determination subunit 1623, the set selection subunit 1624 and the filling subunit 1625 can be found in the above Figure 3 The step S103 in the corresponding embodiment will not be described in detail here.

[0172] See also Figure 8 , wherein the data processing device 1 further comprises:

[0173] The associated object acquisition module 21 is used to acquire H associated objects that have an associated relationship with the first object, where H is a positive integer greater than or equal to M; the H associated objects include M receiver associated objects;

[0174] The public key list generating module 22 is used to obtain the object name of each associated object and the public key address of each associated object, generate an associated object table according to the object name of each associated object, and generate a public key list according to the public key address of each associated object.

[0175] The specific functional implementation of the associated object acquisition module 21 and the public key list generation module 22 can be found in the above Figure 3 The step S103 in the corresponding embodiment will not be described in detail here.

[0176] The public key information acquisition module 14 is specifically used to acquire the public key information having a mapping relationship with the M receiver-associated objects in the public key list according to the mapping relationship between the associated object table and the public key list.

[0177] The specific function implementation of the public key information acquisition module 14 can be found in the above Figure 3 The step S103 in the corresponding embodiment will not be described in detail here.

[0178] For further information, see Fig. 9 , Fig. 9 is a structural diagram of another data processing device provided in an embodiment of the present application. The above-mentioned data processing device may be a computer program (including program code) running in a computer device, for example, the data processing device is an application software; the device may be used to execute the corresponding steps in the method provided in an embodiment of the present application. Fig. 9As shown, the data processing device 2 is applied to a business management platform, and the data processing device 2 may include a social digital envelope acquisition module 31 , a consensus module 32 , and a social digital envelope push module 33 .

[0179] A social digital envelope acquisition module 31 is used for a blockchain node to acquire a social digital envelope sent by a resource client; the social digital envelope is generated based on a social data ciphertext and a social key ciphertext; the social key ciphertext is obtained by encrypting key information using public key information corresponding to M recipient associated objects, and the M public key information is obtained by the resource client from a public key list corresponding to an associated object table of a first object in a social application; the key information is generated by the resource client in a social application, and the social data ciphertext is obtained by encrypting business data initiated by the first object in the social application using the key information;

[0180] A consensus module 32, used to perform consensus processing on the social digital envelope together with the consensus nodes in the blockchain network;

[0181] The social digital envelope pushing module 33 is used to push the social digital envelope to M recipient-related objects when the consensus on the social digital envelope is successful; the M recipient-related objects have the ability to obtain the business data in the social digital envelope through the private key information they hold.

[0182] The specific functional implementation of the social digital envelope acquisition module 31, the consensus module 32 and the social digital envelope push module 33 can be found in the above Figure 5 Steps S201 to S203 in the corresponding embodiment are not described in detail here.

[0183] See also Fig. 9 , wherein the data processing device 2 further comprises:

[0184] The envelope signature information receiving module 34 is used to receive the envelope signature information sent by the resource client; the envelope signature information is obtained by the resource client signing the social digital envelope based on the resource client private key.

[0185] The specific function implementation of the envelope signature information receiving module 34 can be found in the above Figure 5 The step S202 in the corresponding embodiment will not be described in detail here.

[0186] See also Fig. 9 , wherein the consensus module 32 comprises:

[0187] The envelope signature information verification unit 321 is used to package the social digital envelope and the envelope signature information into a block to be chained, verify the envelope signature information in the block to be chained, obtain the verification result, and verify the legitimacy of the social digital envelope in the block to be chained to obtain the legitimacy verification result;

[0188] The broadcast unit 322 is used to broadcast the block to be chained, the signature verification result and the legitimacy verification result to the consensus nodes in the blockchain network, so that the consensus nodes can perform consensus processing on the block to be chained based on the signature verification result and the legitimacy verification result to obtain a consensus result;

[0189] The on-chain block determining unit 323 is used to determine the to-be-on-chain block as an on-chain block if the consensus result indicates that the consensus on the to-be-on-chain block is successful, and determine that the consensus on the social digital envelope is successful.

[0190] The specific functional implementation of the envelope signature information verification unit 321, the broadcast unit 322 and the chained block determination unit 323 can be found in the above Figure 5 The step S202 in the corresponding embodiment will not be described in detail here.

[0191] For further information, see Fig.10 , Fig.10 Schematic diagram of the structure of a computer device provided in an embodiment of the present application. Fig.10 As shown, the computer device 1000 may include: at least one processor 1001, such as a CPU, at least one network interface 1004, a user interface 1003, a memory 1005, and at least one communication bus 1002. The communication bus 1002 is used to realize the connection and communication between these components. The user interface 1003 may include a display screen (Display) and a keyboard (Keyboard), and the network interface 1004 may optionally include a standard wired interface and a wireless interface (such as a WI-FI interface). The memory 1005 may be a high-speed RAM memory, or a non-volatile memory (non-volatile memory), such as at least one disk storage. The memory 1005 may optionally also be at least one storage device located away from the aforementioned processor 1001. As shown in FIG. Fig.10 As shown, the memory 1005 as a computer storage medium may include an operating system, a network communication module, a user interface module, and a device control application.

[0192] exist Fig.10 In the computer device 1000 shown, the network interface 1004 can provide a network communication function; the user interface 1003 is mainly used to provide an input interface for the user; and the processor 1001 can be used to call the device control application stored in the memory 1005 to achieve:

[0193] The target service node receives the business transaction sent by the gateway device; the business transaction is sent by the terminal device to the gateway device, and the gateway device is used to determine the target client language type that matches the business type of the business transaction among the client language types of the S blockchain clients. The gateway device is also used to schedule the target service node in the service node subcluster associated with the target client language type; through the execution client and consensus client associated with the target client language type, the business transaction is jointly executed and consensused in the blockchain service node cluster.

[0194] exist Fig.10 In the computer device 1000 shown, the network interface 1004 can provide a network communication function; the user interface 1003 is mainly used to provide an input interface for the user; and the processor 1001 can be used to call the device control application stored in the memory 1005 to achieve:

[0195] The gateway device receives a business request carrying a business transaction sent by a terminal device, matches the business type corresponding to the business transaction with the client language types of S blockchain clients respectively, and obtains a target client language type that matches the business type of the business transaction; determines a service node subcluster associated with the target client language type; schedules and selects the service node subcluster associated with the target client language type to obtain a target service node selected by scheduling; forwards the business transaction to the target service node, so that the target service node jointly executes and consensuses the business transaction in the blockchain service node cluster through an execution client and a consensus client associated with the target client language type.

[0196] It should be understood that the computer device 1000 described in the embodiment of the present application can execute the above Figure 2 , Figure 3 , Figure 4 , Figure 5 , Figure 6 as well as Figure 7 The description of the data processing method in the corresponding embodiment can also be performed as described above. Figure 8 In the corresponding embodiment, the data processing device 1 and Fig. 9 The description of the data processing device 2 in the corresponding embodiment will not be repeated here. In addition, the description of the beneficial effects of the same method will not be repeated here either.

[0197] The present application also provides a computer-readable storage medium storing a computer program, wherein the computer program includes program instructions, and when the program instructions are executed by a processor, Figure 2 , Figure 3 , Figure 4 , Figure 5 , Figure 6 as well as Figure 7 For details on the data processing methods provided in each step, please refer to the above Figure 2 , Figure 3 , Figure 4 , Figure 5 , Figure 6 as well as Figure 7 The implementation methods provided by each step will not be described in detail here. In addition, the description of the beneficial effects of adopting the same method will not be described in detail here either.

[0198] The computer-readable storage medium may be the data processing device provided in any of the aforementioned embodiments or the internal storage unit of the computer device, such as the hard disk or memory of the computer device. The computer-readable storage medium may also be an external storage device of the computer device, such as a plug-in hard disk, a smart memory card (smart media card, SMC), a secure digital (secure digital, SD) card, a flash card (flash card), etc. equipped on the computer device. Further, the computer-readable storage medium may also include both the internal storage unit of the computer device and an external storage device. The computer-readable storage medium is used to store the computer program and other programs and data required by the computer device. The computer-readable storage medium may also be used to temporarily store data that has been output or is to be output.

[0199] The embodiment of the present application also provides a computer program product or a computer program, the computer program product or the computer program includes a computer instruction, the computer instruction is stored in a computer-readable storage medium. The processor of the computer device reads the computer instruction from the computer-readable storage medium, and the processor executes the computer instruction, so that the computer device can execute the above Figure 2 , Figure 3 , Figure 4 , Figure 5 , Figure 6 as well as Figure 7 The description of the data processing method in the corresponding embodiment will not be repeated here. In addition, the description of the beneficial effects of adopting the same method will not be repeated here.

[0200] The term "comprising" and any variations thereof in the description, claims and drawings of the embodiments of the present application are intended to cover non-exclusive inclusions. For example, a process, method, device, product or equipment comprising a series of steps or units is not limited to the listed steps or modules, but may optionally include steps or modules not listed, or may optionally include other step units inherent to these processes, methods, devices, products or equipment.

[0201] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in terms of function in the above description. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel 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.

[0202] The method and related apparatus provided by the embodiment of the present application are described with reference to the method flow chart and / or structural diagram provided by the embodiment of the present application. Specifically, each process and / or box in the method flow chart and / or structural diagram, as well as the combination of the processes and / or boxes in the flow chart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the process in the process. Figure 1 A process or multiple processes and / or structures Figure 1 These computer program instructions can also be stored in a computer-readable memory that can guide a computer or other programmable data processing device to work in a specific way, so that the instructions stored in the computer-readable memory produce a product including an instruction device, which implements the functions specified in the process. Figure 1 A process or multiple processes and / or structures Figure 1 These computer program instructions can also be loaded onto a computer or other programmable data processing device, so that a series of operation steps are executed on the computer or other programmable device to produce a computer-implemented process, so that the instructions executed on the computer or other programmable device provide for implementing the process in the process. Figure 1 A flow or multiple flows and / or structures illustrate the steps of the functions specified in one block or multiple blocks.

[0203] 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: The resource client obtains the business data initiated by the first object in the social application, and obtains M recipient-related objects selected by the first object in the social application for the related object table; Generate key information in the social application, and encrypt the business data using the key information to obtain social data ciphertext; Obtaining the public key information corresponding to the M recipient-associated objects from the public key list corresponding to the associated object table, encrypting the key information using the M public key information to obtain social key ciphertexts, and generating a social digital envelope for the business data according to the social data ciphertext and the social key ciphertext; The social digital envelope is sent to a blockchain network, so that when the blockchain network successfully reaches a consensus on the social digital envelope, the social digital envelope is pushed to the M recipient-related objects; the M recipient-related objects have the ability to obtain the business data in the social digital envelope through the private key information they hold.

2. The method according to claim 1, characterized in that The method further comprises: Obtaining the privacy level and data volume corresponding to the business data initiated by the first object in the social application; According to the privacy degree and the data volume, a target security level corresponding to the business data is generated, and a security key mapping table is obtained; the security key mapping table includes key algorithms corresponding to multiple security levels respectively; the multiple security levels include the target security level; Acquire a target key algorithm corresponding to the target security level in the security key mapping table; Generating key information in the social application includes: In the social application, key information for the business data is generated by using the target key algorithm.

3. The method according to claim 2, characterized in that The obtaining of the privacy degree and data volume corresponding to the business data initiated by the first object in the social application includes: Performing a specific detection on the business data through a privacy detection model to obtain an intention feature corresponding to the business data initiated by the first object in the social application, and generating a privacy level corresponding to the business data based on the intention feature; Obtain K data types associated with the business data, obtain the unit data volume of unit business data under each data type from the business data, and perform weighted summation on the unit data volume corresponding to each data type based on the data volume weights corresponding to the K data types, to obtain the data volume corresponding to the business data; K is a positive integer.

4. The method according to claim 1, characterized in that: The number of the social key ciphertexts is M; and generating a social digital envelope for the business data according to the social data ciphertext and the social key ciphertext includes: Obtaining a digital envelope capacity threshold, and comparing the quantity M with the digital envelope capacity threshold; If the number M is greater than the digital envelope capacity threshold, the M social key ciphertexts are split to obtain N social key ciphertext groups; N is a positive integer less than M; The social data ciphertext is added to each social key ciphertext group respectively to obtain N updated social key ciphertext groups, and a social digital envelope corresponding to each updated social key ciphertext group is generated; the number of social key ciphertexts in each social digital envelope is less than or equal to the digital envelope capacity threshold.

5. The method according to claim 4, characterized in that If the number M is greater than the digital envelope capacity threshold, the M social key ciphertexts are split to obtain N social key ciphertext groups, including: If the number M is greater than the digital envelope capacity threshold, obtaining a multiple relationship between the number M and the digital envelope capacity threshold; The M social key ciphertexts are evenly divided based on a multiple relationship between the number M and the digital envelope capacity threshold to obtain N social key ciphertext groups.

6. The method according to claim 4, characterized in that If the number M is greater than the digital envelope capacity threshold, the M social key ciphertexts are split to obtain N social key ciphertext groups, including: If the number M is greater than the digital envelope capacity threshold, obtaining a multiple relationship between the number M and the digital envelope capacity threshold; Determine the number of initial social key ciphertext groups as N based on a multiple relationship between the number M and the digital envelope capacity threshold; Selecting N-1 social key ciphertext sets from the M social key ciphertexts; the number of social key ciphertexts contained in each social key ciphertext set is the digital envelope capacity threshold; The N-1 social key ciphertext sets are respectively filled into the first N-1 initial social key ciphertext groups, and the remaining social key ciphertexts are filled into the Nth initial social key ciphertext group to obtain N social key ciphertext groups; the remaining social key ciphertexts refer to the social key ciphertexts in the M social key ciphertexts except the N-1 social key ciphertext sets.

7. The method according to claim 1, characterized in that The method further comprises: Acquire H associated objects having an association relationship with the first object, where H is a positive integer greater than or equal to M; the H associated objects include the M receiver associated objects; Obtaining the object name of each associated object and the public key address of each associated object, generating an associated object table according to the object name of each associated object, and generating a public key list according to the public key address of each associated object; The acquiring, from the public key list corresponding to the associated object table, the public key information respectively corresponding to the M recipient associated objects comprises: According to the mapping relationship between the associated object table and the public key list, public key information having a mapping relationship with the M recipient associated objects is obtained in the public key list.

8. A data processing method based on blockchain, characterized in that: include: The blockchain node obtains the social digital envelope sent by the resource client; the social digital envelope is generated according to the social data ciphertext and the social key ciphertext; The social key ciphertext is obtained by encrypting key information respectively using public key information corresponding to M recipient-associated objects, and the M public key information is obtained by the resource client from a public key list corresponding to an associated object table of the first object in the social application; the key information is generated by the resource client in the social application, and the social data ciphertext is obtained by encrypting the business data initiated by the first object in the social application using the key information; Perform consensus processing on the social digital envelope together with the consensus nodes in the blockchain network; When the consensus on the social digital envelope is successful, the social digital envelope is pushed to M recipient-related objects; the M recipient-related objects have the ability to obtain the business data in the social digital envelope through the private key information they hold.

9. The method according to claim 8, characterized in that Also includes: Receiving envelope signature information sent by the resource client; the envelope signature information is obtained by the resource client signing the social digital envelope based on the resource client private key; The consensus processing of the social digital envelope together with the consensus nodes in the blockchain network includes: Packing the social digital envelope and the envelope signature information into a block to be chained, verifying the envelope signature information in the block to be chained to obtain a verification result, and verifying the legitimacy of the social digital envelope in the block to be chained to obtain a legitimacy verification result; Broadcasting the block to be put on the chain, the signature verification result and the legitimacy verification result to the consensus nodes in the blockchain network, so that the consensus nodes perform consensus processing on the block to be put on the chain based on the signature verification result and the legitimacy verification result to obtain a consensus result; If the consensus result indicates that the consensus of the block to be chained is successful, the block to be chained is determined as a chained block, and the consensus on the social digital envelope is determined to be successful.

10. A data processing device based on blockchain, characterized in that: The data processing device comprises: A business data acquisition module, configured for a resource client to acquire business data initiated by a first object in a social application, and to acquire M recipient associated objects selected by the first object in the social application for an associated object table; A key information generation module, used to generate key information in the social application; A business data encryption module, used to encrypt the business data using the key information to obtain a social data ciphertext; A public key information acquisition module, used to acquire the public key information corresponding to the M recipient associated objects respectively from the public key list corresponding to the associated object table; A key information encryption module, used to encrypt the key information using M public key information to obtain a social key ciphertext; A social digital envelope generation module, configured to generate a social digital envelope for the business data according to the social data ciphertext and the social key ciphertext; A social digital envelope sending module is used to send the social digital envelope to a blockchain network, so that when the blockchain network successfully reaches a consensus on the social digital envelope, the social digital envelope is pushed to the M recipient-related objects; the M recipient-related objects have the ability to obtain the business data in the social digital envelope through the private key information they hold.

11. A data processing device based on blockchain, characterized in that: The data processing device comprises: A social digital envelope acquisition module, used for a blockchain node to acquire a social digital envelope sent by a resource client; the social digital envelope is generated based on a social data ciphertext and a social key ciphertext; the social key ciphertext is obtained by encrypting key information using public key information corresponding to M recipient-related objects, and the M public key information is obtained by the resource client from a public key list corresponding to an associated object table of a first object in a social application; the key information is generated by the resource client in the social application, and the social data ciphertext is obtained by encrypting the business data initiated by the first object in the social application using the key information; A consensus module, used to perform consensus processing on the social digital envelope together with the consensus nodes in the blockchain network; The social digital envelope pushing module is used to push the social digital envelope to M recipient-related objects when the consensus on the social digital envelope is successful; the M recipient-related objects have the ability to obtain the business data in the social digital envelope through the private key information they hold.

12. A computer device based on blockchain, characterized in that: include: Processor, memory, and network interface; The processor is connected to the memory and the network interface, wherein the network interface is used to provide a data communication function, the memory is used to store a computer program, and the processor is used to call the computer program so that the computer device executes the method described in any one of claims 1 to 9.

13. A computer-readable storage medium based on blockchain, characterized in that: A computer program is stored in the computer-readable storage medium, and the computer program is suitable for being loaded and executed by a processor, so that a computer device having a processor executes the method according to any one of claims 1 to 9.

14. A computer program product based on blockchain, characterized in that: The computer program product comprises a computer program, which is stored in a computer-readable storage medium. The computer program is suitable for being read and executed by a processor, so that a computer device having a processor implements the steps of the method according to any one of claims 1 to 9.