CN111443976A - Application program generation method and device, electronic equipment and storage medium - Google Patents

Application program generation method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN111443976A
CN111443976A CN202010236449.3A CN202010236449A CN111443976A CN 111443976 A CN111443976 A CN 111443976A CN 202010236449 A CN202010236449 A CN 202010236449A CN 111443976 A CN111443976 A CN 111443976A
Authority
CN
China
Prior art keywords
application program
code data
data
target
user
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202010236449.3A
Other languages
Chinese (zh)
Inventor
李茂材
周开班
王宗友
刘攀
张劲松
朱耿良
孔利
时一防
黄焕坤
刘区城
杨常青
蓝虎
崔嘉辉
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN202010236449.3A priority Critical patent/CN111443976A/en
Publication of CN111443976A publication Critical patent/CN111443976A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/30Authentication, i.e. establishing the identity or authorisation of security principals
    • G06F21/45Structures or tools for the administration of authentication
    • G06F21/46Structures or tools for the administration of authentication by designing passwords or checking the strength of passwords
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files

Abstract

The application discloses an application program generation method and device, electronic equipment and a storage medium. The method comprises the following steps: sending a target interface template to the user side, wherein the user side generates an operation interface of the distributed application program according to the target interface template; receiving an operation request for an operation interface, generating operation data, storing the operation data in a block chain, and generating intermediate code data of the distributed application program; receiving a conversion instruction from the user side, and acquiring the intermediate code data, wherein the conversion instruction comprises a target platform identifier, a block chain network identifier and user key information; according to the block chain network identifier, 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 to obtain target application program code data; and signing the target application program code data by using the public key of the user side and then sending the signed target application program code data to the user side.

Description

Application program generation method and device, electronic equipment and storage medium
Technical Field
The present application relates to the field of block chain technologies, and in particular, to an application generation method and apparatus, an electronic device, and a storage medium.
Background
With the development of electronic equipment, application programs produced by the user are not generated, and convenience and interest are provided for the user in various aspects.
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.
Disclosure of Invention
The application provides an application program generation method and device, electronic equipment and a storage medium.
In a first aspect, an application generation method is provided, including:
sending a target interface template to a user side so that the user side can generate an operation interface of the distributed application program according to the target interface template;
receiving an operation request of the user end to the operation interface, generating operation data to be stored in a block chain, and generating intermediate code data of the distributed application program according to the operation data;
receiving a conversion instruction from the user side, and acquiring the intermediate code data, wherein the conversion instruction comprises a target platform identifier, a block chain network identifier and user key information;
according to the block chain network identifier, 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, wherein the conversion processing operation comprises: after the block chain processing module verifies the user key information, determining an application program format frame corresponding to the target platform identifier according to the corresponding relation between a preset platform identifier and the application program format frame; identifying identifiers in the intermediate code data to extract fixed parameters in the intermediate code data, bringing the fixed parameters into an application program format frame corresponding to the target platform identifier, and calling a compiling tool to compile to obtain target application program code data; and signing the target application program code data by using the public key of the user side and then sending the signed target application program code data to the user side.
In another aspect, another application generation method is provided, including:
receiving a target interface template from a background management end, and generating an operation interface of a distributed application program according to the target interface template;
sending an operation request for the operation interface to the background management end, and executing an operation corresponding to the operation request under the condition that an operation allowing instruction from the background management end is received, wherein the operation request is used for the background management end to generate operation data and obtain target application program code data through a block chain processing module, and the target application program code data are suitable for a target platform appointed by a user end;
and receiving the code data from the target application program, analyzing the code data of the target application program and outputting the content of the target application program.
In another aspect, an application generating apparatus is provided, including:
the transmission module is used for sending a target interface template to a user side so that the user side can generate an operation interface of the distributed application program according to the target interface template;
the transmission module is further used for receiving an operation request of the user end to the operation interface; the processing module is used for generating operation data to be stored in a block chain and generating intermediate code data of the distributed application program according to the operation data;
the transmission module is further configured to receive a conversion instruction from the user side, and acquire the intermediate code data, where the conversion instruction includes a target platform identifier, a block chain 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 performing a conversion processing operation according to the blockchain network identifier, where the conversion processing operation includes: after the block chain processing module verifies the user key information, determining an application program format frame corresponding to the target platform identifier according to the corresponding relation between a preset platform identifier and the application program format frame; identifying identifiers in the intermediate code data to extract fixed parameters in the intermediate code data, bringing the fixed parameters into an application program format frame corresponding to the target platform identifier, and calling a compiling tool to compile to obtain target application program code data; and signing the target application program code data by using the public key of the user side and then sending the signed target application program code data to the user side.
In another aspect, another application generation apparatus is provided, including:
the transmission module is used for receiving a target interface template from a background management end;
the processing module is used for generating an operation interface of the distributed application program according to the target interface template;
the transmission module is further used for sending an operation request for the operation interface to the background management end;
the processing module is further configured to, in a case that an operation-allowed instruction from the backend management terminal is received, execute an operation corresponding to the operation request, where the operation request is used by the backend management terminal to generate operation data and obtain target application code data through the blockchain processing module, and the target application code data is applicable to a target platform specified by the user terminal;
the transmission module is further used for receiving code data from the target application program; the processing module is further configured to parse the target application program code data and output target application program content.
In another aspect, an electronic device is provided, which includes an input device and an output device, and is characterized by further including: a processor adapted to implement one or more instructions; and a computer storage medium storing one or more instructions adapted to be loaded by the processor and to perform the application generation method of any of the preceding aspects.
In another aspect, a computer storage medium is provided, which stores one or more instructions adapted to be loaded by a processor and to perform the steps of the application generation method according to any one of the above aspects and any one of its possible implementations.
In the embodiment of the present application, a target interface template is sent to a user end, so that the user end generates an operation interface of a distributed application program according to the target interface template, receives an operation request of the user end to the operation interface, generates operation data to be stored in a block chain, generates intermediate code data of the distributed application program according to the operation data, receives a conversion instruction from the user end, obtains the intermediate code data, where the conversion instruction includes a target platform identifier, a block chain network identifier, and user key information, and sends 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 according to the block chain network identifier, where the conversion processing operation may include: after the user key information is verified by the block chain processing module, determining an application program format frame corresponding to the target platform identifier according to the corresponding relation between the preset platform identifier and the application program format frame; the method comprises the steps of identifying identifiers in intermediate code data, extracting fixed parameters in the intermediate code data, bringing the fixed parameters into an application program format frame corresponding to a target platform identifier, calling a compiling tool to compile to obtain target application program code data, signing the target application program code data by using a public key of a user side, sending the target application program code data to the user side, carrying out data processing and interaction in development through a block chain to ensure data authenticity, calling a preset template and controlling operation and operation by using an intelligent contract, reducing application program development design data processing steps and data processing amount, realizing application program customization, converting the application program frame to enable development of the application program frame not to be limited by a third-party system, and quickly realizing cross-platform generation and operation of the application program.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments or the background art of the present application, the drawings required to be used in the embodiments or the background art of the present application will be described below.
Fig. 1A is a schematic structural diagram of a data sharing system according to an embodiment of the present application;
fig. 1B is a schematic structural diagram of a block chain according to an embodiment of the present disclosure;
fig. 1C is a schematic diagram of node interaction of a block chain according to an embodiment of the present disclosure;
fig. 2 is a schematic flowchart of an application generating method according to an embodiment of the present application;
fig. 3 is a schematic flowchart of another application program generation method according to an embodiment of the present application;
fig. 4 is a schematic structural diagram of an application generating apparatus according to an embodiment of the present application;
fig. 5 is a schematic structural diagram of another application generating apparatus according to an embodiment of the present application;
fig. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
In order to make the technical solutions of the present application better understood, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The terms "first," "second," and the like in the description and claims of the present application and in the above-described drawings are used for distinguishing between different objects and not for describing a particular order. Furthermore, the terms "include" and "have," as well as any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those steps or elements listed, but may alternatively include other steps or elements not listed, or inherent to such process, method, article, or apparatus.
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 application. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is explicitly and implicitly understood by one skilled in the art that the embodiments described herein can be combined with other embodiments.
Referring to the data sharing system shown in fig. 1A, the data sharing system 100 refers to a system for performing data sharing between nodes, the data sharing system may include a plurality of nodes 101, and the plurality of nodes 101 may refer to respective clients in the data sharing system. Each node 101 may receive input information while operating normally and maintain shared data within the data sharing system based on the received input information. In order to ensure information intercommunication in the data sharing system, information connection can exist between each node in the data sharing system, and information transmission can be carried out between the 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 may acquire the input information according to a consensus algorithm, and store the input information as data in shared data, so that the data stored on all nodes in the data sharing system are consistent.
Each node in the data sharing system has a node identifier corresponding thereto, and each node in the data sharing system may store a node identifier of another node in the data sharing system, so that the generated block is broadcast to the other node in the data sharing system according to the node identifier of the other node in the following. Each node may maintain a node identifier list as shown in the following table, and store the node name and the node identifier in the node identifier list correspondingly. The node identifier may be an IP (Internet Protocol) address and any other information that can be used to identify the node, and table 1 only illustrates the IP address as an example.
Node name Node identification
Node 1 117.114.151.174
Node 2 117.116.189.145
Node N 119.123.789.258
Each node in the data sharing system stores one identical blockchain. The block chain is composed of a plurality of blocks, referring to fig. 1B, the block chain is composed of a plurality of blocks, the starting block includes a block header and a block main body, the block header stores an input information characteristic value, a version number, a timestamp and a difficulty value, and the block main body stores input information; the next block of the starting block takes the starting block as a parent block, the next block also comprises a block head and a block main body, the block head stores the input information characteristic value of the current block, the block head characteristic value of the parent block, the version number, the timestamp and the difficulty value, and the like, so that the block data stored in each block in the block chain is associated with the block data stored in the parent block, and the safety of the input information in the block is ensured.
The blockchain may include a blockchain underlying platform, a platform product services layer, and an application services layer. The platform product service layer provides basic capability and an implementation framework of typical application, and developers can complete block chain implementation of business logic based on the basic capability and the characteristics of the superposed business. The application service layer provides the application service based on the block chain scheme for the business participants to use.
The distributed Application program in the embodiment of the present Application, which may also be referred to as a Decentralized Application (DApp), is an internet Application program, and has the same principle as a general Application program (App), and the biggest differences are: the DApp runs on a decentralized network, namely a block chain network, and the DApp can be completely controlled by nodes without centralization in the network; traditional applications are centralized and require a server to obtain data, process data, etc. Blockchain is an underlying environment for application execution relative to DApp, with the advantage of blockchain support.
DApp is decentralized and can run completely automatically. To make good use of these DApp, special etherhouse browsers, such as Augur, are required to further reduce the risk of intrusion by decentralizing the market forecast etherhouse platform.
For better illustration of the method in the embodiment of the present application, refer to fig. 1C, and fig. 1C is a schematic diagram of a DApp system provided in the embodiment of the present application. As shown in fig. 1C, a DApp system and an intelligent contract may be deployed in the data sharing system, where the DApp system and the intelligent contract may include multiple user terminals, and the application generation method in the embodiment of the present application may be implemented through interaction with a background management terminal, that is, a user may perform DApp design and development through user terminal operation, where data processing in DApp development and management may be implemented based on a block chain, so as to ensure accuracy and reliability of data.
The embodiments of the present application will be described below with reference to the drawings.
Referring to fig. 2, fig. 2 is a flowchart illustrating an application generating method according to an embodiment of the present application, where the method can be applied to a user side in a block chain. The method can comprise the following steps:
201. and sending the target interface template to a user side so that the user side generates an operation interface of the distributed application program according to the target interface template.
The application program generation method related in the embodiment of the application program can be realized based on a block chain. In a specific implementation, the user terminal may be understood as a terminal in which the client software is installed, which may also be referred to as a terminal device, including but not limited to other portable devices such as a mobile phone, a laptop or a tablet computer with a touch sensitive surface (e.g., a touch screen display and/or a touch pad), which may implement positioning services and navigation functions through applications. It should also be understood that in some embodiments, the devices described above are not portable communication devices, but rather are desktop computers having touch-sensitive surfaces (e.g., touch screen displays and/or touch pads).
The execution main body in the embodiment of the application can be a background management end of a DApp system in a block chain, and can provide a preset DApp interface template for a user to design and develop. The client is also a client, and for the operation end for DApp development, the client may complete registration in the server in advance to complete communication connection between the client and the server.
In the embodiment of the application, different preset interface templates are stored in a background management end, a user side can generate an operation interface of a distributed application program by using the preset interface templates, the preset interface templates can be set and provided by a customization end, optionally, the customization end can predefine DApp templates and can comprise user data, behavior data, scene data and scene relation data, the background management end analyzes the predefined DApp templates to obtain the preset interface templates, specifically, the preset interface templates can be in an eXtensible Markup language template (XM L) format, and then the preset interface templates can be uploaded to a block chain for registration and cannot be changed after registration.
After the user verifies the identity and logs in, the background management end can respond to the request of the user end and send a target interface template to the user end, wherein the target interface template can be selected by the user end or any preset interface template determined according to other information, and the target interface template is not limited here.
202. And receiving an operation request of the user end to the operation interface, generating operation data, storing the operation data in a block chain, and generating intermediate code data of the distributed application program according to the operation data.
The loaded template interface template can be edited and the like at the user side, the user side sends a corresponding operation request to the background management side, and corresponding operation data can be generated and stored in the block chain, so that the block chain cannot be tampered, and searching and verification are facilitated. Meanwhile, the intermediate code data can be generated according to the operation data, namely, an operation interface used by a new DApp can be generated through a preset interface template and operation on the preset interface template. Wherein the intermediate code data is the basic data of the Dapp interface, and step 203 may be executed to better adapt to the usage of each platform.
Optionally, the intermediate code data of the distributed application program may be stored in a blockchain, so as to prevent loss and tampering, and may be subsequently obtained for use.
In an embodiment, before generating the intermediate code data of the distributed application according to the operation data of the user terminal, the method further includes:
receiving an input item setting request for the operation interface from the user side;
determining the number of the input items of the input item setting request and the data types corresponding to the input items, generating input item setting data, and sending the input item setting data to the user side, wherein the input item setting data comprises the number of the input items and the data types corresponding to the input items.
The user side may set an entry on the DApp page, specifically, an input window on the page, for inputting data during the DApp operation. Different data needs to conform to the corresponding data type. Specifically, the user side may submit an entry content, such as an entry form, including at least one entry (name or identifier) to the backend management side in the form of an entry setting request, and the backend management side may determine, after receiving the entry setting request, the number of entries and the data type corresponding to each entry to generate corresponding entry setting data, and send the entry setting data to the user side.
Further optionally, the input item setting request includes a name of the input item, and the method further includes determining a parameter corresponding to the name of the input item;
the determining the number of the input items of the input item setting request and the data types corresponding to the input items includes:
and determining the number of the input items and the data types corresponding to the input items according to the corresponding relation between the parameters corresponding to the names of the input items and the parameters and the data types specified in the intelligent contract.
An intelligent contract used for setting the input items is deployed in the block chain, the corresponding relation between parameters and data types is preset in the intelligent contract, the background management end identifies the names of the input items, converts the names of the input items into corresponding parameters, and determines the data types corresponding to the input items in the input item setting request according to the corresponding relation between the parameters and the data types by using the intelligent contract.
The data types may include, but are not limited to, integer types and character types. For example, the input item setting request of the user side includes an age and a name, and the background management side can determine, through a preset intelligent contract, that the data types corresponding to the two items are integer and character types, and set the limitation condition of the input item. The user can show the input boxes of age and name, and only the integer data and the character data can be input or only the integer data and the character data can be input and then can be correctly stored or submitted. The method described above can quickly determine and set the entry data type of a DApp page based on intelligent contracts in the blockchain.
Optionally, after receiving the operation request of the user terminal to the operation interface and before generating the operation data, the method further includes:
determining whether the operation request accords with the operation logic of the target interface template;
if yes, an operation permission instruction is sent to the user side, so that the user side executes the operation corresponding to the operation request.
Because the DApp is decentralized, in order to further prevent the user from using the DApp maliciously or by mistake, in this embodiment, an operation logic of a preset interface template may be stored in the background management end or the block chain, so that after receiving the operation request, the background management end may further determine whether the operation request conforms to the operation logic of the target user interface template, if so, the operation permission information is sent to the user end, and after receiving the operation permission information sent by the background management end, the user end executes an operation corresponding to the operation request. The user can operate the DApp according to the operation logic of the target user interface template, the operation behavior of the user on the DApp can be limited, and the stability and controllability of the DApp are improved.
203. And receiving a conversion instruction from the user side to acquire the intermediate code data, wherein the conversion instruction comprises a target platform identifier, a block chain network identifier and user key information.
The user can convert the intermediate code data as desired. Specifically, the user may select a target platform, i.e., a system platform on which the application runs, such as Android (Android), iOS, and the like. And determining the template platform identification at the user side according to the selection of the user, and generating the conversion instruction. One or more processing modules (or nodes) may be pre-deployed in the blockchain, and are used to support processing of DApp-related data, which may be understood as a conversion service provided by a third party in the blockchain in the embodiment of the present application. The blockchain network identifier may be manually selected by a user side, or may be automatically matched according to a target platform identifier, that is, a module or a node supporting code conversion of the target platform identifier may be randomly selected. After receiving the conversion instruction from the user side, the background management side may obtain the intermediate code data, and execute step 204.
204. According to the blockchain network identifier, 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, where the conversion processing operation includes: after the block chain processing module verifies the user key information, determining an application program format frame corresponding to the target platform identifier according to a corresponding relation between a preset platform identifier and the application program format frame; identifying identifiers in the intermediate code data to extract fixed parameters in the intermediate code data, bringing the fixed parameters into an application program format frame corresponding to the target platform identifier, and calling a compiling tool to compile to obtain target application program code data; and signing the target application program code data by using the public key of the user side and then sending the signed target application program code data to the user side.
The background management end can respond to the conversion instruction of the user end to convert the obtained intermediate code data. Specifically, a corresponding blockchain processing module may be determined according to the blockchain network identifier, and the intermediate code data and the user key information may be sent to the blockchain processing module for performing a conversion processing operation. The block chain may store a corresponding relationship between a preset platform identifier and an application format frame, so that the block chain processing module may determine the application format frame corresponding to the target platform identifier according to the corresponding relationship. Furthermore, a plurality of identifiers are pre-stored in the block chain processing module, so that the identifiers in the intermediate code data can be identified, fixed parameters in the intermediate code data are extracted, an application program format frame corresponding to the target platform identifier is brought in to form a code to be compiled in a new format, and then a compiling tool is called to compile the code to obtain target application program code data. The target application program code data is the data of the native DApp, that is, the DApp suitable for the target platform can be generated according to the selection of the user.
The public key of each node can be acquired in the block chain, the public key of the user side can be used for signing the acquired target application program code data, and then the signed target application program code data is sent to the user side, so that the safety of data verification is improved. The user terminal can use the private key of the user terminal to verify the signature so as to determine the authenticity of the data source.
In an alternative embodiment, after the step 203, the method further includes:
receiving a deployment request from the user side, wherein the deployment request comprises a user identifier and the target application program identifier, and the target application program identifier has a corresponding generated intelligent contract;
acquiring a private key of a verification block chain corresponding to the user identifier;
and signing the deployment request based on the private key of the verification block chain, and sending the deployment request to the verification block chain so that the verification block chain deploys the intelligent contract.
In an optional implementation manner, after the client edits the DApp, the client may further upload an intelligent contract related to the DApp in the blockchain, and by sending the deployment request, the background management end may obtain the user identifier, obtain a private key of the verification blockchain corresponding to the user identifier, and sign the deployment request based on the private key of the verification blockchain, so that the deployment request may be sent to the verification blockchain, and the verification blockchain may deploy the intelligent contract in the blockchain.
In one embodiment, some application-related operational data or information may be encrypted and decrypted in a blockchain based on a form of Public Key and private Key (PrivateKey). The public key and the private key are a key pair (i.e. a public key and a private key) obtained through an algorithm, the public key is a public part of the key pair, and the private key is a non-public part. The public key is typically used to encrypt session keys, verify digital signatures, or encrypt data that can be decrypted with a corresponding private key. The key pair derived by such an algorithm is guaranteed to be unique worldwide. 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 the piece of data. For example, encrypting data with a public key necessitates decryption with the private key, and if encrypting with the private key, also must decrypt with the public key, otherwise decryption will not succeed.
In one embodiment, the blockchain underlying platform may include processing modules for user management, basic services, intelligent contracts, and operation monitoring. Wherein, the user management module can be undertaken by the supervisory node with part or all of the functions: the system is responsible for identity information management of all blockchain participants, and comprises public and private key generation maintenance (account management), key management, user real identity and blockchain address corresponding relation maintenance (authority management) and the like, and under the authorization condition, DApp operation and operation conditions of certain real identity nodes are supervised and audited, and rule configuration (wind control audit) of risk control is provided; the basic service module is deployed on all block chain node equipment and used for verifying the validity of the service request, recording the service request to storage after consensus on the valid request is completed, for a new service request, the basic service firstly performs interface adaptation analysis and authentication processing (interface adaptation), then encrypts service information (consensus management) through a consensus algorithm, transmits the service information to a shared account (network communication) completely and consistently after encryption, and performs recording and storage; the intelligent contract module is responsible for registering and issuing a contract, triggering the contract and executing the contract, for example, an intelligent contract of a distributed application program in the application, a developer can define contract logic through a certain programming language, issue the contract logic to a block chain (contract registration), call a key or trigger execution of other events according to the logic of contract terms, complete the contract logic, and simultaneously provide a function of canceling the contract upgrading and canceling; the operation monitoring module is mainly responsible for deployment, configuration modification, contract setting, cloud adaptation in the product release process and visual output of real-time states in product operation, such as: alarm, monitoring network conditions, monitoring node equipment health status, and the like.
In the embodiment of the present application, a target interface template is sent to a user end, so that the user end generates an operation interface of a distributed application program according to the target interface template, receives an operation request of the user end to the operation interface, generates operation data to be stored in a block chain, generates intermediate code data of the distributed application program according to the operation data, receives a conversion instruction from the user end, obtains the intermediate code data, where the conversion instruction includes a target platform identifier, a block chain network identifier, and user key information, and sends 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 according to the block chain network identifier, where the conversion processing operation may include: after the user key information is verified by the block chain processing module, determining an application program format frame corresponding to the target platform identifier according to the corresponding relation between the preset platform identifier and the application program format frame; the method comprises the steps of identifying identifiers in intermediate code data, extracting fixed parameters in the intermediate code data, bringing the fixed parameters into an application program format frame corresponding to a target platform identifier, calling a compiling tool to compile to obtain target application program code data, signing the target application program code data by using a public key of a user side, sending the target application program code data to the user side, carrying out data processing and interaction in development through a block chain to ensure data authenticity, calling a preset template and controlling operation and operation by using an intelligent contract, reducing application program development design data processing steps and data processing amount, realizing application program customization, converting the application program frame to enable development of the application program frame not to be limited by a third-party system, and quickly realizing cross-platform generation and operation of the application program.
Referring to fig. 3, fig. 3 is a flowchart illustrating another application generating method according to an embodiment of the present application, where the method may be applied to a background management end in a block chain. As shown in fig. 3, the method may include:
301. and receiving a target interface template from a background management end, and generating an operation interface of the distributed application program according to the target interface template.
The application program generation method related in the embodiment of the application program can be realized based on a block chain. In a specific implementation, the user end performing the method may be understood as a terminal installed with client software, which may also be referred to as a terminal device, including but not limited to other portable devices such as mobile phones, laptops or tablets with touch sensitive surfaces (e.g. touch screen displays and/or touch pads), which may implement positioning services and navigation functions through applications. It should also be understood that in some embodiments, the devices described above are not portable communication devices, but rather are desktop computers having touch-sensitive surfaces (e.g., touch screen displays and/or touch pads).
In an embodiment, a user can log in a client account through the terminal, and after the identity is verified through the account of the background management end, an application interface of a corresponding DApp can be displayed in the terminal, the user can also operate the DApp, and the user can understand as an operation end for developing the DApp under the condition that the user is a developer, so that design and development of the DApp are realized.
302. And sending an operation request for the operation interface to the background management end, and executing an operation corresponding to the operation request under the condition of receiving an operation permission instruction from the background management end, wherein the operation request is used for the background management end to generate operation data and obtain target application program code data through a block chain processing module, and the target application program code data are suitable for a target platform specified by a user end.
In one embodiment, the user side may report an input item setting request including at least one input item to the background management side; the background server can determine the number of the input items of the input item setting request and the data types corresponding to the input items, generate input item setting data, and send the input item setting data to the user side, wherein the input item setting data comprises the number of the input items and the data types corresponding to the input items, so that the input frames corresponding to the input items can be displayed on the user side according to the input item setting data, and each input frame limits the input data types.
The steps 301 and 302 executed by the user end have been already described in the embodiment shown in fig. 2, and are not described herein again.
303. And receiving the code data from the target application program, analyzing the code data of the target application program and outputting the content of the target application program.
Specifically, after the background management end completes processing and generating the target application program code data, the user end may analyze the target application program code data and display a complete DApp interface, which is similar to a general application program, and the DApp may run on a terminal and a user may operate the terminal.
The embodiment of the application receives a target interface template from a background management end, generates an operation interface of a distributed application program according to the target interface template, sends an operation request to the operation interface to the background management end, executes an operation corresponding to the operation request under the condition 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 program code data, the target application program code data is suitable for a target platform appointed by a user end, receives the target application program code data, analyzes the target application program code data and outputs target application program content, data processing and interaction in application program development can be carried out based on a block chain, data authenticity is guaranteed, and the operation of the user end is controlled by an intelligent contract, the method can reduce the steps of developing and designing the data processing of the application program and the data processing amount, realize the customization of the application program, convert the application program framework to ensure that the development is not limited by a third-party system any more, flexibly and quickly carry out the DApp design and development and realize the cross-platform operation of the application program.
Based on the description of the embodiment of the application program generation method, the embodiment of the application also discloses an application program generation device. Referring to fig. 4, the application generating apparatus 400 includes:
a transmission module 410, configured to send a target interface template to a user side, so that the user side generates an operation interface of a distributed application program according to the target interface template;
the transmission module 410 is further configured to receive an operation request of the user terminal to the operation interface; a processing module 420, configured to generate operation data, store the operation data in a block chain, and generate intermediate code data of the distributed application program according to the operation data;
the transmission module 410 is further configured to receive a conversion instruction from the user side, and acquire the intermediate code data, where the conversion instruction includes a target platform identifier, a block chain network identifier, and user key information;
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 performing a conversion processing operation according to the blockchain network identifier, where the conversion processing operation includes: after the block chain processing module verifies the user key information, determining an application program format frame corresponding to the target platform identifier according to the corresponding relation between a preset platform identifier and the application program format frame; identifying identifiers in the intermediate code data to extract fixed parameters in the intermediate code data, bringing the fixed parameters into an application program format frame corresponding to the target platform identifier, and calling a compiling tool to compile to obtain target application program code data; and signing the target application program code data by using the public key of the user side and then sending the signed target application program code data to the user side.
In an embodiment, the application generating apparatus 400 described above in this embodiment of the application may be configured to perform a series of processes, including a method executed by the backend management end in the embodiment shown in fig. 2, and so on, which are not described herein again. The application generation apparatus 400 in the embodiment of the present application sends the target interface template to the user side, so that the user terminal generates an operation interface of the distributed application program according to the target interface template, receives an operation request of the user terminal to the operation interface, generates operation data and stores the operation data in the block chain, and generates intermediate code data of the distributed application program according to the operation data, receives a conversion instruction from the user terminal, acquires the intermediate code data, the conversion instruction includes a target platform identifier, a blockchain network identifier and user key information, and then, according to the blockchain network identifier, the intermediate code data and the user key information are sent to a blockchain processing module corresponding to the blockchain network identifier for conversion processing operation, where the conversion processing operation may include: after the user key information is verified by the block chain processing module, determining an application program format frame corresponding to the target platform identifier according to the corresponding relation between the preset platform identifier and the application program format frame; the method comprises the steps of identifying identifiers in intermediate code data, extracting fixed parameters in the intermediate code data, bringing the fixed parameters into an application program format frame corresponding to a target platform identifier, calling a compiling tool to compile to obtain target application program code data, signing the target application program code data by using a public key of a user side, sending the target application program code data to the user side, carrying out data processing and interaction in development through a block chain to ensure data authenticity, calling a preset template and controlling operation and operation by using an intelligent contract, reducing application program development design data processing steps and data processing amount, realizing application program customization, converting the application program frame to enable development of the application program frame not to be limited by a third-party system, and quickly realizing cross-platform generation and operation of the application program.
Based on the description of the above method embodiment and apparatus embodiment, an embodiment of the present application further provides another application generating apparatus, as shown in fig. 5, an application generating apparatus 500 includes:
a transmission module 510, configured to receive a target interface template from a background management end;
the processing module 520 is configured to generate an operation interface of the distributed application program according to the target interface template;
the transmission module 510 is further configured to send an operation request for the operation interface to the background management end;
the processing module 520 is further configured to, in a case that an operation-allowed instruction from the backend management terminal is received, execute an operation corresponding to the operation request, where the operation request is used by the backend management terminal to generate operation data and obtain target application code data through the blockchain processing module, where the target application code data is applicable to a target platform specified by the user terminal;
the transmission module 510 is further configured to receive code data from the target application; the processing module 520 is further configured to parse the target application code data and output the target application content.
In an embodiment, the application generating device 500 in the embodiment of the present application may be used to perform a series of processes, including the method in the embodiment shown in fig. 3 and the method executed by the user terminal in the embodiment shown in fig. 2, which are not described herein again.
Based on the description of the method embodiment and the device embodiment, the embodiment of the application further provides an electronic device. Referring to fig. 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, input device 602, output device 603, and computer storage medium 604 within the terminal may be connected by a bus or other means.
A computer storage medium 604 may be stored in the memory of the terminal, said computer storage medium 604 being adapted to store a computer program comprising program instructions, said processor 601 being adapted to execute said program instructions stored by said computer storage medium 604. The processor 601 (or CPU) is a computing core and a control core of the terminal, and is adapted to implement one or more instructions, and in particular, is adapted to load and execute the one or more instructions so as to implement a corresponding method flow or a corresponding function; in one embodiment, the processor 601 according to the embodiment of the present application may be configured to perform a series of processes, including the method performed in the embodiment shown in fig. 2 or fig. 3, and so on.
An embodiment of the present application further provides a computer storage medium (Memory), where the computer storage medium is a Memory device in a terminal and is used to store programs and data. It is understood that the computer storage medium herein may include a built-in storage medium in the terminal, and may also include an extended storage medium supported by the terminal. The computer storage medium provides a storage space that stores an operating system of the terminal. Also stored in this memory space are one or more instructions, which may be one or more computer programs (including program code), suitable for loading and execution by processor 601. The computer storage medium may be a high-speed RAM memory, or may be a non-volatile memory (non-volatile memory), such as at least one disk memory; and optionally at least one computer storage medium located remotely from the processor.
In one embodiment, one or more instructions stored in a computer storage medium may be loaded and executed by processor 601 to implement the corresponding steps of the method performed in the above embodiments; in particular implementations, one or more instructions in the computer storage medium may be loaded by the processor 601 and executed to perform any step of the method in fig. 2 or fig. 3, which is not described herein again.
It can be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described apparatuses and modules may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the several embodiments provided in the present application, it should be understood that the disclosed system, apparatus and method may be implemented in other ways. For example, the division of the module is only one logical division, and other divisions may be possible in actual implementation, for example, a plurality of modules or components may be combined or integrated into another system, or some features may be omitted, or not performed. The shown or discussed mutual coupling, direct coupling or communication connection may be an indirect coupling or communication connection of devices or modules through some interfaces, and may be in an electrical, mechanical or other form.
Modules described as separate parts may or may not be physically separate, and parts displayed as modules may or may not be physical modules, may be located in one place, or may be distributed on a plurality of network modules. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment.
The computer instructions may be stored on or transmitted from a website, computer, server, or data center via a wired (e.g., coaxial cable, fiber optic cable, digital subscriber line (DS L)) or wireless (e.g., infrared, wireless, microwave, etc.) manner to another website, computer, server, or data center.

Claims (10)

1. An application generation method, comprising:
sending a target interface template to a user side so that the user side can generate an operation interface of the distributed application program according to the target interface template;
receiving an operation request of the user end to the operation interface, generating operation data to be stored in a block chain, and generating intermediate code data of the distributed application program according to the operation data;
receiving a conversion instruction from the user side, and acquiring the intermediate code data, wherein the conversion instruction comprises a target platform identifier, a block chain network identifier and user key information;
according to the block chain network identifier, 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, wherein the conversion processing operation comprises: after the block chain processing module verifies the user key information, determining an application program format frame corresponding to the target platform identifier according to the corresponding relation between a preset platform identifier and the application program format frame; identifying identifiers in the intermediate code data to extract fixed parameters in the intermediate code data, bringing the fixed parameters into an application program format frame corresponding to the target platform identifier, and calling a compiling tool to compile to obtain target application program code data; and signing the target application program code data by using the public key of the user side and then sending the signed target application program code data to the user side.
2. The method according to claim 1, wherein before generating the intermediate code data of the distributed application according to the operation data of the user terminal, the method further comprises:
receiving an input item setting request for the operation interface from the user side;
determining the number of the input items of the input item setting request and the data types corresponding to the input items, generating input item setting data, and sending the input item setting data to the user side, wherein the input item setting data comprises the number of the input items and the data types corresponding to the input items.
3. The method of claim 2, wherein the entry setting request includes a name of an entry, the method further comprising: determining a parameter corresponding to the name of the input item;
the determining the number of the input items of the input item setting request and the data types corresponding to the input items comprises:
and determining the number of the input items and the data types corresponding to the input items according to the corresponding relation between the parameters corresponding to the names of the input items and the parameters and the data types specified in the intelligent contract.
4. A method according to any one of claims 1 to 3, wherein after obtaining the target application code data, the method comprises:
receiving a deployment request from the user side, wherein the deployment request comprises a user identifier and a target application program identifier, and the target application program identifier has a corresponding generated intelligent contract;
acquiring a private key of a verification block chain corresponding to the user identification;
signing the deployment request based on a private key of the verification blockchain, and sending the deployment request to the verification blockchain so that the verification blockchain deploys the intelligent contract.
5. The method according to claim 4, wherein after receiving the operation request of the user terminal to the operation interface and before generating the operation data, the method further comprises:
determining whether the operation request conforms to the operation logic of the target interface template;
if so, sending an operation permission instruction to the user side so that the user side executes the operation corresponding to the operation request.
6. An application generation method, comprising:
receiving a target interface template from a background management end, and generating an operation interface of a distributed application program according to the target interface template;
sending an operation request for the operation interface to the background management end, and executing an operation corresponding to the operation request under the condition that an operation allowing instruction from the background management end is received, wherein the operation request is used for the background management end to generate operation data and obtain target application program code data through a block chain processing module, and the target application program code data are suitable for a target platform appointed by a user end;
and receiving the code data from the target application program, analyzing the code data of the target application program and outputting the content of the target application program.
7. An application generation apparatus, comprising:
the transmission module is used for sending a target interface template to a user side so that the user side can generate an operation interface of the distributed application program according to the target interface template;
the transmission module is further used for receiving an operation request of the user end to the operation interface; the processing module is used for generating operation data to be stored in a block chain and generating intermediate code data of the distributed application program according to the operation data;
the transmission module is further configured to receive a conversion instruction from the user side, and acquire the intermediate code data, where the conversion instruction includes a target platform identifier, a block chain 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 performing a conversion processing operation according to the blockchain network identifier, where the conversion processing operation includes: after the block chain processing module verifies the user key information, determining an application program format frame corresponding to the target platform identifier according to the corresponding relation between a preset platform identifier and the application program format frame; identifying identifiers in the intermediate code data to extract fixed parameters in the intermediate code data, bringing the fixed parameters into an application program format frame corresponding to the target platform identifier, and calling a compiling tool to compile to obtain target application program code data; and signing the target application program code data by using the public key of the user side and then sending the signed target application program code data to the user side.
8. An application generation apparatus, comprising:
the transmission module is used for receiving a target interface template from a background management end;
the processing module is used for generating an operation interface of the distributed application program according to the target interface template;
the transmission module is further used for sending an operation request for the operation interface to the background management end;
the processing module is further configured to, in a case that an operation-allowed instruction from the backend management terminal is received, execute an operation corresponding to the operation request, where the operation request is used by the backend management terminal to generate operation data and obtain target application code data through the blockchain processing module, and the target application code data is applicable to a target platform specified by the user terminal;
the transmission module is further used for receiving code data from the target application program; 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, further comprising:
a processor adapted to implement one or more instructions; and the number of the first and second groups,
computer storage medium storing one or more instructions adapted to be loaded by the processor and to perform the application generation method according to any of claims 1-6.
10. A computer-readable storage medium, wherein the computer storage medium stores one or more instructions adapted to be loaded by a processor and to perform the application generation method of any of claims 1-6.
CN202010236449.3A 2020-03-30 2020-03-30 Application program generation method and device, electronic equipment and storage medium Pending CN111443976A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010236449.3A CN111443976A (en) 2020-03-30 2020-03-30 Application program generation method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010236449.3A CN111443976A (en) 2020-03-30 2020-03-30 Application program generation method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN111443976A true CN111443976A (en) 2020-07-24

Family

ID=71651284

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010236449.3A Pending CN111443976A (en) 2020-03-30 2020-03-30 Application program generation method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN111443976A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114443161A (en) * 2021-12-31 2022-05-06 北京达佳互联信息技术有限公司 Application docking method, device, equipment and storage medium
CN114500651A (en) * 2022-01-27 2022-05-13 成都质数斯达克科技有限公司 Block chain data transmission method, device and equipment and readable storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114443161A (en) * 2021-12-31 2022-05-06 北京达佳互联信息技术有限公司 Application docking method, device, equipment and storage medium
CN114500651A (en) * 2022-01-27 2022-05-13 成都质数斯达克科技有限公司 Block chain data transmission method, device and equipment and readable storage medium

Similar Documents

Publication Publication Date Title
EP4216081A1 (en) Information verification method, related apparatus, device, and storage medium
CN111737724B (en) Data processing method and device, intelligent equipment and storage medium
CN108197891B (en) Electronic signing device and method based on block chain
CN111080295B (en) Electronic contract processing method and device based on blockchain
US8245037B1 (en) Encryption key management
CN110808840B (en) Service processing method and device, electronic equipment and storage medium
US8417640B2 (en) Secure license key method and system
CN111488596A (en) Data processing permission verification method and device, electronic equipment and storage medium
CN112039826A (en) Login method and device applied to applet terminal
CN111131416A (en) Business service providing method and device, storage medium and electronic device
US8321925B1 (en) Distributed encryption key management
CN111488372A (en) Data processing method, device and storage medium
CN112182635B (en) Method, device, equipment and medium for realizing joint modeling
CN110866265A (en) Data storage method, device and storage medium based on block chain
CN111443976A (en) Application program generation method and device, electronic equipment and storage medium
CN107682376B (en) Wind control data interaction method and device
CN110825776B (en) Air quality detection report processing method and device, computing equipment and storage medium
EP1785901A1 (en) Secure License Key Method and System
CN112231755A (en) Data authorization method, device and system based on block chain
CN112995357B (en) Domain name management method, device, medium and electronic equipment based on cloud hosting service
CN111444090A (en) Contract testing method and device in block chain, electronic equipment and storage medium
CN113434254B (en) Client deployment method, client deployment apparatus, computer device, and storage medium
CN110602133B (en) Intelligent contract processing method, block chain management device and storage medium
CN111258625A (en) Software flashing detection method and device, storage medium and electronic equipment
CN111177536A (en) Method and device for transmitting customized information to unregistered user based on device fingerprint and electronic device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination