CN108763257A - DAPP containers, DAPP and block chain data processing method - Google Patents

DAPP containers, DAPP and block chain data processing method Download PDF

Info

Publication number
CN108763257A
CN108763257A CN201810287193.1A CN201810287193A CN108763257A CN 108763257 A CN108763257 A CN 108763257A CN 201810287193 A CN201810287193 A CN 201810287193A CN 108763257 A CN108763257 A CN 108763257A
Authority
CN
China
Prior art keywords
dapp
affairs
block chain
module
block
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
CN201810287193.1A
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 European Chain Technology Co Ltd
Original Assignee
Beijing European Chain 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 European Chain Technology Co Ltd filed Critical Beijing European Chain Technology Co Ltd
Priority to CN201810287193.1A priority Critical patent/CN108763257A/en
Publication of CN108763257A publication Critical patent/CN108763257A/en
Pending legal-status Critical Current

Links

Abstract

An embodiment of the present invention provides a kind of DAPP containers, DAPP and block chain data processing methods, wherein DAPP containers include DAPP interface modules, multiple affairs structure modules corresponding with multiple block chain networks and affairs sending module.The DAPP containers, DAPP and block chain data processing method of the present embodiment, bottom layer treatment logic towards block chain is abstracted, it is encapsulated in DAPP containers, and general calling interface is provided to DAPP, so that multiple DAPP can share the bottom layer treatment logic towards block chain, without individually developing corresponding logic again.DAPP containers through the embodiment of the present invention realize the lightweight of DAPP, and can be compatible with multiple block chain networks, can neatly increase or reduce supported block chain network.

Description

DAPP containers, DAPP and block chain data processing method
Technical field
A kind of DAPP containers of the embodiment of the present invention, DAPP and block chain data processing method belong to computer technology neck Domain.
Background technology
With the development of block chain technology, more and more functions start to start to develop under the system of block chain, wherein DAPP (Decentralized Application, Distributed Application) is just built upon the application on block Chain System, more Technical staff puts into the exploitation of DAPP, to realize the application function more based on block chain.
In the prior art, for the exploitation of DAPP, in order to be docked with block chain network, exploitation is needed to be permitted The bottom layer treatment logic of multi-tiling chain, to realize between the user oriented processing logical AND block chain network on upper layer Docking.Also, due to the open development model of block chain technology, can also there be numerous block chain networks (or referred to as area The framework of block chain), each block chain network follows respective data protocol and treatment mechanism, for DAPP developer, together One application function needs to develop the DAPP of multiple versions for different blocks chain network, user use when, and need Different editions DAPP is used respectively.
No matter it can be seen that in the prior art, from exploitation or use all there are many inconvenience in the technological frame of DAPP Place.
Invention content
A kind of DAPP containers of offer of the embodiment of the present invention, DAPP and block chain data processing method, realize that DAPP's is light Quantify and realizes the compatibility to different blocks chain network.
In order to realize above-mentioned target, an embodiment of the present invention provides a kind of DAPP containers, including:DAPP interface modules, with The corresponding multiple affairs structure modules of multiple block chain networks and affairs sending module, wherein
The DAPP interface modules receive the first interface call request of the affairs structure from DAPP, and described first connects Mouth call request includes block chain network mark, original transaction content and user key information, then, according to the block Chain network identifies, and the original transaction content and user key information is sent to corresponding with the block chain network mark Affairs build module;
The affairs build module, for according to the original transaction content and the user key information, executing affairs Structure processing is met in the form of the affairs of corresponding block chain network and signature rule so that the original transaction content to be built into Affairs, and be sent to affairs sending module;
The affairs sending module, for the affairs received to be sent to block chain network corresponding with the affairs In block chain node.
The embodiment of the present invention additionally provides a kind of DAPP, including:Upper layer application processing module and DAPP container joints call Module, wherein
The upper layer application processing module, the application function of interface processing logic and the DAPP for executing user's interaction Handle logic;
DAPP container joints call processing module, are patrolled for being handled according to the application function of the upper layer application processing module Volume implementing result, generate interface call request, and be sent to DAPP containers, wherein the interface call request includes:Affairs The first interface call request of structure and/or the second interface call request for reading block data, the first interface calling are asked Ask includes that block chain network mark, original transaction content and user key information, the second interface call request include Block data obtains demand and block chain network mark.
The embodiment of the present invention additionally provides a kind of block chain data processing method, and this method is executed based on DAPP containers, The DAPP containers include that DAPP interface modules, multiple affairs structure modules corresponding with multiple block chain networks and affairs are sent Module, this method include:
DAPP interface modules receive the first interface call request of the affairs structure from DAPP, and the first interface calls Request includes block chain network mark, original transaction content and user key information, then, according to the block chain network Mark, affairs structure corresponding with the block chain network mark is sent to by the original transaction content and user key information Model block;
Affairs build module according to the original transaction content and the user key information, execute the processing of affairs structure, Met in the form of the affairs of corresponding block chain network and the affairs of signature rule so that the original transaction content to be built into, and It is sent to affairs sending module;
The affairs received are sent to the block in block chain network corresponding with the affairs by affairs sending module Chain node.
The embodiment of the present invention additionally provides a kind of block chain data processing method, and this method is based on including upper layer application processing The DAPP of module and DAPP container joint calling modules, this method include:
Upper layer application processing module executes the interface processing logic of user's interaction and the application function of the DAPP handles logic, And implementing result is sent to DAPP container joint calling modules;
DAPP container joints call processing module to handle logic according to the application function of the upper layer application processing module Implementing result generates interface call request, and is sent to DAPP containers, wherein the interface call request includes:Affairs are built First interface call request and/or read block data second interface call request, in the first interface call request Including block chain network mark, original transaction content and user key information, the second interface call request includes block Data acquisition demand and block chain network mark.
The embodiment of the present invention additionally provides a kind of electronic equipment, including:
Memory, for storing program;
Processor is coupled to the memory, for executing described program, for:
DAPP containers are run to execute block chain data processing, which includes DAPP interface modules and multiple areas The corresponding multiple affairs structure modules of block chain network and affairs sending module, the block chain data processing include:
DAPP interface modules receive the first interface call request of the affairs structure from DAPP, and the first interface calls Request includes block chain network mark, original transaction content and user key information, then, according to the block chain network Mark, affairs structure corresponding with the block chain network mark is sent to by the original transaction content and user key information Model block;
Affairs build module according to the original transaction content and the user key information, execute the processing of affairs structure, Met in the form of the affairs of corresponding block chain network and the affairs of signature rule so that the original transaction content to be built into, and It is sent to affairs sending module;
The affairs received are sent to the block in block chain network corresponding with the affairs by affairs sending module Chain node.
The embodiment of the present invention additionally provides a kind of electronic equipment, including:
Memory, for storing program;
Processor is coupled to the memory, for executing described program, for:
DAPP is run to execute block chain data processing, which includes upper layer application processing module and DAPP container joints Calling module, the block chain data processing include:
Upper layer application processing module executes the interface processing logic of user's interaction and the application function of the DAPP handles logic, And implementing result is sent to DAPP container joint calling modules;
DAPP container joints call processing module to handle logic according to the application function of the upper layer application processing module Implementing result generates interface call request, and is sent to DAPP containers, wherein the interface call request includes:Affairs are built First interface call request and/or read block data second interface call request, in the first interface call request Including block chain network mark, original transaction content and user key information, the second interface call request includes block Data acquisition demand and block chain network mark.
The DAPP containers, DAPP and block chain data processing method of the present embodiment, by the bottom layer treatment towards block chain Logic is abstracted, and encapsulation in a reservoir, and provides general calling interface to DAPP, so that multiple DAPP can be total to With the bottom layer treatment logic towards block chain, without individually developing corresponding logic again.DAPP through the embodiment of the present invention Container realizes the lightweight of DAPP, and can be compatible with multiple block chain networks, can neatly increase or reduce and be propped up The block chain network held.
Above description is only the general introduction of technical solution of the present invention, in order to better understand the technical means of the present invention, And can be implemented in accordance with the contents of the specification, and in order to allow above and other objects of the present invention, feature and advantage can It is clearer and more comprehensible, below the special specific implementation mode for lifting the present invention.
Description of the drawings
Fig. 1 is the structure and application scenarios schematic diagram of the DAPP containers of the embodiment of the present invention one;
Fig. 2 is that the affairs of the embodiment of the present invention one build the structural schematic diagram of module;
Fig. 3 is the structural schematic diagram of the DAPP containers of the embodiment of the present invention two;
Fig. 4 is the structural schematic diagram of the DAPP of the embodiment of the present invention three;
Fig. 5 is the DAPP containers of the embodiment of the present invention four and one of the application scenarios schematic diagram of DAPP;
Fig. 6 is the two of the DAPP containers of the embodiment of the present invention four and the application scenarios schematic diagram of DAPP;
Fig. 7 is the flow diagram of the block chain data processing method of the embodiment of the present invention five;
Fig. 8 is the flow diagram of the block chain data processing method of the embodiment of the present invention six;
Fig. 9 is the flow diagram of the block chain data processing method of the embodiment of the present invention seven;
Figure 10 is the structural schematic diagram of the electronic equipment of the embodiment of the present invention.
Specific implementation mode
The exemplary embodiment of the disclosure is more fully described below with reference to accompanying drawings.Although showing the disclosure in attached drawing Exemplary embodiment, it being understood, however, that may be realized in various forms the disclosure without should be by embodiments set forth here It is limited.On the contrary, these embodiments are provided to facilitate a more thoroughly understanding of the present invention, and can be by the scope of the present disclosure Completely it is communicated to those skilled in the art.
Technical term defines
Affairs:In embodiments of the present invention, affairs refer to the base unit of record data or information in block chain, and DAPP carries out the basic unit of information processing, for example, in the block chain network of realization electronic money function, a transaction record is just As soon as being an affairs, the basic function of DAPP also handles the transaction between different user.
Block data:The aggregate of the multiple affairs of record within a block.
Embodiment one
The technical principle of the embodiment of the present invention is, the bottom function of being docked with block chain network in existing DAPP is carried out It is abstract, form the DAPP containers for the upper layer application function that can carry different DAPP.
As shown in Figure 1, its structure and application scenarios schematic diagram for the DAPP containers of the embodiment of the present invention one, the DAPP hold Device 1 includes:DAPP interface modules 11, multiple affairs structure 121~12n of module and affairs sending module 13.Wherein, each thing 121~12n of business structure module is corresponding with multiple and different 21~2n of block chain network respectively.The DAPP containers 1 can be to DAPP31~3m provides general-purpose interface, for handling at these DAPP interactions related with the block chain network of bottom or data Reason.In embodiments of the present invention, DAPP itself can be simplified, and only need to retain the processing logic for realizing its own function And the interface processing logic interacted with user, and the processing logic towards block chain network can by DAPP containers 1 It realizes, interaction is realized by interface calling between DAPP and DAPP containers.The specific of modules is introduced separately below Function.
DAPP interface modules
DAPP interface modules 11 are the modules directly docked with each DAPP, receive the of the affairs structure from DAPP One interface call request, first interface call request include block chain network mark, original transaction content and user key Information.Original transaction content is generated by DAPP, before being written to block chain, is needed to be translated into and is met block link network The affairs that network requires, and different block chain networks has affairs the requirement of different forms and rule.DAPP interface moulds After block 11 receives first interface call request, identified according to the block chain network that wherein carries, by original transaction content and User key information is sent to affairs structure module corresponding with block chain network mark.Wherein, above-mentioned user key information Can be the information that key file can also be used to description key file, such as the acquisition address of user key or user key Acquisition modes etc..
In practical applications, may include the parameter for selecting block chain network in the interface that DAPP containers are provided to DAPP Entrance.And DAPP can also provide the option of selection different blocks chain network on the interface interacted with user.When user selects Some block chain network concurrently rises run the affairs generation processing based on the block chain network after, DAPP generates above-mentioned the One interface call request, wherein the corresponding block chain network mark of the block chain network that user's selection can be carried, the block chain The parameter and original transaction content that network identity is called as interface pass to DAPP containers together.
Affairs build module
Different affairs structure 121~12n of module are correspondingly arranged from different 21~2n of block chain network, each affairs structure Record has the affairs form and signature rule of its corresponding block chain network in module, and with according to affairs form and label The execution logic that name rule is handled.Block chain network mark can have been recorded in DAPP interface modules 11 to build with each affairs Mapping relations between 121~12n of module, thus can according to DAPP by interface call transmit come block chain network mark Know, is built from multiple affairs and affairs structure module corresponding with the block chain network mark is selected to execute affairs structure in module Processing.
Affairs build module after receiving original transaction content and user key information, can according to original transaction content and User key information executes the processing of affairs structure, original transaction content is built into the thing for meeting corresponding block chain network The affairs of business form and signature rule, and it is sent to affairs sending module 13.
Further, for any one block chain network, the form and signature rule of affairs are two basic Protocol contents, for affairs structure module for and its carry out issued transaction core missions.Therefore, as shown in Fig. 2, It builds the structural schematic diagram of module for the affairs of the embodiment of the present invention one, and above-mentioned each affairs build module can be further Including affairs generation module and key signature module.
Affairs generation module 1211, the original transaction content for receiving the transmission of DAPP interface modules and user key letter Breath, and the original transaction content and user key information are sent to key signature module and execute signature processing.When receiving After the signature affairs content of return, which is packaged into the thing for the affairs form for meeting corresponding block chain network Business, and it is sent to affairs sending module.
Key signature module 1212, for according to the signature rule of corresponding block chain network, to original transaction content into The processing of row signature generates signature affairs content, and returns to affairs generation module.
Affairs sending module
Affairs sending module 13, for the affairs received to be sent to block chain network corresponding with the affairs.Affairs Sending module 13, which records, has the mapping relations between each affairs structure module and block chain network therefore can will come from thing The affairs of business structure module are sent to corresponding block chain network.
Block chain network referred to herein refers to the distributed network being made of multiple block chain nodes, and block chain node can be with It is the functional node on logical meaning, block chain node can be implemented as the server on network or user terminal, can also The function logic module being provided on server or user terminal.These block chain networks can be such as ether mill, IBM HyperLedger (a kind of block chain network of super account book type of IBM Corporation's exploitation), (one kind is based on LISK The expansible public block chain network of height of JavaScript) etc..
The affairs built can be sent to block chain network by affairs sending module 13, the note of the final block chain network The affairs can be written in block chain by account node according to the rule of block chain network where it.
The DAPP containers of the present embodiment, by the bottom layer treatment logic towards block chain, (affairs are built with affairs to block chain Send) it is abstracted, encapsulation in a reservoir, and provides general calling interface to DAPP, so that multiple DAPP can The bottom layer treatment logic towards block chain is shared, without individually developing corresponding logic again.Through the embodiment of the present invention DAPP containers, on the one hand, the lightweight of DAPP is realized, the function that developer can more be absorbed in DAPP itself is realized, And the processing logic towards block chain gives DAPP containers to handle, further, since DAPP reduce overlapping development towards block The bottom layer treatment logic of chain, reduces the waste of system resource so that being equipped with the terminal of DAPP or server realizes gently Quantization.On the other hand, in DAPP containers, affairs has been separately provided for each block chain network and have built module, enabling Compatible multiple block chain networks, and can neatly increase or reduce supported block chain network, this makes DAPP hold Utensil has the characteristic of flexible configuration.
Embodiment two
As shown in figure 3, its structural schematic diagram for the DAPP containers of the embodiment of the present invention two.On the basis of embodiment one On, increase the acquisition function of block data.As shown in figure 3, the DAPP containers, which further include multiple block datas, reads verification mould 41~4n of block, multiple block data read 141~14n of authentication module and correspond respectively to 21~2n of block chain network.
In the present embodiment, DAPP interface modules 11 increase the digital independent interface that block chain is provided for DAPP.Tool Body, which can receive the second interface call request of the reading block data from DAPP, and second connects Mouth call request includes that block data obtains demand and block chain network mark, and is identified according to block chain network, by block Data acquisition demand is sent to corresponding block data and reads authentication module (in 41~4n of selection block data reading authentication module Some), and receive block data and read the block data that authentication module returns, and be supplied to DAPP.
Block data reads authentication module, and for obtaining demand according to block data, verification mould is read from the block data Acquisition and the matched block data of data acquisition demand in the corresponding block chain network of block, and according to the data of the block chain network Proof rule is verified, and then will be sent to DAPP interface modules by the block data of verification.
By the DAPP containers of embodiment two, the function modeling of block data reading is realized, each DAPP can be based on The interface that the block data that DAPP containers provide is read obtains the block data after verification, to realize by DAPP containers Read-write between the block chain network interacts.In addition, in DAPP containers, block has been separately provided for each block chain network Digital independent authentication module, enabling compatible multiple block chain networks, and can neatly increase or reduce and be supported Block chain network, this make DAPP containers have flexible configuration characteristic.
Embodiment three
Embodiment one and embodiment two describe the basic structure of the DAPP containers of the embodiment of the present invention.Based on above-mentioned DAPP containers so that DAPP realizes lightweight.As shown in figure 4, its structural schematic diagram for the DAPP of the embodiment of the present invention three.Gently DAPP after quantization can realize the function treatment part towards block chain network by calling DAPP containers, specifically, The DAPP includes:Upper layer application processing module 51 and DAPP container joints calling module 52, wherein
Upper layer application processing module 51, for execute user interaction interface processing logic and the DAPP application function at Manage logic.Processing logic in upper layer application processing module 51 is also the characteristic part that each DAPP embodies itself function, this portion It is personalized to divide.For example, some DAPP is the DAPP of game class, then interface processing logic is exactly game interaction interface, is provided Game virtual button and game interactive picture etc., and application function processing logic is exactly the programmed logic of the game.For another example Some DAPP is the DAPP of transaction class, then interface processing logic is exactly transaction interface, and application function processing logic is exactly to merchandise The logics such as processing.In short, upper layer application processing module 51 is designed according to the function that different DAPP to be realized.
Wherein, it when upper layer application processing module 51 is when executing business processing, will produce and the interaction of block chain network Demand is just completed by the relevant interface for calling DAPP containers to provide when this happens.It is above-mentioned with block link network The demand of the interaction of network can be sent to DAPP container joints in the form of implementing result and call processing module 52.In implementing result May include the information such as the original transaction content mentioned in preceding embodiment, block data acquisition demand.
For example, in the operational process of game DAPP, the more new state of the recording game into block chain is needed, or from area Game information etc. is read in block chain, for another example in the operational process of transaction class DAPP, when handling transaction, needs to merchandise It is recorded in block chain, or reads previous Transaction Information etc. from block chain.The more new state of above-mentioned game and transaction Record etc. can be considered as affairs content.The processing docked with DAPP containers will give DAPP container joints and call processing mould Block 52 is completed.
DAPP container joints call processing module 52, for handling logic according to the application function of upper layer application processing module Implementing result, generate interface call request, and be sent to DAPP containers, wherein interface call request may include embodiment The second of the reading block data introduced in a kind of first interface call request of the affairs structure of introduction and/or embodiment two connects Mouth call request.First interface call request includes block chain network mark, original transaction content and user key information, Second interface call request includes that block data obtains demand and block chain network mark.
In the present embodiment, the DAPP that is built based on DAPP containers has a light-weighted characteristic, and convenient for developer into Row flexibly exploitation, the system resource of equipment where also capable of fully saving DAPP.
Example IV
As shown in figure 5, it is the DAPP containers of the embodiment of the present invention four and one of the application scenarios schematic diagram of DAPP, figure Shown in DAPP containers 1 and multiple 31~3m of DAPP may be contained in same user terminal.As shown in fig. 6, it is the present invention The two of the DAPP containers of example IV and the application scenarios schematic diagram of DAPP, as shown in the figure, 31~3m of DAPP are arranged in user In terminal, and DAPP containers are set to the server in network, and user terminal is connect by communication network with the server communication, The server can be with the server of block chain nodal function.It should be noted that the present embodiment only schematically shows Go out DAPP containers and the possible set-up mode of DAPP, more can be flexibly arranged as needed in practical applications, Such as DAPP can also be the application program of operation on the server, then DAPP containers and DAPP can be set to same service It, can also be separately positioned on different servers on device.
Embodiment five
As shown in fig. 7, its flow diagram for the block chain data processing method of the embodiment of the present invention five, the processing side DAPP container of the method based on embodiment one.This method includes:
S101:DAPP interface modules receive the first interface call request of the affairs structure from DAPP, first interface tune Include block chain network mark, original transaction content and user key information with request, then, according to block chain network mark Know, original transaction content and user key information, which are sent to affairs corresponding with block chain network mark, builds module;
S102:Affairs build module according to original transaction content and user key information, execute the processing of affairs structure, will Original transaction content is built into the affairs of the affairs form and signature rule that meet corresponding block chain network, and is sent to thing Business sending module;
S103:The affairs received are sent to block chain network corresponding with the affairs by affairs sending module.
Detailed functions explanation, the action processing contents such as details and technique effect of each function module of the present embodiment exist It has been carried out and fully describes in previous embodiment, content stands good in the present embodiment, and details are not described herein.
Embodiment six
As shown in figure 8, its flow diagram for the block chain data processing method of the embodiment of the present invention six, the processing side DAPP container of the method based on embodiment two.On the basis of embodiment five, this method can also include following process flow, at this It can be the relationship executed parallel that flow, which is managed, with the process flow in embodiment five.
S201:DAPP interface modules receive the second interface call request of the reading block data from DAPP, and second connects Mouth call request includes that block data obtains demand and block chain network mark, and is identified according to block chain network, by block Data acquisition demand is sent to corresponding block data and reads authentication module;.
S202:Block data reads authentication module and obtains demand according to block data, and verification mould is read from the block data Acquisition and the matched block data of data acquisition demand in the corresponding block chain network of block, and according to the data of the block chain network Proof rule is verified, and then will be sent to DAPP interface modules by the block data of verification.
S203:DAPP interface modules receive block data and read the block data that authentication module returns, and are supplied to DAPP.
Detailed functions explanation, the action processing contents such as details and technique effect of each function module of the present embodiment exist It has been carried out and fully describes in previous embodiment, content stands good in the present embodiment, and details are not described herein.
Embodiment seven
As shown in figure 9, its flow diagram for the block chain data processing method of the embodiment of the present invention seven, the processing side DAPP of the method based on embodiment three., this method can also include following process flow:
S301:Upper layer application processing module executes the interface processing logic of user's interaction and the application function of the DAPP is handled Logic, and implementing result is sent to DAPP container joint calling modules.
S302:DAPP container joints call processing module to handle logic according to the application function of upper layer application processing module Implementing result generates interface call request, and is sent to DAPP containers.Wherein, interface call request includes:The of affairs structure One interface call request and/or the second interface call request for reading block data, first interface call request includes block Chain network mark, original transaction content and user key information, second interface call request include that block data obtains demand And block chain network mark.
Detailed functions explanation, the action processing contents such as details and technique effect of each function module of the present embodiment exist It has been carried out and fully describes in previous embodiment, content stands good in the present embodiment, and details are not described herein.
Embodiment eight
Preceding embodiment describes the DAPP containers, DAPP and corresponding block chain data processing side of the embodiment of the present invention The specific embodiment of method, the function in above-mentioned technical proposal can be realized by a kind of electronic equipment to be completed, and as shown in Figure 10, be The structural schematic diagram of the electronic equipment of the embodiment of the present invention, specifically includes:Memory 110 and processor 120.
Memory 110, for storing program.
In addition to above procedure, memory 110 is also configured to store various other data to support in electronic equipment On operation.The example of these data includes the instruction for any application program or method that operate on an electronic device, connection It is personal data, telephone book data, message, picture, video etc..
Memory 110 can realize by any kind of volatibility or non-volatile memory device or combination thereof, Such as static RAM (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable is read-only Memory (EPROM), programmable read only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, disk Or CD.
Processor 120 is coupled to memory 110, for executing the program in memory 110, for:
DAPP containers are run to execute block chain data processing, which includes DAPP interface modules and multiple areas The corresponding multiple affairs structure modules of block chain network and affairs sending module, the block chain data processing include:
DAPP interface modules receive the first interface call request of the affairs structure from DAPP, first interface call request Include then block chain network mark, original transaction content and user key information are identified according to block chain network, it will Original transaction content and user key information are sent to affairs structure module corresponding with block chain network mark;
Affairs build module according to original transaction content and user key information, execute the processing of affairs structure, will be original Affairs content is built into the affairs of the affairs form and signature rule that meet corresponding block chain network, and is sent to affairs hair Send module;
The affairs received are sent to block chain network corresponding with the affairs by affairs sending module.
Wherein, DAPP containers further include that multiple block datas corresponding with multiple block chain networks read authentication module, side Method further includes:
DAPP interface modules receive the second interface call request of the reading block data from DAPP, and second interface is called Request includes that block data obtains demand and block chain network mark, and is identified according to block chain network, and block data is obtained It takes demand to be sent to corresponding block data and reads authentication module;
Block data reads authentication module and obtains demand according to block data, and reading authentication module from the block data corresponds to Block chain network in obtain with the matched block data of data acquisition demand, and according to the data verification of the block chain network advise It is then verified, then will be sent to DAPP interface modules by the block data of verification;
DAPP interface modules receive block data and read the block data that authentication module returns, and are supplied to DAPP.
The alternatively implementation of electronic equipment, processor 120 are coupled to memory 110, for executing storage Program in device 110, for:
DAPP is run to execute block chain data processing, which includes upper layer application processing module and DAPP container joints Calling module, the block chain data processing include:
Upper layer application processing module executes the interface processing logic of user's interaction and the application function of the DAPP handles logic, And implementing result is sent to DAPP container joint calling modules;
DAPP container joints call processing module according to the execution of the application function of upper layer application processing module processing logic As a result, generating interface call request, and it is sent to DAPP containers, wherein interface call request includes:The first of affairs structure connects Mouth call request and/or the second interface call request for reading block data, first interface call request includes block link network Network mark, original transaction content and user key information, second interface call request include block data obtain demand and Block chain network identifies.
In addition, other processing in previous embodiment can also be stored in memory 110 and be located in the form of program It manages device 120 and reads execution.Detailed processing procedure and technique effect have been described in detail in the aforementioned embodiment, same Sample is suitable for the present embodiment, and details are not described herein.
Further, as shown in Figure 10, electronic equipment can also include:Communication component 130, power supply module 140, audio component 150, other components such as display 160.Members are only schematically provided in Figure 10, are not meant to that electronic equipment only includes figure Component shown in 10.
Communication component 130 is configured to facilitate the communication of wired or wireless way between electronic equipment and other equipment.Electricity Sub- equipment can access the wireless network based on communication standard, such as WiFi, 2G or 3G or combination thereof.It is exemplary at one In embodiment, communication component 130 receives broadcast singal or broadcast correlation from external broadcasting management system via broadcast channel Information.In one exemplary embodiment, communication component 130 further includes near-field communication (NFC) module, to promote short range communication. For example, radio frequency identification (RFID) technology, Infrared Data Association (IrDA) technology, ultra wide band (UWB) skill can be based in NFC module Art, bluetooth (BT) technology and other technologies are realized.
Power supply module 140 provides electric power for the various assemblies of electronic equipment.Power supply module 140 may include power management System, one or more power supplys and other generate, manage and distribute electric power associated component with for electronic equipment.
Audio component 150 is configured as output and/or input audio signal.For example, audio component 150 includes a Mike Wind (MIC), when electronic equipment is in operation mode, when such as call model, logging mode and speech recognition mode, microphone by with It is set to reception external audio signal.The received audio signal can be further stored in memory 110 or via communication set Part 130 is sent.In some embodiments, audio component 150 further includes a loud speaker, is used for exports audio signal.
Display 160 includes screen, and screen may include liquid crystal display (LCD) and touch panel (TP).If screen Curtain includes touch panel, and screen may be implemented as touch screen, to receive input signal from the user.Touch panel includes one A or multiple touch sensors are to sense the gesture on touch, slide, and touch panel.Touch sensor can not only sense tactile It touches or the boundary of sliding action, but also detects and touch or the relevant duration and pressure of slide.This field is common Technical staff is appreciated that:Realize that all or part of step of above-mentioned each method embodiment can be relevant hard by program instruction Part is completed.Program above-mentioned can be stored in a computer read/write memory medium.When being executed, execution includes the program The step of above-mentioned each method embodiment;And storage medium above-mentioned includes:ROM, RAM, magnetic disc or CD etc. are various to be deposited Store up the medium of program code.
Finally it should be noted that:The above embodiments are only used to illustrate the technical solution of the present invention., rather than its limitations;To the greatest extent Present invention has been described in detail with reference to the aforementioned embodiments for pipe, it will be understood by those of ordinary skill in the art that:Its according to So can with technical scheme described in the above embodiments is modified, either to which part or all technical features into Row equivalent replacement;And these modifications or replacements, various embodiments of the present invention technology that it does not separate the essence of the corresponding technical solution The range of scheme.

Claims (10)

1. a kind of Distributed Application DAPP containers, which is characterized in that including DAPP interface modules, corresponding with multiple block chain networks Multiple affairs structure module and affairs sending module, wherein
The DAPP interface modules receive the first interface call request of the affairs structure from DAPP, the first interface tune Include block chain network mark, original transaction content and user key information with request, then, according to the block link network Network identifies, and the original transaction content and user key information are sent to affairs corresponding with the block chain network mark Build module;
The affairs build module, for according to the original transaction content and the user key information, executing affairs structure Processing is met in the form of the affairs of corresponding block chain network and the thing of signature rule so that the original transaction content to be built into Business, and it is sent to affairs sending module;
The affairs sending module, for the affairs received to be sent to block chain network corresponding with the affairs.
2. DAPP containers according to claim 1, which is characterized in that the affairs structure module includes affairs generation module With key signature module,
The affairs generation module, for receiving the original transaction content and user key letter that the DAPP interface modules are sent Breath, and the original transaction content and user key information are sent to the key signature module and execute signature processing, when connecing After the signature affairs content for receiving return, which is packaged into the affairs form for meeting corresponding block chain network Affairs, and be sent to the affairs sending module;
The key signature module, for according to the signature rule of corresponding block chain network, to the original transaction content into The processing of row signature generates signature affairs content, and returns to the affairs generation module.
3. DAPP containers according to claim 1, which is characterized in that further include corresponding multiple with multiple block chain networks Block data reads authentication module,
The DAPP interface modules are additionally operable to:The second interface call request of the reading block data from DAPP is received, it is described Second interface call request includes block data acquisition demand and block chain network mark, and according to the block chain network mark Know, block data acquisition demand, which is sent to corresponding block data, reads authentication module, and receives the block counts The block data returned according to authentication module is read, and it is supplied to the DAPP;
The block data reads authentication module, for obtaining demand according to the block data, is tested from block data reading Acquisition and the matched block data of data acquisition demand in the corresponding block chain network of module are demonstrate,proved, and according to the block link network The data verification rule of network is verified, and then will be sent to the DAPP interface modules by the block data of verification.
4. a kind of DAPP, which is characterized in that including upper layer application processing module and DAPP container joint calling modules, wherein
The application function of the upper layer application processing module, interface processing logic and the DAPP for executing user's interaction is handled Logic;
The DAPP container joints call processing module, are patrolled for being handled according to the application function of the upper layer application processing module Volume implementing result, generate interface call request, and be sent to DAPP containers, wherein the interface call request includes:Affairs The first interface call request of structure and/or the second interface call request for reading block data, the first interface calling are asked Ask includes that block chain network mark, original transaction content and user key information, the second interface call request include Block data obtains demand and block chain network mark.
5. a kind of block chain data processing method, which is characterized in that this method is executed based on DAPP containers, the DAPP container packets Include DAPP interface modules, multiple affairs structure modules corresponding with multiple block chain networks and affairs sending module, this method Including:
The DAPP interface modules receive the first interface call request of the affairs structure from DAPP, and the first interface calls Request includes block chain network mark, original transaction content and user key information, then, according to the block chain network Mark, affairs structure corresponding with the block chain network mark is sent to by the original transaction content and user key information Model block;
The affairs structure module executes the processing of affairs structure according to the original transaction content and the user key information, Met in the form of the affairs of corresponding block chain network and the affairs of signature rule so that the original transaction content to be built into, and It is sent to the affairs sending module;
The affairs received are sent to block chain network corresponding with the affairs by the affairs sending module.
6. according to the method described in claim 6, it is characterized in that, the DAPP containers further include and multiple block chain networks pair The multiple block datas answered read authentication module, and the method further includes:
The DAPP interface modules receive the second interface call request of the reading block data from DAPP, the second interface Call request includes that block data obtains demand and block chain network mark, and is identified according to the block chain network, by institute It states block data acquisition demand and is sent to corresponding block data reading authentication module;
The block data reads authentication module and obtains demand according to the block data, and authentication module is read from the block data Acquisition and the matched block data of data acquisition demand in corresponding block chain network, and according to the number of the block chain network It is verified according to proof rule, then will be sent to the DAPP interface modules by the block data of verification;
The DAPP interface modules receive the block data and read the block data that authentication module returns, and are supplied to described DAPP。
7. a kind of block chain data processing method, which is characterized in that this method is based on including upper layer application processing module and DAPP The DAPP of container joint calling module, this method include:
The upper layer application processing module executes the interface processing logic of user's interaction and the application function of the DAPP handles logic, And implementing result is sent to DAPP container joint calling modules;
The DAPP container joints call processing module to handle logic according to the application function of the upper layer application processing module Implementing result generates interface call request, and is sent to DAPP containers, wherein the interface call request includes:Affairs are built First interface call request and/or read block data second interface call request, in the first interface call request Including block chain network mark, original transaction content and user key information, the second interface call request includes block Data acquisition demand and block chain network mark.
8. a kind of electronic equipment, which is characterized in that including:
Memory, for storing program;
Processor is coupled to the memory, for executing described program, for:
DAPP containers are run to execute block chain data processing, which includes DAPP interface modules and multiple block chains The corresponding multiple affairs structure modules of network and affairs sending module, the block chain data processing include:
The DAPP interface modules receive the first interface call request of the affairs structure from DAPP, and the first interface calls Request includes block chain network mark, original transaction content and user key information, then, according to the block chain network Mark, the thing corresponding with the block chain network mark is sent to by the original transaction content and user key information Business structure module;
The affairs structure module executes the processing of affairs structure according to the original transaction content and the user key information, Met in the form of the affairs of corresponding block chain network and the affairs of signature rule so that the original transaction content to be built into, and It is sent to affairs sending module;
The affairs received are sent to block chain network corresponding with the affairs by affairs sending module.
9. electronic equipment according to claim 8, which is characterized in that the DAPP containers further include and multiple block link networks The corresponding multiple block datas of network read authentication module, and the method further includes:
The DAPP interface modules receive the second interface call request of the reading block data from DAPP, the second interface Call request includes that block data obtains demand and block chain network mark, and is identified according to the block chain network, by institute It states block data acquisition demand and is sent to corresponding block data reading authentication module;
The block data reads authentication module and obtains demand according to the block data, and authentication module is read from the block data Acquisition and the matched block data of data acquisition demand in corresponding block chain network, and according to the number of the block chain network It is verified according to proof rule, then will be sent to the DAPP interface modules by the block data of verification;
The DAPP interface modules receive the block data and read the block data that authentication module returns, and are supplied to described DAPP。
10. a kind of electronic equipment, which is characterized in that including:
Memory, for storing program;
Processor is coupled to the memory, for executing described program, for:
DAPP is run to execute block chain data processing, which includes that upper layer application processing module and DAPP container joints call Module, the block chain data processing include:
The upper layer application processing module executes the interface processing logic of user's interaction and the application function of the DAPP handles logic, And implementing result is sent to DAPP container joint calling modules;
The DAPP container joints call processing module to handle logic according to the application function of the upper layer application processing module Implementing result generates interface call request, and is sent to DAPP containers, wherein the interface call request includes:Affairs are built First interface call request and/or read block data second interface call request, in the first interface call request Including block chain network mark, original transaction content and user key information, the second interface call request includes block Data acquisition demand and block chain network mark.
CN201810287193.1A 2018-04-03 2018-04-03 DAPP containers, DAPP and block chain data processing method Pending CN108763257A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810287193.1A CN108763257A (en) 2018-04-03 2018-04-03 DAPP containers, DAPP and block chain data processing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810287193.1A CN108763257A (en) 2018-04-03 2018-04-03 DAPP containers, DAPP and block chain data processing method

Publications (1)

Publication Number Publication Date
CN108763257A true CN108763257A (en) 2018-11-06

Family

ID=63980741

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810287193.1A Pending CN108763257A (en) 2018-04-03 2018-04-03 DAPP containers, DAPP and block chain data processing method

Country Status (1)

Country Link
CN (1) CN108763257A (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109493027A (en) * 2018-11-19 2019-03-19 众安信息技术服务有限公司 A kind of method and device realized across chain transactional operation
CN109636547A (en) * 2019-01-02 2019-04-16 浙江师范大学 A kind of distributed parking shared system and implementation method based on block chain
CN110659430A (en) * 2019-08-23 2020-01-07 上海共链信息科技有限公司 Block chain browsing method supporting multi-block chain network
CN110677462A (en) * 2019-09-09 2020-01-10 上海共链信息科技有限公司 Access processing method, system, device and storage medium for multi-block chain network
CN110852887A (en) * 2020-01-14 2020-02-28 支付宝(杭州)信息技术有限公司 Method and device for acquiring transaction processing state in decentralized application cluster
CN111951110A (en) * 2020-08-10 2020-11-17 神话科技传媒(深圳)有限公司上海分公司 Economic model based on excitation of block chain
EP3812999A4 (en) * 2018-11-27 2021-09-29 Advanced New Technologies Co., Ltd. Multiple blockchain network-based data reading method and system

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106530083A (en) * 2016-10-27 2017-03-22 上海亿账通区块链科技有限公司 Multi-chain management method and system based on block chain
CN107145768A (en) * 2016-03-01 2017-09-08 华为技术有限公司 Copyright managing method and system
US20180075453A1 (en) * 2016-09-15 2018-03-15 American Express Travel Related Services Company, Inc. Systems and methods for blockchain based payment networks
US20180082256A1 (en) * 2016-09-19 2018-03-22 Sap Se Decentralized credentials verification network
CN107832275A (en) * 2017-11-29 2018-03-23 北京欧链科技有限公司 The generation method of intelligent Contract ID, apparatus and system in block chain

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107145768A (en) * 2016-03-01 2017-09-08 华为技术有限公司 Copyright managing method and system
US20180075453A1 (en) * 2016-09-15 2018-03-15 American Express Travel Related Services Company, Inc. Systems and methods for blockchain based payment networks
US20180082256A1 (en) * 2016-09-19 2018-03-22 Sap Se Decentralized credentials verification network
CN106530083A (en) * 2016-10-27 2017-03-22 上海亿账通区块链科技有限公司 Multi-chain management method and system based on block chain
CN107832275A (en) * 2017-11-29 2018-03-23 北京欧链科技有限公司 The generation method of intelligent Contract ID, apparatus and system in block chain

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109493027A (en) * 2018-11-19 2019-03-19 众安信息技术服务有限公司 A kind of method and device realized across chain transactional operation
EP3812999A4 (en) * 2018-11-27 2021-09-29 Advanced New Technologies Co., Ltd. Multiple blockchain network-based data reading method and system
CN109636547A (en) * 2019-01-02 2019-04-16 浙江师范大学 A kind of distributed parking shared system and implementation method based on block chain
CN110659430A (en) * 2019-08-23 2020-01-07 上海共链信息科技有限公司 Block chain browsing method supporting multi-block chain network
CN110659430B (en) * 2019-08-23 2023-07-04 上海共链信息科技有限公司 Block chain browsing method supporting multi-block chain network
CN110677462A (en) * 2019-09-09 2020-01-10 上海共链信息科技有限公司 Access processing method, system, device and storage medium for multi-block chain network
CN110677462B (en) * 2019-09-09 2022-07-12 上海共链信息科技有限公司 Access processing method, system, device and storage medium for multi-block chain network
CN110852887A (en) * 2020-01-14 2020-02-28 支付宝(杭州)信息技术有限公司 Method and device for acquiring transaction processing state in decentralized application cluster
CN110852887B (en) * 2020-01-14 2020-06-12 支付宝(杭州)信息技术有限公司 Method and device for acquiring transaction processing state in decentralized application cluster
CN111951110A (en) * 2020-08-10 2020-11-17 神话科技传媒(深圳)有限公司上海分公司 Economic model based on excitation of block chain

Similar Documents

Publication Publication Date Title
CN108763257A (en) DAPP containers, DAPP and block chain data processing method
CN108595970A (en) Configuration method, device, terminal and the storage medium of processing component
CN109076331A (en) The control method of electronic equipment and electronic equipment
CN106133826A (en) For the self-defining flexible modes of language model
CN108196915A (en) Code process method, equipment and storage medium based on application container engine
CN105378624A (en) Showing interactions as they occur on a whiteboard
CN104915835A (en) Credit account creating method, system and method
CN102971757A (en) Email tags
CN109150677A (en) Processing method, device and the electronic equipment of cross-domain access
CN109313668B (en) System and method for constructing session understanding system
CN105814579A (en) Sandboxed application data redirection to datacenters
CN107258072A (en) The conversation content management method and system and recording medium of chat software
CN103995833A (en) Method and device for sharing configuration information
CN109669680A (en) The development process method, apparatus and electronic equipment of Web page module
CN107205015A (en) The implementation method and device of open interface
CN109923834A (en) Context for collaboration workspace environment is talked with
CN110390493A (en) Task management method, device, storage medium and electronic equipment
CN204808402U (en) Electron deposit device, electron savings box toy and electron deposit system
US10694361B2 (en) Computer-implemented agent assisted electronic business cards
CN112765368B (en) Knowledge graph establishment method, device, equipment and medium based on industrial APP
CN108140039A (en) Transmit the record of the database access from parallel batch as a stream
CN103309677B (en) Built-in resource management, device and terminal
US11379561B2 (en) License usage management
CN107018182A (en) The fault-tolerance processing method and device of load balancing
CN108401081A (en) A kind of VOLTE network performance test methods and 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
RJ01 Rejection of invention patent application after publication

Application publication date: 20181106

RJ01 Rejection of invention patent application after publication