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

By deploying a general storage interface of data storage contracts on the blockchain, processing data proof storage transactions of the application client, the problem of low data on-chain storage efficiency in the decentralized application platform is solved, and efficient data storage and parsing is achieved.

CN118941285APending Publication Date: 2024-11-12TENCENT TECHNOLOGY (SHENZHEN) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310521390.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-05-09
Publication Date
2024-11-12

AI Technical Summary

Technical Problem

In the decentralized application platform, the interactive protocol between the application platform architecture and off-chain services is complex, resulting in low data storage efficiency and inability to effectively handle multiple transaction types and different transaction parameters.

Method used

By deploying a general storage interface of data storage contracts on the blockchain, receiving data proof transactions from the application client, executing data proof transactions, generating application proof information with on-chain data storage format, and parsing it into Object operation data, displayed on the application client.

Benefits of technology

It improves the data storage efficiency and parsing efficiency of application clients, simplifies the interaction between the decentralized application platform and the blockchain, and realizes unified on-chain storage processing of multi-dimensional data.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118941285A_ABST
    Figure CN118941285A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a data processing method and device based on a block chain, equipment and a medium. The method comprises the following steps: receiving a data evidence storage transaction sent by an application client; the data storage transaction is associated with the operation of the first object in the application client; calling a universal storage interface in a data storage contract deployed by the block chain, executing a data storage transaction to obtain application storage information with an on-chain data storage format, and adding the application storage information to the block chain; and returning a data storage event associated with the application evidence information to the application client through the data storage contract, so that the application client analyzes the data storage event into object operation data of the first object in the application client according to an event type identifier carried by the data storage event, and displaying the object operation data in the application client. Through the embodiment of the invention, the data storage efficiency in the application client 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 medium. Background Art

[0002] As an application program that runs on a distributed network with many objects, the decentralized application platform does not require a trust protocol. When using the decentralized application platform, each object can generate object operations of different dimensions, such as sending messages, collecting information, sharing, etc. In the decentralized application platform, the operation data generated by each object in the decentralized application platform is held by the object, and the current interactive protocol between the decentralized application platform architecture and the off-chain service is relatively complex, and the two usually involve multiple transaction types and different transaction parameters, which is not conducive to the on-chain storage of data in the decentralized application platform. Summary of the invention

[0003] The embodiments of the present application provide a blockchain-based data processing method, apparatus, device, and medium, which can improve the data storage efficiency in an application client.

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

[0005] Receiving a data evidence transaction sent by the application client; the data evidence transaction is associated with an operation of the first object in the application client;

[0006] Call the general storage interface in the data storage contract deployed by the blockchain, execute the data storage transaction, obtain the application storage information in the on-chain data storage format, and add the application storage information to the blockchain;

[0007] A data storage event associated with the application evidence information is returned to the application client through the data storage contract, so that the application client parses the data storage event into object operation data of the first object in the application client according to the event type identifier carried by the data storage event, and displays the object operation data in the application client.

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

[0009] Obtaining an information release message of the first object in the application client, and encapsulating the information release message into a data evidence transaction;

[0010] Sending the data evidence transaction to the blockchain node so that the blockchain node calls the universal storage interface in the data storage contract deployed by the blockchain to execute the data evidence transaction, obtains the application evidence information in the on-chain data storage format, and adds the application evidence information to the blockchain;

[0011] Receive a data storage event associated with the application evidence information returned by the data storage contract, parse the data storage event into object operation data of the first object in the application client according to the event type identifier carried by the data storage event, and display the object operation data in the application client.

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

[0013] A transaction receiving unit, configured to receive a data evidence transaction sent by an application client; the data evidence transaction is associated with an operation of the first object in the application client;

[0014] A transaction execution unit, used to call the general storage interface in the data storage contract deployed by the blockchain, execute the data evidence transaction, obtain the application evidence information in the on-chain data storage format, and add the application evidence information to the blockchain;

[0015] A storage event initiating unit is used to return a data storage event associated with the application evidence information to the application client through a data storage contract, so that the application client can parse the data storage event into object operation data of the first object in the application client according to the event type identifier carried by the data storage event, and display the object operation data in the application client.

[0016] The device further comprises:

[0017] A signature verification unit, configured to verify the validity of a digital signature in a data evidence transaction according to an object public key corresponding to the first object, and obtain a first signature verification result corresponding to the data evidence transaction;

[0018] A signature verification passing unit, for encapsulating the data evidence transaction into a data block if the first signature verification result indicates that the digital signature verification has passed, and executing the steps of calling the general storage interface in the data storage contract deployed by the blockchain in the consensus phase of the data block, executing the data evidence transaction, and obtaining the application evidence information in the on-chain data storage format;

[0019] The signature verification failure unit is used to mark the data evidence transaction as an invalid transaction and discard the data evidence transaction if the first signature verification result indicates that the digital signature verification has failed.

[0020] The transaction execution unit calls the general storage interface in the data storage contract deployed by the blockchain, executes the data storage transaction, and obtains the application storage information in the on-chain data storage format, including:

[0021] If the object address in the data storage transaction has the contract call permission, the contract address in the data storage transaction is loaded;

[0022] According to the input parameters in the data storage transaction, the general storage interface in the data storage contract corresponding to the contract address is called on the blockchain to execute the data storage transaction and obtain the application storage information in the on-chain data storage format.

[0023] The device further comprises:

[0024] The permission range acquisition unit is used to obtain the object address in the data storage transaction and the calling permission range corresponding to the contract address in the data storage transaction;

[0025] The contract call permission verification unit is used to determine whether the object address has the contract call permission if there is an address identical to the object address in the call permission range.

[0026] The transaction execution unit executes the data evidence transaction and obtains application evidence information in the on-chain data storage format, including:

[0027] Execute the data evidence transaction to obtain the transaction storage content and event type identifier corresponding to the data evidence transaction;

[0028] The object address, transaction storage content, and event type identifier are encapsulated into application evidence information with an on-chain data storage format.

[0029] The device further comprises:

[0030] A contract deployment transaction execution unit, configured to receive a contract deployment transaction associated with the second object, execute the contract deployment transaction, deploy the data storage contract included in the contract deployment transaction in the blockchain, and obtain a contract deployment result corresponding to the contract deployment transaction;

[0031] The contract address acquisition unit is used to obtain the contract address of the data storage contract in the blockchain if the contract deployment result indicates that the contract deployment is successful; the contract address is used to call the data storage contract deployed in the blockchain.

[0032] The contract deployment transaction execution unit receives the contract deployment transaction associated with the second object, executes the contract deployment transaction, deploys the data storage contract included in the contract deployment transaction in the blockchain, and obtains a contract deployment result corresponding to the contract deployment transaction, including:

[0033] Receive a contract deployment transaction associated with the second object, verify the validity of a digital signature in the contract deployment transaction according to an object public key corresponding to the second object, and obtain a second signature verification result corresponding to the contract deployment transaction;

[0034] If the second signature verification result indicates that the digital signature verification is passed, the business logic corresponding to the data storage contract included in the contract deployment transaction is run in the virtual machine of the blockchain node to obtain the bytecode file corresponding to the data storage contract;

[0035] The bytecode file is stored in the blockchain, and the contract deployment result corresponding to the contract deployment transaction is determined to be a successful contract deployment.

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

[0037] A transaction encapsulation unit, used to obtain an information release message of the first object in the application client, and encapsulate the information release message into a data evidence transaction;

[0038] A transaction sending unit, used to send the data evidence transaction to the blockchain node, so that the blockchain node calls the universal storage interface in the data storage contract deployed by the blockchain to execute the data evidence transaction, obtain the application evidence information in the on-chain data storage format, and add the application evidence information to the blockchain;

[0039] A storage event parsing unit is used to receive a data storage event associated with application evidence information returned by a data storage contract, parse the data storage event into object operation data of the first object in the application client according to an event type identifier carried by the data storage event, and display the object operation data in the application client.

[0040] The transaction encapsulation unit obtains the information release message of the first object in the application client, and encapsulates the information release message into a data evidence transaction, including:

[0041] Obtaining an information release message of the first object in the application client, encapsulating the information release message as a transaction to be put on the chain, and generating signature prompt information corresponding to the transaction to be put on the chain; the signature prompt information is used to instruct the first object to sign the transaction to be put on the chain;

[0042] The digital signature of the first object on the transaction to be put on the chain is obtained, and the transaction to be put on the chain carrying the digital signature of the first object is determined as a data notarization transaction.

[0043] The storage event parsing unit parses the data storage event into object operation data of the first object in the application client according to the event type identifier carried by the data storage event, including:

[0044] Obtain the event parameter information in the data storage event, parse the storage content parameters in the event parameter information, and obtain the transaction storage content corresponding to the data storage transaction;

[0045] Obtain object information of the first object in the application client corresponding to the object address in the event parameter information, and encapsulate the transaction storage content and the object information into object operation data of the first object in the application client according to the event type identifier in the event parameter information.

[0046] On one hand, an embodiment of the present application provides a computer device, including a memory and a processor, wherein the memory is connected to the processor, 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 provided in the above aspect of the embodiment of the present application.

[0047] 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 and executed by a processor, so that a computer device with a processor executes the method provided in the above aspect of the embodiment of the present application.

[0048] According to one aspect of the present application, a computer program product or computer program is provided, the computer program product or computer program includes computer instructions, 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 performs the method provided in the above aspect.

[0049] In the embodiment of the present application, after receiving the data evidence transaction sent by the application client, the data evidence transaction is executed by calling the general storage interface in the data storage contract deployed by the blockchain, and the application evidence information with the on-chain data storage format is obtained, and the application evidence information is added to the blockchain, and then the data storage contract can be used to return the data storage event associated with the application evidence information to the application client; in the application client, based on the event type identifier carried by the data storage event, the data storage event can be parsed into the object operation data of the first object in the application client, and the object operation data can be synchronously displayed in the application client. The operation data generated in the application client can be stored in the blockchain as application evidence information in a unified format through the general storage interface in the data storage contract deployed by the blockchain, and the application client parses the application evidence information in a unified format stored in the blockchain into different types of object operation data and displays them, that is, the on-chain storage processing of various types of operation data in the application client can be completed through the general storage interface in the data storage contract, which can improve the data storage efficiency in the application client. BRIEF DESCRIPTION OF THE DRAWINGS

[0050] 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.

[0051] Figure 1 It is a structural diagram of a network architecture provided by an embodiment of the present application;

[0052] Figure 2 This is a schematic diagram of on-chain data storage in a decentralized application platform provided in an embodiment of the present application;

[0053] Figure 3 This is a timing diagram of a blockchain-based data processing method provided in an embodiment of the present application;

[0054] Figure 4 This is a signature diagram of a data evidence transaction provided by an embodiment of the present application;

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

[0056] Figure 6 This is a schematic diagram of deployment and calling of a data storage contract provided in an embodiment of the present application;

[0057] Figure 7 It is a schematic diagram of the on-chain storage process of multi-dimensional data in a decentralized application platform provided by an embodiment of the present application;

[0058] Figure 8 This is a schematic diagram of a data processing device based on blockchain provided in an embodiment of the present application. Figure 1 ;

[0059] Fig. 9 This is a schematic diagram of a data processing device based on blockchain provided in an embodiment of the present application. Figure 2 ;

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

[0061] 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.

[0062] For ease of understanding, the basic technologies involved in the embodiments of the present application are described below:

[0063] Blockchain: Blockchain is a decentralized infrastructure with distributed storage characteristics. Specifically, it is a data structure that organizes data blocks in a time sequence in a linked list-like manner. It can safely store data that has a sequential relationship and can be verified within the system, and cryptographically ensure that the data has the characteristics of traceability, non-repudiation, non-tampering, non-forgeability, and decentralization. Blockchain can usually be composed of consensus, transaction blocks and state data storage, cryptographic identity security, etc. The underlying blockchain platform can include basic services, smart contracts, and operation management processing modules. Among them, the basic service module is deployed on all blockchain nodes to verify the validity of business requests and record the valid requests to the storage after consensus is reached. For a new business request, the basic service first performs interface adaptation analysis and authentication processing (interface adaptation), and then encrypts the business information through the consensus algorithm (consensus management). After encryption, it is transmitted to the shared ledger in a complete and consistent manner (network communication) and recorded and stored; the smart contract module is responsible for the registration and release of contracts, as well as contract triggering and contract execution. Developers can define the contract logic in a certain programming language and publish it to the blockchain (contract registration). According to the logic of the contract terms, the key or other event triggers the execution to complete the contract logic. At the same time, it also provides the function of contract upgrade and cancellation; the operation management module is mainly responsible for the deployment, configuration modification, contract setting, cloud adaptation and real-time status visualization output of the product during the product release process, such as alarms, management network conditions, management node equipment health status, etc.

[0064] Smart contract: A computer protocol designed to disseminate, verify or execute contracts in an information-based manner. Smart contracts can be understood as computer programs that run on a distributed ledger (i.e., blockchain) with preset rules, states, and conditional responses, and can encapsulate, verify, and execute complex behaviors of distributed nodes to complete information exchange, value transfer, and asset management. Based on the distributed architecture and consensus algorithm of blockchain, smart contracts allow users who do not trust each other to complete transactions without the need for any third-party trusted intermediary or authority; at the same time, digital smart contracts can be flexibly embedded in various tangible or intangible assets, transactions, and data to achieve active or passive asset and information management and control, and gradually build programmable smart assets, systems, etc. Unlike ordinary programs, smart contracts can ensure that the results of each blockchain node in the blockchain network are exactly the same, so that any blockchain node can verify whether the results of the smart contract execution in the data block are correct.

[0065] Transaction: A form of blockchain execution. The transaction contains the private key signature of the initiator, which can ensure the authenticity, non-forgeability and non-repudiation of the transaction content.

[0066] See also Figure 1 , Figure 1 is a schematic diagram of a network architecture provided by an embodiment of the present application; the network architecture may include a terminal device 10a and a blockchain network. The terminal device 10a may refer to an electronic device that supports the operation of a decentralized application platform (also referred to as a decentralized application platform, or a blockchain application platform), such as Figure 1 The number of terminal devices in the network architecture shown is for illustration only. The number of terminal devices in the network architecture can be one or more, and this application does not limit the number of terminal devices in the network architecture; the blockchain network can be composed of multiple blockchain nodes, and this application does not limit the number of blockchain nodes contained in the blockchain network. Figure 1 Taking 6 blockchain nodes as an example, each blockchain node in the blockchain network is networked in a P2P (Peer-to-Peer, peer-to-peer network) manner, and blockchain nodes can communicate with each other according to the P2P protocol. Each blockchain node in the blockchain network follows the broadcast mechanism and consensus mechanism to jointly ensure that the data on the blockchain cannot be tampered with or forged, and at the same time realize the decentralization and trustlessness of the blockchain.

[0067] in, Figure 1 The blockchain nodes in the blockchain network shown can be terminal devices or servers. This application does not limit the type of blockchain nodes. Figure 1The terminal devices involved in the network architecture shown may include, but are not limited to: PC (Personal Computer), smart phones, tablet computers, laptops, PDAs, mobile internet devices (MID), wearable devices (such as smart watches, smart bracelets, etc.), smart voice interaction devices, smart home appliances (such as smart TVs, etc.), vehicle-mounted devices, aircraft and other electronic devices, which are not limited in this application. The server may be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN (Content Delivery Network), and big data and artificial intelligence platforms, which are not limited in this application.

[0068] like Figure 1 In the network architecture shown, the blockchain maintained by the blockchain nodes in the blockchain network can be composed of a series of data blocks, which can also be called data blocks; after a data block is created, it needs to perform consensus processing in the blockchain network. When the consensus of the data block succeeds, the data block is allowed to be added to the blockchain; the data blocks in the blockchain can be connected into a chain structure in the order of creation timestamps from small to large. Blockchain is a distributed ledger, and the information data contained in each data block on the blockchain is the ledger data of the distributed ledger.

[0069] It should be noted that if Figure 1 The terminal device 10a in the network architecture shown can run a decentralized application platform, which can be a decentralized subroutine, or a decentralized application client, etc.; the decentralized application platform can include but is not limited to decentralized communication applications, decentralized content interaction applications, decentralized information sharing applications, etc., and the embodiment of the present application does not limit the type of decentralized application platform. Among them, the decentralized application platform running in the terminal device 10a may involve object operations of different dimensions, such as adding friends, sending messages, liking, sharing, and collecting operations; the decentralized application platform running in the terminal device 10a needs to interact with the blockchain, such as various types of operation data generated by each object in the decentralized application platform need to be stored in the blockchain. It can be understood that different types of operation data generated in the decentralized application platform may correspond to different parameter information, so when different types of operation data are stored on the blockchain, different types of operation data are not uniform in interface form.

[0070] Therefore, the embodiment of the present application can formulate a universal on-chain data storage protocol (universal storage interface) for the interaction process between the decentralized application platform and the blockchain, through which the operation data generated in the decentralized application platform is stored on the blockchain as information data in a unified format (the information data here can be referred to as application evidence information), and the unified format here can be referred to as the on-chain data storage format. After various types of operation data are successfully stored on the blockchain, the decentralized application platform can parse the application evidence information in a unified format on the blockchain to obtain the operation data in the decentralized application platform, and display the parsed operation data in the decentralized application platform. In other words, the embodiment of the present application designs an on-chain data storage protocol for various types of operation data in the decentralized application platform, stores various types of operation data generated in the decentralized application platform outside the blockchain on the blockchain through a general on-chain data storage protocol, and places the business processing logic in the decentralized application platform outside the chain through the relevant interface of unified data storage (such as the general storage interface in the data storage contract, where the data storage contract is a smart contract), and the chain is only responsible for the storage of various types of operation records (for example, adding friends, sending messages, liking, sharing, collection, etc.); through the general on-chain data storage protocol designed by the embodiment of the present application, a simple and minimized decentralized application platform operation data storage protocol can be implemented, thereby improving the data storage efficiency in the decentralized application platform. For ease of understanding, the embodiment of the present application can refer to the decentralized application platform running in the terminal device 10a as an application client.

[0071] See also Figure 2 , Figure 2 This is a schematic diagram of on-chain data storage in a decentralized application platform provided in an embodiment of the present application. Figure 2 In the corresponding embodiment, Figure 1 The application client (the application client corresponding to the decentralized application platform) running on the terminal device 10a in the network architecture shown in the figure is connected to any blockchain node (such as Figure 2 Taking the interaction process between the blockchain nodes 10b) shown in FIG. 10 as an example, the on-chain storage process of the operation data of the first object in the application client is described.

[0072] like Figure 2As shown, the first object can use the terminal device 10a to browse the information in the application client. If the first object wants to publish new information in the application client, such as recording life by publishing information in the application client, it can enter the information publishing page of the application client, enter the information content 20a that it wants to publish in the information publishing page (for example, the information content can include the text "The weather is really good today" and the corresponding pictures or videos, etc.), and perform a trigger operation on the "Send" control 20b in the information publishing page. The application client can generate an information publishing message and publish the information content 20a entered by the first object to the application client. It can be understood that when the first object performs a trigger operation on the "Send" control 20b in the information publishing page, the application client can respond to the trigger operation of the first object on the "Send" control 20b, obtain the information publishing message of the first object in the application client, and encapsulate the information publishing message as a data evidence transaction tx1, which can be sent by the application client to the blockchain node 10b in the blockchain network.

[0073] After receiving the data storage transaction tx1 sent by the application client, the blockchain node 10b can perform on-chain execution processing on the data storage transaction tx1, such as calling the general storage interface in the data storage contract deployed by the blockchain, executing the data storage transaction tx1, and obtaining the application storage information that meets the on-chain data storage format. The application storage information can be added to the blockchain, and a data storage event is issued through the data storage contract. Among them, the aforementioned on-chain data storage format can refer to the data storage format designed by the general storage interface in the data storage contract pre-deployed in the blockchain. It can be understood that the "event" involved in the embodiment of the present application can refer to the signal issued by the data storage contract, and the event can be indexed for subsequent search of event records; the blockchain can be considered as a blockchain table, and the content in the data block in the blockchain is basically a transaction record. Each transaction can correspond to a transaction log, and the event result can be stored in the transaction log. The event (for example, data storage event) issued by the data storage contract can be accessed using the contract address of the data storage contract in the blockchain.

[0074] The blockchain node 10b can synchronously process data storage events. For example, the application client running in the terminal device 10a can continuously detect data storage events issued by the data storage contract, parse the detected data storage events, obtain the object operation data of the first object in the application client, and display the object operation data corresponding to the first object in each application client. For example, the information 20c published by the first object can be displayed in the information display page of the application client. The information 20c may include the information content 20a input by the first object, the object information of the first object (for example, avatar, location information), etc. It is understandable that Figure 2 The information publishing page and information display page shown are front-end pages in the application client. The information publishing page and information display page can be different front-end pages or the same front-end page, and this application does not limit this.

[0075] See also Figure 3 , Figure 3 1 is a timing diagram of a data processing method based on blockchain provided by an embodiment of the present application. It is understandable that the data processing method based on blockchain can be performed by a terminal device (any electronic device outside the blockchain network that can run a decentralized application platform, such as Figure 1 The terminal device 10a) shown in the figure interacts with any blockchain node in the blockchain network; Figure 3 As shown, the blockchain-based data processing method may include at least the following steps S101 to S105:

[0076] Step S101, obtaining an information release message of the first object in the application client, and encapsulating the information release message into a data notarization transaction.

[0077] In the embodiment of the present application, the first object can use the terminal device to browse the application information in the application client (decentralized application client). If the first object triggers some specific operations in the application client, the application client can obtain the information release message of the first object in the application client based on the specific operation triggered by the first object in the application client, and encapsulate the information release message of the first object in the application client as a data evidence transaction. Among them, the above-mentioned specific operations can refer to the object operations generated by each object in the application client. The specific operations here can include but are not limited to: adding friends, sending messages, publishing information, liking, following, unfollowing, sharing, collecting, commenting, etc. The type of object operation involved in this application can be determined according to the type of application client. If the types of different application clients are different, the types of object operations involved in the embodiments of the present application may also be different.

[0078] In one or more embodiments, the application client can obtain the information release message of the first object in the application client, encapsulate the information release message as a transaction to be on the chain, and generate signature prompt information corresponding to the transaction to be on the chain, and the signature prompt information is used to instruct the first object to sign the transaction to be on the chain; after the first object completes the digital signature of the transaction to be on the chain, the digital signature of the first object's transaction to be on the chain can be obtained, and the transaction to be on the chain carrying the digital signature of the first object is determined as a data notarization transaction.

[0079] See also Figure 4 , Figure 4 This is a signature diagram of a data evidence transaction provided by the embodiment of the present application. Figure 4 As shown, if the first object wants to publish new information in the application client running on the terminal device 10a, it can enter the information publishing page of the application client, edit the information content 30a that it wants to publish in the information publishing page (for example, the information content can include the text "clear sky" and the corresponding picture), and perform a trigger operation on the "Send" control 30b in the information publishing page. At this time, the application client can respond to the trigger operation of the first object on the "Send" control 30b, obtain the information publishing message of the first object in the application client, and encapsulate the information publishing message as transaction tx2 (to be on-chain transaction).

[0080] The application client may generate signature prompt information for transaction tx2, and notify the first object of the signature prompt information in the application client, such as the signature prompt information may include a "generate signature" control 30c. If the first object agrees to store transaction tx2 on the chain, the "generate signature" control 30c may be triggered to sign transaction tx2 using the object private key of the first object, and obtain transaction tx2 carrying digital signature 1 (transaction tx2 at this time may be called a data evidence transaction), and then the transaction tx2 carrying digital signature 1 may be sent to any blockchain node in the blockchain network. Among them, data signature 1 may refer to the digital signature of the first object on transaction tx2.

[0081] Step S102, sending data evidence transaction.

[0082] Specifically, after obtaining the data evidence transaction carrying the digital signature of the first object, the application client can send the data evidence transaction to the blockchain node.

[0083] Step S103, calling the universal storage interface in the data storage contract deployed by the blockchain, executing the data storage transaction, obtaining the application storage information in the on-chain data storage format, and adding the application storage information to the blockchain.

[0084] Specifically, after receiving the data evidence transaction sent by the application client, the blockchain node can verify the digital signature in the data evidence transaction, such as verifying the validity of the digital signature in the data evidence transaction based on the object public key corresponding to the first object, and obtain the first signature verification result corresponding to the data evidence transaction; if the first signature verification result indicates that the digital signature verification is passed, the data evidence transaction is encapsulated into a data block, and in the consensus stage of the data block, the data evidence transaction can be executed by calling the general storage interface in the data storage contract deployed by the blockchain; if the first signature verification result indicates that the digital signature verification is not passed, the data evidence transaction is marked as an invalid transaction, the data evidence transaction is discarded, and the application client is notified to resubmit the data evidence transaction.

[0085] Among them, the verification process of the digital signature in the data evidence transaction may include: using the object public key corresponding to the first object to decrypt the digital signature in the data evidence transaction to obtain the first summary information (hash value) corresponding to the data evidence transaction; using the hash algorithm to perform a hash operation on the data evidence transaction to obtain the second summary information corresponding to the data evidence transaction; if the first summary information is the same as the second summary information, it means that the data evidence transaction is a valid transaction, that is, the signature verification result corresponding to the data evidence transaction indicates that the verification is passed; if the first summary information is different from the second summary information, it means that the data evidence transaction is an invalid transaction (the data evidence transaction may be maliciously tampered with during the transmission process), that is, the signature verification result corresponding to the data evidence transaction indicates that the verification is not passed, and then the data evidence transaction can be discarded. It should be noted that the hash algorithm used by the node device may refer to the hash algorithm used by the first object when signing the data evidence transaction, and the hash algorithm may include but is not limited to: SHA-1, SHA-224, SHA-256, SHA-384 and SHA-512, which is not limited in this application.

[0086] It is understandable that after a blockchain node receives a data evidence transaction, it needs to synchronize the data evidence transaction in the blockchain network, such as broadcasting the data evidence transaction to other blockchain nodes in the blockchain network. It is understandable that data evidence transactions may be lost during the sending process. In order to allow data evidence transactions to reach all blockchain nodes in the blockchain network as much as possible, the blockchain node that receives the data evidence transaction through broadcast can select one or more adjacent blockchain nodes for relay broadcasting based on its own network topology and network traffic strategy, providing a basis for packaging the data evidence transaction into data blocks during the consensus process.

[0087] Furthermore, the blockchain node can package the transactions in the transaction pool to generate a new data block (assuming that the data block contains a data evidence transaction). During the consensus process of the data block, the blockchain node can execute all transactions in the data block, including the data evidence transaction contained in the block. In the process of the blockchain node executing the data evidence transaction, the blockchain node can call the general storage interface in the data storage contract deployed by the blockchain, execute the data evidence transaction, obtain the application evidence information in the on-chain data storage format, and add the application evidence information to the blockchain.

[0088] In one or more embodiments, the general storage interface format in the data storage contract can be defined as eventDeposit (address indexed user, string content, string indexed type); wherein eventDeposit indicates declaring an event, and address indexed user indicates the object address, such as the event parameter address indexed user in the data storage event corresponding to the data storage exchange can be represented as the object address of the first object on the blockchain; string content indicates the storage content, and the storage content is a string data type, such as when the first object publishes new information in the application client, the event parameter stringcontent in the data storage event corresponding to the data storage exchange can be represented as the information content published by the first object; string indexed type indicates the event type identifier, and the event type identifier is a string data type, such as when the object operation of the first object in the application client is to publish information, the event parameter string indexed type in the data storage event corresponding to the data storage exchange can be represented as the type of published information. It can be understood that address indexed user, string content, and stringindexed type represent multiple event parameters defined by the general storage interface in the data storage contract. In other words, the event parameters contained in the universal storage interface format in the data storage contract may include object address, transaction storage content, and event type identifier. These event parameters can improve the convenience of event query.

[0089] Step S104, returning a data storage event associated with the application evidence information.

[0090] Specifically, when the data evidence transaction is successfully stored in the blockchain, it means that the application evidence information (which can be considered as the execution result corresponding to the data evidence transaction) is also successfully stored in the blockchain. At this time, the blockchain node can return the data storage event associated with the application evidence information to the application client through the data storage contract.

[0091] Step S105 : according to the event type identifier carried by the data storage event, the data storage event is parsed into object operation data of the first object in the application client, and the object operation data is displayed in the application client.

[0092] Specifically, after detecting the data storage event issued by the data storage contract, the application client running in the terminal device can obtain the event parameter information in the data storage event, parse the storage content parameters in the event parameter information, and obtain the transaction storage content corresponding to the data storage transaction; obtain the object information of the first object in the application client corresponding to the object address in the event parameter information, and encapsulate the transaction storage content and object information into the object operation data of the first object in the application client according to the event type identifier in the event parameter information. Furthermore, the application client can present the object operation data of the first object, that is, display the object operation data in the application client.

[0093] It is understandable that the application client can synchronously process the data storage event, that is, all application clients corresponding to the decentralized application platform can display the object operation data of the first object in the application client. Among them, the object operation data here can be the new information released by the first object in the application client, the new object followed by the first object in the application client, the object or information liked by the first object in the application client, the information shared by the first object in the application client, the information collected by the first object in the application client, etc., and this application does not limit this.

[0094] For example, when the first object edits new information in the application client running on the terminal device and publishes it on the chain, and the edited information is successfully stored in the blockchain in the on-chain data storage format, the data storage contract can issue a data storage event, and the application client can continuously detect the storage event issued by the data storage contract. Once the data storage event issued by the data storage contract is detected, the data storage event can be parsed to obtain the object operation data of the first object in the application client. The object operation data at this time can be the information published by the first object, and the information is presented (displaying the information published by the first object). It can be understood that each object with information browsing permission can browse the information published by the first object through the application client running on any terminal device. The information browsing permission can be set by the first object. If the information published by the first object is only visible to a part of the objects, then this part of the objects has the information browsing permission for the information published by the first object; if the information published by the first object is visible to all objects, then all objects have the information browsing permission for the information published by the first object.

[0095] In the embodiment of the present application, the operation data generated in the application client can be stored in the blockchain as application evidence information in a unified format through the universal storage interface in the data storage contract deployed by the blockchain, and the application client parses the application evidence information in the unified format stored in the blockchain into different types of object operation data and displays them. That is, the on-chain storage processing of various types of operation data in the application client can be completed through the universal storage interface in the data storage contract, which can improve the data storage efficiency and data parsing efficiency in the application client, and then improve the interactivity in the application client.

[0096] See also Figure 5 , Figure 5 is a flowchart of a data processing method based on blockchain provided in an embodiment of the present application. It can be understood that the data processing method based on blockchain can be executed by any blockchain node in the blockchain network; Figure 5 As shown, the blockchain-based data processing method may include at least the following steps S201 to S206:

[0097] Step S201, receiving a contract deployment transaction associated with the second object, executing the contract deployment transaction, deploying the data storage contract included in the contract deployment transaction in the blockchain, and obtaining a contract deployment result corresponding to the contract deployment transaction.

[0098] In the embodiment of the present application, in order to store different types of operation data (also referred to as multi-dimensional data) generated in the decentralized application platform on the chain, a data storage contract can be deployed on the blockchain. By defining the universal storage format of the multi-dimensional data in the decentralized application platform on the blockchain in the data storage contract (i.e., storing different types of operation data in a unified format through a unified interface, the unified format here can be referred to as the on-chain data storage format), the interaction protocol between the decentralized application platform off-chain service and the blockchain is simplified. After the data storage contract is written, the second object can initiate a contract deployment request through the application client running in the terminal device. After the application client obtains the contract deployment request, the data storage contract carried by the contract deployment request can be encapsulated as a contract deployment transaction, and the second object is notified to sign the contract deployment transaction, and the signed contract deployment transaction can be uploaded to the blockchain network. For example, the second object can use its own object private key to sign the contract deployment transaction, generate a digital signature corresponding to the second object, and the contract deployment transaction carrying the digital signature of the second object can be uploaded to the blockchain network by the application client.

[0099] After receiving the contract deployment transaction, the blockchain node in the blockchain network can use the object public key corresponding to the second object to verify the validity of the digital signature in the contract deployment transaction, and obtain the second signature verification result corresponding to the contract deployment transaction. If the second signature verification result indicates that the digital signature verification is passed, it can be determined that the contract deployment transaction meets the legality conditions, that is, the contract deployment transaction can be considered as a valid transaction; if the second signature verification result indicates that the verification is not passed, it can be determined that the contract deployment transaction does not meet the legality conditions, and the contract deployment transaction is an invalid transaction, and then the contract deployment transaction can be deleted, and the second object is notified to resubmit the contract deployment transaction.

[0100] If the second signature verification result indicates that the digital signature verification is passed, the contract deployment transaction can be cached to the transaction pool of the current blockchain node, and multiple transactions can be selected from the transaction pool for packaging to generate a data block containing the contract deployment transaction (the data block here can be recorded as data block X1). In the consensus process of data block X1, all transaction data in the data block X1 can be executed, of course, including the contract deployment transaction in the data block X1. When executing the contract deployment transaction, the business logic corresponding to the data storage contract contained in the contract deployment transaction can be compiled and deployed in the virtual machine of the blockchain node, and the bytecode file corresponding to the data storage contract can be obtained. The bytecode file is stored in the blockchain, and the contract deployment result corresponding to the contract deployment transaction is determined. It can be understood that if the bytecode file is successfully stored in the blockchain, it can be determined that the contract deployment result corresponding to the contract deployment transaction is a successful contract deployment; if the bytecode file fails to be stored in the blockchain, it can be determined that the contract deployment result corresponding to the contract deployment transaction is a failed contract deployment.

[0101] It should be noted that the validity verification process of the digital signature in the contract deployment transaction can be considered as the digital signature verification process. Therefore, the validity verification process of the digital signature in the contract deployment transaction can be referred to in the above Figure 3 The signature verification process of the data notarization transaction in step S103 of the corresponding embodiment will not be repeated here.

[0102] Step S202: If the contract deployment result indicates that the contract deployment is successful, the contract address of the data storage contract in the blockchain is obtained; the contract address is used to call the data storage contract deployed in the blockchain.

[0103] Specifically, the above-mentioned contract deployment result can be used to indicate that the contract deployment is successful, or can be used to indicate that the contract deployment fails; if the data block containing the contract deployment transaction reaches a consensus in the blockchain network, the data block can be stored in the blockchain, and the contract deployment result corresponding to the data storage contract is generated. The contract deployment result at this time is used to indicate that the contract deployment is successful, and then the contract address of the data storage contract in the blockchain can be obtained. The contract address can be returned to the application client for each object to view and save, and the contract address can be used to call the data storage contract deployed in the blockchain; if the data block containing the contract deployment transaction does not reach a consensus in the blockchain network, the data block cannot be stored in the blockchain temporarily, and the contract deployment result corresponding to the data storage contract is generated. The contract deployment result at this time is used to indicate that the contract deployment fails.

[0104] It is understandable that the data storage contract can be a piece of business code, which can run at the bottom of the blockchain. After the second object successfully deploys it to the blockchain, when the transaction that needs to call the data storage contract is subsequently obtained, each blockchain node in the blockchain network can execute the business code in the data storage contract by consensus, and each blockchain node can get the same result. In other words, the data storage contract can be a computer program code, and the developer can use the smart contract high-level language to write it. The compiler can compile the contract written in the high-level language into the bytecode in the virtual machine of the blockchain node, and the virtual machine can be used to interpret and execute the bytecode in the smart contract. Smart contract high-level languages ​​can include but are not limited to Solidity (a smart contract programming language), Serpent (a smart contract programming language), LLL (a smart contract programming language). For example, developers can use Solidity to write data storage contracts, and use the compiler to compile the data storage contract written in Solidity into virtual machine bytecode, and then deploy the compiled virtual machine bytecode in the blockchain. It should be noted that the object that submits the data storage contract to the blockchain network can be any object that completes identity registration in the application client, such as the first object, or the second object, or the developer object of the decentralized application platform, which will not be repeated here.

[0105] For example, the event function parameters in the data storage contract may include transaction storage content and event type identifier, such as function Deposit(string calldata content, string calldata type) public {emit Deposit(msg.sender, content, type);}. Among them, function Deposit() public represents the code actually executed by the function; emit Deposit means triggering the Deposit event, and the event result can be recorded in the transaction log and saved on the blockchain; msg.sender represents the on-chain address (such as when the event is triggered when executing a data deposit transaction, msg.sender is the object address of the first object), and msg.sender is a global variable; function represents the keyword of the function declaration, and calldata is a special data location in the virtual machine, which refers to the raw hexadecimal bytes sent in any message call transaction between two addresses.

[0106] The following describes the storage formats of different types of operation data in the application client, where the data structure of the published information can be expressed as follows:

[0107]

[0108] In one or more embodiments, the data structure for deleting published information may be represented as follows:

[0109]

[0110] In one or more embodiments, the data structure for liking published information may be represented as follows:

[0111]

[0112]

[0113] In one or more embodiments, the data structure focusing on a particular object may be represented as follows:

[0114]

[0115] In one or more embodiments, the data structure for unfollowing a specific object may be represented as follows:

[0116]

[0117] In one or more embodiments, the data structure for commenting on or sending a message to a published information may be represented as follows:

[0118]

[0119] Step S203, receiving a data storage transaction sent by the application client; the data storage transaction is associated with the operation of the first object in the application client.

[0120] Specifically, after the data storage contract is successfully deployed in the blockchain, each object that has registered its identity in the application client can call the data storage contract through the contract address of the data storage contract. If the blockchain node can receive the data storage transaction sent by the application client, when executing the data storage transaction, the data storage contract deployed in the blockchain can be called through the contract address in the data storage transaction; the acquisition process of the data storage transaction can refer to the aforementioned Figure 3 Step S101 in the corresponding embodiment will not be described in detail here.

[0121] Step S204: If the object address in the data storage transaction has the contract call permission, the contract address in the data storage transaction is loaded.

[0122] Specifically, after the blockchain node receives the data storage transaction sent by the application client, it can verify the signature of the data storage transaction. The signature verification process can be found in Figure 3The relevant description of step S103 in the corresponding embodiment will not be repeated here. The data evidence transaction processed by the signature verification can be cached in the transaction pool of the blockchain node, so that the transactions in the transaction pool can be packaged into data blocks later. For example, the blockchain node can encapsulate the data evidence transaction in the transaction pool together with other multiple transactions into a new data block (for ease of understanding, the new data block here can be recorded as data block X2), and then broadcast the data block X2 in the blockchain network, so that each blockchain node participating in the consensus in the blockchain network can perform consensus processing on the data block X2.

[0123] In the consensus process of data block X2, the blockchain node can execute all transactions in data block X2, including the data storage transaction in data block X2. In the process of executing the data storage transaction, the blockchain node can obtain the object address in the data storage transaction and the call permission range corresponding to the contract address in the data storage transaction; if there is an address in the call permission range that is the same as the object address, it is determined that the object address has the contract call permission. After determining that the first object has the contract call permission for the data storage contract, the contract address in the data storage transaction can be loaded.

[0124] Step S205, based on the input parameters in the data storage transaction, call the general storage interface in the data storage contract corresponding to the contract address on the blockchain, execute the data storage transaction, and obtain the application storage information in the on-chain data storage format.

[0125] Specifically, the blockchain node can call the general storage interface in the data storage contract corresponding to the contract address on the blockchain according to the input parameters in the data evidence transaction, execute the data evidence transaction, and obtain the transaction storage content and event type identifier corresponding to the data evidence transaction; then, the object address, transaction storage content and event type identifier can be encapsulated into application evidence information with an on-chain data storage format. At this time, the application evidence information can be considered as the execution result of the data evidence transaction, and the application evidence information can be added to the blockchain.

[0126] It is understandable that in the consensus process of data block X2, the blockchain node can execute all transactions in the data block X2 and obtain the execution results corresponding to each transaction in the data block X2. When all transactions in the data block X2 are executed, the block verification result of the blockchain node for the data block X2 can be determined. The block verification result can be a positive voting result or a negative voting result; the positive voting result indicates that the blockchain node agrees to add the data block X2 to the blockchain, and the negative voting result indicates that the blockchain node disagrees to add the data block X2 to the blockchain. Each blockchain node participating in the consensus can obtain the block verification results corresponding to each blockchain node participating in the consensus in the blockchain network, and then the total number of positive voting results in the block verification results corresponding to all blockchain nodes participating in the consensus can be counted; if the total number of positive voting results is greater than or equal to the voting number threshold, it is determined that the data block X2 has passed the consensus, and then the data block X2 can be added to the blockchain. In other words, the data evidence transaction in the data block X2 is successfully stored in the blockchain, and the blockchain node at this time can return the data evidence transaction corresponding to the evidence result as the successful result of on-chain storage to the application client.

[0127] See also Figure 6 , Figure 6 This is a schematic diagram of the deployment and calling of a data storage contract provided by an embodiment of the present application. Figure 6 As shown, the deployment process of the data storage contract may include writing a data storage contract, and then compiling the data storage contract in the virtual machine of the blockchain node. The data storage contract compiled into a bytecode file can be stored in the blockchain to complete the deployment process of the data storage contract. The calling process of the data storage contract may include that each object with contract calling authority can call the universal storage interface in the data storage contract through the front-end display page of the decentralized application client, and store the object operation data generated by each object in the application client in the on-chain data storage format (unified format) to the blockchain.

[0128] Step S206, returning a data storage event associated with the application evidence information to the application client through the data storage contract, so that the application client parses the data storage event into object operation data of the first object in the application client according to the event type identifier carried by the data storage event, and displays the object operation data in the application client.

[0129] The specific implementation process of step S206 can be found in the above Figure 3 Step S105 in the corresponding embodiment will not be described in detail here.

[0130] See also Figure 7 , Figure 7Schematic diagram of the on-chain storage process of multi-dimensional data in a decentralized application platform provided by an embodiment of the present application. Figure 7 As shown, the on-chain storage method of multi-dimensional data in the decentralized application platform may involve the interaction between the first object, the second object, the blockchain decentralized application (i.e., the aforementioned application client, or may be referred to as a decentralized application platform), and the data storage contract (running in the blockchain node of the blockchain network). The on-chain storage process of multi-dimensional data in the decentralized application platform may include the following steps S301 to S319:

[0131] Step S301, browsing application information. The terminal devices used by the first object and the second object may be installed with a blockchain decentralized application client (hereinafter referred to as the application client), and the first object may browse application information in the decentralized application client.

[0132] Step S302: Publish new information. The first object can publish on the chain by editing simple information content in the decentralized application client, that is, new information can be published in the decentralized application client.

[0133] Step S303, request signature for the first evidence transaction. When the first object edits the information content in the decentralized application client for on-chain publishing, the decentralized application client can assemble the information publishing message of the first object into a transaction to be stored on the chain (the transaction here can be referred to as the first evidence transaction). The decentralized application client can request the first object to sign the first evidence transaction, such as generating signature prompt information for the first evidence transaction, and the signature prompt information is used to notify the first object to digitally sign the first evidence transaction.

[0134] Step S304, the first object signs the first evidence transaction. After the first object receives the signature prompt information corresponding to the first evidence transaction through the decentralized application client, it can use its own object private key (i.e., the object private key of the first object) to digitally sign the first evidence transaction to obtain the first evidence transaction carrying the digital signature of the first object. The first object digitally signing the first evidence transaction indicates that the first object confirms to store the first evidence transaction on the chain.

[0135] Step S305: The first evidence storage transaction is uploaded to the blockchain. The decentralized application client can send the first evidence storage transaction carrying the digital signature of the first object to any blockchain node in the blockchain network.

[0136] Step S306, the first evidence storage transaction is stored on the chain. The blockchain node can call the universal storage interface in the data storage contract deployed by the blockchain, execute the first evidence storage transaction to store the data on the chain, and obtain the execution result corresponding to the first evidence storage transaction. The execution result here can be application evidence information with an on-chain data storage format (on-chain unified format), and the application evidence information can be added to the blockchain. It is understandable that the first evidence storage transaction can also be added to the blockchain.

[0137] Step S307: Issue a first storage event. If the first evidence storage transaction is successfully stored in the blockchain, the first storage event can be initiated through the data storage contract.

[0138] Step S308, return the first evidence storage result. The blockchain node can return the first evidence storage result corresponding to the first evidence storage transaction to the decentralized application client. If the first evidence storage transaction is successfully stored in the blockchain, then the first evidence storage result can be a successful upload to the blockchain; if the first evidence storage transaction fails to be stored on the chain, then the first evidence storage result can be a failure to upload to the chain.

[0139] Step S309: Synchronize the first storage event. If the first evidence storage transaction is successfully stored in the blockchain, the blockchain node can synchronize the first storage event.

[0140] Step S310: parse the first storage event and display the parsed result on the front-end page. The decentralized application client can continuously detect the storage event (e.g., the first storage event) issued by the data storage contract, parse the first storage event, and display the message that the information content published by the first object is successfully stored on the chain in each decentralized application client.

[0141] Step S311, like the information published by the first object. The second object can like the information content published by the first object in the decentralized application client. At this time, the operation of the second object liking the information published by the first object can also be regarded as the second object initiating a like message (a type of information publishing message) in the decentralized application client.

[0142] Step S312, request signature for the second evidence transaction. When the second object likes the information published by the first object in the decentralized application client, the decentralized application client can assemble the second object's like message into a transaction to be stored on the chain (the transaction here can be called the second evidence transaction). The decentralized application client can request the second object to sign the second evidence transaction, such as generating signature prompt information for the second evidence transaction, where the signature prompt information is used to notify the second object to digitally sign the second evidence transaction.

[0143] Step S313, the second object signs the second evidence transaction. After the second object receives the signature prompt information corresponding to the second evidence transaction through the decentralized application client, it can use its own object private key (i.e., the object private key of the second object) to digitally sign the second evidence transaction to obtain the second evidence transaction carrying the digital signature of the second object. The second object digitally signing the second evidence transaction indicates that the second object confirms to store the second evidence transaction on the chain.

[0144] Step S314: The second evidence transaction is uploaded to the blockchain. The decentralized application client can send the second evidence transaction carrying the digital signature of the second object to any blockchain node in the blockchain network.

[0145] Step S315, the second evidence transaction is stored on the chain. The blockchain node can call the general storage interface in the data storage contract deployed by the blockchain, execute the second evidence transaction to store the data on the chain, and obtain the execution result corresponding to the second evidence transaction. The execution result here can be application evidence information with an on-chain data storage format (on-chain unified format), and the application evidence information can be added to the blockchain. It is understandable that the second evidence transaction can also be added to the blockchain.

[0146] Step S316: Issue a second storage event. If the second evidence storage transaction is successfully stored in the blockchain, the second storage event can be initiated through the data storage contract.

[0147] Step S317, return the second evidence storage result. The blockchain node can return the second evidence storage result corresponding to the second evidence storage transaction to the decentralized application client. If the second evidence storage transaction is successfully stored in the blockchain, then the second evidence storage result can be a successful upload to the blockchain; if the second evidence storage transaction fails to be stored on the chain, then the second evidence storage result can be a failure to upload to the chain.

[0148] Step S318, second storage event synchronization: If the second evidence storage transaction is successfully stored in the blockchain, the blockchain node can synchronize the second storage event.

[0149] Step S319, parse the second storage event, and display the number of likes of the message published by the second object on the front-end page. The decentralized application client can continuously detect the storage event (for example, the second storage event) issued by the data storage contract, and parse the second storage event, and display the message that the second object likes the first object's information and successfully stores it on the chain in each decentralized application client, such as increasing the number of likes of the first object's information.

[0150] It should be noted that the aforementioned first evidence transaction and the second evidence transaction can both be referred to as data evidence transactions, and the first storage event and the second storage event can both be referred to as data storage events. Figure 7The operations of publishing information and liking in the corresponding embodiments are only examples of two types of operation data generated in the decentralized application client. In actual application scenarios, other types of operation data may also be used, such as sharing, collecting, etc. This application does not limit this.

[0151] In the embodiment of the present application, a general storage protocol can be designed for the multi-dimensional data in the decentralized application platform to simplify the interaction protocol between the decentralized application platform off-chain services and the blockchain; the operation data generated in the application client can be stored on the blockchain as application evidence information in a unified format through the general storage interface in the data storage contract deployed by the blockchain, that is, the off-chain operation records can be stored through the general storage interface; the application client parses the application evidence information in a unified format stored in the blockchain into different types of object operation data and displays them, that is, the terminal device running the decentralized application platform is responsible for executing and presenting the on-chain storage operation records. In other words, the on-chain storage processing of various types of operation data in the application client can be completed through the general storage interface in the data storage contract, which can improve the data storage efficiency and data parsing efficiency in the application client, and thus improve the interactivity in the application client.

[0152] It is understandable that in the specific implementation of the present application, the on-chain address information of the user (for example, the first object and the second object) and the object information of the user (for example, the first object and the second object) in the decentralized application platform (avatar, nickname, etc. in the decentralized application) may be involved. When the above embodiments of the present application are applied to specific products or technologies, the user's permission or consent must be obtained, and the collection, use and processing of relevant data must comply with the relevant laws, regulations and standards of the relevant countries and regions.

[0153] See also Figure 8 , Figure 8 This is a schematic diagram of a data processing device based on blockchain provided in an embodiment of the present application. Figure 1 It can be understood that the blockchain-based data processing device 1 can be applied in a blockchain node, such as Figure 1 Any blockchain node in the blockchain network shown; Figure 8 As shown, the blockchain-based data processing device 1 may include: a transaction receiving unit 101, a transaction execution unit 102, and a storage event initiating unit 103;

[0154] The transaction receiving unit 101 is used to receive a data evidence transaction sent by an application client; the data evidence transaction is associated with an operation of the first object in the application client;

[0155] The transaction execution unit 102 is used to call the general storage interface in the data storage contract deployed by the blockchain, execute the data evidence transaction, obtain the application evidence information in the on-chain data storage format, and add the application evidence information to the blockchain;

[0156] The storage event initiating unit 103 is used to return a data storage event associated with the application evidence information to the application client through the data storage contract, so that the application client can parse the data storage event into object operation data of the first object in the application client according to the event type identifier carried by the data storage event, and display the object operation data in the application client.

[0157] In one or more embodiments, the blockchain-based data processing device 1 further includes: a signature verification unit 104, a signature verification passing unit 105, and a signature verification failing unit 106;

[0158] The signature verification unit 104 is used to verify the validity of the digital signature in the data evidence transaction according to the object public key corresponding to the first object, and obtain a first signature verification result corresponding to the data evidence transaction;

[0159] The signature verification passing unit 105 is used for encapsulating the data evidence transaction into a data block if the first signature verification result indicates that the digital signature verification is passed, and executing the steps of calling the general storage interface in the data storage contract deployed by the blockchain in the consensus phase of the data block, executing the data evidence transaction, and obtaining the application evidence information in the on-chain data storage format;

[0160] The signature verification failure unit 106 is used to mark the data evidence transaction as an invalid transaction and discard the data evidence transaction if the first signature verification result indicates that the digital signature verification has failed.

[0161] In one or more embodiments, the transaction execution unit 102 calls the general storage interface in the data storage contract deployed by the blockchain, executes the data storage transaction, and obtains application storage information in the on-chain data storage format, including:

[0162] If the object address in the data storage transaction has the contract call permission, the contract address in the data storage transaction is loaded;

[0163] According to the input parameters in the data storage transaction, the general storage interface in the data storage contract corresponding to the contract address is called on the blockchain to execute the data storage transaction and obtain the application storage information in the on-chain data storage format.

[0164] In one or more embodiments, the blockchain-based data processing device 1 further includes: an authority range acquisition unit 107, a contract call authority verification unit 108;

[0165] The permission range acquisition unit 107 is used to obtain the object address in the data storage transaction and the calling permission range corresponding to the contract address in the data storage transaction;

[0166] The contract calling authority verification unit 108 is used to determine that the object address has the contract calling authority if there is an address that is the same as the object address in the calling authority range.

[0167] In one or more embodiments, the transaction execution unit 102 executes a data evidence transaction to obtain application evidence information in an on-chain data storage format, including:

[0168] Execute the data evidence transaction to obtain the transaction storage content and event type identifier corresponding to the data evidence transaction;

[0169] The object address, transaction storage content, and event type identifier are encapsulated into application evidence information with an on-chain data storage format.

[0170] In one or more embodiments, the blockchain-based data processing device 1 further includes: a contract deployment transaction execution unit 109, a contract address acquisition unit 110;

[0171] The contract deployment transaction execution unit 109 is used to receive the contract deployment transaction associated with the second object, execute the contract deployment transaction, deploy the data storage contract included in the contract deployment transaction in the blockchain, and obtain the contract deployment result corresponding to the contract deployment transaction;

[0172] The contract address acquisition unit 110 is used to obtain the contract address of the data storage contract in the blockchain if the contract deployment result indicates that the contract deployment is successful; the contract address is used to call the data storage contract deployed in the blockchain.

[0173] In one or more embodiments, the contract deployment transaction execution unit 109 receives a contract deployment transaction associated with the second object, executes the contract deployment transaction, deploys the data storage contract included in the contract deployment transaction in the blockchain, and obtains a contract deployment result corresponding to the contract deployment transaction, including:

[0174] Receive a contract deployment transaction associated with the second object, verify the validity of a digital signature in the contract deployment transaction according to an object public key corresponding to the second object, and obtain a second signature verification result corresponding to the contract deployment transaction;

[0175] If the second signature verification result indicates that the digital signature verification is passed, the business logic corresponding to the data storage contract included in the contract deployment transaction is run in the virtual machine of the blockchain node to obtain the bytecode file corresponding to the data storage contract;

[0176] The bytecode file is stored in the blockchain, and the contract deployment result corresponding to the contract deployment transaction is determined to be a successful contract deployment.

[0177] According to an embodiment of the present application, the steps involved in the blockchain-based data processing method shown above can be Figure 8 The data processing device 1 shown in the figure is based on the blockchain and is executed by each unit. For example, Figure 3 Step S102 shown can be performed by Figure 8 The transaction receiving unit S101 shown is used to execute, Figure 3 Step S103 shown can be performed by Figure 8 The transaction execution unit 102 shown is used to execute, Figure 3 Step S104 shown can be performed by Figure 8 The storage event initiating unit 103 shown is used to execute the following.

[0178] According to one embodiment of the present application, Figure 8 The various units in the blockchain-based data processing device 1 shown can be combined into one or several units separately or in whole, or one (some) of the units can be further divided into at least two functionally smaller sub-units, which can achieve the same operation without affecting the realization of the technical effects of the embodiments of the present application. The above-mentioned units are divided based on logical functions. In practical applications, the functions of one unit can also be implemented by at least two units, or the functions of at least two units can be implemented by one unit. In other embodiments of the present application, the blockchain-based data processing device 1 may also include other units. In practical applications, these functions can also be implemented with the assistance of other units, and can be implemented by at least two units in collaboration.

[0179] In the embodiment of the present application, after receiving the data evidence transaction sent by the application client, the data evidence transaction is executed by calling the general storage interface in the data storage contract deployed by the blockchain, and the application evidence information with the on-chain data storage format is obtained, and the application evidence information is added to the blockchain, and then the data storage contract can be used to return the data storage event associated with the application evidence information to the application client; in the application client, based on the event type identifier carried by the data storage event, the data storage event can be parsed into the object operation data of the first object in the application client, and the object operation data can be synchronously displayed in the application client. The operation data generated in the application client can be stored in the blockchain as application evidence information in a unified format through the general storage interface in the data storage contract deployed by the blockchain, and the application client parses the application evidence information in a unified format stored in the blockchain into different types of object operation data and displays them, that is, the on-chain storage processing of various types of operation data in the application client can be completed through the general storage interface in the data storage contract, which can improve the data storage efficiency and data parsing efficiency in the application client, and thus improve the interactivity in the application client.

[0180] See also Fig. 9 , Fig. 9 This is a schematic diagram of a data processing device based on blockchain provided in an embodiment of the present application. Figure 2 It can be understood that the blockchain-based data processing device 2 can be applied in a terminal device, such as Figure 1 The terminal device 10a shown can run the decentralized application platform; Fig. 9 As shown, the blockchain-based data processing device 2 may include: a transaction encapsulation unit 201, a transaction sending unit 202, and a storage event parsing unit 203;

[0181] The transaction encapsulation unit 201 is used to obtain the information release message of the first object in the application client, and encapsulate the information release message into a data evidence transaction;

[0182] The transaction sending unit 202 is used to send the data evidence transaction to the blockchain node, so that the blockchain node calls the universal storage interface in the data storage contract deployed by the blockchain to execute the data evidence transaction, obtain the application evidence information in the on-chain data storage format, and add the application evidence information to the blockchain;

[0183] The storage event parsing unit 203 is used to receive a data storage event associated with the application evidence information returned by the data storage contract, parse the data storage event into object operation data of the first object in the application client according to the event type identifier carried by the data storage event, and display the object operation data in the application client.

[0184] In one or more embodiments, the transaction encapsulation unit 201 obtains the information publishing message of the first object in the application client, and encapsulates the information publishing message into a data evidence transaction, including:

[0185] Obtaining an information release message of the first object in the application client, encapsulating the information release message as a transaction to be put on the chain, and generating signature prompt information corresponding to the transaction to be put on the chain; the signature prompt information is used to instruct the first object to sign the transaction to be put on the chain;

[0186] The digital signature of the first object on the transaction to be put on the chain is obtained, and the transaction to be put on the chain carrying the digital signature of the first object is determined as a data notarization transaction.

[0187] In one or more embodiments, the storage event parsing unit 203 parses the data storage event into object operation data of the first object in the application client according to the event type identifier carried by the data storage event, including:

[0188] Obtain the event parameter information in the data storage event, parse the storage content parameters in the event parameter information, and obtain the transaction storage content corresponding to the data storage transaction;

[0189] Obtain object information of the first object in the application client corresponding to the object address in the event parameter information, and encapsulate the transaction storage content and the object information into object operation data of the first object in the application client according to the event type identifier in the event parameter information.

[0190] According to an embodiment of the present application, the steps involved in the blockchain-based data processing method shown above can be Fig. 9 The data processing device 2 shown in the figure is based on the blockchain and is executed by each unit. For example, Figure 3 Step S101 shown can be performed by Fig. 9 The transaction encapsulation unit 201 shown is used to execute, Figure 3 Step S102 shown can be performed by Fig. 9 The transaction sending unit 202 is shown to execute, Figure 3 Step S105 shown can be performed by Fig. 9 The storage event parsing unit 203 shown is used to execute the following.

[0191] According to one embodiment of the present application, Fig. 9The various units in the blockchain-based data processing device 2 shown can be separately or completely combined into one or several units to constitute, or one (some) of the units can be further divided into at least two functionally smaller sub-units, which can achieve the same operation without affecting the realization of the technical effects of the embodiments of the present application. The above-mentioned units are divided based on logical functions. In practical applications, the functions of one unit can also be implemented by at least two units, or the functions of at least two units can be implemented by one unit. In other embodiments of the present application, the blockchain-based data processing device 2 may also include other units. In practical applications, these functions can also be implemented with the assistance of other units, and can be implemented by the collaboration of at least two units.

[0192] In the embodiment of the present application, the information release message of the first object in the application client is obtained, and the information release message is encapsulated as a data evidence transaction; the data evidence transaction is sent to the blockchain node, so that the blockchain node calls the universal storage interface in the data storage contract deployed by the blockchain to execute the data evidence transaction, obtains the application evidence information with the on-chain data storage format, and adds the application evidence information to the blockchain; receives the data storage event associated with the application evidence information returned by the data storage contract, and according to the event type identifier carried by the data storage event, parses the data storage event into the object operation data of the first object in the application client, and displays the object operation data in the application client. The operation data generated in the application client can be stored in the blockchain as the application evidence information in a unified format through the universal storage interface in the data storage contract deployed by the blockchain, and the application client parses the application evidence information in a unified format stored in the blockchain into different types of object operation data and displays them, that is, the on-chain storage processing of various types of operation data in the application client can be completed through the universal storage interface in the data storage contract, which can improve the data storage efficiency in the application client, and thus improve the interactivity in the application client.

[0193] See also Fig.10 , Fig.10 Schematic diagram of the structure of a computer device provided in an embodiment of the present application. Fig.10As shown, the computer device 1000 can be a user terminal or a server, which will not be limited here. For ease of understanding, this application takes the computer device as a user terminal as an example. The computer device 1000 may include: a processor 1001, a network interface 1004 and a memory 1005. In addition, the computer device 1000 may also include: a user interface 1003, and at least one communication bus 1002. Among them, the communication bus 1002 is used to realize the connection and communication between these components. Among them, the user interface 1003 may also include a standard wired interface and a wireless interface. The network interface 1004 may optionally include a standard wired interface and a wireless interface (such as a WI-FI interface). The memory 1004 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 be at least one storage device located away from the aforementioned processor 1001. As Fig.10 As shown, the memory 1005 as a computer-readable storage medium may include an operating system, a network communication module, a user interface module, and a device control application program.

[0194] The network interface 1004 in the computer device 1000 can also provide a network communication function, and the optional user interface 1003 can also include a display screen (Display) and a keyboard (Keyboard). 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] Receiving a data evidence transaction sent by the application client; the data evidence transaction is associated with an operation of the first object in the application client;

[0196] Call the general storage interface in the data storage contract deployed by the blockchain, execute the data storage transaction, obtain the application storage information in the on-chain data storage format, and add the application storage information to the blockchain;

[0197] A data storage event associated with the application evidence information is returned to the application client through the data storage contract, so that the application client parses the data storage event into object operation data of the first object in the application client according to the event type identifier carried by the data storage event, and displays the object operation data in the application client.

[0198] Alternatively, the processor 1001 may implement:

[0199] Obtaining an information release message of the first object in the application client, and encapsulating the information release message into a data evidence transaction;

[0200] Sending the data evidence transaction to the blockchain node so that the blockchain node calls the universal storage interface in the data storage contract deployed by the blockchain to execute the data evidence transaction, obtains the application evidence information in the on-chain data storage format, and adds the application evidence information to the blockchain;

[0201] Receive a data storage event associated with the application evidence information returned by the data storage contract, parse the data storage event into object operation data of the first object in the application client according to the event type identifier carried by the data storage event, and display the object operation data in the application client.

[0202] It should be understood that the computer device 1000 described in the embodiment of the present application can execute the above Figure 3 , Figure 5 as well as Figure 7 The description of the data processing method based on blockchain in any corresponding embodiment can also be performed as described above. Figure 8 The description of the blockchain-based data processing device 1 in the corresponding embodiment, or the execution of the above Fig. 9 The description of the blockchain-based 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.

[0203] In addition, it should be pointed out here that: the embodiment of the present application also provides a computer-readable storage medium, and the computer-readable storage medium stores a computer program executed by the blockchain-based data processing device 1 or the blockchain-based data processing device 2 mentioned above, and the computer program includes program instructions. When the processor executes the program instructions, it can execute the above Figure 3 , Figure 5 as well as Figure 7 The description of the data processing method based on blockchain in any corresponding embodiment will not be repeated here. In addition, the description of the beneficial effects of the same method will not be repeated. For technical details not disclosed in the computer-readable storage medium embodiment involved in this application, please refer to the description of the method embodiment of this application. As an example, program instructions can be deployed on a computing device for execution, or on multiple computing devices located at one location, or on multiple computing devices distributed at multiple locations and interconnected by a communication network. Multiple computing devices distributed at multiple locations and interconnected by a communication network can constitute a blockchain system.

[0204] In addition, it should be noted that: the embodiment of the present application also provides a computer program product or a computer program, which may include computer instructions, and the computer instructions may be stored in a computer-readable storage medium. The processor of the computer device reads the computer instructions from the computer-readable storage medium, and the processor may execute the computer instructions, so that the computer device executes the above Figure 3 , Figure 5 as well as Figure 7 The description of the data processing method based on blockchain in any corresponding embodiment will not be repeated here. In addition, the description of the beneficial effects of the same method will not be repeated. For technical details not disclosed in the computer program product or computer program embodiment involved in this application, please refer to the description of the method embodiment of this application.

[0205] It should be noted that, for the above-mentioned various method embodiments, for the sake of simplicity of description, they are all expressed as a series of action combinations, but those skilled in the art should be aware that this application is not limited by the order of the actions described, because according to this application, some steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by this application.

[0206] The steps in the method of the embodiment of the present application can be adjusted in order, combined and deleted according to actual needs.

[0207] The modules in the device of the embodiment of the present application can be merged, divided and deleted according to actual needs.

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

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

Claims

1. A data processing method based on blockchain, characterized in that: include: Receiving a data evidence transaction sent by an application client; the data evidence transaction is associated with an operation of the first object in the application client; Calling the universal storage interface in the data storage contract deployed by the blockchain, executing the data storage transaction, obtaining application storage information in the on-chain data storage format, and adding the application storage information to the blockchain; A data storage event associated with the application evidence information is returned to the application client through the data storage contract, so that the application client parses the data storage event into object operation data of the first object in the application client according to the event type identifier carried by the data storage event, and displays the object operation data in the application client.

2. The method according to claim 1, characterized in that: The method further comprises: Verify the validity of the digital signature in the data storage transaction according to the object public key corresponding to the first object, and obtain a first signature verification result corresponding to the data storage transaction; If the first signature verification result indicates that the digital signature verification is passed, the data evidence transaction is encapsulated into a data block, the general storage interface in the data storage contract deployed by calling the blockchain is executed in the consensus phase of the data block, the data evidence transaction is executed, and the application evidence information having the on-chain data storage format is obtained; If the first signature verification result indicates that the digital signature verification fails, the data storage transaction is marked as an invalid transaction and the data storage transaction is discarded.

3. The method according to claim 1, characterized in that The calling of the universal storage interface in the data storage contract deployed by the blockchain, executing the data storage transaction, and obtaining the application storage information in the on-chain data storage format include: If the object address in the data storage transaction has the contract call permission, then the contract address in the data storage transaction is loaded; According to the input parameters in the data storage transaction, the universal storage interface in the data storage contract corresponding to the contract address is called on the blockchain, the data storage transaction is executed, and the application storage information in the on-chain data storage format is obtained.

4. The method according to claim 3, characterized in that: The method further comprises: Obtain the object address in the data storage transaction, and obtain the calling permission scope corresponding to the contract address in the data storage transaction; If there is an address in the calling permission range that is the same as the object address, it is determined that the object address has the contract calling permission.

5. The method according to claim 3, characterized in that: The execution of the data evidence transaction to obtain application evidence information in the on-chain data storage format includes: Execute the data evidence transaction to obtain the transaction storage content and event type identifier corresponding to the data evidence transaction; The object address, the transaction storage content and the event type identifier are encapsulated into application evidence information having an on-chain data storage format.

6. The method according to claim 1, characterized in that The method further comprises: Receiving a contract deployment transaction associated with the second object, executing the contract deployment transaction, deploying the data storage contract included in the contract deployment transaction in the blockchain, and obtaining a contract deployment result corresponding to the contract deployment transaction; If the contract deployment result indicates that the contract deployment is successful, the contract address of the data storage contract in the blockchain is obtained; the contract address is used to call the data storage contract deployed in the blockchain.

7. The method according to claim 6, characterized in that The receiving a contract deployment transaction associated with the second object, executing the contract deployment transaction, deploying the data storage contract included in the contract deployment transaction in the blockchain, and obtaining a contract deployment result corresponding to the contract deployment transaction, includes: Receiving a contract deployment transaction associated with a second object, and verifying the validity of a digital signature in the contract deployment transaction according to an object public key corresponding to the second object, to obtain a second signature verification result corresponding to the contract deployment transaction; If the second signature verification result indicates that the digital signature verification is passed, the business logic corresponding to the data storage contract included in the contract deployment transaction is run in the virtual machine of the blockchain node to obtain a bytecode file corresponding to the data storage contract; The bytecode file is stored in the blockchain, and a contract deployment result corresponding to the contract deployment transaction is determined to be a successful contract deployment.

8. A data processing method based on blockchain, characterized in that: include: Obtaining an information release message of the first object in the application client, and encapsulating the information release message into a data evidence transaction; Send the data evidence transaction to the blockchain node, so that the blockchain node calls the universal storage interface in the data storage contract deployed by the blockchain to execute the data evidence transaction, obtain the application evidence information in the on-chain data storage format, and add the application evidence information to the blockchain; Receive a data storage event associated with the application evidence information returned by the data storage contract, parse the data storage event into object operation data of the first object in the application client according to an event type identifier carried by the data storage event, and display the object operation data in the application client.

9. The method according to claim 8, characterized in that The obtaining of the information release message of the first object in the application client and encapsulating the information release message into a data evidence transaction includes: Obtaining an information release message of the first object in the application client, encapsulating the information release message as a transaction to be put on the chain, and generating signature prompt information corresponding to the transaction to be put on the chain; the signature prompt information is used to instruct the first object to sign the transaction to be put on the chain; Obtain the digital signature of the first object on the transaction to be put on the chain, and determine the transaction to be put on the chain carrying the digital signature of the first object as a data notarization transaction.

10. The method according to claim 8, characterized in that The step of parsing the data storage event into object operation data of the first object in the application client according to the event type identifier carried by the data storage event includes: Acquire event parameter information in the data storage event, parse the storage content parameter in the event parameter information, and obtain the transaction storage content corresponding to the data storage transaction; Obtain object information of the first object in the application client corresponding to the object address in the event parameter information, and encapsulate the transaction storage content and the object information into object operation data of the first object in the application client according to the event type identifier in the event parameter information.

11. A data processing device based on blockchain, characterized in that: include: A transaction receiving unit, configured to receive a data evidence transaction sent by an application client; the data evidence transaction is associated with an operation of the first object in the application client; A transaction execution unit, configured to call a universal storage interface in a data storage contract deployed by the blockchain, execute the data storage transaction, obtain application storage information in an on-chain data storage format, and add the application storage information to the blockchain; A storage event initiating unit is used to return a data storage event associated with the application evidence information to the application client through the data storage contract, so that the application client can parse the data storage event into object operation data of the first object in the application client according to the event type identifier carried by the data storage event, and display the object operation data in the application client.

12. A data processing device based on blockchain, characterized in that: include: A transaction encapsulation unit, configured to obtain an information release message of the first object in the application client, and encapsulate the information release message into a data evidence storage transaction; A transaction sending unit, used to send the data evidence transaction to a blockchain node, so that the blockchain node calls the universal storage interface in the data storage contract deployed by the blockchain to execute the data evidence transaction, obtain application evidence information in the on-chain data storage format, and add the application evidence information to the blockchain; A storage event parsing unit is used to receive a data storage event associated with the application evidence information returned by the data storage contract, parse the data storage event into object operation data of the first object in the application client according to an event type identifier carried by the data storage event, and display the object operation data in the application client.

13. A computer device, characterized in that: including memory and processor; The memory is connected to the processor, 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 7, or executes the method described in any one of claims 8 to 10.

14. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, which is suitable for being loaded and executed by a processor, so that a computer device having the processor executes the method according to any one of claims 1 to 7, or executes the method according to any one of claims 8 to 10.

15. A computer program product, characterized in that The method comprises a computer program / instruction, which, when executed by a processor, implements the method according to any one of claims 1 to 7, or implements the method according to any one of claims 8 to 10.