Summary of the invention
A kind of data processing method and device and electronic equipment based on block chain that this specification embodiment provides:
According to this specification embodiment in a first aspect, provide a kind of data processing method based on block chain,
The transaction that various dimensions processing is carried out for target data that reception business side initiates;
The transaction is responded, the corresponding intelligent contract of each dimension is inquired;
The data process method stated in the corresponding intelligent contract of each dimension inquired described in calling;Wherein, the number
Include: according to processing logic
The historical data of current dimension in the target data and historical trading of current dimension is obtained, and to described current
The target data and historical data of dimension are handled.
Optionally, the historical data of current dimension is associated with by the digital digest of historical trading in the historical trading;
The historical data of current dimension in the acquisition historical trading, specifically includes:
Obtain the digital digest of the father's transaction recorded in the corresponding intelligent contract of current dimension;Wherein, father's transaction is to work as
History the last time of preceding dimension trades;
The corresponding historical data of the digital digest is obtained from historical data.
Optionally, the digital digest of father's transaction, comprising:
The hash value being calculated for the historical data progress hash of current dimension in father's transaction.
Optionally, the method also includes:
Calculate the digital digest of the target data of current dimension;
The digital digest of the father's transaction recorded in contract intelligent under the current dimension is updated to the target data
Digital digest.
Optionally, the digital digest of the target data for calculating current dimension, specifically includes:
Hash calculating is carried out for the target data of current dimension;
The hash value that hash is calculated is determined as digital digest.
Optionally, the response transaction is inquired the corresponding intelligent contract of each dimension, is specifically included:
The transaction is responded, calling is published on the routing logic stated in the master control intelligence contract of the block chain, inquires
The corresponding intelligent contract of the dimensional parameter carried in the transaction.
Optionally, the block chain is alliance's chain.
Optionally, the method also includes:
Receive the corresponding intelligent contract of any dimension of any alliance side's creation in alliance's chain;
Call the ballot logic stated in the intelligent contract being published on alliance's chain;Wherein, the ballot logic are as follows:
A ballot event is written in transaction log, after the alliance side of alliance's chain listens to the ballot event,
Vote trading is submitted to the intelligent contract;The intelligence contract carries out vote trading to summarize arrangement, obtains any dimension
Spend the auditing result of corresponding intelligent contract.
According to the second aspect of this specification embodiment, a kind of data processing equipment based on block chain is provided,
Receiving unit receives the transaction that various dimensions processing is carried out for target data that business side initiates;
Query unit responds the transaction, inquires the corresponding intelligent contract of each dimension;
Processing unit, the data process method stated in the corresponding intelligent contract of each dimension inquired described in calling;Its
In, the data process method includes: the history number of current dimension in the target data and historical trading for obtain current dimension
According to, and the target data and historical data of the current dimension are handled.
Optionally, the historical data of current dimension is associated with by the digital digest of historical trading in the historical trading;
The historical data of current dimension in the acquisition historical trading, specifically includes:
Obtain the digital digest of the father's transaction recorded in the corresponding intelligent contract of current dimension;Wherein, father's transaction is to work as
History the last time of preceding dimension trades;
The corresponding historical data of the digital digest is obtained from historical data.
Optionally, described device further include:
Computation subunit calculates the digital digest of the target data of current dimension;
Subelement is updated, the digital digest of the father's transaction recorded in contract intelligent under the current dimension is updated to described
The digital digest of target data.
Optionally, the query unit, specifically includes:
The transaction is responded, calling is published on the routing logic stated in the master control intelligence contract of the block chain, inquires
The corresponding intelligent contract of the dimensional parameter carried in the transaction.
Optionally, the block chain is alliance's chain.
Optionally, described device further include:
Receive the corresponding intelligent contract of any dimension of any alliance side's creation in alliance's chain;
Call the ballot logic stated in the intelligent contract being published on alliance's chain;Wherein, the ballot logic are as follows:
A ballot event is written in transaction log, after the alliance side of alliance's chain listens to the ballot event,
Vote trading is submitted to the intelligent contract;The intelligence contract carries out vote trading to summarize arrangement, obtains any dimension
Spend the auditing result of corresponding intelligent contract.
According to the third aspect of this specification embodiment, a kind of electronic equipment is provided, comprising:
Processor;
Memory for storage processor executable instruction;
Wherein, the processor is configured to data processing method of any of the above-described based on block chain.
This specification embodiment provides a kind of data processing scheme based on block chain, by advance in block chain
The corresponding intelligent contract of each dimension needed for publication carries out multi-dimensional data processing;Business side initiate for target data into
After the transaction of row various dimensions processing, the data process method stated in the corresponding intelligent contract of each dimension is called, to each dimension
The target data and historical data of degree are handled.Wherein, this specification additionally provides a kind of association structure of cochain transaction, leads to
Digital digest of the hash value being calculated for father's transaction content as son transaction is crossed, so that the transaction in each dimension be connected
Get up, and the digital digest of the last time transaction is recorded in the intelligent contract of corresponding dimension;To target data into
When row processing, the digital digest that can be traded based on the father recorded in the intelligent contract of each dimension obtains the historical data of each dimension.
On the one hand, the processing of the multi-dimensional data based on block chain, and can not distort due to block chain may be implemented in this specification, from
And it ensure that the validity of data processing;On the other hand, open and clear due to block chain, data processed result the whole network can be shared
Improve data circulation efficiency.
Specific embodiment
Example embodiments are described in detail here, and the example is illustrated in the accompanying drawings.Following description is related to
When attached drawing, unless otherwise indicated, the same numbers in different drawings indicate the same or similar elements.Following exemplary embodiment
Described in embodiment do not represent all embodiments consistent with this specification.On the contrary, they are only and such as institute
The example of the consistent device and method of some aspects be described in detail in attached claims, this specification.
It is only to be not intended to be limiting this explanation merely for for the purpose of describing particular embodiments in the term that this specification uses
Book.The "an" of used singular, " described " and "the" are also intended to packet in this specification and in the appended claims
Most forms are included, unless the context clearly indicates other meaning.It is also understood that term "and/or" used herein is
Refer to and includes that one or more associated any or all of project listed may combine.
It will be appreciated that though various information may be described using term first, second, third, etc. in this specification, but
These information should not necessarily be limited by these terms.These terms are only used to for same type of information being distinguished from each other out.For example, not taking off
In the case where this specification range, the first information can also be referred to as the second information, and similarly, the second information can also be claimed
For the first information.Depending on context, word as used in this " if " can be construed to " ... when " or
" when ... " or " in response to determination ".
Data processing generally refers to the process handled according to certain processing rule target data.For example, data
Analysis, is namely based on default rule, analyzes target data, to obtain analysis result.
Traditional data processing is mostly privately owned;I.e. enterprise carries out data processing, place using the data processing system of oneself
It is also all privately owned for managing result.Since data processing system is the privately owned customization of user, final data processed result can only
Private, it is difficult to open shared.Such as internet financing corporation, respectively possess oneself credit scoring system, user's portrait.
And privately owned data processing, treatment process are that enterprises are realized;Can't external disclosure, also without outer
Portion's supervision;Lack open and oversight mechanism, exists to the mistrustful problem of enterprise.
This specification embodiment provides a kind of data processing scheme based on block chain, by advance in block chain
The corresponding intelligent contract of each dimension needed for publication carries out multi-dimensional data processing;Business side initiate for target data into
After the transaction of row various dimensions processing, the data process method stated in the corresponding intelligent contract of each dimension is called, to each dimension
The target data and historical data of degree are handled.Wherein, this specification additionally provides a kind of association structure of cochain transaction, leads to
Digital digest of the hash value being calculated for father's transaction content as son transaction is crossed, so that the transaction in each dimension be connected
Get up, and the digital digest of the last time transaction is recorded in the intelligent contract of corresponding dimension;To target data into
When row processing, the digital digest that can be traded based on the father recorded in the intelligent contract of each dimension obtains the historical data of each dimension.
On the one hand, the processing of the multi-dimensional data based on block chain, and can not distort due to block chain may be implemented in this specification, from
And it ensure that the validity of data processing;On the other hand, open and clear due to block chain, data processed result the whole network can be shared
Improve data circulation efficiency.
It is noted that a kind of association structure for cochain transaction that above-mentioned this specification provides, can refer to block chain
In deposit incidence relation in the transaction of card between the historical data of identical dimensional.In this way, realizing between the data of various dimensions
Association and can not be tampered.
Please refer to the association structure schematic diagram between the different blocks in block chain shown in FIG. 1 with dimension historical data.Fig. 1
In, it is all to be generated according to block generating mode in traditional block chain between block 0, block 1, block ..., block N-1 and block N
's.The block head of block is the hash value of the block body of a upper block.For example, the block head of block 1 is the block according to block 0
The hash value arrived that body hash is calculated;That is in Fig. 1 shown in solid arrow.
Historical trading is generally recorded in the block body of block.One transaction may include the data of multiple dimensions.It is false
If data Tx 1 belongs to the first dimension in block 0, data Tx 2 belongs to the second dimension, and data Tx N belongs to third dimension.So
In Fig. 1, the data for belonging to the first dimension include Tx 1 in block 0, Tx 1 in the Tx 1 in block 1, block N-1 and
Tx 2 in block N, arrow 1 is associated with by a dotted line between the data of the first dimension;
Similar, the data for belonging to the second dimension include Tx 2 in block 0, in the Tx N in block 1, block N-1
Tx 2 and block N in Tx 1, arrow 2 is associated with by a dotted line between the data of the second dimension;
The data for belonging to third dimension include Tx N in block 0, the Tx N in the Tx 2 in block 1, block N-1 with
And the Tx N in block N, arrow 3 is associated with by a dotted line between the data of third dimension.
It should be noted that Fig. 1 understands that a data have only corresponded to a dimension for convenience, in practical applications one
A data can be to should belong to multiple dimensions.
Specifically, practical indicate is digital digest to dotted arrow.For example, in the first dimension, the Tx 1 and block of block 0
12 incidence relation of Tx is practical are as follows:
The digital digest of the Tx 2 of block 1 includes the hash value being calculated for the content hash of the Tx 1 of block 0;0
Indicate that block, Tx 1 indicate data.The digital digest of the Tx 2 of block N is to calculate for the content hash of the Tx 1 of block N-1
Obtained hash value.
Similar, in the second dimension, the digital digest of the Tx N of block 1 is to count for the content hash of the Tx 2 of block 0
Obtained hash value;Etc. repeat no more.
The digital digest traded by the hash value being calculated for father's transaction content as son, thus by each dimension
Transaction be together in series, and by the last time transaction digital digest be recorded in the intelligent contract of corresponding dimension.
By taking the first dimension as an example, when there is no historical trading, the number of father's transaction in the corresponding intelligent contract of the first dimension
Abstract is empty (null);When there is first block 0, the digital digest of the father's transaction recorded in intelligent contract is updated to hash
(0, Tx 1) wherein, 0 can indicate that father trades (block), and Tx 1 indicates data;When there is second block 1, update again
For hash (1, Tx 1);When there is N-1 block, it is updated to hash (N-1, Tx 1);When there is n-th block, more
Newly it is hash (N, Tx 2).
This description presents a kind of flow charts of data processing method based on block chain for introduction as shown in Figure 2 below.
The described method includes:
Step 110: receiving the transaction that various dimensions processing is carried out for target data that business side initiates;
Step 120: responding the transaction, inquire the corresponding intelligent contract of each dimension;
Step 130: the data process method stated in the corresponding intelligent contract of each dimension inquired described in calling;Its
In, the data process method includes: the history number of current dimension in the target data and historical trading for obtain current dimension
According to, and the target data and historical data of the current dimension are handled.
The block chain described in this specification can specifically include privately owned chain, shared chain and alliance's chain etc., in this theory
Without being particularly limited in bright book.
For example, in one scenario, above-mentioned block chain specifically can be by each enterprise for carrying out data processing as connection
One alliance's chain of alliance's member composition;The operator of alliance's chain can rely on alliance's chain, to dispose corresponding business;And
Enterprise as allied member described above all can serve as a service node of above-mentioned business.Each service node can
With by produced by itself or receive and business datum issued in alliance's chain in the form traded, and in the transaction
After common recognition processing by the common recognition node in alliance's chain, the distributed data base in alliance's chain is stored, in completion
" cochain " for stating Transaction Information deposits card.
Wherein, it should be noted that transaction (Transaction) described in this specification refers to and passes through block
The client of chain creates, and a data for needing finally to be distributed in the distributed data base of block chain.
Usually there is point of the transaction of narrow sense and the transaction of broad sense in the transaction in block chain.The transaction of narrow sense refers to use
The value Transfer that family is issued to block chain;For example, transaction can be user and exist in traditional bit coin block chain network
One initiated in block chain transfers accounts.And the transaction of broad sense refers to the industry being intended to business that user issues to block chain
Business data;For example, operator can build alliance's chain based on actual business demand, rely on the deployment of alliance's chain it is some with
Unrelated other types of line service (for example, depositing card business, data processing business etc.) of value Transfer, and in this kind of alliance's chain
In, transaction can be the service message or service request with business intention that user issues in alliance's chain.
Above-mentioned client may include any type of underlying services data stored using in block chain as data branch
Support, to realize the upper layer application of specific business function.
In block chain technology, block chain interior joint carries out operation to block and usually requires to rely on corresponding intelligent contract
(Smart contract).Such as the operations such as storage, modification, deletion are required to rely on intelligent contract in block chain.The intelligence
Can contract can be it is a kind of be intended to apply contract is propagated, verified or executed in a manner of information-based can be deployed on block chain
Computer protocol.By stating that service logic may be implemented to execute corresponding operating in intelligent contract.Intelligent contract allows
Do not have to carry out credible transaction in third-party situation.These transaction are traceable and irreversible.Intelligent contract, which is capable of providing, to be better than
The safety of traditional contracts method, and reduce other transaction costs relevant to contract.In general, intelligent contract can be and be deployed in area
Block chain node is local, can call corresponding intelligent contract when node needs to be implemented some movement, run intelligent contract with
The service logic stated in intelligent contract is executed, to obtain implementing result.
The corresponding intelligent contract of each dimension in this specification in block chain can be by the creation of any alliance side.Tool
Body, in one embodiment, the method also includes:
Receive the corresponding intelligent contract of any dimension of any alliance side's creation in alliance's chain;
Call the ballot logic stated in the intelligent contract being published on alliance's chain;Wherein, the ballot logic are as follows:
A ballot event is written in transaction log, after the alliance side of alliance's chain listens to the ballot event,
Vote trading is submitted to the intelligent contract;The intelligence contract carries out vote trading to summarize arrangement, obtains any dimension
Spend the auditing result of corresponding intelligent contract.
Some alliance side's (also referred to as federation node) in any one alliance's chain can initiate creation multidimensional to alliance's chain
Spend the transaction of the intelligent contract of data processing.It audits, and returns to intelligent contract of each alliance side in alliance's chain to creation
Return voting results;If the voting results of statistics meet preset condition, the intelligent contract created comes into force.
Below in conjunction with the flow diagram of the intelligent contract of Fig. 3 introduction creation multi-dimensional data processing.
1, alliance's chain initializes master control intelligence contract.
The master control intelligence contract is used to be routed to the intelligent contract of corresponding dimension according to the transaction that business side is submitted.
2, the intelligent contract of alliance's chain initialization ballot.
The intelligent industry of the ballot for each alliance side in alliance's chain for voting, to determine the intelligent contract of creation
Whether come into force.
3, the alliance side A in alliance's chain initiates the transaction of the intelligent contract of creation multi-dimensional data processing.
Alliance side can submit multiple intelligent contracts, and each intelligence contract represents a dimension of data processing.
3.1, after intelligent contract creates successfully, creation result and contract address are returned to alliance side.
If intelligent contract cochain, each intelligence contract can be assigned a unique contract address, according to conjunction
About address can be routed to the intelligent contract of storage.
4, alliance side A initiates the registration request of the intelligent contract of creation;
4.1, master control intelligence contract registers intelligent contract, and records contract address.
Master control intelligence contract records the contract address of intelligent contract, is routed so as to subsequent.
4.2, registering result is returned to alliance side A.
5, alliance's chain is broadcasted to the whole network and is notified, each alliance side is notified to carry out the ballot of intelligent contract.
6, each alliance side audits intelligent contract, and submits voting results to ballot contract.
7, the ballot contract of alliance's chain counts voting results, if voting results reach preset condition, notice connection
A intelligence contract in alliance side comes into force.
Wherein, the preset condition may include that the quantity that passes through of ballot audit reaches threshold value, then it is assumed that pass through.Here
Threshold value can be to be adjusted flexibly according to demand, if audit is intended to strictly, threshold value can be arranged to alliance's number formulary amount
90%;If audit is intended to loosely, threshold value can be set to the 50% of alliance's number formulary amount.
In this way, the intelligent contract for multi-dimensional data processing comes into force, multi-dimensional data processing can be provided for business side
Service.
In one embodiment, the response transaction is inquired the corresponding intelligent contract of each dimension, is specifically included:
The transaction is responded, calling is published on the routing logic stated in the master control intelligence contract of the block chain, inquires
The corresponding intelligent contract of the dimensional parameter carried in the transaction.
In practical applications, if business side needs invocation target intelligence contract needs to write Intelligent target conjunction exactly in transaction
Contract address about;However in practical applications, since intelligent contract quantity is more, especially multidimensional shown in this specification
The intelligent contract of data processing is spent, a dimension has just corresponded to an intelligent contract, and many intelligent contracts are all by alliance
It just creates, the contract address of each intelligent contract is remembered if necessary by business side, then higher cost.For this purpose, this specification
Provide one for routing master control intelligence contract, business side, which only needs to write the dimension that needs to be implemented exactly in submitting transaction, to be joined
Number, comprehensive intelligent contract can be routed to the intelligent contract of corresponding dimension automatically according to dimensional parameter.
Further, it can also judge whether the intelligent contract inquired comes into force, each dimension pair inquired described in calling
The data process method stated in the intelligent contract to come into force answered.
As shown in figure 3, also needing alliance side to carry out audit ballot after intelligent contract creation, only the case where voting through
Under, intelligent contract can just come into force.Therefore, when carrying out data processing, the intelligent contract to come into force may only also be called.
Digital digest described in this specification can refer to that (hash also referred to as dissipates based on initial data progress Hash
Column) calculate after obtained hash value.
In one embodiment, the historical data for obtaining current dimension in historical trading, specifically includes:
Obtain the digital digest of the father's transaction recorded in the corresponding intelligent contract of current dimension;Wherein, father's transaction is to work as
History the last time of preceding dimension trades;
The corresponding historical data of the digital digest is obtained from historical data.
Wherein, the digital digest of father's transaction, comprising:
The hash value being calculated for the historical data progress hash of current dimension in father's transaction.
In one embodiment, the method also includes:
Calculate the digital digest of the target data of current dimension;
The digital digest of the father's transaction recorded in contract intelligent under the current dimension is updated to the target data
Digital digest.
Wherein, the digital digest of the target data for calculating current dimension, specifically includes:
Hash calculating is carried out for the target data of current dimension;
The hash value that hash is calculated is determined as digital digest.
As shown in preceding Fig. 1, the historical data of current dimension is closed by the digital digest of historical trading in the historical trading
Connection.
The intelligent contract of each dimension in the process of implementation, pluck by the number of the father's transaction recorded in available intelligence contract
It wants;
And the summary data traded according to the father, assemble new transaction;
After transaction is completed, the digital digest currently traded is calculated, updates the digital digest of father's transaction.
After New Transaction assembling generates, after the completion of intelligent contract executes, it is individually created the New Transaction, completes intelligent contract
Implementation procedure.
Similarly, master control intelligence contract can call each dimension for the registered and intelligent contract that comes into force, carry out identical
Operation.
In conclusion this specification embodiment, provides a kind of data processing scheme based on block chain, by existing in advance
The corresponding intelligent contract of each dimension needed for publication carries out multi-dimensional data processing in block chain;It initiates to be directed to mesh in business side
After marking the transaction that data carry out various dimensions processing, the data process method stated in the corresponding intelligent contract of each dimension is called,
The target data and historical data of each dimension are handled.Wherein, this specification additionally provides a kind of pass of cochain transaction
It is coupled structure, the digital digest traded by the hash value being calculated for father's transaction content as son, thus by each dimension
Transaction be together in series, and by the last time transaction digital digest be recorded in the intelligent contract of corresponding dimension;To right
When target data is handled, the digital digest that can be traded based on the father recorded in the intelligent contract of each dimension obtains each dimension
Historical data.On the one hand, the processing of the multi-dimensional data based on block chain may be implemented in this specification, and not due to block chain
It can distort, to ensure that the validity of data processing;On the other hand, due to open and clear, the data processed result of block chain
The whole network, which can be shared, improves data circulation efficiency.
Corresponding with the aforementioned data processing method embodiment based on block chain, this specification is additionally provided based on block chain
Data processing equipment embodiment.Described device embodiment can be by software realization, can also be by hardware or soft or hard
The mode that part combines is realized.It taking software implementation as an example, is the place by equipment where it as the device on a logical meaning
Computer business program instruction corresponding in nonvolatile memory is read into memory what operation was formed by reason device.From hardware layer
For face, as shown in figure 4, a kind of hardware structure diagram for this specification based on equipment where the data processing equipment of block chain,
Other than processor shown in Fig. 4, network interface, memory and nonvolatile memory, setting where device in embodiment
For generally according to the data processing actual functional capability based on block chain, it can also include other hardware, this is repeated no more.
Fig. 5 is referred to, for the module map for the data processing equipment based on block chain that one embodiment of this specification provides, institute
It states device and has corresponded to embodiment illustrated in fig. 2, described device includes:
Receiving unit 310 receives the transaction that various dimensions processing is carried out for target data that business side initiates;
Query unit 320 responds the transaction, inquires the corresponding intelligent contract of each dimension;
Processing unit 330, the data process method stated in the corresponding intelligent contract of each dimension inquired described in calling;
Wherein, the data process method includes: the history of current dimension in the target data and historical trading for obtain current dimension
Data, and the target data and historical data of the current dimension are handled.
Optionally, the historical data of current dimension is associated with by the digital digest of historical trading in the historical trading;
The historical data of current dimension in the acquisition historical trading, specifically includes:
Obtain the digital digest of the father's transaction recorded in the corresponding intelligent contract of current dimension;Wherein, father's transaction is to work as
History the last time of preceding dimension trades;
The corresponding historical data of the digital digest is obtained from historical data.
Optionally, the digital digest of father's transaction, comprising:
The hash value being calculated for the historical data progress hash of current dimension in father's transaction.
Optionally, described device further include:
Computation subunit calculates the digital digest of the target data of current dimension;
Subelement is updated, the digital digest of the father's transaction recorded in contract intelligent under the current dimension is updated to described
The digital digest of target data.
Optionally, the digital digest of the target data for calculating current dimension, specifically includes:
Hash calculating is carried out for the target data of current dimension;
The hash value that hash is calculated is determined as digital digest.
Optionally, the query unit, specifically includes:
The transaction is responded, calling is published on the routing logic stated in the master control intelligence contract of the block chain, inquires
The corresponding intelligent contract of the dimensional parameter carried in the transaction.
Optionally, the block chain is alliance's chain.
Optionally, described device further include:
Receive the corresponding intelligent contract of any dimension of any alliance side's creation in alliance's chain;
Call the ballot logic stated in the intelligent contract being published on alliance's chain;Wherein, the ballot logic are as follows:
A ballot event is written in transaction log, after the alliance side of alliance's chain listens to the ballot event,
Vote trading is submitted to the intelligent contract;The intelligence contract carries out vote trading to summarize arrangement, obtains any dimension
Spend the auditing result of corresponding intelligent contract.
System, device, module or the unit that above-described embodiment illustrates can specifically realize by computer chip or entity,
Or it is realized by the product with certain function.A kind of typically to realize that equipment is computer, the concrete form of computer can
To be personal computer, laptop computer, cellular phone, camera phone, smart phone, personal digital assistant, media play
In device, navigation equipment, E-mail receiver/send equipment, game console, tablet computer, wearable device or these equipment
The combination of any several equipment.
The function of each unit and the realization process of effect are specifically detailed in the above method and correspond to step in above-mentioned apparatus
Realization process, details are not described herein.
For device embodiment, since it corresponds essentially to embodiment of the method, so related place is referring to method reality
Apply the part explanation of example.The apparatus embodiments described above are merely exemplary, wherein described be used as separation unit
The unit of explanation may or may not be physically separated, and component shown as a unit can be or can also be with
It is not physical unit, it can it is in one place, or may be distributed over multiple network units.It can be according to actual
The purpose for needing to select some or all of the modules therein to realize this specification scheme.Those of ordinary skill in the art are not
In the case where making the creative labor, it can understand and implement.
Figure 5 above describes inner function module and the structural representation of the data processing equipment based on block chain, essence
On executing subject can be a kind of electronic equipment, comprising:
Processor;
Memory for storage processor executable instruction;
Wherein, the processor is configured to:
The transaction that various dimensions processing is carried out for target data that reception business side initiates;
The transaction is responded, the corresponding intelligent contract of each dimension is inquired;
The data process method stated in the corresponding intelligent contract of each dimension inquired described in calling;Wherein, the number
Include: according to processing logic
The historical data of current dimension in the target data and historical trading of current dimension is obtained, and to described current
The target data and historical data of dimension are handled.
Optionally, the historical data of current dimension is associated with by the digital digest of historical trading in the historical trading;
The historical data of current dimension in the acquisition historical trading, specifically includes:
Obtain the digital digest of the father's transaction recorded in the corresponding intelligent contract of current dimension;Wherein, father's transaction is to work as
History the last time of preceding dimension trades;
The corresponding historical data of the digital digest is obtained from historical data.
Optionally, the digital digest of father's transaction, comprising:
The hash value being calculated for the historical data progress hash of current dimension in father's transaction.
Optionally, further includes:
Calculate the digital digest of the target data of current dimension;
The digital digest of the father's transaction recorded in contract intelligent under the current dimension is updated to the target data
Digital digest.
Optionally, the digital digest of the target data for calculating current dimension, specifically includes:
Hash calculating is carried out for the target data of current dimension;
The hash value that hash is calculated is determined as digital digest.
Optionally, the response transaction is inquired the corresponding intelligent contract of each dimension, is specifically included:
The transaction is responded, calling is published on the routing logic stated in the master control intelligence contract of the block chain, inquires
The corresponding intelligent contract of the dimensional parameter carried in the transaction.
Optionally, the block chain is alliance's chain.
Optionally, further includes:
Receive the corresponding intelligent contract of any dimension of any alliance side's creation in alliance's chain;
Call the ballot logic stated in the intelligent contract being published on alliance's chain;Wherein, the ballot logic are as follows:
A ballot event is written in transaction log, after the alliance side of alliance's chain listens to the ballot event,
Vote trading is submitted to the intelligent contract;The intelligence contract carries out vote trading to summarize arrangement, obtains any dimension
Spend the auditing result of corresponding intelligent contract.
In the embodiment of above-mentioned electronic equipment, it should be appreciated that the processor can be central processing unit (English:
Central Processing Unit, referred to as: CPU), can also be other general processors, digital signal processor (English:
Digital Signal Processor, referred to as: DSP), specific integrated circuit (English: Application Specific
Integrated Circuit, referred to as: ASIC) etc..General processor can be microprocessor or the processor is also possible to
Any conventional processor etc., and memory above-mentioned can be read-only memory (English: read-only memory, abbreviation:
ROM), random access memory (English: random access memory, abbreviation: RAM), flash memory, hard disk or solid
State hard disk.The step of method in conjunction with disclosed in the embodiment of the present invention, can be embodied directly in hardware processor and execute completion, or
Hardware and software module combination in person's processor execute completion.
All the embodiments in this specification are described in a progressive manner, same and similar portion between each embodiment
Dividing may refer to each other, and each embodiment focuses on the differences from other embodiments.It is set especially for electronics
For standby embodiment, since it is substantially similar to the method embodiment, so being described relatively simple, related place is referring to method reality
Apply the part explanation of example.
Those skilled in the art after considering the specification and implementing the invention disclosed here, will readily occur to this specification
Other embodiments.This specification is intended to cover any variations, uses, or adaptations of this specification, these modifications,
Purposes or adaptive change follow the general principle of this specification and undocumented in the art including this specification
Common knowledge or conventional techniques.The description and examples are only to be considered as illustrative, the true scope of this specification and
Spirit is indicated by the following claims.
It should be understood that this specification is not limited to the precise structure that has been described above and shown in the drawings,
And various modifications and changes may be made without departing from the scope thereof.The range of this specification is only limited by the attached claims
System.