Data processing method and device based on blockchain
By adopting blockchain-based data processing methods on the application management platform, the complex packaging problem of software when it is launched on multiple channel platforms is solved, reducing costs, improving efficiency, and enhancing data security.
Patent Information
- Application Number
- CN202111594938.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-23
- Publication Date
- 2025-04-18
- Estimated Expiration
- 2041-12-23
AI Technical Summary
In the prior art, when software is launched on multiple channel platforms, it is necessary to repetitively access the SDKs of each channel, resulting in complex and cumbersome packaging process, time-consuming transmission, low efficiency, and increasing the labor cost of software publishers.
Using blockchain-based data processing method, the application management platform receives channel package packaging requests, obtains the target application's parent package and sample channel package, generates the target channel package, and records the channel package attribute information, and uploads it to the blockchain.
The software packaging process is simplified, the labor costs of the application agent are reduced, the data transmission efficiency is improved, and the authenticity and security of information are ensured through the immutability of the blockchain.
Smart Images

Figure CN114385198B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of blockchain technology, and in particular to a data processing method based on blockchain. The present application also relates to a data processing device based on blockchain, a computing device, and a computer-readable storage medium. Background Art
[0002] With the development of computer technology, more and more software is being developed and launched for users to use. In order for a software to be launched on multiple channel platforms, it is necessary to connect the software body with the SDK (software development kit) of each channel during the testing phase to generate a channel package, which is convenient for subsequent testing of the channel package and online launch. This process is called "packaging".
[0003] In the packaging process, accessing the channel SDK is a very cumbersome step. The same software needs to be repeatedly accessed to access the SDKs of various channels, which makes the overall process complicated and cumbersome. After the technical department generates the channel package, it needs to be transmitted to the quality inspection department for testing, which causes time-consuming and inefficient transmission. In addition, due to the security of software resources, packaging is generally operated by software publishers, which leads to high labor costs for software publishers. Therefore, an effective method is urgently needed to solve such problems. Summary of the invention
[0004] In view of this, the embodiment of the present application provides a data processing method based on blockchain. The present application also relates to a data processing device based on blockchain, a computing device, and a computer-readable storage medium to solve the problem of cumbersome packaging process in the prior art.
[0005] According to a first aspect of an embodiment of the present application, a blockchain-based data processing method is provided, the method being applied to an application management platform, comprising:
[0006] Receive a channel package packaging request for a target application;
[0007] Based on the channel package packaging request, obtain a target application parent package and a target sample channel package of the target application;
[0008] In response to the channel package packaging request, a target channel package is generated according to the target application parent package and the target sample channel package, and channel package attribute information corresponding to the target channel package is recorded;
[0009] The channel package attribute information is uploaded to the blockchain.
[0010] According to a second aspect of an embodiment of the present application, a blockchain-based data processing method is provided, the method being applied to a target terminal, comprising:
[0011] receiving channel package attribute information, and generating channel package upload data according to the channel package attribute information;
[0012] Get the last hash value of the last block in the blockchain;
[0013] Generate a target block according to the channel package upload data and the end hash value;
[0014] The target block is uploaded to the blockchain, and the target block is broadcast to each blockchain node of the blockchain.
[0015] According to a third aspect of an embodiment of the present application, a data processing method based on blockchain is provided, the method is applied to a data processing system, the system comprising: an application management platform, a target terminal, wherein:
[0016] The application management platform receives a channel package packaging request for a target application; based on the channel package packaging request, obtains a target application master package and a target sample channel package of the target application; generates a target channel package according to the target application master package and the target sample channel package in response to the channel package packaging request, and records channel package attribute information corresponding to the target channel package; and uploads the channel package attribute information to the blockchain;
[0017] The target terminal receives the channel package attribute information, generates the channel package upload data according to the channel package attribute information; obtains the end hash value of the end block in the blockchain; generates the target block according to the channel package upload data and the end hash value; uploads the target block to the blockchain, and broadcasts the target block to each blockchain node of the blockchain.
[0018] According to a fourth aspect of an embodiment of the present application, a blockchain-based data processing device is provided, and the device is applied to an application management platform, including:
[0019] A receiving module, configured to receive a channel package packaging request for a target application;
[0020] An acquisition module is configured to acquire a target application parent package and a target sample channel package of the target application based on the channel package packaging request;
[0021] A generation module, configured to generate a target channel package according to the target application parent package and the target sample channel package in response to the channel package packaging request, and record channel package attribute information corresponding to the target channel package;
[0022] The uploading module is configured to upload the channel package attribute information to the blockchain.
[0023] According to a fifth aspect of an embodiment of the present application, a blockchain-based data processing device is provided, and the device is applied to a target terminal, including:
[0024] A receiving module, configured to receive channel package attribute information and generate channel package upload data according to the channel package attribute information;
[0025] An acquisition module is configured to obtain a final hash value of a final block in the blockchain;
[0026] A generation module, configured to generate a target block according to the channel package upload data and the end hash value;
[0027] The uploading module is configured to upload the target block to the blockchain and broadcast the target block to each blockchain node of the blockchain.
[0028] According to a sixth aspect of the embodiment of the present application, a blockchain-based data processing system is provided, the system comprising an application management platform and a target terminal, wherein:
[0029] The application management platform is configured to receive a channel package packaging request for a target application; based on the channel package packaging request, obtain a target application parent package and a target sample channel package of the target application; in response to the channel package packaging request, generate a target channel package according to the target application parent package and the target sample channel package, and record channel package attribute information corresponding to the target channel package; upload the channel package attribute information to the blockchain;
[0030] The target terminal is configured to receive channel package attribute information, generate channel package upload data according to the channel package attribute information; obtain the end hash value of the end block in the blockchain; generate a target block according to the channel package upload data and the end hash value; upload the target block to the blockchain, and broadcast the target block to each blockchain node of the blockchain.
[0031] According to a seventh aspect of an embodiment of the present application, a computing device is provided, comprising a memory, a processor, and computer instructions stored in the memory and executable on the processor, wherein the processor implements the steps of the blockchain-based data processing method when executing the computer instructions.
[0032] According to an eighth aspect of an embodiment of the present application, a computer-readable storage medium is provided, which stores computer instructions, and when the computer instructions are executed by a processor, the steps of the blockchain-based data processing method are implemented.
[0033] The blockchain-based data processing method provided in the present application is applied to an application management platform, including: receiving a channel package packaging request for a target application; based on the channel package packaging request, obtaining a target application parent package and a target sample channel package of the target application; generating a target channel package according to the target application parent package and the target sample channel package in response to the channel package packaging request, and recording channel package attribute information corresponding to the target channel package; uploading the channel package attribute information to the blockchain.
[0034] An embodiment of the present application realizes application packaging through an application management platform, so that everyone can package and reduce the testing cost of the application agent; and uploads the attribute information of the packaged channel package to the blockchain, which is convenient for the later verification of the channel package and accident tracing. The channel package attribute information stored in the blockchain has the characteristics of being tamper-proof and collectively maintained, which ensures the authenticity of the information and improves the security of the data. BRIEF DESCRIPTION OF THE DRAWINGS
[0035] Figure 1 It is a flow chart of applying a mother package to perform packaging processing;
[0036] Figure 2 It is a process flow chart of the application agent packaging channel package;
[0037] Figure 3 This is a flowchart of a blockchain-based data processing method applied to an application management platform provided in one embodiment of the present application;
[0038] Figure 4 This is a flowchart of a blockchain-based data processing method applied to a target terminal provided by an embodiment of the present application;
[0039] Figure 5 This is a flowchart of a blockchain-based data processing method applied to a data processing system provided by an embodiment of the present application;
[0040] Figure 6 It is a structural diagram of a blockchain-based data processing device applied to an application management platform provided by an embodiment of the present application;
[0041] Figure 7 It is a structural diagram of a blockchain-based data processing device applied to a target terminal provided by an embodiment of the present application;
[0042] Figure 8 This is a schematic diagram of the structure of a blockchain-based data processing system provided by an embodiment of the present application;
[0043] Fig. 9 It is a structural block diagram of a computing device provided in one embodiment of the present application. DETAILED DESCRIPTION
[0044] Many specific details are described in the following description to facilitate a full understanding of the present application. However, the present application can be implemented in many other ways than those described herein, and those skilled in the art can make similar generalizations without violating the connotation of the present application, so the present application is not limited by the specific implementation disclosed below.
[0045] The terms used in one or more embodiments of the present application are only for the purpose of describing specific embodiments, and are not intended to limit one or more embodiments of the present application. The singular forms of "a", "said" and "the" used in one or more embodiments of the present application and the appended claims are also intended to include plural forms, unless the context clearly indicates other meanings. It should also be understood that the term "and / or" used in one or more embodiments of the present application refers to and includes any or all possible combinations of one or more associated listed items.
[0046] It should be understood that, although the terms first, second, etc. may be used to describe various information in one or more embodiments of the present application, these information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. For example, without departing from the scope of one or more embodiments of the present application, the first may also be referred to as the second, and similarly, the second may also be referred to as the first. Depending on the context, the word "if" as used herein may be interpreted as "at the time of" or "when" or "in response to determining".
[0047] First, the terms involved in one or more embodiments of the present application are explained.
[0048] Exclusive agent of the application: Generally, it can be understood that the operating company (exclusive agent) has obtained all the rights of the product in a certain market. The exclusive agent has the exclusive right to distribute and operate the game, and has the right to choose the distribution channel and the specific operation method after distribution. The agent is generally not the developer of the game itself. For example, application developer A develops a product and exclusively distributes it to operator B in the Chinese market. Developer A cannot find new operators C\D\E in China to operate the same product.
[0049] Distribution channels: Domestic Android mobile phone platforms for downloading APPs are all distribution channels, such as: application market, software store, application store, application treasure, etc.
[0050] Channel SDK: The corresponding distribution channels have their own SDK (Software Development Kit). Distribution in the corresponding channels requires access to the SDK of the corresponding channels.
[0051] Channel demo.apk: To facilitate channel SDK access problem troubleshooting and update maintenance, a virtual application is pre-connected for debugging. The installable Android APP generated after connection is one of the two materials for synthesizing the channel package.
[0052] Aggregate SDK: Accessing channel SDK is a very tedious process. The same application must be repeatedly accessed to access the SDKs of various channels. If the application is to be released on 22 channels, it needs to be accessed 22 times. In order to facilitate access, the access action is automatically accessed using an automated script. The game is first connected to an aggregate SDK that can be tested and then replaced with the aggregate SDK by the automated script. This SDK aggregates the characteristics of all channel SDKs, so it is called an "aggregate SDK."
[0053] Application mother package: The installable Android APP generated by the application body after connecting to the aggregation SDK, which is one of the two materials for synthesizing the channel package.
[0054] Channel package: The application channel package, i.e. the final generated package, is an installable Android APP that uses the application master package and channel demo.apk to replace the connected aggregation SDK with the channel SDK through an automated script. The channel package is divided into a "test package" for testing and a "formal package" for online release. Since the "test package" has many plug-in functions that are only convenient for testing, it must not be put online.
[0055] Packaging: The process of replacing the aggregate SDK in a game master package with various channel SDKs to generate multiple channel packages is called packaging.
[0056] Application management platform: A graphical platform used for packaging. The underlying core is the script that automatically replaces the SDK, and a graphical client is added to facilitate user use. During the packaging process of the platform, the packaging task is executed locally. After the packaging is completed, the channel package needs to be transmitted through network disk, QQ and other software.
[0057] Channel packager: A user who uses an application management platform for packaging.
[0058] Blockchain: Originated from the virtual currency trading system, it is essentially a shared database. The data or information stored in it has the characteristics of "unforgeable", "full traceability", "traceability", "openness and transparency", and "collective maintenance". Based on these characteristics, blockchain technology has laid a solid foundation of "trust", created a reliable "cooperation" mechanism, and has broad application prospects. It is composed of blocks, each of which stores three things: data, hash value of data, and hash value of the previous block. Each block has the hash value of the previous block to link the blocks together to form a blockchain. In the Bitcoin system, every transaction is broadcast to everyone, but the broadcast is encrypted information. The block generator elected by the consensus mechanism packages the information into blocks and tells everyone else, and everyone else counts this new block into the end of their respective blockchains.
[0059] DPOS: Delegated Proof of Stake (DPOS) is a blockchain consensus mechanism with the following characteristics: short block generation time and high efficiency. Block generators are selected only from the richest and most powerful people. The DPOS consensus mechanism rules are as follows: (1) The order of producers is randomly determined; (2) Blocks produced out of order are invalid; (3) Blocks are shuffled once a cycle to disrupt the original order.
[0060] At present, when the application agent distributes the application on various channels, it needs to connect to the SDK of each channel. The most common method is to connect an aggregate SDK to the application to generate a game mother package, and then use an automated script to replace the aggregate SDK in the game mother package with each channel SDK to generate multiple channel packages. This completes the access of the channel SDK. This process is called "packaging". One packaging can generate one or more channel packages. The number of channel packages is determined by the user. For example, select application A in the application management platform, and select the channel where application A will be released: channel B, channel C. After packaging, channel B package and channel C package can be generated at one time. Figure 1 As shown, Figure 1 The figure shows a process of packaging an application mother package, in which the application developer provides an application mother package, and multiple channel distributors provide their own channel demos, such as channel package A and channel package B in the figure. The application mother package is parsed to obtain the application body, and each channel package demo is parsed to obtain the channel SDK (UOSDK). The application body and channel SDK are merged to generate a channel package, thereby completing the packaging of the application.
[0061] The application management platform is designed to improve usability, expand the user range, and optimize the user experience. It is a platform formed by adding a graphical interface based on the "automatic replacement of SDK scripts". This platform consists of three parts: administrator backend (web), user client (exe software), and database.
[0062] Since the application developer has given the agency rights to the application agent, the application developer does not have the power to select channels and issue channel packages. Therefore, the application agent is required to select the distribution channel and complete the packaging and testing of the application. Due to resource security issues, it is generally the internal personnel of the application agent who use the application management platform to complete the packaging and issue the package to the distribution channel party to complete the application online. Figure 2 As shown, Figure 2 The flowchart of the application agent packaging channel package is shown. After receiving the application master package sent by the application developer, the application agent needs to perform self-inspection, testing, file transfer and other operations in each internal department, and finally generate a channel package and send it to the distribution channel party. It can be seen that for the application agent, the packaging process is very cumbersome, and because the first access to the application requires multiple packaging tests, the amount of files transferred between multiple departments is large, and the departments can only transfer files through network disks, emails, etc., resulting in low transmission efficiency.
[0063] If the application management platform is open to the outside world, for example, application developers, outsourcing companies, etc., external personnel can package and test the application through the application management platform, and send the tested channel package to the application agent, which can greatly reduce the high labor cost and low efficiency of the application agent when packaging. However, due to resource security issues, opening the application management platform to the outside world may lead to resource leakage or tampering. Therefore, it is necessary to solve the resource security problem before the application management platform can be opened to the outside world, and record the packaging process of each channel package to facilitate later verification and accident tracing.
[0064] Based on this, in this application, a blockchain-based data processing method is provided to solve the problems of high packaging cost and low efficiency of application agents. This application also involves a blockchain-based data processing device, a computing device, and a computer-readable storage medium, which are described in detail one by one in the following embodiments.
[0065] Figure 3 A flowchart of a blockchain-based data processing method applied to an application management platform according to an embodiment of the present application is shown, which specifically includes the following steps:
[0066] Step 302: Receive a channel package packaging request for a target application.
[0067] Among them, the application management platform can be understood as an application management platform that incorporates blockchain technology. This application management platform can be open to the outside world so that outsiders can operate the application management platform for packaging testing. The target application can be understood as the application to be packaged this time. In the embodiment of the present application, the target application takes a game application as an example. The application can also be other types of programs, for example, even communication applications, multimedia applications, etc.; the channel package packaging request can be understood as a packaging instruction for the target application. The channel package packaging request is a packaging instruction issued by the user to the target application. The channel package packaging request can carry the application parent package identification information and sample channel package identification information required by the target application when packaging.
[0068] In actual applications, the application management platform will receive multiple application master packages uploaded by the game developer. After receiving the channel package packaging request, it can determine which application master package to package based on the channel package packaging request, that is, determine which one is the target application. A target application can be distributed and operated on multiple channels. Therefore, the target application can generate multiple channel packages after packaging. In the embodiment of the present application, one channel package packaging request corresponds to one channel. For example, the target application needs to be distributed in three application stores, that is, there are three distribution channels. The target application needs to package three different channel packages, then three channel package packaging requests need to be issued, corresponding to the three distribution channels, and one channel package packaging request is used to package one channel package.
[0069] In a specific embodiment of the present application, when the application management platform receives a channel package packaging request for target application A sent by a user, the application management platform will package the target application A according to the channel package packaging request.
[0070] In actual applications, the application master package and sample channel package can be uploaded by the user before issuing a channel package packaging request, or can be uploaded by the user in advance. This application does not make any specific restrictions here. As long as the application management platform stores the application master package and sample channel package of the target application in the database of the application management platform before receiving the channel package packaging request for the target application.
[0071] Specifically, before receiving the channel package packaging request for the target application, it also includes:
[0072] Receive and save the target application parent package of the target application;
[0073] Receive and save at least one sample channel package.
[0074] In a specific embodiment of the present application, following the above example, the application management platform receives three application master packages uploaded by the application developer: A application.apk, B application.apk, C application.apk; and receives 10 sample channel packages uploaded by the application agent: 1 channel.apk, 2 channel.apk...10 channel.apk. The application management platform saves the received application master packages and sample channel packages to the database for subsequent selection and use.
[0075] Step 304: Based on the channel package packaging request, obtain the target application parent package and the target sample channel package of the target application.
[0076] Among them, the target application mother package can be understood as an application package containing the application body. The application mother package includes the application body and the aggregation SDK. By replacing the aggregation SDK in the application mother package with the sample channel package of the distribution channel, the channel package of the distribution channel can be generated. The sample channel package can be understood as the virtual channel package of the distribution channel. The sample channel package includes a virtual application body and a channel development package (channel SDK). By replacing the virtual application body in the sample channel package with the formal application body, the channel package of the distribution channel can be generated.
[0077] In actual applications, the database of the application management platform may store multiple application master packages of different applications and multiple sample channel packages of different channels. After receiving the channel package packaging request, it is necessary to determine the packaging object, i.e., the target application master package, and the distribution channel, i.e., the sample channel package, of the target application master package according to the channel package packaging request.
[0078] In a specific embodiment of the present application, following the above example, after the application management platform receives the channel package packaging request for the target application A, it determines the target application A and the target sample channel package in the database according to the channel package packaging request: 1 channel.apk.
[0079] In actual applications, the application management platform can determine the target application parent package and the target sample channel package respectively according to the application parent package identification information and the sample channel package identification information in the channel package packaging request. Specifically, based on the channel package packaging request, the target application parent package and the target sample channel package of the target application are obtained, including:
[0080] Obtaining the application parent package identification information and the sample channel package identification information in the channel package packaging request;
[0081] The target application parent package is determined according to the application parent package identification information, and the target sample channel package is determined according to the sample channel package identification information.
[0082] The application parent package identification information can be understood as the identification of the application parent package, which is unique. One application parent package identification can only represent one application parent package, that is, only one target application parent package can be determined based on one application parent package identification information. The sample channel package identification information can be understood as the identification of the sample channel package, which is also unique. That is, only one target sample channel package can be determined based on one sample channel package identification information.
[0083] In actual applications, the channel package packaging request can carry the application parent package identification information of the target application and the sample channel package identification information of the channel to be released. The identification information can be represented in a variety of ways. For example, the application parent package identification information can be the name of the application parent package: ID123, and the sample channel package identification information can be the name of the sample channel package: ID1. Or in another feasible case, a preset encoding algorithm can be used to encode the application parent package to generate a unique encoding value, and the encoding value is used as the identification of the application parent package. For example, the MD5 encoding algorithm is used to encode the application parent package to generate a 16-byte field, and the field is used as the identification information of the application parent package.
[0084] In a specific embodiment of the present application, following the above example, the application management platform receives a channel package packaging request for application target A, obtains the application parent package identification information m1 and the sample channel package identification information m2 in the channel package packaging request, determines the target application parent package A application.apk according to the application parent package identification information m1, and determines the sample channel package 10 channel.apk according to the sample channel package identification information m2.
[0085] Step 306: In response to the channel package packaging request, a target channel package is generated according to the target application parent package and the target sample channel package, and channel package attribute information corresponding to the target channel package is recorded.
[0086] Among them, the target channel package can be understood as the final generated package, that is, the package sent to the distribution channel for release and release. The channel package attribute information can be understood as the packaging attribute information of the target application mother package. The channel package attribute information includes: file information used to generate the channel package, channel package synthesizer information, channel package usage information, etc. According to the channel package attribute information, it can be obtained which user operates the application management platform to package, the time when the channel package is generated, the version information of the channel package, etc., so that when there is a problem with the channel package later, relevant information can be found in time to eliminate the problem. For example, after obtaining the generated channel package, the version of the channel package is incorrect, the version information in the channel package attribute information can be searched to obtain the version of the application mother package that generates the channel package and the version of the sample channel package, so as to solve the problem.
[0087] In actual applications, since the application management platform is open to external personnel, external personnel can use the application management platform to package channel packages. Therefore, in order to ensure the source and purpose of the channel package, the relevant information of the channel package can be recorded and saved to facilitate subsequent source verification of the channel package or to find and solve the problem in time when a problem occurs in the channel package.
[0088] In a specific embodiment of the present application, following the above example, in response to the channel package packaging request, a target channel package S is generated according to the target application parent package A application.apk and the sample channel package 10 channel.apk, and the channel package attribute information of the target channel package S is recorded.
[0089] In actual applications, it is necessary to merge the application body in the application master package and the channel development package in the sample channel package to generate a target channel package. Therefore, it is necessary to parse and extract the application master package and the sample channel package. Specifically, in response to the channel package packaging request, the target channel package is generated according to the target application master package and the target sample channel package, including:
[0090] Parsing the target application parent package to obtain the application body in the target application parent package;
[0091] Parsing the target sample channel package, and obtaining the channel development package in the target sample channel package;
[0092] The application body and the channel development package are combined to generate a target channel package.
[0093] Among them, the application body can be understood as the core file of the application. The application mother package includes the application body and the aggregate SDK. Parsing the target application mother package means splitting the target application into the application body and the aggregate SDK to obtain the application body. The channel development package can be understood as the SDK file of the distribution channel. The sample channel package includes the channel development package and the virtual application body (Demo.apk). Parsing the target sample channel package means splitting the target sample channel package into the virtual application body and the channel development package to obtain the channel development package.
[0094] In actual applications, in order to facilitate the troubleshooting and update maintenance of channel SDK access, a virtual application entity will be pre-connected to the sample channel package for debugging; similarly, a virtual channel SDK can also be connected to the application parent package for local channel launch and distribution testing of the application parent package.
[0095] In a specific embodiment of the present application, the target application parent package A application.apk is parsed to obtain the application body a in the target application parent package, the target sample channel package 10 channel.apk is parsed to obtain the 10 channel SDK in the target sample channel package, the application body a and the 10 channel SDK are merged to generate the target channel package S.
[0096] In practical applications, different synthetic information can be selected as the attribute information of the channel package. Specifically, the channel package attribute information corresponding to the target channel package is recorded, including:
[0097] Obtaining synthesis attribute information and synthesis files corresponding to the target channel package, wherein the synthesis file includes the target application parent package, the target sample channel package, and the target channel package;
[0098] Acquire the synthetic file identification information according to the synthetic file;
[0099] The channel package attribute information is generated according to the synthesized attribute information and the synthesized file identification information, and the channel package attribute information is recorded.
[0100] The synthesis attribute information can be understood as the basic information of the channel package. For example, the synthesis attribute information can include the synthesizer information of the channel package, the synthesis time information, the channel package usage information, etc. The synthesis file identification information can be understood as the identification information of the file required for the synthesis channel package. For example, if channel package a is generated by merging application master package b and sample channel package c, then the synthesis file identification information can be the identification information of application master package b and the identification information of sample channel package c. The synthesis file identification information can be understood as the unique identification of each synthesized file. For example, the identification information of application master package A is "ID123".
[0101] In practical applications, channel package attribute information can be generated from a variety of different information.
[0102] In a specific embodiment of the present application, the synthetic attribute information and synthetic files corresponding to the target channel package S are obtained, and the synthetic files are the application master package A, the target sample channel package 10, and the target channel package S. The identification information of each synthetic file is obtained, and the channel package attribute information is generated according to the synthetic attribute information and the synthetic file identification information, and the channel package attribute information is recorded, and the channel package attribute information is saved to the local or application management platform database.
[0103] Step 308: Upload the channel package attribute information to the blockchain.
[0104] Among them, uploading the channel package attribute information to the blockchain can utilize the tamper-proof nature of the blockchain to prevent the forgery of the channel package attribute information, and can prevent unauthorized external personnel from illegal packaging. At the same time, each node in the blockchain can query the attribute information of each channel package to achieve the purpose of collective maintenance.
[0105] From a technological perspective, blockchain involves many scientific and technological issues such as mathematics, cryptography, the Internet, and computer programming. From an application perspective, in simple terms, blockchain is a distributed shared ledger and database with the characteristics of decentralization, immutability, full traceability, traceability, collective maintenance, and openness and transparency. These characteristics ensure the "honesty" and "transparency" of blockchain and lay the foundation for blockchain to create trust. The rich application scenarios of blockchain are basically based on the ability of blockchain to solve the problem of information asymmetry and achieve collaborative trust and concerted action among multiple entities.
[0106] Specifically, uploading the channel package attribute information to the blockchain includes:
[0107] Receiving a blockchain upload instruction for the channel package attribute information, and obtaining the channel package type information in the channel package attribute information;
[0108] In a case where the channel package type information is of the first type, determining a target uploading account in the uploading account set;
[0109] The channel package attribute information is sent to the target terminal corresponding to the target upload account, so that the target terminal generates a target block according to the channel package attribute information, uploads the target block to the blockchain, and broadcasts the target block to each blockchain node of the blockchain.
[0110] Among them, the blockchain upload instruction can be understood as an instruction to upload the channel package attribute information. According to the blockchain upload instruction, the application management platform can upload the channel package attribute information to the blockchain so that each node in the blockchain can obtain the channel package attribute information. The upload account set can be understood as the account set of internal personnel of the company. The packaging action of the channel package can be performed by external personnel or internal personnel, but the uploading of the channel package attribute information to the blockchain can only be done by the application management platform logged in to the upload account of the internal personnel, that is, uploading the channel package attribute information can only be completed on the target terminal of the internal personnel. The channel package type information can be understood as the purpose information of the channel package, that is, whether the channel package is used for testing or formal online release. The first type can be set to the test type and the second type can be set to the formal type. The specific setting of the first type can be determined according to the actual situation.
[0111] The upload account can be understood as the account of the blockchain operator. Only the blockchain operator has the authority to upload blocks. The consensus mechanism can be set to reduce the number of operators, reduce the degree of decentralization, and narrow the selection range. The power of blockchain operation can be controlled by the internal personnel of the application agent to prevent external personnel from attacking the blockchain. In addition, the selection of operators has a certain range, so that internal personnel cannot damage or tamper with the blockchain, thereby improving the security of the blockchain. In actual applications, when external personnel use the application management platform to package the target application to generate a channel package, the terminal computing power of the upload account user will not be occupied. Only when the channel package attributes are uploaded to the blockchain, the terminal computing power of the upload account user will be occupied.
[0112] In a specific embodiment of the present application, following the above example, the application management platform receives a blockchain upload instruction, obtains the channel package type information in the channel package attribute information, and if the channel package type information is the first type, that is, the channel package is a formal package, then a target upload account is selected from the upload account set, and the channel package attribute information is sent to the target upload account, so that the target terminal uploads the target block to the blockchain.
[0113] In practical applications, in order to prevent illegal persons from attacking the blockchain, a voting ratio mechanism can also be set to improve the security of the blockchain. Specifically, the method also includes: allocating a preset voting weight to each uploading user in the uploading account set.
[0114] The preset voting weight can be understood as the voting ratio of each user. For example, if the voting weight of user A is 1, then each time user A casts a vote, the number of votes is recorded as 1; if the voting weight of user B is 10, then each time user B casts a vote, the number of votes is recorded as 10.
[0115] In actual applications, after an account modifies the blockchain, it needs to vote to confirm. When the number of votes in this vote exceeds 50% of the total votes, the account's modification is passed, that is, the blockchain is modified. However, when illegal personnel use technical means to obtain a certain number of terminals to vote, the security of the blockchain is difficult to guarantee. Therefore, the above problem can be prevented by adjusting the voting ratio mechanism.
[0116] The voting ratio mechanism is allocated according to the user's authority, which is essentially one vote per terminal. In this application, due to the small number of users, it is relatively easy to reach more than 50% of the CPU. For example, if the total number of users is 100, illegal personnel only need to purchase or rent 51 terminals to obtain the decision-making power of the chain. Therefore, the voting weight ratio is adjusted in this case, and the blockchain operator is 100 times. If there are 10 operators in total, the operator's votes account for 1,000 votes, then the illegal personnel will need at least 501 CPUs to successfully attack, and the attack cost has increased to nearly 10 times the original cost, thereby ensuring the security of the blockchain.
[0117] In a specific embodiment of the present application, the voting weight ratio of each blockchain upload account is adjusted to 500. Then, when there are 20 upload accounts in the blockchain, the number of votes of illegal persons needs to reach 5001 to have the authority to make changes to the blockchain.
[0118] The present application provides a data processing method based on blockchain, which is applied to an application management platform, including: receiving a channel package packaging request for a target application; based on the channel package packaging request, obtaining a target application master package and a target sample channel package of the target application; generating a target channel package according to the target application master package and the target sample channel package in response to the channel package packaging request, and recording the channel package attribute information corresponding to the target channel package; uploading the channel package attribute information to the blockchain. By generating the channel package packaging of the target application through the application management platform, the authority of the channel package packaging task can be given to external personnel other than the application agent, thereby reducing the manpower cost of the application agent, reducing the complex and cumbersome review process between departments, and reducing the amount of files transmitted between departments. In addition, the attribute information of each channel package is recorded, so that it is convenient to trace the information of each channel package in the later stage, which is convenient for users to troubleshoot problems and maintain and update applications.
[0119] Figure 4 A flowchart of a blockchain-based data processing method applied to a target terminal according to an embodiment of the present application is shown, which specifically includes the following steps:
[0120] Step 402: Receive channel package attribute information, and generate channel package upload data according to the channel package attribute information.
[0121] Among them, the channel package upload data can be understood as data suitable for blockchain data form. The data saved in the blockchain is a hash value encoded by the MD5 information digest algorithm. Therefore, it is necessary to encode the channel package attribute information to generate the channel package upload data, thereby completing the blockchain upload of the channel package attribute information.
[0122] In actual applications, the application management platform sends the channel package attribute information to the target terminal (blockchain operation manager terminal) according to the channel package attribute information upload instruction, and completes the uploading of the channel package attribute information on the target terminal.
[0123] In a specific embodiment of the present application, the target terminal receives the channel package attribute information sent by the application management platform, generates channel package upload data according to the channel package attribute information, and uploads the channel package upload data to complete the uploading of the channel package attribute information.
[0124] Specifically, generating channel package upload data according to the channel package attribute information includes:
[0125] Parsing the channel package attribute information to obtain synthesis attribute information and synthesis file identification information;
[0126] Encoding the synthetic file identification information to generate a synthetic file hash value corresponding to the synthetic file identification information;
[0127] Generate channel package upload data according to the synthesized attribute information and the synthesized file hash value.
[0128] The synthetic file hash value can be understood as the value generated by encoding the synthetic file identification information. The MD5 information digest algorithm can be used for encoding. The MD5 information digest algorithm is a widely used cryptographic hash function that can generate a 16-byte hash value to ensure the integrity and consistency of the transmitted information. For example, the identification information "ID123" of the application mother package A is encoded, and the encoded hash value is "78F6706C0135FCDF".
[0129] In practical applications, the identification information of the composite file may be information that has been encoded using the MD5 information digest algorithm, or may be a value expressed in other ways. If the identification information of the composite file is already a hash value, it may not be encoded. This may be determined based on the actual situation of the identification information of the composite file.
[0130] In a specific embodiment of the present application, following the above example, the channel package attribute information is parsed to obtain the synthesis attribute information and synthesis file identification information in the channel package attribute information. The synthesis attribute information includes the channel package synthesizer information, the channel package usage information, and the file name information of each synthesized file. The synthesis file identification information includes the application parent package identification information, the sample channel package identification information, and the target channel package identification information. The synthesis file identification information is encoded using the MD5 digest algorithm to generate a hash value for each synthesis file. The file name information of each synthesis file in the synthesis attribute information is matched with the hash value of each synthesis file, and other information in the synthesis attribute information is added to generate the channel package upload data.
[0131] Step 404: Obtain the last hash value of the last block in the blockchain.
[0132] The last block in the blockchain can be understood as the most recently generated block in the blockchain. By obtaining the hash value of the last block in the blockchain, the position of the current block to be generated can be determined and connected to the last block.
[0133] In a specific embodiment of the present application, the above example is used to obtain the final hash value of the final block Q3 in the blockchain.
[0134] Step 406: Generate a target block according to the channel package upload data and the end hash value.
[0135] Among them, the target block can be understood as the upload block of this channel package. The target block can store the block generation timestamp, channel package upload data, the hash value of the current block, and the hash value of the previous block.
[0136] In actual applications, before uploading the channel package attribute information to the blockchain, it is necessary to generate a block in the blockchain before the channel package attribute information can be added to the block to complete the chaining of the channel package attribute information.
[0137] In a specific embodiment of the present application, following the above example, a target block Q4 of the channel package attribute information is generated according to the channel package upload data and the end hash value of the end block Q3.
[0138] Specifically, generating a target block according to the channel package upload data and the end hash value includes:
[0139] Generate an initial block q4 according to the channel package upload data and the final hash value;
[0140] Encoding the initial block to obtain an initial hash value of the initial block;
[0141] A target block Q4 is generated according to the initial block and the initial hash value.
[0142] The initial block can be understood as a block generated locally, which is not added to the blockchain. The initial hash value can be understood as the hash value generated by the MD5 digest algorithm for the initial block.
[0143] In actual applications, the channel package upload data is the data stored in the initial block, and the end hash value is the data that determines the location of the initial block. The initial block can be generated based on the channel package upload data and the end hash value, and the channel package upload data and the end hash value are stored in the initial block. In addition, the initial block is encoded using the MD5 digest algorithm. After the initial hash value is generated, the target block can be generated based on the generated initial block and its initial hash value. The target block is the initial block on the chain.
[0144] In a specific embodiment of the present application, following the above example, the target terminal generates the initial block q4 of the attribute information of the channel package based on the channel package upload data and the end hash value of the end block Q3 in the blockchain, and encodes the initial block using the MD5 digest algorithm to generate an initial hash value. The target block Q4 can be generated based on the initial hash value and the initial block, and the target block is added to the tail of the blockchain to complete the on-chaining of the channel package attribute information.
[0145] Step 408: Upload the target block to the blockchain, and broadcast the target block to each blockchain node of the blockchain.
[0146] In actual applications, after the target terminal uploads the target block to the blockchain, it only completes the on-chain in the local blockchain, and needs to broadcast to each blockchain node in the blockchain to update the block of each blockchain node.
[0147] In a specific embodiment of the present application, after the target terminal t1 uploads the target block Q4 to the blockchain of t1, it broadcasts it in the blockchain network and adds the target block Q4 to the blocks of other blockchain nodes in the blockchain network to complete the data synchronization of each blockchain.
[0148] In actual applications, in the original virtual currency blockchain, in order to protect the privacy of user transactions, information is broadcast in encrypted ciphertext. In this application, in order to ensure that the attribute information of each channel package can be found and traced, plain text is used to broadcast to each blockchain node in the blockchain network, so that each blockchain node adds the block to its own blockchain.
[0149] Specifically, broadcasting the target block to each blockchain node of the blockchain includes:
[0150] The target block is broadcasted in plain text to each blockchain node of the blockchain.
[0151] Among them, broadcasting in plain text can be understood as not encrypting the broadcast message and sending it to each blockchain node in the blockchain.
[0152] In a specific embodiment of the present application, following the above example, the target terminal does not encrypt the target block, and broadcasts the message of adding the target block to the blockchain to each blockchain node in the blockchain network, so that each blockchain node adds the target block to its respective blockchain.
[0153] The present application provides a data processing method based on blockchain, which is applied to a target terminal and includes: receiving channel package attribute information, generating channel package upload data according to the channel package attribute information; obtaining the end hash value of the end block in the blockchain; generating a target block according to the channel package upload data and the end hash value; uploading the target block to the blockchain, and broadcasting the target block to each blockchain node of the blockchain. By performing the MD5 digest algorithm on the channel package attribute information, a corresponding hash value is generated to ensure the integrity of the channel package attribute information, prevent illegal personnel from modifying the channel package attribute information, and upload the channel package attribute information to the blockchain, so that the channel package attribute information can be collectively maintained, open and transparent, etc.
[0154] The following combination Figure 5 , taking the application of the blockchain-based data processing method provided by this application in a data processing system as an example, the blockchain-based data processing method is further explained. Figure 5 A flowchart of a blockchain-based data processing method applied to a data processing system provided by an embodiment of the present application is shown, which specifically includes the following steps:
[0155] Step 502: The application management platform receives a channel package packaging request for the target application.
[0156] In a specific embodiment of the present application, the game developer logs in to the application management platform and sends a channel package packaging request for game application A to the application management platform.
[0157] Step 504: The application management platform obtains the target application parent package and the target sample channel package of the target application based on the channel package packaging request.
[0158] In a specific embodiment of the present application, following the above example, the application management platform obtains the application parent package X and the sample channel package Y of the game application A according to the channel package packaging request.
[0159] Step 506: The application management platform generates a target channel package according to the target application parent package and the target sample channel package in response to the channel package packaging request, and records the channel package attribute information corresponding to the target channel package.
[0160] In a specific embodiment of the present application, following the above example, after receiving the channel package packaging request, the application management platform obtains the identification information of the application master package and the identification information of the sample channel package according to the channel package packaging request, thereby obtaining the application master package X and the sample channel package Y of the game application A in the database, and parsing the application master package X and the sample channel package Y, obtaining the game body in the application master package X and the channel development package in the sample channel package Y, merging the game body and the channel development package to generate a target channel package, which corresponds to the target channel. The synthesis file information, synthesizer information, and synthesis type information of the target channel package are recorded.
[0161] Step 508: The application management platform sends the channel package attribute information to the target terminal corresponding to the target upload account.
[0162] In a specific embodiment of the present application, following the above example, the application management platform sends the recorded channel package attribute information to the target terminal of the target upload account in the upload account set.
[0163] Step 510: The target terminal receives the channel package attribute information, and generates channel package upload data according to the channel package attribute information.
[0164] In a specific embodiment of the present application, following the above example, after the target terminal receives the channel package attribute information, it obtains the corresponding synthetic file identification information based on the synthetic file in the channel package attribute information, identifies the synthetic file identification information, generates a synthetic file hash value, and generates the channel package upload data based on the synthetic attribute information and the synthetic file hash value information in the channel package attribute information.
[0165] Step 512: The target terminal obtains the final hash value of the final block in the blockchain; and generates a target block according to the channel package upload data and the final hash value.
[0166] In a specific embodiment of the present application, following the above example, the target terminal obtains the final hash value Z of the final block K2 in the blockchain, and generates the target block K3 according to the channel package upload data and the final hash value.
[0167] Step 514: The target terminal uploads the target block to the blockchain, and broadcasts the target block to each blockchain node of the blockchain.
[0168] In a specific embodiment of the present application, following the above example, the target terminal adds the target block K3 to the end of the last block K2, that is, the target block is put on the chain, so that the channel package attribute information is put on the chain. And the result of this on-chain is broadcasted in plain text to each blockchain node in the blockchain, so that each blockchain node saves the target block K3 to its own last block.
[0169] The present application provides a blockchain-based data processing method for a data processing system, the system comprising: an application management platform and a target terminal, wherein the application management platform receives a channel package packaging request for a target application; based on the channel package packaging request, obtains a target application parent package and a target sample channel package of the target application; generates a target channel package according to the target application parent package and the target sample channel package in response to the channel package packaging request, and records channel package attribute information corresponding to the target channel package; uploads the channel package attribute information to the blockchain; the target terminal receives the channel package attribute information, generates channel package upload data according to the channel package attribute information; obtains the end hash value of the end block in the blockchain; generates a target block according to the channel package upload data and the end hash value; uploads the target block to the blockchain, and broadcasts the target block to each blockchain node of the blockchain. Through the blockchain-based application management platform, users other than application agents can use the application management platform to perform packaging and testing tasks, thereby reducing the labor costs of application agents and improving the efficiency of application online release. Based on the characteristics of blockchain, the generated channel package attribute information is guaranteed to be tamper-proof, preventing illegal personnel from destroying the channel package and thus damaging the interests of the application agent.
[0170] Corresponding to the above method embodiment, the present application also provides a data processing device embodiment based on blockchain, Figure 6 The following is a schematic diagram showing the structure of a data processing device based on blockchain applied to an application management platform provided by an embodiment of the present application. Figure 6 As shown, the device comprises:
[0171] The receiving module 602 is configured to receive a channel package packaging request for a target application;
[0172] The acquisition module 604 is configured to acquire the target application parent package and the target sample channel package of the target application based on the channel package packaging request;
[0173] The generating module 606 is configured to generate a target channel package according to the target application parent package and the target sample channel package in response to the channel package packaging request, and record channel package attribute information corresponding to the target channel package;
[0174] The upload module 608 is configured to upload the channel package attribute information to the blockchain.
[0175] Optionally, the acquisition module 604 is further configured to:
[0176] Obtaining the application parent package identification information and the sample channel package identification information in the channel package packaging request;
[0177] The target application parent package is determined according to the application parent package identification information, and the target sample channel package is determined according to the sample channel package identification information.
[0178] Optionally, the device further comprises:
[0179] The saving module is configured to receive and save the target application parent package of the target application; and receive and save at least one sample channel package.
[0180] Optionally, the generating module 606 is further configured to:
[0181] Parsing the target application parent package to obtain the application body in the target application parent package;
[0182] Parsing the target sample channel package, and obtaining the channel development package in the target sample channel package;
[0183] The application body and the channel development package are combined to generate a target channel package.
[0184] Optionally, the generating module 606 is further configured to:
[0185] Obtaining synthesis attribute information and synthesis files corresponding to the target channel package, wherein the synthesis file includes the target application parent package, the target sample channel package, and the target channel package;
[0186] Acquire the synthetic file identification information according to the synthetic file;
[0187] The channel package attribute information is generated according to the synthesized attribute information and the synthesized file identification information, and the channel package attribute information is recorded.
[0188] Optionally, the upload module 608 is further configured to:
[0189] Receiving a blockchain upload instruction for the channel package attribute information, and obtaining the channel package type information in the channel package attribute information;
[0190] In a case where the channel package type information is of the first type, determining a target uploading account in the uploading account set;
[0191] The channel package attribute information is sent to the target terminal corresponding to the target upload account, so that the target terminal generates a target block according to the channel package attribute information, uploads the target block to the blockchain, and broadcasts the target block to each blockchain node of the blockchain.
[0192] The present application provides a data processing device based on blockchain, which is applied to an application management platform and includes: a receiving module 602, which is configured to receive a channel package packaging request for a target application; an acquisition module 604, which is configured to obtain a target application master package and a target sample channel package of the target application based on the channel package packaging request; a generation module 606, which is configured to generate a target channel package according to the target application master package and the target sample channel package in response to the channel package packaging request, and record the channel package attribute information corresponding to the target channel package; an upload module 608, which is configured to upload the channel package attribute information to the blockchain. By generating the channel package packaging of the target application through the application management platform, the authority of the channel package packaging task can be given to external personnel other than the application agent, thereby reducing the manpower cost of the application agent, reducing the complex and cumbersome review process between departments and reducing the amount of files transmitted between departments, and recording the attribute information of each channel package, so that it is convenient to trace the information of each channel package in the later stage, and convenient for users to troubleshoot problems and maintain and update applications.
[0193] Corresponding to the above method embodiment, the present application also provides a data processing device embodiment based on blockchain, Figure 7 The following is a schematic diagram showing the structure of a blockchain-based data processing device applied to a target terminal according to an embodiment of the present application. Figure 7 As shown, the device comprises:
[0194] The receiving module 702 is configured to receive the channel package attribute information and generate the channel package upload data according to the channel package attribute information;
[0195] The acquisition module 704 is configured to obtain the last hash value of the last block in the blockchain;
[0196] A generating module 706 is configured to generate a target block according to the channel package upload data and the end hash value;
[0197] The upload module 708 is configured to upload the target block to the blockchain and broadcast the target block to each blockchain node of the blockchain.
[0198] Optionally, the receiving module 702 is further configured to:
[0199] Parsing the channel package attribute information to obtain synthesis attribute information and synthesis file identification information;
[0200] Encoding the synthetic file identification information to generate a synthetic file hash value corresponding to the synthetic file identification information;
[0201] Generate channel package upload data according to the synthesized attribute information and the synthesized file hash value.
[0202] Optionally, the generating module 706 is further configured to:
[0203] Generate an initial block according to the channel package upload data and the end hash value;
[0204] Encoding the initial block to obtain an initial hash value of the initial block;
[0205] A target block is generated according to the initial block and the initial hash value.
[0206] Optionally, the generating module 706 is further configured to:
[0207] The target block is broadcasted in plain text to each blockchain node of the blockchain.
[0208] The present application provides a data processing device based on blockchain for a target terminal, the device comprising: a receiving module 702, configured to receive channel package attribute information, and generate channel package upload data according to the channel package attribute information; an acquisition module 704, configured to obtain the end hash value of the end block in the blockchain; a generation module 706, configured to generate a target block according to the channel package upload data and the end hash value; an upload module 708, configured to upload the target block to the blockchain, and broadcast the target block to each blockchain node of the blockchain. By performing the MD5 digest algorithm on the channel package attribute information, a corresponding hash value is generated to ensure the integrity of the channel package attribute information, prevent illegal personnel from modifying the channel package attribute information, and upload the channel package attribute information to the blockchain, so that the channel package attribute information can be collectively maintained, open and transparent, etc.
[0209] Corresponding to the above method embodiment, the present application also provides a data processing system embodiment based on blockchain, Figure 8 The following is a schematic diagram showing the structure of a data processing system based on blockchain provided by an embodiment of the present application. Figure 8 As shown, the device includes: an application management platform 802, a target terminal 804, wherein:
[0210] The application management platform 802 is configured to receive a channel package packaging request for a target application; based on the channel package packaging request, obtain a target application parent package and a target sample channel package of the target application; in response to the channel package packaging request, generate a target channel package according to the target application parent package and the target sample channel package, and record channel package attribute information corresponding to the target channel package; upload the channel package attribute information to the blockchain;
[0211] The target terminal 804 is configured to receive channel package attribute information, generate channel package upload data according to the channel package attribute information; obtain the end hash value of the end block in the blockchain; generate a target block according to the channel package upload data and the end hash value; upload the target block to the blockchain, and broadcast the target block to each blockchain node of the blockchain.
[0212] The present application provides a blockchain-based data processing system, which enables users other than application agents to use the application management platform to perform packaging and testing tasks through a blockchain-based application management platform, thereby reducing the labor costs of application agents and improving the efficiency of application online release. Based on the characteristics of blockchain, it ensures that the generated channel package attribute information cannot be tampered with, preventing illegal personnel from destroying the channel package and thus damaging the interests of the application agent.
[0213] The above is a schematic scheme of the data processing device based on blockchain of this embodiment. It should be noted that the technical scheme of the data processing device based on blockchain and the technical scheme of the data processing method based on blockchain belong to the same concept, and the details of the technical scheme of the data processing device based on blockchain that are not described in detail can be found in the description of the technical scheme of the data processing method based on blockchain.
[0214] Fig. 9 The structure block diagram of a computing device 900 provided according to an embodiment of the present application is shown. The components of the computing device 900 include but are not limited to a memory 910 and a processor 920. The processor 920 is connected to the memory 910 via a bus 930, and the database 950 is used to store data.
[0215] The computing device 900 also includes an access device 940 that enables the computing device 900 to communicate via one or more networks 960. Examples of these networks include a public switched telephone network (PSTN), a local area network (LAN), a wide area network (WAN), a personal area network (PAN), or a combination of communication networks such as the Internet. The access device 940 may include one or more of any type of network interface (e.g., a network interface card (NIC)) that is wired or wireless, such as an IEEE 802.11 wireless local area network (WLAN) wireless interface, a World Wide Interoperability for Microwave Access (Wi-MAX) interface, an Ethernet interface, a universal serial bus (USB) interface, a cellular network interface, a Bluetooth interface, a near field communication (NFC) interface, and the like.
[0216] In one embodiment of the present application, the above components of the computing device 900 and Fig. 9 Other components not shown in the figure may also be connected to each other, for example, via a bus. It should be understood that Fig. 9The computing device structure block diagram shown is only for the purpose of illustration, and is not intended to limit the scope of the present application. Those skilled in the art may add or replace other components as needed.
[0217] The computing device 900 may be any type of stationary or mobile computing device, including a mobile computer or mobile computing device (e.g., a tablet computer, a personal digital assistant, a laptop computer, a notebook computer, a netbook, etc.), a mobile phone (e.g., a smart phone), a wearable computing device (e.g., a smart watch, smart glasses, etc.), or other types of mobile devices, or a stationary computing device such as a desktop computer or PC. The computing device 900 may also be a mobile or stationary server.
[0218] Among them, when the processor 920 executes the computer instructions, it implements the steps of the blockchain-based data processing method.
[0219] The above is a schematic scheme of a computing device of this embodiment. It should be noted that the technical scheme of the computing device and the technical scheme of the data processing method based on blockchain are of the same concept, and the details not described in detail in the technical scheme of the computing device can be found in the description of the technical scheme of the data processing method based on blockchain.
[0220] An embodiment of the present application also provides a computer-readable storage medium storing computer instructions, which, when executed by a processor, implement the steps of the blockchain-based data processing method as described above.
[0221] The above is a schematic scheme of a computer-readable storage medium of this embodiment. It should be noted that the technical scheme of the storage medium and the technical scheme of the data processing method based on blockchain are of the same concept, and the details not described in detail in the technical scheme of the storage medium can be found in the description of the technical scheme of the data processing method based on blockchain.
[0222] The above describes specific embodiments of the present application. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the embodiments and still achieve the desired results. In addition, the processes depicted in the accompanying drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
[0223] The computer instructions include computer program codes, which may be in source code form, object code form, executable files or some intermediate forms, etc. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, USB flash drive, mobile hard disk, magnetic disk, optical disk, computer memory, read-only memory (ROM), random access memory (RAM), electric carrier signal, telecommunication signal and software distribution medium, etc. It should be noted that the content contained in the computer-readable medium may be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdiction. For example, in some jurisdictions, according to legislation and patent practice, computer-readable media do not include electric carrier signals and telecommunication signals.
[0224] It should be noted that, for the above-mentioned 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 the present application is not limited by the described action sequence, because according to the present application, certain steps can be performed in other sequences 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 the present application.
[0225] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0226] The preferred embodiments of the present application disclosed above are only used to help explain the present application. The optional embodiments do not describe all the details in detail, nor do they limit the invention to the specific implementation methods described. Obviously, many modifications and changes can be made according to the content of the present application. The present application selects and specifically describes these embodiments in order to better explain the principles and practical applications of the present application, so that those skilled in the art can understand and use the present application well. The present application is only limited by the claims and their full scope and equivalents.
Claims
1. A data processing method based on blockchain, characterized in that: Applied to application management platforms, including: Receive a channel package packaging request for a target application; Based on the channel package packaging request, obtain a target application parent package and a target sample channel package of the target application; In response to the channel package packaging request, a target channel package is generated according to the target application parent package and the target sample channel package, and channel package attribute information corresponding to the target channel package is recorded; Uploading the channel package attribute information to the blockchain; Wherein, in response to the channel package packaging request, a target channel package is generated according to the target application parent package and the target sample channel package, and channel package attribute information corresponding to the target channel package is recorded, including: Obtain synthesis attribute information and synthesis files corresponding to the target channel package, wherein the synthesis attribute information includes channel package synthesizer information, synthesis time information, and channel package usage information, and the synthesis file includes the target application master package, the target sample channel package, and the target channel package; Acquire the synthetic file identification information according to the synthetic file; The channel package attribute information is generated according to the synthesized attribute information and the synthesized file identification information, and the channel package attribute information is recorded.
2. The data processing method based on blockchain according to claim 1, characterized in that: Based on the channel package packaging request, obtaining a target application parent package and a target sample channel package of the target application includes: Obtaining the application parent package identification information and the sample channel package identification information in the channel package packaging request; The target application parent package is determined according to the application parent package identification information, and the target sample channel package is determined according to the sample channel package identification information.
3. The data processing method based on blockchain according to claim 1, characterized in that: Before receiving a channel package packaging request for a target application, the following is also included: Receive and save the target application parent package of the target application; Receive and save at least one sample channel package.
4. The data processing method based on blockchain according to claim 1, characterized in that: In response to the channel package packaging request, generating a target channel package according to the target application parent package and the target sample channel package, including: Parsing the target application parent package to obtain the application body in the target application parent package; Parsing the target sample channel package, and obtaining the channel development package in the target sample channel package; The application body and the channel development package are combined to generate a target channel package.
5. The data processing method based on blockchain according to claim 4, characterized in that: Uploading the channel package attribute information to the blockchain, including: Receiving a blockchain upload instruction for the channel package attribute information, and obtaining the channel package type information in the channel package attribute information; In the case where the channel package type information is of the first type, determining a target uploading account in an uploading account set; wherein the first type includes a formal package; The channel package attribute information is sent to the target terminal corresponding to the target upload account, so that the target terminal generates a target block according to the channel package attribute information, uploads the target block to the blockchain, and broadcasts the target block to each blockchain node of the blockchain.
6. The data processing method based on blockchain according to claim 5, characterized in that: The method further includes: allocating a preset voting weight to each uploading user in the uploading account set.
7. A data processing method based on blockchain, characterized in that: Applied to target terminals, including: receiving channel package attribute information, and generating channel package upload data according to the channel package attribute information; Get the last hash value of the last block in the blockchain; Generate a target block according to the channel package upload data and the end hash value; Upload the target block to the blockchain, and broadcast the target block to each blockchain node of the blockchain; The receiving of channel package attribute information and the generating of channel package upload data according to the channel package attribute information include: Parsing the channel package attribute information to obtain synthesis attribute information and synthesis file identification information; wherein the synthesis attribute information includes channel package synthesizer information, synthesis time information, and channel package purpose information; Encoding the synthetic file identification information to generate a synthetic file hash value corresponding to the synthetic file identification information; Generate channel package upload data according to the synthesized attribute information and the synthesized file hash value.
8. The data processing method based on blockchain according to claim 7, characterized in that: Generating a target block according to the channel package upload data and the end hash value, including: Generate an initial block according to the channel package upload data and the end hash value; Encoding the initial block to obtain an initial hash value of the initial block; A target block is generated according to the initial block and the initial hash value.
9. The data processing method based on blockchain according to claim 7, characterized in that: Broadcasting the target block to each blockchain node of the blockchain includes: The target block is broadcasted in plain text to each blockchain node of the blockchain.
10. A data processing method based on blockchain, characterized in that: Applied to a data processing system, the system comprises: an application management platform, a target terminal, wherein: The application management platform receives a channel package packaging request for a target application; based on the channel package packaging request, obtains a target application master package and a target sample channel package of the target application; generates a target channel package according to the target application master package and the target sample channel package in response to the channel package packaging request, and records channel package attribute information corresponding to the target channel package; and uploads the channel package attribute information to the blockchain; The target terminal receives the channel package attribute information and generates channel package upload data according to the channel package attribute information; Obtaining the final hash value of the final block in the blockchain; generating a target block according to the channel package upload data and the final hash value; uploading the target block to the blockchain, and broadcasting the target block to each blockchain node of the blockchain; Wherein, in response to the channel package packaging request, a target channel package is generated according to the target application parent package and the target sample channel package, and channel package attribute information corresponding to the target channel package is recorded, including: Obtain synthesis attribute information and synthesis files corresponding to the target channel package, wherein the synthesis attribute information includes channel package synthesizer information, synthesis time information, and channel package usage information, and the synthesis file includes the target application master package, the target sample channel package, and the target channel package; Acquire the synthetic file identification information according to the synthetic file; Generate the channel package attribute information according to the synthesized attribute information and the synthesized file identification information, and record the channel package attribute information; The target terminal receives the channel package attribute information, and generates the channel package upload data according to the channel package attribute information, including: Parsing the channel package attribute information to obtain synthesis attribute information and synthesis file identification information; wherein the synthesis attribute information includes channel package synthesizer information, synthesis time information, and channel package purpose information; Encoding the synthetic file identification information to generate a synthetic file hash value corresponding to the synthetic file identification information; Generate channel package upload data according to the synthesized attribute information and the synthesized file hash value.
11. A data processing device based on blockchain, characterized in that: Applied to application management platforms, including: A receiving module, configured to receive a channel package packaging request for a target application; An acquisition module is configured to acquire a target application parent package and a target sample channel package of the target application based on the channel package packaging request; A generation module, configured to generate a target channel package according to the target application parent package and the target sample channel package in response to the channel package packaging request, and record channel package attribute information corresponding to the target channel package; An uploading module, configured to upload the channel package attribute information to the blockchain; Wherein, in response to the channel package packaging request, a target channel package is generated according to the target application parent package and the target sample channel package, and channel package attribute information corresponding to the target channel package is recorded, including: Obtain synthesis attribute information and synthesis files corresponding to the target channel package, wherein the synthesis attribute information includes channel package synthesizer information, synthesis time information, and channel package usage information, and the synthesis file includes the target application master package, the target sample channel package, and the target channel package; Acquire the synthetic file identification information according to the synthetic file; The channel package attribute information is generated according to the synthesized attribute information and the synthesized file identification information, and the channel package attribute information is recorded.
12. A data processing device based on blockchain, characterized in that: Applied to target terminals, including: A receiving module, configured to receive channel package attribute information and generate channel package upload data according to the channel package attribute information; An acquisition module is configured to obtain a final hash value of a final block in the blockchain; A generation module, configured to generate a target block according to the channel package upload data and the end hash value; An uploading module is configured to upload the target block to the blockchain and broadcast the target block to each blockchain node of the blockchain; The receiving of channel package attribute information and the generating of channel package upload data according to the channel package attribute information include: Parsing the channel package attribute information to obtain synthesis attribute information and synthesis file identification information; wherein the synthesis attribute information includes channel package synthesizer information, synthesis time information, and channel package purpose information; Encoding the synthetic file identification information to generate a synthetic file hash value corresponding to the synthetic file identification information; Generate channel package upload data according to the synthesized attribute information and the synthesized file hash value.
13. A data processing system based on blockchain, characterized in that: The system includes: an application management platform and a target terminal, wherein: The application management platform is configured to receive a channel package packaging request for a target application; based on the channel package packaging request, obtain a target application parent package and a target sample channel package of the target application; in response to the channel package packaging request, generate a target channel package according to the target application parent package and the target sample channel package, and record channel package attribute information corresponding to the target channel package; upload the channel package attribute information to the blockchain; The target terminal is configured to receive channel package attribute information, generate channel package upload data according to the channel package attribute information; obtain the end hash value of the end block in the blockchain; generate a target block according to the channel package upload data and the end hash value; upload the target block to the blockchain, and broadcast the target block to each blockchain node of the blockchain; Wherein, in response to the channel package packaging request, a target channel package is generated according to the target application parent package and the target sample channel package, and channel package attribute information corresponding to the target channel package is recorded, including: Obtain synthesis attribute information and synthesis files corresponding to the target channel package, wherein the synthesis attribute information includes channel package synthesizer information, synthesis time information, and channel package usage information, and the synthesis file includes the target application master package, the target sample channel package, and the target channel package; Acquire the synthetic file identification information according to the synthetic file; Generate the channel package attribute information according to the synthesized attribute information and the synthesized file identification information, and record the channel package attribute information; The target terminal receives the channel package attribute information, and generates the channel package upload data according to the channel package attribute information, including: Parsing the channel package attribute information to obtain synthesis attribute information and synthesis file identification information; wherein the synthesis attribute information includes channel package synthesizer information, synthesis time information, and channel package purpose information; Encoding the synthetic file identification information to generate a synthetic file hash value corresponding to the synthetic file identification information; Generate channel package upload data according to the synthesized attribute information and the synthesized file hash value.
14. A computing device comprising a memory, a processor, and computer instructions stored in the memory and executable on the processor, characterized in that: When the processor executes the computer instructions, the steps of the method described in any one of claims 1 to 6 or 7 to 9 are implemented.
15. A computer-readable storage medium storing computer instructions, characterized in that: When the computer instructions are executed by a processor, the steps of the method described in any one of claims 1 to 6 or 7 to 9 are implemented.
16. A computer program product comprising computer instructions, characterized in that: When the computer instructions are executed by a processor, the steps of the method described in any one of claims 1 to 6 or 7 to 9 are implemented.
Citation Information
Patent Citations
Channel package packaging method and device and computer equipment
CN112416353A
Channel package generation method and device, storage medium and electronic equipment
CN112988176A