CN109886694A - Data processing method and device and electronic equipment based on block chain - Google Patents

Data processing method and device and electronic equipment based on block chain Download PDF

Info

Publication number
CN109886694A
CN109886694A CN201910234317.4A CN201910234317A CN109886694A CN 109886694 A CN109886694 A CN 109886694A CN 201910234317 A CN201910234317 A CN 201910234317A CN 109886694 A CN109886694 A CN 109886694A
Authority
CN
China
Prior art keywords
dimension
transaction
data
intelligent contract
alliance
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.)
Granted
Application number
CN201910234317.4A
Other languages
Chinese (zh)
Other versions
CN109886694B (en
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.)
Advanced New Technologies Co Ltd
Advantageous New Technologies Co Ltd
Original Assignee
Alibaba Group Holding 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 Alibaba Group Holding Ltd filed Critical Alibaba Group Holding Ltd
Priority to CN202110667738.3A priority Critical patent/CN113421088A/en
Priority to CN201910234317.4A priority patent/CN109886694B/en
Publication of CN109886694A publication Critical patent/CN109886694A/en
Application granted granted Critical
Publication of CN109886694B publication Critical patent/CN109886694B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • G06Q20/382Payment protocols; Details thereof insuring higher security of transaction
    • G06Q20/3827Use of message hashing
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/64Protecting data integrity, e.g. using checksums, certificates or signatures

Abstract

This specification embodiment provides a kind of data processing method based on block chain and device and electronic equipment, which comprises receives the transaction that various dimensions processing is carried out for target data that 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 data process method includes: the historical data of current dimension in the target data and historical trading for obtain current dimension, and is handled the target data and historical data of the current dimension.

Description

Data processing method and device and electronic equipment based on block chain
Technical field
This specification embodiment is related to block chain technical field more particularly to a kind of data processing method based on block chain And device and electronic equipment.
Background technique
Block chain technology is also referred to as distributed account book technology, is that one kind is participated in " remembering jointly by several calculating equipment Account ", the emerging technology of common a complete distributed data base of maintenance.Since block chain technology has decentralization, openly Transparent, every calculating equipment can participate in data-base recording and respectively calculate that data synchronization can be rapidly performed by between equipment Characteristic so that block chain technology is widely applied in numerous fields.
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.
Detailed description of the invention
Fig. 1 be one embodiment of this specification provide block chain in different blocks between with dimension historical data association knot Structure schematic diagram;
Fig. 2 is the flow diagram for the data processing method based on block chain that one embodiment of this specification provides;
Fig. 3 is the flow diagram of the intelligent contract for the creation multi-dimensional data processing that one embodiment of this specification provides;
Fig. 4 is the hardware structure diagram for the data processing equipment based on block chain that one embodiment of this specification provides;
Fig. 5 is the module diagram for the data processing equipment based on block chain that one embodiment of this specification provides.
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.

Claims (15)

1. a kind of data processing method based on block chain, which comprises
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, at the data Managing logic includes:
The historical data of current dimension in the target data and historical trading of current dimension is obtained, and to the current dimension Target data and historical data handled.
2. according to the method described in claim 1, the historical data of current dimension passes through historical trading in the historical trading Digital digest association;
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 leading dimension History the last time of degree trades;
The corresponding historical data of the digital digest is obtained from historical data.
3. according to the method described in claim 2, the digital digest of father transaction, comprising:
The hash value being calculated for the historical data progress hash of current dimension in father's transaction.
4. according to the method described in claim 2, 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 number of the target data Abstract.
5. according to the method described in claim 4, the digital digest of the target data for calculating current dimension, specific to wrap It 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.
6. according to the method described in claim 1, the response transaction, inquires the corresponding intelligent contract of each dimension, tool Body includes:
The transaction is responded, calls and is published on the routing logic stated in the master control intelligence contract of the block chain, described in inquiry The corresponding intelligent contract of the dimensional parameter carried in transaction.
7. method according to claim 1 to 6, the block chain is alliance's chain.
8. according to the method described in claim 7, 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, to institute It states intelligent contract and submits vote trading;The intelligence contract carries out vote trading to summarize arrangement, obtains any dimension pair The auditing result for the intelligent contract answered.
9. a kind of data processing equipment based on block chain, described device include:
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;Wherein, institute The historical data that data process method includes: current dimension in the target data and historical trading for obtain current dimension is stated, with And the target data and historical data of the current dimension are handled.
10. device according to claim 9, the historical data of current dimension passes through historical trading in the historical trading Digital digest association;
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 leading dimension History the last time of degree trades;
The corresponding historical data of the digital digest is obtained from historical data.
11. device according to claim 10, 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 the target The digital digest of data.
12. device according to claim 9, the query unit, specifically include:
The transaction is responded, calls and is published on the routing logic stated in the master control intelligence contract of the block chain, described in inquiry The corresponding intelligent contract of the dimensional parameter carried in transaction.
13. the device according to any one of claim 9-12, the block chain is alliance's chain.
14. device according to claim 13, 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, to institute It states intelligent contract and submits vote trading;The intelligence contract carries out vote trading to summarize arrangement, obtains any dimension pair The auditing result for the intelligent contract answered.
15. a kind of electronic equipment, comprising:
Processor;
Memory for storage processor executable instruction;
Wherein, the processor is configured to method described in any one of the claims 1-8.
CN201910234317.4A 2019-03-26 2019-03-26 Data processing method and device based on block chain and electronic equipment Active CN109886694B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202110667738.3A CN113421088A (en) 2019-03-26 2019-03-26 Data processing method and device based on block chain and electronic equipment
CN201910234317.4A CN109886694B (en) 2019-03-26 2019-03-26 Data processing method and device based on block chain and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910234317.4A CN109886694B (en) 2019-03-26 2019-03-26 Data processing method and device based on block chain and electronic equipment

Related Child Applications (1)

Application Number Title Priority Date Filing Date
CN202110667738.3A Division CN113421088A (en) 2019-03-26 2019-03-26 Data processing method and device based on block chain and electronic equipment

Publications (2)

Publication Number Publication Date
CN109886694A true CN109886694A (en) 2019-06-14
CN109886694B CN109886694B (en) 2021-04-27

Family

ID=66934561

Family Applications (2)

Application Number Title Priority Date Filing Date
CN202110667738.3A Pending CN113421088A (en) 2019-03-26 2019-03-26 Data processing method and device based on block chain and electronic equipment
CN201910234317.4A Active CN109886694B (en) 2019-03-26 2019-03-26 Data processing method and device based on block chain and electronic equipment

Family Applications Before (1)

Application Number Title Priority Date Filing Date
CN202110667738.3A Pending CN113421088A (en) 2019-03-26 2019-03-26 Data processing method and device based on block chain and electronic equipment

Country Status (1)

Country Link
CN (2) CN113421088A (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110348825A (en) * 2019-06-26 2019-10-18 阿里巴巴集团控股有限公司 Electronic bill delivery method and device and electronic equipment based on block chain
CN110633309A (en) * 2019-08-30 2019-12-31 阿里巴巴集团控股有限公司 Block chain transaction processing method and device
CN110708371A (en) * 2019-09-27 2020-01-17 支付宝(杭州)信息技术有限公司 Data processing method, device and system based on block chain and electronic equipment
CN110874365A (en) * 2019-11-20 2020-03-10 深圳市网心科技有限公司 Information query method and related equipment thereof
CN111178710A (en) * 2019-12-18 2020-05-19 北京航天智造科技发展有限公司 Block chain-based performance capability authentication system and method
CN111475578A (en) * 2020-04-21 2020-07-31 吴海娟 Uplink voting method and system for intelligent contract in credit investigation union chain
CN111475849A (en) * 2019-11-08 2020-07-31 支付宝(杭州)信息技术有限公司 Private data query method and device based on block chain account
US10936581B2 (en) 2019-08-30 2021-03-02 Advanced New Technologies Co., Ltd. Blockchain transaction processing method and apparatus
CN112818414A (en) * 2021-04-16 2021-05-18 腾讯科技(深圳)有限公司 Data processing method, data processing device, computer equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107273759A (en) * 2017-05-08 2017-10-20 上海点融信息科技有限责任公司 Method, equipment and computer-readable recording medium for protecting block chain data
CN108765001A (en) * 2018-05-28 2018-11-06 江苏荣泽信息科技股份有限公司 Commercial real estate value analysis system and method based on block chain
CN108805707A (en) * 2018-05-21 2018-11-13 阿里巴巴集团控股有限公司 Works copyright revenue distribution method and device based on block chain
CN108898390A (en) * 2018-06-27 2018-11-27 阿里巴巴集团控股有限公司 Intelligent contract call method and device, electronic equipment based on block chain
CN109003078A (en) * 2018-06-27 2018-12-14 阿里巴巴集团控股有限公司 Intelligent contract call method and device, electronic equipment based on block chain

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170140408A1 (en) * 2015-11-16 2017-05-18 Bank Of America Corporation Transparent self-managing rewards program using blockchain and smart contracts
US20180165588A1 (en) * 2016-12-09 2018-06-14 Cognitive Scale, Inc. Providing Healthcare-Related, Blockchain-Associated Cognitive Insights Using Blockchains
CN112767158A (en) * 2018-02-27 2021-05-07 创新先进技术有限公司 Transaction execution method and device based on block chain and electronic equipment
CN111861433B (en) * 2018-03-30 2024-04-02 创新先进技术有限公司 Business execution method and device based on block chain and electronic equipment
CN108830606B (en) * 2018-05-30 2021-12-28 创新先进技术有限公司 Intelligent contract deploying, calling and executing method and device
CN109359933A (en) * 2018-08-31 2019-02-19 周开宇 A kind of innovation undertaking hatching system and method based on block chain
CN109453521B (en) * 2018-11-12 2022-03-22 网易(杭州)网络有限公司 Game prop processing method and system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107273759A (en) * 2017-05-08 2017-10-20 上海点融信息科技有限责任公司 Method, equipment and computer-readable recording medium for protecting block chain data
CN108805707A (en) * 2018-05-21 2018-11-13 阿里巴巴集团控股有限公司 Works copyright revenue distribution method and device based on block chain
CN108765001A (en) * 2018-05-28 2018-11-06 江苏荣泽信息科技股份有限公司 Commercial real estate value analysis system and method based on block chain
CN108898390A (en) * 2018-06-27 2018-11-27 阿里巴巴集团控股有限公司 Intelligent contract call method and device, electronic equipment based on block chain
CN109003078A (en) * 2018-06-27 2018-12-14 阿里巴巴集团控股有限公司 Intelligent contract call method and device, electronic equipment based on block chain

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110348825A (en) * 2019-06-26 2019-10-18 阿里巴巴集团控股有限公司 Electronic bill delivery method and device and electronic equipment based on block chain
CN110633309A (en) * 2019-08-30 2019-12-31 阿里巴巴集团控股有限公司 Block chain transaction processing method and device
US10936581B2 (en) 2019-08-30 2021-03-02 Advanced New Technologies Co., Ltd. Blockchain transaction processing method and apparatus
CN110708371A (en) * 2019-09-27 2020-01-17 支付宝(杭州)信息技术有限公司 Data processing method, device and system based on block chain and electronic equipment
CN111475849A (en) * 2019-11-08 2020-07-31 支付宝(杭州)信息技术有限公司 Private data query method and device based on block chain account
CN111475849B (en) * 2019-11-08 2024-03-12 支付宝(杭州)信息技术有限公司 Private data query method and device based on blockchain account
CN110874365A (en) * 2019-11-20 2020-03-10 深圳市网心科技有限公司 Information query method and related equipment thereof
CN110874365B (en) * 2019-11-20 2023-11-17 深圳市迅雷网络技术有限公司 Information query method and related equipment thereof
CN111178710A (en) * 2019-12-18 2020-05-19 北京航天智造科技发展有限公司 Block chain-based performance capability authentication system and method
CN111475578A (en) * 2020-04-21 2020-07-31 吴海娟 Uplink voting method and system for intelligent contract in credit investigation union chain
CN111475578B (en) * 2020-04-21 2022-12-13 布谷维客科技有限公司 Uplink voting method and system for intelligent contract in credit investigation union chain
CN112818414A (en) * 2021-04-16 2021-05-18 腾讯科技(深圳)有限公司 Data processing method, data processing device, computer equipment and storage medium
CN112818414B (en) * 2021-04-16 2021-07-13 腾讯科技(深圳)有限公司 Data processing method, data processing device, computer equipment and storage medium

Also Published As

Publication number Publication date
CN113421088A (en) 2021-09-21
CN109886694B (en) 2021-04-27

Similar Documents

Publication Publication Date Title
CN109886694A (en) Data processing method and device and electronic equipment based on block chain
CN110033244B (en) Intelligent contract execution method and device based on block chain and electronic equipment
CN109003078B (en) Intelligent contract calling method and device based on block chain and electronic equipment
US11823178B2 (en) Optimization of high volume transaction performance on a blockchain
TWI717866B (en) Cross-chain certificate deposit method and access method, device and electronic equipment
TW202022857A (en) Invoice creating method and device based on block chain and electronic device
TW202001656A (en) Intelligent contract invocation method and device based on block chain, and electronic device
WO2020082883A1 (en) Object selection method and device and electronic device
CN110163755B (en) Block chain-based data compression and query method and device and electronic equipment
WO2020082873A1 (en) Object selection method and device and electronic device
CN110135844A (en) Credit record, querying method and device and electronic equipment based on block chain
CN111213340A (en) Selecting and securing attestation delegations for cryptographic functions
CN110011996A (en) Application authorization method and device and electronic equipment based on block chain
EP3905178A1 (en) Blockchain-based resource allocation method and apparatus, and electronic device
CN110046523B (en) Intelligent contract checking method and device and electronic equipment
CN110738479A (en) Order management method and system based on multi-person ordering
WO2020155811A1 (en) Block chain intelligent contract execution method, device and electronic apparatus
EP3905172A1 (en) Blockchain-based invoice voiding method and apparatus, and electronic device
CN109981646A (en) Resource transfers method and device and electronic equipment based on block chain
CN109949108A (en) Invoice creation method and device, electronic equipment based on block chain
CN110020900A (en) Invoice based on block chain rushes red method and device and electronic equipment
CN107798135A (en) Paging query method and device and electronic equipment
CN110046944A (en) Invoice creation method and device, electronic equipment based on block chain
CN110163691A (en) Invoice creation method and device, electronic equipment based on block chain
CN110009497A (en) Decision-making technique and device and electronic equipment based on block chain

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
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20200924

Address after: Cayman Enterprise Centre, 27 Hospital Road, George Town, Grand Cayman Islands

Applicant after: Innovative advanced technology Co.,Ltd.

Address before: Cayman Enterprise Centre, 27 Hospital Road, George Town, Grand Cayman Islands

Applicant before: Advanced innovation technology Co.,Ltd.

Effective date of registration: 20200924

Address after: Cayman Enterprise Centre, 27 Hospital Road, George Town, Grand Cayman Islands

Applicant after: Advanced innovation technology Co.,Ltd.

Address before: A four-storey 847 mailbox in Grand Cayman Capital Building, British Cayman Islands

Applicant before: Alibaba Group Holding Ltd.

GR01 Patent grant
GR01 Patent grant