Application generation method and apparatus, electronic device, and storage medium

By generating and processing application operation data on the blockchain, the problems of complexity and cross-platform adaptation in traditional application development are solved, enabling rapid and customized cross-platform application generation.

CN111443976BActive Publication Date: 2025-11-07TENCENT TECHNOLOGY (SHENZHEN) CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202010236449.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-03-30
Publication Date
2025-11-07
Estimated Expiration
2040-05-15

AI Technical Summary

Technical Problem

Traditional application development requires support from third-party operating systems, which leads to complex development and large data processing volumes, making it difficult to achieve cross-platform adaptation.

Method used

By sending the target interface template to the user terminal, the operation interface of the distributed application is generated, and the operation data is stored in the blockchain. The blockchain processing module is used to transform and process the data, and the target application code is generated according to the preset platform identifier and format framework relationship. After signing, it is sent to the user terminal to achieve cross-platform generation and operation.

Benefits of technology

It reduces the number of data processing steps and the amount of data processed in application development and design, enables the rapid generation of customized and cross-platform applications, and avoids dependence on third-party systems.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN111443976B_ABST
    Figure CN111443976B_ABST
Patent Text Reader

Abstract

The application discloses an application program generation method and device, electronic equipment and storage medium. The method comprises the following steps: sending a target interface template to a user terminal, so that the user terminal generates an operation interface of a distributed application program according to the target interface template; receiving an operation request for the operation interface, storing operation data in a block chain, and generating intermediate code data of the distributed application program; receiving a conversion instruction from the user terminal, obtaining the intermediate code data, wherein the conversion instruction comprises a target platform identifier, a block chain network identifier and user key information; sending the intermediate code data and the user key information to a block chain processing module corresponding to the block chain network identifier for conversion processing operation according to the block chain network identifier, and obtaining target application program code data; and sending the target application program code data to the user terminal after signing the target application program code data by using a public key of the user terminal.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of blockchains, and in particular to an application program generation method and device, an electronic device, and a storage medium. BACKGROUND

[0002] With the development of electronic devices, application programs have emerged to provide convenience and interest for users in various aspects.

[0003] Traditional application programs obtain data and process data by requesting a server, and the development and operation of the application programs need the support of a third-party operating system to realize a user-oriented operation interface. In order to adapt to different operating systems, the corresponding application program development design data processing steps are complex, the data processing amount is large, and the development of the application program is greatly limited. SUMMARY

[0004] The present application provides an application program generation method and device, an electronic device, and a storage medium.

[0005] In a first aspect, an application program generation method is provided, comprising:

[0006] sending a target interface template to a user terminal to enable the user terminal to generate an operation interface of a distributed application program according to the target interface template;

[0007] receiving an operation request of the operation interface from the user terminal, storing operation data in a blockchain, and generating intermediate code data of the distributed application program according to the operation data;

[0008] receiving a conversion instruction from the user terminal, obtaining the intermediate code data, and the conversion instruction comprising a target platform identifier, a blockchain network identifier, and user key information;

[0009] sending the intermediate code data and the user key information to a blockchain processing module corresponding to the blockchain network identifier for conversion processing operation according to the corresponding relationship between the preset platform identifier and the application program format framework, identifying an identifier in the intermediate code data to extract fixed parameters in the intermediate code data and bring them into the application program format framework corresponding to the target platform identifier, and calling a compiling tool for compiling to obtain target application program code data; and signing the target application program code data using a public key of the user terminal and sending the target application program code data to the user terminal.

[0010] In another aspect, another application program generation method is provided, comprising:

[0011] receiving a target interface template from a background management end, and generating an operation interface of a distributed application according to the target interface template;

[0012] sending an operation request for the operation interface to the background management end, and in the case of receiving an allowed operation instruction from the background management end, performing an operation corresponding to the operation request, the operation request being used for the background management end to generate operation data and obtain target application program code data through a block chain processing module, the target application program code data being applicable to a target platform specified by a user end;

[0013] receiving the target application program code data, parsing the target application program code data, and outputting target application program content.

[0014] In another aspect, an application program generation device is provided, comprising:

[0015] a transmission module configured to send a target interface template to a user end, so that the user end generates an operation interface of a distributed application according to the target interface template;

[0016] The transmission module is further configured to receive an operation request for the operation interface from the user end, and a processing module is configured to generate operation data and store the operation data in a block chain, and generate intermediate code data of the distributed application according to the operation data;

[0017] The transmission module is further configured to receive a conversion instruction from the user end, and obtain the intermediate code data, the conversion instruction comprising a target platform identifier, a block chain network identifier, and user key information;

[0018] The processing module is further configured to, according to the block chain network identifier, send the intermediate code data and the user key information to a block chain processing module corresponding to the block chain network identifier for conversion processing operation, the conversion processing operation comprising: after the block chain processing module verifies the user key information, determining an application program format framework corresponding to the target platform identifier according to a preset correspondence between platform identifiers and application program format frameworks; identifying an identifier in the intermediate code data to extract fixed parameters in the intermediate code data and bring them into the application program format framework corresponding to the target platform identifier, and calling a compiling tool for compiling to obtain target application program code data; and sending the target application program code data to the user end after signing the target application program code data using a public key of the user end.

[0019] In another aspect, another application program generation device is provided, comprising:

[0020] a transmission module configured to receive a target interface template from a background management end;

[0021] a processing module configured to generate an operation interface of a distributed application according to the target interface template;

[0022] The transmission module is further configured to send an operation request for the operation interface to the background management end;

[0023] The processing module is further configured to execute an operation corresponding to the operation request in a case where an allowed operation instruction from the background management end is received, the operation request being used for the background management end to generate operation data and to obtain target application code data through a block chain processing module, the target application code data being applicable to a target platform specified by a user end;

[0024] The transmission module is further configured to receive the target application code data; and the processing module is further configured to parse the target application code data and output target application content.

[0025] In another aspect, an electronic device is provided, comprising an input device and an output device, characterized in that further comprising: a processor adapted to implement one or more instructions; and a computer storage medium, the computer storage medium storing one or more instructions, the one or more instructions being adapted to be loaded and executed by the processor to implement the application generation method according to any one of the preceding aspects.

[0026] In another aspect, a computer storage medium is provided, the computer storage medium storing one or more instructions, the one or more instructions being adapted to be loaded and executed by a processor to implement the steps of the application generation method according to any one of the preceding aspects and any possible implementation thereof.

[0027] The embodiment of the application sends a target interface template to a user terminal, so that the user terminal generates an operation interface of a distributed application according to the target interface template, receives an operation request of the operation interface of the user terminal, stores operation data in a blockchain, and generates intermediate code data of the distributed application according to the operation data, receives a conversion instruction from the user terminal, obtains the intermediate code data, the conversion instruction includes a target platform identifier, a blockchain network identifier and user key information, and then sends the intermediate code data and the user key information to a blockchain processing module corresponding to the blockchain network identifier for conversion processing operation, wherein the conversion processing operation can include: after the user key information is verified by the blockchain processing module, determining an application format framework corresponding to the target platform identifier according to a preset correspondence between the platform identifier and the application format framework; identifying an identifier in the intermediate code data to extract fixed parameters in the intermediate code data and bring them into the application format framework corresponding to the target platform identifier and call a compiling tool for compiling to obtain target application code data, and then the target application code data can be signed by using a public key of the user terminal and sent to the user terminal, data processing and interaction in development are performed through the blockchain, the data authenticity is ensured, the preset template is called and the operation and running are controlled by using the smart contract, the application development design data processing steps and the data processing amount can be reduced, the application customization is realized, the application framework is converted to make the development no longer limited to the third-party system, and the cross-platform generation and running of the application can be quickly realized. BRIEF DESCRIPTION OF DRAWINGS

[0028] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the background art, the drawings needed to be used in the embodiments of the present application or the background art will be described below.

[0029] Figure 1A A structural schematic diagram of a data sharing system provided by the embodiment of the present application;

[0030] Figure 1B A structural schematic diagram of a blockchain provided by the embodiment of the present application;

[0031] Figure 1C A node interaction schematic diagram of a blockchain provided by the embodiment of the present application;

[0032] Figure 2 A flowchart of an application generation method provided by the embodiment of the present application;

[0033] Figure 3 A flowchart of another application generation method provided by the embodiment of the present application;

[0034] Figure 4 A structural schematic diagram of an application program generation device provided by an embodiment of the present application is shown in FIG. 1.

[0035] Figure 5 A structural schematic diagram of another application program generation device provided by an embodiment of the present application is shown in FIG. 2.

[0036] Figure 6 A structural schematic diagram of an electronic device provided by an embodiment of the present application is shown in FIG. 3. DETAILED DESCRIPTION

[0037] In order to enable persons skilled in the art to better understand the present application, the technical solutions in the embodiments of the present application will be described clearly and completely below with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are only some of the embodiments of the present application, but not all the embodiments of the present application. Based on the embodiments in the present application, all other embodiments obtained by persons skilled in the art without creative work fall within the scope of protection of the present application.

[0038] The terms "first", "second", and the like in the specification of the present application and the above-described drawings are used to distinguish different objects, and are not used to describe a particular order. In addition, the terms "include" and "have" and any variations thereof are intended to cover non-exclusive inclusion. For example, a process, method, system, product or device including a series of steps or units is not limited to the listed steps or units, but can optionally include other steps or units not listed or can optionally include other steps or units inherent to the process, method, product or device.

[0039] Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the present application. The appearance of the phrase in various places in the specification is not necessarily all referring to the same embodiment, nor is it necessarily referring to a particular embodiment that is "preferred" over other embodiments. It will be explicitly understood by one of ordinary skill in the art that the embodiments described herein can be combined with other embodiments.

[0040] Reference is made to Figure 1AThe data sharing system shown in the figure is a system for data sharing between nodes, which can include a plurality of nodes 101, which can be referred to as clients in the data sharing system. Each node 101 can receive input information during normal operation and maintain shared data in the data sharing system based on the received input information. To ensure information exchange in the data sharing system, each node in the data sharing system can have an information connection between nodes, and information can be transmitted between nodes through the information connection. For example, when any node in the data sharing system receives input information, other nodes in the data sharing system can obtain the input information according to a consensus algorithm, store the input information as data in the shared data, and ensure that the data stored on all nodes in the data sharing system is consistent.

[0041] Each node in the data sharing system has a corresponding node identifier, and each node in the data sharing system can store the node identifiers of other nodes in the data sharing system, so that the generated block can be broadcast to other nodes in the data sharing system according to the node identifiers of other nodes. Each node can maintain a node identifier list as shown in the following table, and store the node name and node identifier in the node identifier list. The node identifier can be an IP (Internet Protocol) address or any other information that can be used to identify the node. In Table 1, only the IP address is used as an example for illustration.

[0042] Node name Node identification Node 1 117.114.151.174 Node 2 117.116.189.145 … … Node N 119.123.789.258

[0043] Each node in the data sharing system stores a same block chain. The block chain is composed of a plurality of blocks, as shown in Figure 1B The block chain is composed of a plurality of blocks, the genesis block includes a block header and a block body, the block header stores an input information feature value, a version number, a timestamp and a difficulty value, and the block body stores input information; the next block of the genesis block takes the genesis block as the parent block, the next block also includes a block header and a block body, the block header stores the input information feature value of the current block, the block header feature value of the parent block, the version number, the timestamp and the difficulty value, and so on, so that the block data stored in each block in the block chain is associated with the block data stored in the parent block, ensuring the security of the input information in the block.

[0044] The blockchain can include a blockchain underlying platform, a platform product service layer, and an application service layer. The platform product service layer provides basic capabilities and implementation frameworks for typical applications. Based on the basic capabilities, developers can add business characteristics to complete the blockchain implementation of business logic. The application service layer provides application services based on the blockchain solution for business participants to use.

[0045] The distributed application in the embodiments of the present application, which can also be referred to as a decentralized application (DApp), is an Internet application. Like ordinary applications (Apps), the biggest difference is that DApps run on a decentralized network, that is, a blockchain network, and there is no centralized node in the network that can completely control the DApp. Traditional applications are centralized and need to request a server to obtain data and process data. The blockchain is the underlying environment for the application to run, and has the advantage of blockchain support.

[0046] DApp is decentralized and can run completely automatically. In order to be able to use these DApps well, special Ethereum browsers are needed, such as Augur, an Ethereum platform for decentralized market prediction, which further reduces the risk of intrusion.

[0047] In order to better illustrate the method in the embodiments of the present application, refer to Figure 1C , Figure 1C A DApp system schematic diagram provided by the embodiments of the present application. As Figure 1C shown, the DApp system and the smart contract can be deployed in the data sharing system, which can include multiple user terminals. The application program generation method in the embodiments of the present application can be realized by interacting with the background management end, that is, the user can design and develop DApp through user terminal operation. The data processing in DApp development and management can be realized based on the blockchain to ensure the accuracy and reliability of the data.

[0048] The embodiments of the present application will be described below in conjunction with the accompanying drawings.

[0049] Please refer to Figure 2 , Figure 2 is a flowchart of an application program generation method provided by the embodiments of the present application. The method can be applied to the user terminal in the blockchain. The method can include:

[0050] 201, send a target interface template to the user terminal, so that the user terminal generates an operation interface of a distributed application according to the target interface template.

[0051] The application program generation method involved in the embodiments of the present application can be implemented based on a blockchain. In a specific implementation, a user terminal can be understood as a terminal on which a client software is installed, and the terminal can also be referred to as a terminal device, including but not limited to other portable devices such as a mobile phone, a laptop computer or a tablet computer having a touch-sensitive surface (for example, a touch screen display and / or a touchpad), and the like, and the positioning service and the navigation function can be implemented through an application program. It should also be understood that in some embodiments, the device is not a portable communication device, but a desktop computer having a touch-sensitive surface (for example, a touch screen display and / or a touchpad).

[0052] The execution subject in the embodiments of the present application can be a background management terminal of a DApp system in a blockchain, and can provide a preset DApp interface template for a user to design and develop. The user terminal is also a client, which is an operation terminal for DApp development. The client can be registered in the server in advance, and the communication connection between the client and the server can be completed.

[0053] In the embodiments of the present application, the background management terminal stores different preset interface templates, and the user terminal can generate an operation interface of a distributed application using the preset interface templates. The preset interface templates can be provided by a customization terminal. Optionally, the customization terminal can predefine a DApp template, which can include user data, behavior data, scene data and scene relationship data. The background management terminal analyzes the predefined DApp template to obtain a preset interface template. Specifically, the preset interface template can be in an eXtensible Markup Language (XML) format. Then, the preset interface template can be uploaded to the blockchain for registration, and cannot be changed after registration.

[0054] After the user terminal verifies the identity and logs in, the background management terminal can send a target interface template to the user terminal in response to a request of the user terminal. The target interface template can be selected by the user terminal, or any preset interface template determined according to other information, which is not limited here.

[0055] 202. Receive an operation request of the user terminal to the operation interface, generate operation data and store the operation data in the blockchain, and generate intermediate code data of the distributed application according to the operation data.

[0056] The loaded template interface template can be edited and processed at the user end, the user end sends a corresponding operation request to the background management end, and corresponding operation data can be generated and stored in the blockchain, which cannot be tampered with, so as to facilitate finding and verifying. At the same time, intermediate code data can be generated according to the above operation data, that is, a new operation interface for a DApp can be generated through a preset interface template and operations thereon. The above intermediate code data is the basic data of the DApp interface, in order to better adapt to the use of various platforms, step 203 can be performed.

[0057] Optionally, the intermediate code data of the distributed application can be stored in the blockchain to prevent loss and tampering, and can be obtained and used later.

[0058] In an embodiment, before the intermediate code data of the distributed application is generated according to the operation data of the user end, the method further comprises:

[0059] receiving an input item setting request for the operation interface from the user end;

[0060] determining the number of input items and the data types corresponding to each input item of the input item setting request, generating input item setting data, and sending the input item setting data to the user end, wherein the input item setting data comprises the number of input items and the data types corresponding to each input item.

[0061] The user end can set input items on the DApp page, which can be input windows on the page for input data when the DApp runs. Different data needs to conform to the corresponding data type. Specifically, the user end can submit input item content to the background management end in the form of an input item setting request, such as an input item table, which includes at least one input item (name or identifier). After receiving the input item setting request, the background management end can determine the number of input items and the data types corresponding to each input item to generate corresponding input item setting data and send the input item setting data to the user end.

[0062] Further optionally, the input item setting request includes the name of the input item, and the method further comprises determining the parameters corresponding to the name of the input item;

[0063] The determination of the number of input items and the data types corresponding to each input item of the input item setting request comprises:

[0064] According to the parameters corresponding to the name of the input item and the correspondence between the parameters and the data types specified in the smart contract, the number of input items and the data types corresponding to the input items are determined.

[0065] The blockchain has a smart contract for input item setting, which predefines the correspondence between parameters and data types. The background management end identifies the name of the input item, converts the name of the input item into a corresponding parameter, and uses the smart contract to determine the data type corresponding to the input item in the input item setting request according to the correspondence between the parameters and the data types.

[0066] For example, the input item setting request of the user end includes age and name, and the background management end can determine that the data types corresponding to the two items are integer and character type respectively through the preset smart contract, and set the limit conditions of the input items. On the user end, the input boxes of age and name can only input integer and character type data respectively, or only integer and character type data can be correctly saved or submitted. The above method can quickly determine and set the input item data type of the DApp page based on the smart contract in the blockchain.

[0067] Optionally, after receiving the operation request of the user end on the operation interface, the method further includes, before generating the operation data:

[0068] determining whether the operation request conforms to the operation logic of the target interface template;

[0069] If yes, send an operation permission instruction to the user end to make the user end execute the operation corresponding to the operation request.

[0070] Since the DApp is decentralized, in order to further prevent users from maliciously using or misusing the DApp, in this embodiment, the background management end or the blockchain can store the operation logic of the preset interface template, so that after receiving the operation request, the background management end can also determine whether the operation request conforms to the operation logic of the target user interface template. If it is consistent, the operation permission information is sent to the user end. After the user end receives the operation permission information sent by the background management end, the operation corresponding to the operation request is executed. The user can operate the DApp according to the operation logic of the target user interface template, which can limit the operation behavior of the user on the DApp and improve the stability and controllability of the DApp.

[0071] 203, receiving a conversion instruction from the user end, obtaining the intermediate code data, the conversion instruction including a target platform identifier, a blockchain network identifier and user key information.

[0072] The user can convert the intermediate code data as needed. Specifically, the user can select a target platform, i.e., a system platform on which the application program runs, such as Android, iOS, etc. The user terminal determines the template platform identifier according to the user's selection and generates the conversion instruction described above. One or more processing modules (or nodes) can be pre-deployed in the blockchain to support processing of DApp-related data, which can be understood in this embodiment as a conversion service provided by a third party in the blockchain. The blockchain network identifier described above can be manually selected by the user side or automatically matched according to the target platform identifier, i.e., a module or node supporting code conversion of the target platform identifier can be randomly selected. After receiving the conversion instruction from the user terminal, the background management terminal can obtain the intermediate code data and perform step 204.

[0073] 204. According to the blockchain network identifier, the intermediate code data and the user key information are sent to the blockchain processing module corresponding to the blockchain network identifier for conversion processing operation. The conversion processing operation includes: after the user key information is verified by the blockchain processing module, the corresponding application program format framework of the target platform identifier is determined according to the preset correspondence between the platform identifier and the application program format framework; the identifier in the intermediate code data is identified to extract the fixed parameters in the intermediate code data and bring them into the application program format framework corresponding to the target platform identifier and call the compilation tool for compilation to obtain the target application program code data; the target application program code data is signed using the public key of the user terminal and sent to the user terminal.

[0074] The background management terminal can convert the obtained intermediate code data in response to the conversion instruction from the user terminal. Specifically, the corresponding blockchain processing module can be determined according to the blockchain network identifier, and the intermediate code data and the user key information are sent to the blockchain processing module for conversion processing operation. The blockchain can store a preset correspondence between the platform identifier and the application program format framework, so that the blockchain processing module can determine the application program format framework corresponding to the target platform identifier according to the correspondence. Further, the blockchain processing module pre-stores a plurality of identifiers, so as to identify the identifier in the intermediate code data, extract the fixed parameters in the intermediate code data, and bring them into the application program format framework corresponding to the target platform identifier to form a new format of code to be compiled, and then call the compilation tool for compilation to obtain the target application program code data. The target application program code data is the data of the native DApp, i.e., the DApp suitable for the target platform can be generated according to the user's selection.

[0075] The public key of each node in the blockchain can be obtained, and the obtained target application code data can be signed by using the public key of the user terminal and then sent to the user terminal, thereby improving the security of data verification. The user terminal can verify the signature by using its own private key to determine the authenticity of the data source.

[0076] In an optional implementation, after step 203, the method further includes:

[0077] receiving a deployment request from the user terminal, the deployment request including a user identifier and a target application identifier, and the target application identifier corresponding to the generated smart contract;

[0078] obtaining a private key of a verification blockchain corresponding to the user identifier;

[0079] signing the deployment request based on the private key of the verification blockchain, and sending the deployment request to the verification blockchain to enable the verification blockchain to deploy the smart contract.

[0080] In an optional implementation, after the client completes editing the DApp, the client can also upload the smart contract related to the DApp in the blockchain. By sending the deployment request, the background management terminal can obtain the user identifier, obtain the private key of the verification blockchain corresponding to the user identifier, and then sign the deployment request based on the private key of the verification blockchain, so that the deployment request can be sent to the verification blockchain, and the verification blockchain can deploy the smart contract in the blockchain.

[0081] In an implementation, some application-related operation data or information can be encrypted and decrypted in the blockchain based on the form of a public key (Public Key) and a private key (PrivateKey). The public key and the private key are a key pair (i.e., one public key and one private key) obtained through an algorithm. The public key is the public part of the key pair, and the private key is the non-public part. The public key is usually used to encrypt a session key, verify a digital signature, or encrypt data that can be decrypted by the corresponding private key. The key pair obtained through the algorithm can ensure that it is unique in the world. When using this key pair, if one of the keys is used to encrypt a piece of data, the other key must be used to decrypt it. For example, if the data is encrypted by the public key, it must be decrypted by the private key, and if it is encrypted by the private key, it must be decrypted by the public key, otherwise the decryption will not be successful.

[0082] In an embodiment, the blockchain underlying platform can include user management, basic services, smart contracts, and operation monitoring processing modules. Among them, the user management module can be partially or wholly undertaken by the regulatory node: responsible for the identity information management of all blockchain participants, including maintaining the generation of public and private keys (account management), key management, and the maintenance of the correspondence between the real identity of the user and the blockchain address (permission management), etc., and in the case of authorization, the regulatory and audit of the DApp operation and operation of certain real identity nodes, the provision of risk control rule configuration (risk audit); the basic service module is deployed on all blockchain node devices to verify the validity of business requests, and after the consensus of valid requests, record them on the storage. For a new business request, the basic service first parses and authenticates the interface (interface adaptation), then encrypts the business information through the consensus algorithm (consensus management), and after encryption, the complete and consistent transmission to the shared ledger (network communication), and record storage; the smart contract module is responsible for the registration and issuance of contracts, as well as the triggering and execution of contracts, such as the smart contract of the distributed application in the present application. The developer can define the contract logic through a certain programming language, publish it to the blockchain (contract registration), and according to the logic of the contract terms, call the key or other event triggers to execute, complete the contract logic, and also provide the function of contract upgrade and cancellation; the operation monitoring module is mainly responsible for the deployment, configuration modification, contract setting, cloud adaptation in the product release process, and the real-time state visualization output in the product operation, such as: alarm, monitoring network situation, monitoring node device health status, etc.

[0083] The embodiment of the application sends a target interface template to a user end, so that the user end generates an operation interface of a distributed application according to the target interface template, receives an operation request of the operation interface from the user end, stores operation data in a blockchain, generates intermediate code data of the distributed application according to the operation data, receives a conversion instruction from the user end, acquires the intermediate code data, the conversion instruction includes a target platform identifier, a blockchain network identifier and user key information, and then sends the intermediate code data and the user key information to a blockchain processing module corresponding to the blockchain network identifier for conversion processing, wherein the conversion processing can include: after the user key information is verified by the blockchain processing module, determining an application format framework corresponding to the target platform identifier according to a preset correspondence between the platform identifier and the application format framework; identifying an identifier in the intermediate code data to extract fixed parameters in the intermediate code data and bring them into the application format framework corresponding to the target platform identifier and call a compiling tool for compiling to obtain target application code data, and then the target application code data can be signed by a public key of the user end and sent to the user end, data processing and interaction in development are performed through the blockchain, data authenticity is ensured, a preset template is called and a smart contract is used to control operation and running, the data processing steps and data processing amount in application development and design can be reduced, application customization is realized, the application framework is converted to make the development no longer limited to a third-party system, and cross-platform generation and running of the application can be quickly realized.

[0084] Please refer to Figure 3 , Figure 3 is another flowchart of an application generation method provided by the embodiment of the application, which can be applied to a background management end in a blockchain. As shown in Figure 3 , the method can include:

[0085] 301, receiving a target interface template from a background management end, and generating an operation interface of a distributed application according to the target interface template.

[0086] The application generation method involved in the embodiment of the application can be implemented based on a blockchain. In a specific implementation, a user end executing the method can be understood as a terminal installing a client software, and the terminal can also be referred to as a terminal device, including but not limited to other portable devices such as mobile phones, laptop computers or tablet computers having a touch-sensitive surface (for example, a touch screen display and / or a touchpad), and can realize positioning service and navigation function through an application. It should also be understood that in some embodiments, the device is not a portable communication device, but a desktop computer having a touch-sensitive surface (for example, a touch screen display and / or a touchpad).

[0087] The terminal in the embodiments of the present application can be a node in the blockchain, and after successful identity verification, the terminal can access the blockchain. In an embodiment, a user can log in to a client account through the terminal, and after account verification by the background management end, the corresponding application interface of the DApp can be displayed on the terminal. The user can also operate the DApp. In the case of a user being a developer, the user terminal can be understood as an operation terminal for developing the DApp, and the design and development of the DApp can be realized.

[0088] 302. The operation request for the operation interface is sent to the background management end. In the case where the operation permission instruction from the background management end is received, the operation corresponding to the operation request is performed. The operation request is used to generate operation data by the background management end and obtain target application code data through the blockchain processing module. The target application code data is suitable for the target platform specified by the user terminal.

[0089] In an embodiment, the user terminal can report an input item setting request to the background management end, including at least one input item. The background service end can determine the number of input items in the input item setting request and the data type corresponding to each input item, generate input item setting data, and send the input item setting data to the user terminal. The input item setting data includes the number of input items and the data type corresponding to each input item. Thus, according to the input item setting data, the input boxes corresponding to the input items can be displayed on the user terminal, and each input box limits the data type of input.

[0090] The steps 301 and 302 performed by the user terminal have been described in the embodiments shown in Figure 2 and will not be repeated here.

[0091] 303. The target application code data is received, parsed, and the target application content is output.

[0092] The target application code data is the obtained DApp data. Specifically, after the background management end processes to generate the target application code data, the user terminal can parse the target application code data and display a complete DApp interface. Similar to a general application program, the DApp can run on the terminal, and the user can operate it.

[0093] The embodiment of the application receives a target interface template from a background management end, generates an operation interface of a distributed application according to the target interface template, sends an operation request for the operation interface to the background management end, executes an operation corresponding to the operation request in the case of receiving an operation permission instruction from the background management end, the operation request is used for the background management end to generate operation data and obtain target application code data, the target application code data is suitable for a target platform specified by a user end, receives the target application code data, parses the target application code data and outputs target application content, data processing and interaction in application development can be performed based on a block chain, data authenticity is ensured, operation of the user end is controlled by using a smart contract, application development design data processing steps and data processing amount can be reduced, application customization is realized, an application framework is converted so that development is no longer limited to a third-party system, DApp design and development can be flexibly and quickly performed, and cross-platform operation of the application is realized.

[0094] Based on the description of the application program generation method embodiment, the application embodiment further discloses an application program generation device. Please refer to Figure 4 , the application program generation device 400 comprises:

[0095] The transmission module 410 is configured to send a target interface template to a user end, so that the user end generates an operation interface of a distributed application according to the target interface template;

[0096] The transmission module 410 is further configured to receive an operation request for the operation interface from the user end; the processing module 420 is configured to generate operation data and store the operation data in a block chain, and generate intermediate code data of the distributed application according to the operation data;

[0097] The transmission module 410 is further configured to receive a conversion instruction from the user end, obtain the intermediate code data, and the conversion instruction comprises target platform identification, block chain network identification and user key information;

[0098] The processing module 420 is further configured to send the intermediate code data and the user key information to a blockchain processing module corresponding to the blockchain network identifier for conversion processing operation according to the blockchain network identifier. The conversion processing operation includes: determining an application program format framework corresponding to the target platform identifier according to a preset correspondence between platform identifiers and application program format frameworks after the user key information is verified by the blockchain processing module; identifying an identifier in the intermediate code data to extract fixed parameters in the intermediate code data and bring them into the application program format framework corresponding to the target platform identifier and call a compiling tool for compiling to obtain target application program code data; and sending the target application program code data to the user terminal after signing the target application program code data using a public key of the user terminal.

[0099] In one embodiment, the application program generation apparatus 400 described above can be used to perform a series of processes, including the method executed by the background management terminal in the embodiment shown in the above Figure 2 The application program generation apparatus 400 in the embodiment of the present application sends a target interface template to a user terminal to enable the user terminal to generate an operation interface of a distributed application according to the target interface template, receives an operation request of the operation interface from the user terminal, stores operation data in a blockchain, and generates intermediate code data of the distributed application according to the operation data. The application program generation apparatus 400 receives a conversion instruction from the user terminal, obtains the intermediate code data, and sends the intermediate code data and user key information to a blockchain processing module corresponding to a blockchain network identifier according to the blockchain network identifier for conversion processing operation. The conversion processing operation can include: determining an application program format framework corresponding to the target platform identifier according to a preset correspondence between platform identifiers and application program format frameworks after the user key information is verified by the blockchain processing module; identifying an identifier in the intermediate code data to extract fixed parameters in the intermediate code data and bring them into the application program format framework corresponding to the target platform identifier and call a compiling tool for compiling to obtain target application program code data; and sending the target application program code data to the user terminal after signing the target application program code data using a public key of the user terminal. Through the blockchain, data processing and interaction in development are ensured, data authenticity is ensured, a preset template is called and an intelligent contract is used to control operation and running, the number of data processing steps and the amount of data processing in application program development and design can be reduced, application program customization is achieved, the application program framework is converted to make the development of the application program no longer limited to a third-party system, and cross-platform generation and running of the application program can be quickly achieved.

[0100] Based on the description of the method embodiments and the device embodiments, the application further provides another application program generation device, as shown in Figure 5 The application program generation device 500 includes:

[0101] The transmission module 510 is configured to receive a target interface template from a background management end.

[0102] The processing module 520 is configured to generate an operation interface of a distributed application according to the target interface template.

[0103] The transmission module 510 is further configured to send an operation request for the operation interface to the background management end.

[0104] The processing module 520 is further configured to execute an operation corresponding to the operation request in a case where an operation permission instruction is received from the background management end, the operation request being used for the background management end to generate operation data and obtain target application program code data through a block chain processing module, the target application program code data being applicable to a target platform specified by the user end.

[0105] The transmission module 510 is further configured to receive the target application program code data, and the processing module 520 is further configured to parse the target application program code data and output target application program content.

[0106] In one embodiment, the application program generation device 500 described above can be used to perform a series of processes, including the method in the embodiment as shown in Figure 3 and the method performed by the user end in the embodiment as shown in Figure 2 , and the like, which will not be described here.

[0107] Based on the description of the method embodiments and the device embodiments, the application further provides an electronic device. Please refer to Figure 6 The electronic device 600 includes at least a processor 601, an input device 602, an output device 603, and a computer storage medium 604. The processor 601, the input device 602, the output device 603, and the computer storage medium 604 in the terminal are connected through a bus or other means.

[0108] The computer storage medium 604 can be stored in the memory of the terminal, and is used to store a computer program including program instructions. The processor 601 is used to execute the program instructions stored in the computer storage medium 604. The processor 601 (also referred to as a CPU (Central Processing Unit, central processor)) is a computing core and a control core of the terminal, and is adapted to implement one or more instructions, and is specifically adapted to load and execute one or more instructions to implement a corresponding method process or a corresponding function. In one embodiment, the processor 601 of the embodiment of the present application can be used to perform a series of processes, including the method performed in the embodiment shown in Figure 2 or Figure 3 the embodiment, and the like.

[0109] The embodiment of the present application further provides a computer storage medium (Memory). The computer storage medium is a memory device in the terminal, and is used to store programs and data. It can be understood that the computer storage medium can include a built-in storage medium in the terminal, and of course can include an extended storage medium supported by the terminal. The computer storage medium provides a storage space, and the storage space stores an operating system of the terminal. Furthermore, one or more instructions adapted to be loaded and executed by the processor 601 are stored in the storage space, and the instructions can be one or more computer programs (including program codes). It should be noted that the computer storage medium can be a high-speed RAM memory, or a non-volatile memory such as at least one disk memory. Optionally, the computer storage medium can be at least one computer storage medium located away from the processor.

[0110] In one embodiment, one or more instructions stored in the computer storage medium can be loaded and executed by the processor 601 to implement corresponding steps of the method performed in the above-described embodiments. In a specific implementation, one or more instructions in the computer storage medium can be loaded and executed by the processor 601 to implement any step of the method in Figure 2 or Figure 3 , and details are not described herein.

[0111] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working process of the above-described device and module can refer to the corresponding process in the foregoing method embodiments, and details are not described herein.

[0112] In several embodiments provided in the present application, it should be understood that the disclosed system, device and method can be implemented in other manners. For example, the division of the modules is merely logical function division, and there can be another division manner in actual implementation, for example, a plurality of modules or components can be combined or integrated into another system, or some features can be ignored or not executed. The displayed or discussed coupling, or direct coupling or communication connection between the modules can be indirect coupling or communication connection through some interfaces, devices or modules, and can be electrical, mechanical or in other forms.

[0113] The modules illustrated as separated components can or can not be physically separated, and the components illustrated as modules can or can not be physical modules, i.e., can be located in one place or distributed to a plurality of network modules. Part or all of the modules can be selected according to actual needs to achieve the purpose of the embodiment.

[0114] In the above embodiments, all or part of the embodiments can be implemented by software, hardware, firmware or any combination thereof. When implemented by software, all or part of the embodiments can be implemented in the form of a computer program product. The computer program product includes one or more computer instructions. When loaded and executed by a computer, the computer instructions generate the processes or functions according to the embodiments of the present application. The computer can be a general-purpose computer, a special-purpose computer, a computer network or other programmable devices. The computer instructions can be stored in a computer readable storage medium or transmitted by the computer readable storage medium. The computer instructions can be transmitted from one website, computer, server or data center to another website, computer, server or data center through a wired (such as coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (such as infrared, wireless, microwave, etc.) manner. The computer readable storage medium can be any available medium that can be accessed by a computer or a data storage device such as a server, data center, etc. integrated with one or more available media. The available medium can be a read-only memory (ROM), or a random access memory (RAM), or a magnetic medium, such as a floppy disk, a hard disk, a magnetic tape, a magnetic disk, or an optical medium, such as a digital versatile disc (DVD), or a semiconductor medium, such as a solid state disk (SSD), etc.

Claims

1. An application program generation method characterized by comprising: The method comprises the following steps: sending a target interface template to a user terminal, so that the user terminal generates an operation interface of a distributed application according to the target interface template; receiving an operation request of the user terminal to the operation interface, storing operation data in a blockchain, generating intermediate code data of the distributed application according to the operation data, and storing the intermediate code data in the blockchain; receiving a conversion instruction from the user terminal, obtaining the intermediate code data, and the conversion instruction comprising a target platform identifier, a blockchain network identifier and user key information; sending the intermediate code data and the user key information to a blockchain processing module corresponding to the blockchain network identifier for conversion processing operation according to the blockchain network identifier, the conversion processing operation comprising: after the user key information is verified by the blockchain processing module, determining an application format framework corresponding to the target platform identifier according to a preset correspondence between the platform identifier and the application format framework; identifying an identifier in the intermediate code data to extract fixed parameters in the intermediate code data and bring them into the application format framework corresponding to the target platform identifier and call a compiling tool for compiling to obtain target application code data; signing the target application code data using a public key of the user terminal and sending the target application code data to the user terminal.

2. The method of claim 1, wherein, Before the operation data of the user terminal is used to generate the intermediate code data of the distributed application, the method further comprises: receiving an input item setting request of the user terminal to the operation interface; determining the number of input items and the data types corresponding to each input item of the input item setting request, generating input item setting data, and sending the input item setting data to the user terminal, wherein the input item setting data comprises the number of input items and the data types corresponding to each input item.

3. The method of claim 2, wherein, The input item setting request comprises the name of the input item, and the method further comprises determining the parameters corresponding to the name of the input item. The determination of the number of input items and the data types corresponding to each input item of the input item setting request comprises: determining the number of input items and the data types corresponding to each input item according to the parameters corresponding to the name of the input item and the correspondence between the parameters and the data types specified in the smart contract.

4. The method according to any of claims 1 to 3, characterized in that, After the target application code data is obtained, the method comprises: receiving a deployment request from the user terminal, wherein the deployment request comprises a user identifier and a target application identifier, and the target application identifier corresponds to a generated smart contract; obtaining a private key of a verification blockchain corresponding to the user identifier; signing the deployment request based on the private key of the verification blockchain, and sending the deployment request to the verification blockchain, so that the verification blockchain deploys the smart contract.

5. The method of claim 4, wherein, After the operation request of the user terminal to the operation interface is received, and before the operation data is generated, the method further comprises: determining whether the operation request conforms to the operation logic of the target interface template; If yes, a permission operation instruction is sent to the user terminal to make the user terminal perform an operation corresponding to the operation request.

6. An application program generation method characterized by comprising: The method comprises: receiving a target interface template from a background management terminal, and generating an operation interface of a distributed application according to the target interface template; sending an operation request for the operation interface to the background management terminal, and performing an operation corresponding to the operation request in the case of receiving a permission operation instruction from the background management terminal, the operation request being used for the background management terminal to generate operation data and store the operation data in a blockchain, generate intermediate code data of the distributed application according to the operation data, and store the intermediate code data in the blockchain; sending a conversion instruction to the background management terminal, the conversion instruction comprising a target platform identifier, a blockchain network identifier, and user key information, the conversion instruction being used for the background management terminal to send the intermediate code data and the user key information to a blockchain processing module corresponding to the blockchain network identifier for conversion processing operation according to the blockchain network identifier, the conversion processing operation comprising: after the user key information is verified by the blockchain processing module, determining an application format framework corresponding to the target platform identifier according to a preset correspondence between platform identifiers and application format frameworks, identifying an identifier in the intermediate code data to extract fixed parameters in the intermediate code data and bring the fixed parameters into the application format framework corresponding to the target platform identifier, calling a compiling tool for compiling to obtain target application code data, and sending the target application code data to the user terminal after signing the target application code data using a public key of the user terminal, the target application code data being applicable to a target platform specified by the user terminal; receiving the target application code data from the background management terminal, parsing the target application code data, and outputting target application content.

7. An application program generating apparatus characterized by comprising: The method comprises: a transmission module configured to send a target interface template to a user terminal to make the user terminal generate an operation interface of a distributed application according to the target interface template; the transmission module is further configured to receive an operation request for the operation interface from the user terminal; a processing module configured to generate operation data and store the operation data in a blockchain, and generate intermediate code data of the distributed application according to the operation data, and store the intermediate code data in the blockchain; the transmission module is further configured to receive a conversion instruction from the user terminal, and obtain the intermediate code data, the conversion instruction comprising a target platform identifier, a blockchain network identifier, and user key information; The processing module is further configured to send the intermediate code data and the user key information to a blockchain processing module corresponding to the blockchain network identifier for conversion processing operation according to the blockchain network identifier, the conversion processing operation including: determining an application program format framework corresponding to the target platform identifier according to a preset correspondence between the platform identifier and the application program format framework after the user key information is verified by the blockchain processing module; identifying an identifier in the intermediate code data to extract fixed parameters in the intermediate code data and bring them into the application program format framework corresponding to the target platform identifier and call a compiling tool for compiling to obtain target application program code data; The target application program code data is signed using the public key of the user terminal and then sent to the user terminal.

8. An application program generating apparatus characterized by comprising: Comprise: A transmission module configured to receive a target interface template from a background management terminal; A processing module configured to generate an operation interface of a distributed application according to the target interface template; The transmission module is further configured to send an operation request for the operation interface to the background management terminal; The processing module is further configured to execute an operation corresponding to the operation request in a case where an allowed operation instruction is received from the background management terminal, the operation request being used by the background management terminal to generate operation data and store the operation data in a blockchain, generate intermediate code data of the distributed application according to the operation data, and store the intermediate code data in the blockchain; The transmission module is further configured to send a conversion instruction to the background management terminal, the conversion instruction including a target platform identifier, a blockchain network identifier, and user key information, the conversion instruction being used by the background management terminal to send the intermediate code data and the user key information to a blockchain processing module corresponding to the blockchain network identifier for conversion processing operation according to the blockchain network identifier, the conversion processing operation including: determining an application program format framework corresponding to the target platform identifier according to a preset correspondence between the platform identifier and the application program format framework after the user key information is verified by the blockchain processing module, identifying an identifier in the intermediate code data to extract fixed parameters in the intermediate code data and bring them into the application program format framework corresponding to the target platform identifier and call a compiling tool for compiling to obtain target application program code data, signing the target application program code data using a public key of a user terminal and then sending the target application program code data to the user terminal, the target application program code data being applicable to a target platform specified by the user terminal; The transmission module is further configured to receive the target application program code data from the background management terminal; and the processing module is further configured to parse the target application program code data and output target application program content.

9. An electronic device comprising an input device and an output device, characterized in that Further comprise: A processor adapted to implement one or more instructions; And, A computer storage medium storing one or more instructions adapted to be loaded and executed by the processor to perform the application generation method of any of claims 1-6.

10. A computer-readable storage medium, characterized in that, The computer storage medium stores one or more instructions adapted to be loaded and executed by the processor to perform the application generation method of any of claims 1-6.

Citation Information

Patent Citations

  • Method for generating object code, and data processing method and device

    CN102999323A

  • A DAPP development method and device

    CN109683869A

  • DApp customization method and device and electronic device

    CN109976868A