CN109683869A - The development approach and device of DAPP - Google Patents

The development approach and device of DAPP Download PDF

Info

Publication number
CN109683869A
CN109683869A CN201811639920.2A CN201811639920A CN109683869A CN 109683869 A CN109683869 A CN 109683869A CN 201811639920 A CN201811639920 A CN 201811639920A CN 109683869 A CN109683869 A CN 109683869A
Authority
CN
China
Prior art keywords
intelligent contract
chain
block chain
designated blocks
contract
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
CN201811639920.2A
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.)
Beijing Aster Time Technology Co Ltd
Original Assignee
Beijing Aster Time Technology 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 Beijing Aster Time Technology Co Ltd filed Critical Beijing Aster Time Technology Co Ltd
Priority to CN201811639920.2A priority Critical patent/CN109683869A/en
Publication of CN109683869A publication Critical patent/CN109683869A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/20Software design
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

This application discloses a kind of DAPP development approach and devices.This method comprises: receiving the first call request that client is sent, wherein the first call request includes the first calling mark and contract information;It finds out the first calling and identifies corresponding first calling interface module;When receive client transmission include designated blocks chain network identity first deployment request when, first calling interface module determines the intelligent contract template of corresponding designated blocks chain based on network identity, and contract information is mapped to intelligent contract template, generate the intelligent contract for disposing on designated blocks chain;Will include intelligent contract second deployment request be sent to designated blocks chain so that designated blocks chain disposes intelligent contract.The application can solve DAPP in the related technology and needed the overlapping development on different blocks chain the technical issues of in the process of development.

Description

The development approach and device of DAPP
Technical field
This application involves block chain technical fields, in particular to the development approach and device of a kind of DAPP.
Background technique
With the development of block chain technology, more and more scenes start to be implanted into block chain technology, the function number of block chain Out mainly by DAPP (Decentralized Application, Distributed Application) Lai Shixian, and DAPP is on block chain Core function is mainly realized by intelligent contract.
In the related technology, most block chains can only all support intelligent contract and the digital asset on oneself chain, different The development language of block chain is also not quite similar, and the DAPP of identical function is caused to need the overlapping development on different blocks chain different Version (including writing for different editions intelligence contract), needs on different blocks chain in the process of development so as to cause DAPP Overlapping development.
It is needed in the process of development aiming at the problem that overlapping development on different blocks chain, at present still DAPP in the related technology It does not put forward effective solutions.
Summary of the invention
The main purpose of the application is to provide the development approach and device of a kind of DAPP, to solve DAPP in the related technology It is needed the overlapping development on different blocks chain the problem of in the process of development.
To achieve the goals above, in a first aspect, this application provides the development approach of DAPP a kind of, this method is applied to Server, server include multiple first calling interface modules, and in each first calling interface module include at least one with The corresponding intelligent contract template of designated blocks chain, this method comprises:
Receive the first call request that client is sent, wherein the first call request includes the first calling mark and contract Information;
It finds out the first calling and identifies corresponding first calling interface module;
When receiving client transmission when including the first deployment request of network identity of designated blocks chain, first is adjusted The intelligent contract template of corresponding designated blocks chain is determined based on network identity with interface module, and contract information is mapped to intelligence Contract template generates the intelligent contract for disposing on designated blocks chain;
Will include intelligent contract second deployment request be sent to designated blocks chain so that designated blocks chain is to intelligent conjunction About disposed.
It optionally, further include that at least one intelligence corresponding with verifying block chain is closed in each first calling interface module About template, after lookup first calls and identifies corresponding first calling interface module, and in receive that client sends the Before one deployment request, this method further include:
First calling interface module by the intelligent contract template of the corresponding verifying block chain of contract information typing, generate for The intelligent contract disposed on verifying block chain;
By include be used for verifying block chain on dispose intelligent contract third deployment request be sent to verifying block Chain so that verifying block chain disposes the intelligence contract, and feeds back the operation information of the intelligence contract;
Operation information is generated into the first verification information, and the first verification information is sent to client.
Optionally, contract information is mapped to intelligent contract template, generates the intelligence for disposing on designated blocks chain Contract, comprising:
First calling interface module reflects the contract information for including in the intelligent contract for being used to dispose on verifying block chain It is mapped to the intelligent contract template of corresponding designated blocks chain, generates the intelligent contract for disposing on designated blocks chain.
Optionally, the first call request further includes user identifier, this method further include:
Based on the user identifier that the first call request includes, the private key of corresponding verifying block chain is obtained;
Private key based on verifying block chain signs to third deployment request, will include to be used in verifying area to execute The step of third deployment request for the intelligent contract disposed on block chain is sent to verifying block chain.
Optionally, the first deployment request further includes user identifier, this method comprises:
Based on the user identifier that the first deployment request includes, the private key of corresponding designated blocks chain is obtained;
Private key based on designated blocks chain signs to the second deployment request, will include the of intelligent contract to execute The step of two deployment requests are sent to designated blocks chain.
Optionally, server further includes private key escrow module, this method comprises:
The user identifier that private key escrow module includes in response to the first call request obtains the private key of verifying block chain;With/ Or
The user identifier that private key escrow module includes in response to the first deployment request, obtains the private key of designated blocks chain.
Optionally, server further includes multiple second calling interface modules, this method comprises:
Receive the second call request that client is sent, wherein the second call request includes the second calling mark and affairs Information;
It searches second and calls the corresponding second calling interface module of mark, so that the second calling interface module believes affairs Breath generates the transactions requests for meeting verifying block chain format;
Transactions requests are sent to verifying block chain, so that verifying block chain responds transactions requests, and feed back sound Answer information;
Response message is generated into the second verification information, and the second verification information is sent to client.
Second aspect, the embodiment of the present application also provides the development device of DAPP a kind of, which is applied to server, should Device includes:
First receiving module, for receiving the first call request of client transmission, wherein the first call request includes the One calls mark and contract information;
First searching module calls mark first for finding out corresponding first in multiple first calling interface modules Calling interface module, wherein include at least one intelligence corresponding with designated blocks chain in each first calling interface module Contract template;
First calling interface module, for when receive client transmission include designated blocks chain network identity When the first deployment request, the intelligent contract template of corresponding designated blocks chain is determined based on network identity, and contract information is mapped To intelligent contract template, the intelligent contract for disposing on designated blocks chain is generated;
First sending module, the second deployment request for that will include intelligent contract are sent to designated blocks chain, so that Designated blocks chain disposes intelligent contract.
It optionally, further include that at least one intelligence corresponding with verifying block chain is closed in each first calling interface module About template, the device further include the second sending module and third sending module;
First calling interface module, for generating the intelligent contract template of the corresponding verifying block chain of contract information typing Intelligent contract for being disposed on verifying block chain;
Second sending module, for by include be used for verifying block chain on dispose intelligent contract third deployment ask It asks and is sent to verifying block chain, so that verifying block chain disposes the intelligence contract, and feed back the operation of the intelligence contract Information;
First verification information for operation information to be generated the first verification information, and is sent to visitor by third sending module Family end.
The third aspect, the embodiment of the present application also provides a kind of computer readable storage medium, the computer-readable storages Media storage has computer code, and when computer code is performed, the development approach of above-mentioned DAPP is performed.
In the development approach of DAPP provided by the present application, by the first call request for receiving client transmission, wherein First call request includes the first calling mark and contract information;It finds out the first calling and identifies corresponding first calling interface mould Block;When receiving client transmission when including the first deployment request of network identity of designated blocks chain, the first calling is connect Mouth mold block determines the intelligent contract template of corresponding designated blocks chain based on network identity, and contract information is mapped to intelligent contract Template generates the intelligent contract for disposing on designated blocks chain;It will include the second deployment request transmission of intelligent contract Designated blocks chain is given, so that designated blocks chain disposes intelligent contract.By the above method, based on user demand building Intelligent contract, sends that call include the of the first calling interface module of the intelligence contract template by user end to server One call request, then at least one designated blocks chain of user demand deployment call each designated blocks chain based on first The contract information that interface module determines that the intelligent contract template of the corresponding designated blocks chain sends client is handled, and is generated The intelligent contract of user demand building, which is disposed on the designated blocks chain, is being developed in this way, realizing in DAPP In the process by the calling to intelligent contract template, a contract information is deployed in one or or multiple and different user respectively Purpose on designated blocks chain, and then solve DAPP in the related technology and need to repeat on different blocks chain in the process of development The technical issues of exploitation.
Detailed description of the invention
The attached drawing constituted part of this application is used to provide further understanding of the present application, so that the application's is other Feature, objects and advantages become more apparent upon.The illustrative examples attached drawing and its explanation of the application is for explaining the application, not Constitute the improper restriction to the application.In the accompanying drawings:
Fig. 1 is a kind of flow diagram of the development approach of DAPP provided by the embodiments of the present application;
Fig. 2 is the flow diagram of the development approach of another kind DAPP provided by the embodiments of the present application;
Fig. 3 is a kind of structural schematic diagram of system provided by the embodiments of the present application;
Fig. 4 is a kind of flow diagram of the development approach of DAPP that traces to the source provided by the embodiments of the present application;
Fig. 5 is a kind of structural schematic diagram of the development device of DAPP provided by the embodiments of the present application;
Fig. 6 is the structural schematic diagram of the development device of another kind DAPP provided by the embodiments of the present application.
Specific embodiment
In order to make those skilled in the art more fully understand application scheme, below in conjunction in the embodiment of the present application Attached drawing, the technical scheme in the embodiment of the application is clearly and completely described, it is clear that described embodiment is only The embodiment of the application a part, instead of all the embodiments.Based on the embodiment in the application, ordinary skill people Member's every other embodiment obtained without making creative work, all should belong to the model of the application protection It encloses.
It should be noted that the description and claims of this application and term " first " in above-mentioned attached drawing, " Two " etc. be to be used to distinguish similar objects, without being used to describe a particular order or precedence order.It should be understood that using in this way Data be interchangeable under appropriate circumstances, so as to embodiments herein described herein.In addition, term " includes " and " tool Have " and their any deformation, it is intended that cover it is non-exclusive include, for example, containing a series of steps or units Process, method, system, product or equipment those of are not necessarily limited to be clearly listed step or unit, but may include without clear Other step or units listing to Chu or intrinsic for these process, methods, product or equipment.
It should be noted that in the absence of conflict, the features in the embodiments and the embodiments of the present application can phase Mutually combination.The application is described in detail below with reference to the accompanying drawings and in conjunction with the embodiments.
According to the one aspect of the application, the embodiment of the present application provides the development approach of DAPP a kind of, and this method can be with Applied in server, which includes multiple first calling interface modules, and includes in each first calling interface module At least one intelligent contract template corresponding with designated blocks chain, Fig. 1 is a kind of opening for DAPP provided by the embodiments of the present application The flow diagram of forwarding method, as shown in Figure 1, this method includes the following steps, namely 100 to step 400:
100, receive client send the first call request, wherein the first call request include first call mark and Contract information.
Specifically, client is user operation terminal, and client can be completed to register in the server in advance, completes client Communication connection between server shows each first calling interface module in the client, and corresponding first calls Treaty content needed for interface module (i.e. contract information), for user first based on the functional requirement of DAPP, confirmation needs the intelligence constructed Energy contract (for example, intelligent contract may include that intelligent contract, intelligent contract of tracing to the source, permission is elected to control intelligent contract etc.), It determines that the intelligence contract is corresponding again and includes the first calling interface module of the intelligence contract template, and then determine first tune With the first scheduling identification (for example, number that the first scheduling identification is each first calling interface module) of interface module, determine Treaty content needed for the first calling interface module is asked by inputting contract information in client, and then generating first to call It asks, and is sent to server.
200, it finds out the first calling and identifies corresponding first calling interface module.
Specifically, each first mark is called only to correspond to only one the first calling interface module, in this way, adjusting according to first Call mark directly can determine that user demand is called in multiple first calling interface modules with include in request first One calling interface module.
300, when receiving client transmission when including the first deployment request of network identity of designated blocks chain, the One calling interface module determines the intelligent contract template of corresponding designated blocks chain based on network identity, and contract information is mapped to Intelligent contract template generates the intelligent contract for disposing on designated blocks chain.
Specifically, when user completes opening for one or more intelligent contracts by least one first calling interface module After hair, complete the program development of entire DAPP, need for the DAPP to be deployed in one or more designated blocks chains (for example, with The too blocks such as mill, Binet chain network) on, and then user sends the first deployment by user end to server and requests, being used for will The application of intelligence contract involved in DAPP is deployed on designated blocks chain, can when server receives the first deployment request Can specify area based on the network identity (network identity can be designated blocks chain network ID) for including in the first deployment request Block chain, and then meet by the first calling interface module calls the intelligent contract template of the designated blocks chain, then by corresponding conjunction About information MAP is into the intelligence contract template, to obtain the intelligent contract for meeting the designated blocks chain.
400, will include intelligent contract second deployment request be sent to designated blocks chain so that designated blocks chain is to intelligence Energy contract is disposed.
Specifically, after the intelligent contract that each first calling interface module generates for disposing on designated blocks chain, Generation includes the second deployment request of intelligent contract, and the second deployment request is sent to designated blocks chain, designated blocks chain The second deployment request is received, the intelligent contract for including in the second deployment request is disposed, to complete DAPP's Exploitation.
Therefore, in the present embodiment, through the above steps 100 to step 400, the intelligence based on user demand building is closed About, send the first calling interface module that calling includes the intelligence contract template by user end to server first calls Request, then at least one designated blocks chain of user demand deployment are based on the first calling interface mould for each designated blocks chain The contract information that block determines that the intelligent contract template of the corresponding designated blocks chain sends client is handled, and generating user needs The intelligent contract for asking building disposes the intelligence contract on the designated blocks chain.
It further include at least one and verifying block in a feasible embodiment, in each first calling interface module The corresponding intelligent contract template of chain, Fig. 2 are the process signals of the development approach of another kind DAPP provided by the embodiments of the present application Figure, as shown in Fig. 2, in step 200, after searching the corresponding first calling interface module of the first calling mark, and in step Before 300, this method include thes steps that following 210 to step 230:
210, the intelligent contract template of the corresponding verifying block chain of contract information typing is generated and is used by the first calling interface module In the intelligent contract disposed on verifying block chain;
220, by include be used for verifying block chain on dispose intelligent contract third deployment request be sent to verifying Block chain so that verifying block chain disposes the intelligence contract, and feeds back the operation information of the intelligence contract;
230, operation information is generated into the first verification information, and the first verification information is sent to client.
Specifically, after step 200, i.e., identifier lookup is called to go out to correspond to based on include in the first call request first The first calling interface module after, the first calling interface module is corresponding by the contract information typing for including in the first call request The intelligent contract template of block chain is verified, generates the intelligent contract for disposing on verifying block chain, regeneration is comprising useful Verifying block is sent in the third deployment request for the intelligent contract disposed on verifying block chain, and by third deployment request Chain, verifying block chain are disposed in response to the third and are requested, dispose to the intelligence contract, and verifying block chain is intelligently closed according to this It about disposes process and operational process generates the operation information of the corresponding intelligence contract (for example, whether intelligent contract is in verifying block The information such as operation in chain), and to the server feedback operation information, server carries out judgement generation first to the operation information and tests Information is demonstrate,proved, alternatively, server is sent to client using operation information as the first verification information, then by first verification information, Whether to respond completion to corresponding first call request of client feedback, alternatively, the first call request of client is reminded to exist Mistake, so that the response condition of the first call request of user's timely learning.
In a feasible embodiment, step 300, contract information is mapped to intelligent contract template, generation is used for The intelligent contract disposed on designated blocks chain, specifically:
First calling interface module reflects the contract information for including in the intelligent contract for being used to dispose on verifying block chain It is mapped to the intelligent contract template of corresponding designated blocks chain, generates the intelligent contract for disposing on designated blocks chain.
Specifically, when user needs for the intelligent contract of exploitation to be deployed on the designated blocks chain of user demand, user The first deployment request is sent by user end to server, for the application of intelligence contract involved in DAPP to be deployed to specified area It, can be based on the network identity (net for including in the first deployment request when server receives the first deployment request on block chain Network mark can be designated blocks chain network ID) it can specify block chain, and then met by the first calling interface module calls The intelligent contract template of the designated blocks chain, then extract the contract for including in the intelligent contract for disposing on verifying block chain Information, and the contract information typing is met in the intelligent contract template of the designated blocks chain, and then generate and meet the specified area The intelligent contract (can be in the intelligent contract disposed on designated blocks chain) of block chain.
In a feasible embodiment, the first call request further includes user identifier, the development approach of this DAPP is also Include the following steps:
Based on the user identifier that the first call request includes, the private key of corresponding verifying block chain is obtained;
Private key based on verifying block chain signs to third deployment request, will include to be used for execute step 230 The third deployment request for the intelligent contract disposed on verifying block chain is sent to verifying block chain.
Specifically, server is based on including user identifier in the first call request, obtains the private key of corresponding verifying block chain, It is signed again by the private key of the verifying block chain to third deployment request, third deployment request is sent to verifying block Chain, verifying block chain is verified based on signature of the public key to third deployment request, after verifying block chain to signature verification, by the The intelligent contract that three deployment requests include is disposed.
In a feasible embodiment, the first deployment request further includes that the development approach of user identifier this DAPP is also wrapped Include following steps:
Based on the user identifier that the first deployment request includes, the private key of corresponding designated blocks chain is obtained;
Private key based on designated blocks chain signs to the second deployment request, will include intelligent contract with step 400 Second deployment request be sent to designated blocks chain,.
Specifically, server obtains the private of corresponding designated blocks chain based on the user identifier for including in the first deployment request Key, then signed by the private key of the designated blocks chain to the second deployment request, the second deployment request is sent to specified area Block chain, designated blocks chain are verified based on signature of the public key to the second deployment request, will after designated blocks chain is to signature verification The intelligent contract that second deployment request includes is disposed.
In a feasible embodiment, server further includes private key escrow module, the development approach of this DAPP is also wrapped It includes as follows:
The user identifier that private key escrow module includes in response to the first call request obtains the private key of verifying block chain;With/ Or
The user identifier that private key escrow module includes in response to the first deployment request, obtains the private key of designated blocks chain.
Specifically, the client of user completes registration in private key escrow module in advance, obtains the user of corresponding client It identifies (for example, DAPP ID), when private key escrow module is requested in response to the first call request or the first deployment, private key escrow Module obtains the private key of verifying block chain or the private key of designated blocks chain in the packet, in this way, obtaining user by server The private key of the block chain needed avoids the private key that user needs seriatim to input block chain in client.
In a feasible embodiment, server further includes multiple second calling interface modules, the exploitation of this DAPP Method further includes as follows:
Receive the second call request that client is sent, wherein the second call request includes the second calling mark and affairs Information;
It searches second and calls the corresponding second calling interface module of mark, so that the second calling interface module believes affairs Breath generates the transactions requests for meeting verifying block chain format;
Transactions requests are sent to verifying block chain, so that verifying block chain responds transactions requests, and feed back sound Answer information;
Response message is generated into the second verification information, and the second verification information is sent to client.
Wherein, affairs refer to that basic unit and DAPP that data or information are recorded in block chain carry out information processing Basic unit, for example, realizing in the block chain network of electronic money function, a transaction record is exactly an affairs, DAPP's Basic function also just handles the transaction between different user.
Specifically, user is in the development process of DAPP, it may be necessary to the intelligence having been deployed in verifying block chain Contract carries out functional verification or verifies to some functions of DAPP, and then sends second by user end to server and adjust It include transaction information with request, in second call request and second calls mark, server includes multiple based on not working together Second calling interface module of service type, each second calls mark only to correspond to only one the second calling interface module, in this way, Server is based on the second calling identifier lookup and goes out corresponding second calling interface module, will to pass through the second calling interface module Transaction information generates the transactions requests for meeting verifying block chain format, and the transactions requests are sent to verifying block chain, verifying Block chain responds transactions requests, and feedback response information, and server carries out processing to response message and generates the second verifying Using response message as the second verification information, the second verification information is sent to client again by server for information or server, To complete to carry out functional verification to the intelligent contract having been deployed in verifying block chain or be carried out to some functions of DAPP Verifying.
In the present embodiment, the development approach of this DAPP can be implemented in system as shown in Figure 3, which includes visitor Family end, server, verifying block chain and at least one designated blocks chain, user carry out the logic development of DAPP by client, It is called intelligent contract template by the first calling interface module of server, intelligent contract template includes specific function intelligence Contract template (intelligent contract template of tracing to the source and the intelligent contract of election etc.) and general utility functions intelligence contract template (permission control intelligence Contract template and role's intelligence contract template etc.), and generated intelligent contract is deployed to by verifying block by sending module On chain and at least one designated blocks chain.In addition, the development approach for this DAPP is for example, Fig. 4 is the embodiment of the present application A kind of flow diagram of the development approach of DAPP that traces to the source of offer is traced to the source DAPP as shown in figure 4, user needs to develop one kind, And then obtain DAPP ID by private key escrow Module registers, each role is set and generates the private key of corresponding each block chain, so as to The private key of block chain is obtained by private key escrow module in each first calling interface module, each first calling interface module passes through tune Corresponding each intelligent contract (such as identity contract, rights management contract and contract of tracing to the source etc.) of intelligent contract template generation is taken, and The intelligent contract for carrying the private key of each block chain deployment request is sent to each block chain by sending module, so that block chain Each intelligent contract is disposed.
In the development approach of DAPP provided by the present application, by step 100, receives the first calling that client is sent and ask It asks, wherein the first call request includes the first calling mark and contract information;Step 200, the first calling mark is found out to correspond to The first calling interface module;Step 300, when receive client transmission include designated blocks chain network identity the When one deployment request, the first calling interface module determines the intelligent contract template of corresponding designated blocks chain based on network identity, and Contract information is mapped to intelligent contract template, generates the intelligent contract for disposing on designated blocks chain;Step 400, will Include intelligent contract second deployment request be sent to designated blocks chain so that designated blocks chain is to intelligent contract carry out portion Administration.By the above method, based on the intelligent contract of user demand building, sending calling by user end to server includes this First call request of the first calling interface module of intelligent contract template, then at least one designated blocks of user demand deployment Chain determines the intelligent contract template of the corresponding designated blocks chain based on the first calling interface module for each designated blocks chain The contract information sent to client is handled, and generates the intelligent contract of user demand building, should by intelligence contract deployment On designated blocks chain, in this way, realizing in DAPP in the process of development by the calling to intelligent contract template, by a contract Information be deployed in respectively one or or multiple and different user's designated blocks chains on purpose, and then solve in the related technology DAPP is needed in the process of development the overlapping development on different blocks chain the technical issues of.
Based on the same technical idea, the embodiment of the present application also provides the development device of DAPP a kind of, the device applications In server, Fig. 5 is a kind of structural schematic diagram of the development device of DAPP provided by the embodiments of the present application, as shown in figure 5, the dress It sets and includes:
First receiving module 10, for receiving the first call request of client transmission, wherein the first call request includes First calls mark and contract information;
First searching module 20 calls mark for finding out corresponding first in multiple first calling interface modules One calling interface module, wherein include at least one intelligence corresponding with designated blocks chain in each first calling interface module It can contract template;
First calling interface module 30, for when receive client transmission include designated blocks chain network identity The first deployment request when, the intelligent contract template of corresponding designated blocks chain is determined based on network identity, and contract information is reflected It is mapped to intelligent contract template, generates the intelligent contract for disposing on designated blocks chain;
First sending module 40, the second deployment request for that will include intelligent contract are sent to designated blocks chain, with Dispose designated blocks chain to intelligent contract.
Specifically, each module realizes that the detailed process of its function can be found in embodiment of the method in the device of the embodiment of the present application In associated description, details are not described herein again.
It optionally, further include that at least one intelligence corresponding with verifying block chain is closed in each first calling interface module About template, Fig. 6 is the structural schematic diagram of the development device of another kind DAPP provided by the embodiments of the present application, as shown in fig. 6, the dress Set further includes the second sending module 50 and third sending module 60;
First calling interface module 30, it is raw for contract information typing to be corresponded to the intelligent contract template of verifying block chain At the intelligent contract for being disposed on verifying block chain;
Second sending module 50, for that will include the third deployment for being used for the intelligent contract disposed on verifying block chain Request is sent to verifying block chain, so that verifying block chain disposes the intelligence contract, and feeds back the fortune of the intelligence contract Row information;
Third sending module 60 for operation information to be generated the first verification information, and the first verification information is sent to Client.
Optionally, the first calling interface module 30, is used for:
The contract information for including in the intelligent contract for being used to dispose on verifying block chain is mapped to corresponding designated blocks The intelligent contract template of chain generates the intelligent contract for disposing on designated blocks chain.
Optionally, the first call request further includes user identifier, the development device of this DAPP further include:
First obtains module, and the user identifier for including based on the first call request obtains corresponding verifying block chain Private key;
First signature blocks, for based on verifying block chain private key to third deployment request sign, with execute by Include for verify block chain on dispose intelligent contract third deployment request be sent to verifying block chain the step of.
Optionally, the first deployment request further includes user identifier, the development device of this DAPP further include:
Second obtains module, and the user identifier for including based on the first deployment request obtains corresponding designated blocks chain Private key;
Second signature blocks, for the private key based on designated blocks chain to second deployment request sign, with execute by It include second deployment request the step of being sent to designated blocks chain of intelligent contract.
Optionally, which further includes private key escrow module;
Private key escrow module, the user identifier for including in response to the first call request obtain the private of verifying block chain Key;And/or
Private key escrow module, the user identifier for including in response to the first deployment request, obtains the private of designated blocks chain Key.
Optionally, which further includes the second receiving module, the second searching module, the 4th sending module, the 5th transmission mould Block and multiple second calling interface modules;
Second receiving module, for receiving the second call request of client transmission, wherein the second call request includes the Two call mark and transaction information;
Second searching module calls the corresponding second calling interface module of mark for searching second;
Second calling interface module, for transaction information to be generated to the transactions requests for meeting verifying block chain format;
4th sending module, for transactions requests to be sent to verifying block chain, so that verifying block chain is to transactions requests It is responded, and feedback response information;
Second verification information for response message to be generated the second verification information, and is sent to visitor by the 5th sending module Family end.
In the development device of DAPP provided by the present application, by the first receiving module 10, sent for receiving client The first call request, wherein the first call request include first call mark and contract information;First searching module 20 is used The first calling interface module of mark is called in finding out corresponding first in multiple first calling interface modules, wherein each It include at least one intelligent contract template corresponding with designated blocks chain in first calling interface module;First calling interface mould Block 30, for being based on when receiving client transmission when including the first deployment request of network identity of designated blocks chain Network identity determines the intelligent contract template of corresponding designated blocks chain, and contract information is mapped to intelligent contract template, generates Intelligent contract for being disposed on designated blocks chain;First sending module 40, for that will include second of intelligent contract Administration's request is sent to designated blocks chain, so that designated blocks chain disposes intelligent contract.In this way, being constructed based on user demand Intelligent contract, by user end to server send call include the intelligence contract template the first calling interface module First call request, then at least one designated blocks chain of user demand deployment adjust each designated blocks chain based on first It is handled with the contract information that interface module determines that the intelligent contract template of the corresponding designated blocks chain sends client, it is raw At the intelligent contract that user demand constructs, which is disposed on the designated blocks chain, is being opened in this way, realizing in DAPP By the calling to intelligent contract template during hair, a contract information is deployed in one or or multiple and different use respectively Purpose on the designated blocks chain of family, and then solve DAPP in the related technology and need the weight on different blocks chain in the process of development The technical issues of developing again.
Based on the same technical idea, the embodiment of the present application also provides a kind of computer readable storage medium, the calculating Machine readable storage medium storing program for executing is stored with computer code, and when computer code is performed, the development approach of above-mentioned DAPP is held Row.
Obviously, those skilled in the art should be understood that each module of the above invention or each step can be with general Computing device realize that they can be concentrated on a single computing device, or be distributed in multiple computing devices and formed Network on, optionally, they can be realized with the program code that computing device can perform, it is thus possible to which they are stored Be performed by computing device in the storage device, perhaps they are fabricated to each integrated circuit modules or by they In multiple modules or step be fabricated to single integrated circuit module to realize.In this way, the present invention is not limited to any specific Hardware and software combines.
Computer program involved in the application can store in computer readable storage medium, described computer-readable Storage medium may include: any entity apparatus that can carry computer program code, virtual bench, flash disk, mobile hard disk, Magnetic disk, CD, computer storage, read-only computer storage (Read-Only Memory, ROM), random access computer Memory (Random Access Memory, RAM), electric carrier signal, telecommunication signal and other software distribution medium etc..
Obviously, those skilled in the art should be understood that each module of the above invention or each step can be with general Computing device realize that they can be concentrated on a single computing device, or be distributed in multiple computing devices and formed Network on, optionally, they can be realized with the program code that computing device can perform, it is thus possible to which they are stored Be performed by computing device in the storage device, perhaps they are fabricated to each integrated circuit modules or by they In multiple modules or step be fabricated to single integrated circuit module to realize.In this way, the present invention is not limited to any specific Hardware and software combines.
The foregoing is merely preferred embodiment of the present application, are not intended to limit this application, for the skill of this field For art personnel, various changes and changes are possible in this application.Within the spirit and principles of this application, made any to repair Change, equivalent replacement, improvement etc., should be included within the scope of protection of this application.

Claims (10)

1. a kind of development approach of Distributed Application DAPP, which is characterized in that this method is applied to server, the server packet Multiple first calling interface modules are included, and include at least one and designated blocks chain phase in each first calling interface module Corresponding intelligence contract template, this method comprises:
Receive the first call request that client is sent, wherein first call request includes the first calling mark and contract Information;
It finds out described first and calls the corresponding first calling interface module of mark;
When receiving that the client sends when including the first deployment request of network identity of the designated blocks chain, institute The intelligent contract template that the first calling interface module determines the corresponding designated blocks chain based on the network identity is stated, and The contract information is mapped to the intelligent contract template, the intelligence for disposing on the designated blocks chain is generated and closes About;
It will include that the second deployment request of the intelligent contract is sent to the designated blocks chain, so that the designated blocks chain The intelligent contract is disposed.
2. the development approach of DAPP according to claim 1, which is characterized in that in each first calling interface module Further include at least one intelligent contract template corresponding with verifying block chain, calls mark to correspond in the lookup described first The first calling interface module after, and before receiving the first deployment request that the client is sent, this method Further include:
The contract information typing is corresponded to the intelligent contract mould of the verifying block chain by the first calling interface module Plate generates the intelligent contract for disposing on the verifying block chain;
It will include to be used to be sent to the verifying in the third deployment request of the intelligent contract verified and disposed on block chain Block chain so that the verifying block chain disposes the intelligence contract, and feeds back the operation information of the intelligence contract;
The operation information is generated into the first verification information, and first verification information is sent to the client.
3. the development approach of DAPP according to claim 2, which is characterized in that described that the contract information is mapped to institute Intelligent contract template is stated, the intelligent contract for disposing on the designated blocks chain is generated, comprising:
The first calling interface module believes the contract for including in the intelligent contract for being used to dispose on the verifying block chain Breath is mapped to the intelligent contract template of the corresponding designated blocks chain, generates for disposing on the designated blocks chain Intelligent contract.
4. the development approach of DAPP according to claim 2, which is characterized in that first call request further includes user Mark, this method further include:
Based on the user identifier that first call request includes, the private key of the corresponding verifying block chain is obtained;
Private key based on the verifying block chain signs to third deployment request, will include to be used for execute described In the step of third deployment request for the intelligent contract disposed on the verifying block chain is sent to the verifying block chain.
5. the development approach of DAPP according to claim 4, which is characterized in that the first deployment request further includes user Mark, this method comprises:
Based on the user identifier that the first deployment request includes, the private key of the corresponding designated blocks chain is obtained;
Private key based on the designated blocks chain signs to the second deployment request, will include described to execute described The step of second deployment request of intelligent contract is sent to the designated blocks chain.
6. the development approach of DAPP according to claim 4 or 5, which is characterized in that the server further includes private key support Tube module, this method comprises:
The user identifier that the private key escrow module includes in response to first call request obtains the verifying block chain Private key;And/or
The user identifier that the private key escrow module includes in response to the first deployment request, obtains the designated blocks chain Private key.
7. the development approach of DAPP according to claim 1, which is characterized in that the server further includes multiple second tune With interface module, this method comprises:
Receive the second call request that client is sent, wherein second call request includes the second calling mark and affairs Information;
It searches described second and calls and identify the corresponding second calling interface module, so that the second calling interface module is by thing Business information generates the transactions requests for meeting the verifying block chain format;
The transactions requests are sent to the verifying block chain, so that the verifying block chain rings the transactions requests It answers, and feedback response information;
The response message is generated into the second verification information, and second verification information is sent to the client.
8. a kind of development device of DAPP, which is characterized in that the device is applied to server, which includes:
First receiving module, for receiving the first call request of client transmission, wherein first call request includes the One calls mark and contract information;
First searching module is called described in mark for finding out corresponding described first in multiple first calling interface modules First calling interface module, wherein include that at least one is opposite with designated blocks chain in each first calling interface module The intelligent contract template answered;
The first calling interface module, for when receive that the client sends include the designated blocks chain net When the first deployment request of network mark, the intelligent contract mould of the corresponding designated blocks chain is determined based on the network identity Plate, and the contract information is mapped to the intelligent contract template, generate the intelligence for disposing on the designated blocks chain It can contract;
First sending module, the second deployment request for that will include the intelligent contract are sent to the designated blocks chain, So that the designated blocks chain disposes the intelligent contract.
9. the development device of DAPP according to claim 8, which is characterized in that in each first calling interface module It further include at least one intelligent contract template corresponding with verifying block chain, which further includes the second sending module and third Sending module;
The first calling interface module, the intelligence for the contract information typing to be corresponded to the verifying block chain are closed About template generates the intelligent contract for disposing on the verifying block chain;
Second sending module, for that will include the third portion for being used for the intelligent contract disposed on the verifying block chain Administration's request is sent to the verifying block chain, so that the verifying block chain disposes the intelligence contract, and feeds back the intelligence The operation information of energy contract;
The third sending module, for the operation information to be generated the first verification information, and by first verification information It is sent to the client.
10. a kind of computer readable storage medium, the computer-readable recording medium storage has computer code, when the meter Calculation machine code is performed, as the development approach of the described in any item DAPP of claim 1-7 is performed.
CN201811639920.2A 2018-12-29 2018-12-29 The development approach and device of DAPP Pending CN109683869A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811639920.2A CN109683869A (en) 2018-12-29 2018-12-29 The development approach and device of DAPP

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811639920.2A CN109683869A (en) 2018-12-29 2018-12-29 The development approach and device of DAPP

Publications (1)

Publication Number Publication Date
CN109683869A true CN109683869A (en) 2019-04-26

Family

ID=66190352

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811639920.2A Pending CN109683869A (en) 2018-12-29 2018-12-29 The development approach and device of DAPP

Country Status (1)

Country Link
CN (1) CN109683869A (en)

Cited By (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110262777A (en) * 2019-05-21 2019-09-20 阿里巴巴集团控股有限公司 A kind of block chain application framework
CN110348202A (en) * 2019-07-12 2019-10-18 北京物资学院 A kind of mutual role help system and method based on block chain intelligence contract
CN110502218A (en) * 2019-08-26 2019-11-26 深圳前海环融联易信息科技服务有限公司 Intelligent contract development approach, device, computer equipment and storage medium
CN110532115A (en) * 2019-09-04 2019-12-03 北京海益同展信息科技有限公司 System, method and apparatus for developing intellectual resource contract
CN110933163A (en) * 2019-11-27 2020-03-27 腾讯科技(深圳)有限公司 Block chain contract deployment method, device, equipment and storage medium
CN111026982A (en) * 2019-10-15 2020-04-17 深圳壹账通智能科技有限公司 Intelligent contract processing method, computer equipment and storage medium
CN111338608A (en) * 2020-02-28 2020-06-26 腾讯科技(深圳)有限公司 Distributed application development method and device, node equipment and readable storage medium
CN111352706A (en) * 2020-02-28 2020-06-30 百度在线网络技术(北京)有限公司 Data access method, device, equipment and storage medium
CN111386523A (en) * 2019-11-08 2020-07-07 支付宝(杭州)信息技术有限公司 System and method for block chain based decentralized application development
CN111597269A (en) * 2020-05-21 2020-08-28 昆明大棒客科技有限公司 Block chain-based contract implementation method, device and equipment
CN112270160A (en) * 2020-10-10 2021-01-26 中国信息通信研究院 Method and device for distributing identifiers based on intelligent contracts
CN112418874A (en) * 2020-06-10 2021-02-26 上海哔哩哔哩科技有限公司 Data tracing method and device and computer equipment
CN112685016A (en) * 2020-12-31 2021-04-20 北京存金所贵金属有限公司 Development method, device and equipment of block chain application
CN112947984A (en) * 2020-09-29 2021-06-11 深圳市明源云科技有限公司 Application program development method and device
CN113162848A (en) * 2020-01-22 2021-07-23 北京百度网讯科技有限公司 Method, device, gateway and medium for realizing block chain gateway

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170344988A1 (en) * 2016-05-24 2017-11-30 Ubs Ag System and method for facilitating blockchain-based validation
CN108769751A (en) * 2018-05-02 2018-11-06 中广热点云科技有限公司 A kind of network video based on intelligent contract listens Management Support System
CN108830606A (en) * 2018-05-30 2018-11-16 阿里巴巴集团控股有限公司 The deployment of intelligent contract, executes method and apparatus at calling
CN109040195A (en) * 2018-07-11 2018-12-18 北京欧链科技有限公司 Processing method, device and the electronic equipment of DAPP service data

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170344988A1 (en) * 2016-05-24 2017-11-30 Ubs Ag System and method for facilitating blockchain-based validation
CN108769751A (en) * 2018-05-02 2018-11-06 中广热点云科技有限公司 A kind of network video based on intelligent contract listens Management Support System
CN108830606A (en) * 2018-05-30 2018-11-16 阿里巴巴集团控股有限公司 The deployment of intelligent contract, executes method and apparatus at calling
CN109040195A (en) * 2018-07-11 2018-12-18 北京欧链科技有限公司 Processing method, device and the electronic equipment of DAPP service data

Cited By (24)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110262777A (en) * 2019-05-21 2019-09-20 阿里巴巴集团控股有限公司 A kind of block chain application framework
CN110262777B (en) * 2019-05-21 2023-12-01 创新先进技术有限公司 Block chain application framework
CN110348202A (en) * 2019-07-12 2019-10-18 北京物资学院 A kind of mutual role help system and method based on block chain intelligence contract
CN110502218A (en) * 2019-08-26 2019-11-26 深圳前海环融联易信息科技服务有限公司 Intelligent contract development approach, device, computer equipment and storage medium
CN110502218B (en) * 2019-08-26 2023-05-19 深圳前海环融联易信息科技服务有限公司 Intelligent contract development method, intelligent contract development device, computer equipment and storage medium
CN110532115B (en) * 2019-09-04 2021-03-05 北京海益同展信息科技有限公司 System, method and apparatus for developing smart contracts
CN110532115A (en) * 2019-09-04 2019-12-03 北京海益同展信息科技有限公司 System, method and apparatus for developing intellectual resource contract
EP4027242A4 (en) * 2019-09-04 2023-09-20 Jingdong Technology Information Technology Co., Ltd. System, method, and device for developing smart contract
CN111026982A (en) * 2019-10-15 2020-04-17 深圳壹账通智能科技有限公司 Intelligent contract processing method, computer equipment and storage medium
CN111386523B (en) * 2019-11-08 2023-10-17 支付宝(杭州)信息技术有限公司 Systems and methods for blockchain-based decentralised application development
CN111386523A (en) * 2019-11-08 2020-07-07 支付宝(杭州)信息技术有限公司 System and method for block chain based decentralized application development
CN110933163A (en) * 2019-11-27 2020-03-27 腾讯科技(深圳)有限公司 Block chain contract deployment method, device, equipment and storage medium
CN110933163B (en) * 2019-11-27 2021-08-24 腾讯科技(深圳)有限公司 Block chain contract deployment method, device, equipment and storage medium
CN113162848A (en) * 2020-01-22 2021-07-23 北京百度网讯科技有限公司 Method, device, gateway and medium for realizing block chain gateway
CN113162848B (en) * 2020-01-22 2022-11-01 北京百度网讯科技有限公司 Method, device, gateway and medium for realizing block chain gateway
CN111338608A (en) * 2020-02-28 2020-06-26 腾讯科技(深圳)有限公司 Distributed application development method and device, node equipment and readable storage medium
CN111352706A (en) * 2020-02-28 2020-06-30 百度在线网络技术(北京)有限公司 Data access method, device, equipment and storage medium
CN111352706B (en) * 2020-02-28 2023-09-15 百度在线网络技术(北京)有限公司 Data access method, device, equipment and storage medium
CN111597269A (en) * 2020-05-21 2020-08-28 昆明大棒客科技有限公司 Block chain-based contract implementation method, device and equipment
CN112418874A (en) * 2020-06-10 2021-02-26 上海哔哩哔哩科技有限公司 Data tracing method and device and computer equipment
CN112947984A (en) * 2020-09-29 2021-06-11 深圳市明源云科技有限公司 Application program development method and device
CN112947984B (en) * 2020-09-29 2024-05-14 深圳市明源云科技有限公司 Application program development method and device
CN112270160A (en) * 2020-10-10 2021-01-26 中国信息通信研究院 Method and device for distributing identifiers based on intelligent contracts
CN112685016A (en) * 2020-12-31 2021-04-20 北京存金所贵金属有限公司 Development method, device and equipment of block chain application

Similar Documents

Publication Publication Date Title
CN109683869A (en) The development approach and device of DAPP
CN107317672A (en) A kind of light weight terminating machine block catenary system
CN109146679A (en) Intelligent contract call method and device, electronic equipment based on block chain
CN107301536A (en) Resource transfers method and device
CN107247726A (en) Suitable for the implementation method and device of the intelligent robot of multi-service scene
CN110070359A (en) Verification of data system, method, calculating equipment and storage medium based on block chain
CN110430235B (en) Method, apparatus, storage medium and computing device for cross-chain transmission of authenticatable messages
CN104363072A (en) Error information transfer and escape method, error information transfer and escape device and error information transfer and escape system
CN110990879B (en) Data evidence storing method based on block chain
CN109829679A (en) Project management method, device, computer installation and storage medium
CN107809332A (en) Compound interface configures and compound interface call method, device
CN107886006A (en) Data manipulation method, device and electronic equipment
CN107067559A (en) A kind of method and apparatus for realizing charging pile interconnection charging
CN109474926A (en) The number of taking based on block chain turns network method and device, storage medium
CN113506119A (en) APP-based charging pile transaction management method and system
CN110266807A (en) Internet of things data processing method and processing device
CN107734498A (en) Data migration method and device of the SIM card to eSIM cards
CN110163634A (en) Withdrawing method and device, electronic equipment based on block chain
CN110365711A (en) Multi-platform user identification relevancy method and device
CN108966226A (en) The method for processing business and device of identity-based information
CN106952081A (en) A kind of flow instance method and apparatus of authority classification business
CN111338645B (en) Method and device for creating system contract
CN102194292B (en) Billing server, tax copying system and tax copying method
CN112685792A (en) Model verification method and device and electronic equipment
CN107590682A (en) Advertisement placement method, server, hotspot device and system

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20190426

RJ01 Rejection of invention patent application after publication