CN108171493A - The data processing method and device of block chain - Google Patents
The data processing method and device of block chain Download PDFInfo
- Publication number
- CN108171493A CN108171493A CN201711122849.6A CN201711122849A CN108171493A CN 108171493 A CN108171493 A CN 108171493A CN 201711122849 A CN201711122849 A CN 201711122849A CN 108171493 A CN108171493 A CN 108171493A
- Authority
- CN
- China
- Prior art keywords
- proposition
- block chain
- answer
- node
- data
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION 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/00—Payment architectures, schemes or protocols
- G06Q20/08—Payment architectures
- G06Q20/10—Payment architectures specially adapted for electronic funds transfer [EFT] systems; specially adapted for home banking systems
- G06Q20/102—Bill distribution or payments
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/22—Indexing; Data structures therefor; Storage structures
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/02—Details
- H04L12/16—Arrangements for providing special services to substations
- H04L12/18—Arrangements for providing special services to substations for broadcast or conference, e.g. multicast
Landscapes
- Engineering & Computer Science (AREA)
- Business, Economics & Management (AREA)
- Accounting & Taxation (AREA)
- Theoretical Computer Science (AREA)
- Finance (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- General Business, Economics & Management (AREA)
- Strategic Management (AREA)
- Economics (AREA)
- Signal Processing (AREA)
- Development Economics (AREA)
- Computer Networks & Wireless Communication (AREA)
- Software Systems (AREA)
- Data Mining & Analysis (AREA)
- Databases & Information Systems (AREA)
- General Engineering & Computer Science (AREA)
- Information Transfer Between Computers (AREA)
Abstract
An embodiment of the present invention provides a kind of data processing method and device of block chain, this method includes:First node in block chain network sends out proposition, and obtain the answer returned for the proposition, the proposition is as the condition for generating the content-data during the content-data of generation account book except the first node;The first node generates the content-data according to the answer.The embodiment of the present invention is provided by node in the generating process of content-data, proposition/answer mechanism is introduced, to control the generation of content-data, to increase the flexibility of the generating process of the content-data of account book, so as to expand the application range of block chain.
Description
Technical field
The present embodiments relate to block chain technology more particularly to a kind of data processing methods and device of block chain.
Background technology
Block chain is a kind of a kind of chain type number for being sequentially in time combined into data block in a manner of being sequentially connected
According to structure, and the distributed account book that can not be distorted He can not forge ensured in a manner of cryptography.Block chain be using P2P networks as
Basis and the architectural framework of decentralization that constructs, as shown in Figure 1, in the architectural framework of traditional block chain, mainly
Including two levels in figure:Data application layer and architecture layer.
Data application layer relates generally to the generation of the content-data of account book, and in the network of block chain, that participates in business is each
A node can be generated based on the generation of some affairs to be constituted with the relevant content-data of the affairs, these content-datas
The content-data of account book.Content-data in account book all can be associated with account.
Architecture layer refers to the generation of block, i.e., the packing of block and enters chain, be in the level groundwork:It is logical
The competition mechanism of block chain network is crossed, the account book generated in the first level is encrypted and meets area with the generation of data encapsulation process
The new block of block chain agreement, and the new block is linked on existing block chain, so as to fulfill the extension of block chain.
In the prior art, in above-mentioned data application layer, the generating process of content-data is a closing in account book
Process, the groundwork of the node of block chain is exactly passively to record content-data, will not with except block chain network
Node interacts, and the generating process of the content-data of account book lacks flexibility.
Invention content
The embodiment of the present invention provides a kind of data processing method and device of block chain, to increase the content-data of account book
The flexibility of generating process.
In order to achieve the above objectives, the embodiment of the present invention adopts the following technical scheme that:
In a first aspect, a kind of data processing method of block chain is provided, including:
First node in block chain network is during the content-data of generation account book, to the outgoing of the first node
Go out proposition, and obtain the answer returned for the proposition, the proposition is as the condition for generating the content-data;
The first node generates the content-data according to the answer.
Second aspect provides a kind of data processing equipment of block chain, including be arranged in block chain network first
The first proposition processing module and content-data generation module on node,
The first proposition processing module, for generation account book content-data during, to the first node
Except send out proposition, and obtain the answer returned for the proposition, condition of the proposition as the generation content-data;
First content data generation module, for generating the content-data according to the answer.
The data processing method and device of block chain provided in an embodiment of the present invention, by node content-data generation
In the process, proposition/answer mechanism is introduced, to control the generation of content-data, to increase the life of the content-data of account book
Into the flexibility of process, so as to expand the application range of block chain.
Above description is only the general introduction of technical solution of the present invention, in order to better understand the technological means of the present invention,
And it can be implemented in accordance with the contents of the specification, and in order to allow above and other objects of the present invention, feature and advantage can
It is clearer and more comprehensible, below the special specific embodiment for lifting the present invention.
Description of the drawings
Fig. 1 is the architectural framework schematic diagram of the block chain of the prior art;
Fig. 2 is one of schematic diagram of architectural framework of processing system of block chain of the embodiment of the present invention;
Fig. 3 is the two of the schematic diagram of the architectural framework of the processing system of the block chain of the embodiment of the present invention;
Fig. 4 is the three of the schematic diagram of the architectural framework of the processing system of the block chain of the embodiment of the present invention;
Fig. 5 is one of schematic diagram of architectural framework of block chain network of the embodiment of the present invention;
Fig. 6 is the two of the schematic diagram of the architectural framework of the block chain network of the embodiment of the present invention;
Fig. 7 is the flow diagram of the data processing method of the block chain of the embodiment of the present invention;
Fig. 8 is the structure diagram of the data processing equipment of the block chain of the embodiment of the present invention;
Fig. 9 is one of flow diagram of information processing method of block chain of the embodiment of the present invention;
Figure 10 is one of structure diagram of information processing unit of block chain of the present embodiment;
Figure 11 is the two of the flow diagram of the information processing method of the block chain of the embodiment of the present invention;
Figure 12 is the second structural representation of the information processing unit of the block chain of the embodiment of the present invention.
Specific embodiment
The exemplary embodiment of the disclosure is more fully described below with reference to accompanying drawings.Although the disclosure is shown in attached drawing
Exemplary embodiment, it being understood, however, that may be realized in various forms the disclosure without should be by embodiments set forth here
It is limited.On the contrary, these embodiments are provided to facilitate a more thoroughly understanding of the present invention, and can be by the scope of the present disclosure
Completely it is communicated to those skilled in the art.
Since block chain is proposed along with the generation of bit coin, it is related in description block chain
In data, transaction and the such expression of account book, with the development of block chain technology, the information and data being able to record are employed
Traditional transaction has been not limited to, and can be used to record any information and data.
Therefore, account book needs to carry out the understanding of broad sense:Account book does not imply that traditional records financial data
Account book, but any data information to change can be recorded, the variation of these data informations is triggered by some affairs.
Account book may be for record experimental data or for contract of record content, can also be used to record temperature number
According to or some commodity logistics information, can record work and life in every aspect there may be variation, simultaneously
And wish to record the data of this variation again.In the present invention, for the angle of account book, these data are collectively referred to as " interior
Hold data ", for specific account, the content of Account History is referred to as " content information ", the content information of multiple accounts is formed
The content-data of account book.
The extensive interpretation of account in account book:Here it is related with property also to refer not only to traditional record for account
Account, but the account of any data can be recorded, the account is distinguished by the unique subscriber identification on block chain, usually should
Unique user identifier is referred to as account address.Each content-data all can be associated with account, and the generation of an affairs may relate to
And an account may also be related to multiple accounts.For example, this account can be the mark of some commodity, this is record in account book
The corresponding logistics information of a commodity is all corresponding with the mark of the commodity.For another example record temperature record, this account can be with
Corresponding to some region.
The extensive interpretation of the transaction of account book:Here transaction is nor be that traditional record is related with property again
Trading activity, but referring to the event that the content information of any account is caused to change either causes the content-data of account book to become
The event of change.
In embodiments of the present invention, block chain refers to the data after block chain technology secrecy being made of multiple blocks
Storage organization, block chain network refer to there is the network that multiple nodes for realizing block chain technology are formed.Section in block chain network
Point can be the server or terminal device in internet with processing block chain data function.
The technical principle of the embodiment of the present invention is, in the generating process of the content-data of the account book of block chain, block
Chain is no longer passive record data, but is participated in the generating process of content-data, by introducing OM (oracle
Machine foretells machine) mechanism is used as the formation condition of new content-data, so that block chain network is for data
Processing can be more flexible and intelligent, so as to widen the application range of block chain technology.
As shown in Fig. 2, the schematic diagram of the architectural framework of the processing system of its block chain for the embodiment of the present invention, in this hair
In bright embodiment, OM mechanism has been introduced into the architectural framework of block chain, the generating process of the content-data of account book has been carried out
It improves, introduces condition of the OM mechanism as the generation of content-data.As shown in Fig. 2, the correlation function of OM mechanism is to be located at number
According between application layer and architecture layer, the major function of prophesy machine layer is exactly to generate answer (A) (i.e. QA according to proposition (Q)
Mechanism), data application layer is provided to, data application layer is after answer is got, using the answer as generation content-data
Condition perform the processing of generation content-data, in generation content-data and then be supplied to the architecture layer of the bottom
The content-data is subjected to block packing and is linked on block chain.
Specifically, the OM clothes that prophesy machine layer can be from the OM servers other than block chain network or inside block chain network
Being engaged in, either each corresponding client of account or each node obtain answer to device in block chain network.In the mistake of practical application
Cheng Zhong, the answer that prophesy machine layer is got for a proposition may be multiple, for example, these answers may be from multiple accounts
Client and/or from multiple OM servers etc., in this case, prophesy machine layer can be right according to some default rules
These multiple answers (these answers are equivalent to intermediate answer) are handled, and so as to generate, a confidence level is higher finally to be answered
Then case is available to data application layer.
As shown in figure 3, alternatively realization method, proposition and answer between data application layer and prophesy machine layer
Interaction is all driven into block chain by the architecture layer of bottom, and carries out proposition using block chain as data storage carrier
With the acquisition and offer of answer.
As shown in figure 4, as another more specific realization method, finally answered according to intermediate answer generation in prophesy machine layer
In the processing procedure of case, these intermediate answers also can be first driven into block chain, and after then extracting again, regeneration is finally answered
Then final result is driven into block chain by case again, so that data application layer is extracted and is used.
It should be noted that the architectural framework of above-mentioned Fig. 2 to Fig. 4 can be located in each node of block chain network,
Above-mentioned proposition and answer can be broadcast to each section of entire block chain network by block chain network in form of a message
In point, further, since each node in block chain network all maintains same block chain jointly, therefore, this block chain
Itself be also a kind of transmission carrier as proposition and answer, i.e., mechanism as shown in Figure 3 and Figure 4.As shown in figure 5, it is this
The schematic diagram of the architectural framework of the block chain network of inventive embodiments, each node can include Fig. 2 to system frame shown in Fig. 4
Structure, a block chain is the mutual shared information of tie and data between each node.
Again as shown in fig. 6, from the perspective of block chain network, the generating process of proposition and answer can be in the mechanism of OM
It, can also be by block chain by the OM servers (the OM servers connected such as block chain network 1) except block chain network
The node of network internal generates (such as in block chain network 1, being generated by the interaction between each node), can also pass through
Another block chain network except current block chain network realizes that (such as block chain network 1 by proposition by being sent to area
Block chain network 2 is generated answer and is returned to block chain network 1 by block chain network 2).Wherein, except using block chain network
OM servers can be considered as the mechanism of centralization and the decentralization mechanism of block chain network to generate the mechanism of answer
With reference to the i.e. authoritative OM servers of one except the block chain network obtain a reliable answer, are used as at node
The condition of the content-data of account book is managed, this OM server is actually the mechanism of centralization.
The embodiment of the present invention by during the generation of the content-data of account book, introducing OM mechanism, by proposition/
The form of answer is intervened or the process of the generation of control content data, so as to increase the content-data generating process of account book
Flexibility.The technical solution further illustrated the present invention below by several specific embodiment modes.
Embodiment one
As shown in fig. 7, the flow diagram of the data processing method of its block chain for the embodiment of the present invention, the present embodiment
Data processing method include:
S101:First node in block chain network is during the content-data of generation account book, to the first node
Except send out proposition, and obtain the answer returned for the proposition.Wherein, condition of the proposition as generation content-data, here
Described proposition refers to following two aspects as the condition of generation content-data:
1) influence of the proposition for the generating process of content-data:The generation of content-data, which will wait for, to be got for the life
It could be performed after the answer of topic.
2) influence of the proposition for content-data in itself:Answer for proposition can be the one of content-data to be generated
The factor or conduct generation content-data whether part or influence content-data generate and how to generate
Primary data.
For example, it is exactly to record daily weather condition to have one in the content-data of account book, when account book data are daily more
When new, the proposition about " weather conditions today " will be sent out, then waits for the answer returned, and using the answer as in
One held in data is written in account book.
For another example account book is used for recording the related content for providing high temperature subsidy, if if temperature higher than 40 degree
High temperature subsidy is provided, is not otherwise just provided.Account book exactly sends out the tomorrow of " temperature today ", Ran Hougen in daily update
According to the answer of return, decide whether to record the content for providing high temperature subsidy today in account book, if it exceeds just recording, if do not had
More than just not recording.In such an application, proposition is to influence the factor whether content-data generates and how to generate.
For another example account book is used to record the account amount of money of stock account, the calculation of account amount of money is that holding number * is current
Stock price, holding number is that a determining data are present in the content-data of existing account book, and current stock price is
One proposition for the answer to be obtained such as needing, needs to obtain by OM mechanism.Only obtaining current stock price number
According to rear, the data of newest account amount of money could be generated.In such an application, for the answer of proposition as generation content number
According to primary data.
In addition, it is above-mentioned sent out except the first node proposition and obtaining return answer process may be used it is following several
Kind mode:
1) answer is directly obtained by external OM servers
Prophesy machine server except the block chain network where first node sends proposition and obtains the answer of return.
2) answer is formed by the common recognition mechanism of multiple nodes in block chain network
Multiple second nodes broadcast proposition except first node of from the first node to block chain network, first node obtain
Block chain network is taken to generate the answer for the proposition by common recognition mechanism.Specifically, relatively simple common recognition may be used
Mechanism forms final answer, and multiple second nodes in block chain network generate the respective answer for proposition respectively,
And first node is sent to, if there is multiple and different answers, after the first node selection highest answer of proportion is used for
Continuous generation content-data.
3) answer is collectively formed using the common recognition mechanism of each node of external OM servers combination block chain network
For example, first node to can with multiple second nodes except the first node in block chain network broadcast proposition simultaneously
Ballot is initiated, determines that sending proposition foretells machine server, is sent to proposition, and obtain answering for return by common recognition mechanism
Case.
For another example first node sends proposition to multiple prophesy machine servers, and obtain multiple prophesy machine servers and return
Multiple answers, will get multiple second nodes except the first node of multiple answers and from proposition to block chain network into
Row broadcast obtains the answer for proposition that block chain network is determined by common recognition mechanism.
In addition to it is above 1) to 3) mode generation answer mode other than, proposition can also be sent out to other block chain networks and obtained
Answer is taken, the mode of 3 above-mentioned aspects can also be mixed use, for example, in above-mentioned mode 2) on the basis of, general side
Formula 1) external OM server modes incorporated, the answer that the answer obtained from OM servers and multiple second nodes are generated
It puts together, as the intermediate answer for generating final result, under such hybrid mode, can provide OM servers answers
The weight setting of case it is higher, so as to preferably play OM servers value.It similarly, can also will be from other block chain networks
The answer of the answer of acquisition and the generation of multiple second nodes is put together, as the intermediate answer for generating final result.
S102:First node generates content-data according to answer.As previously mentioned, first node is obtaining answer
Afterwards, it is possible to continue to execute the generation processing of the content-data of account book.After the generation of the content-data is completed, it can give
Architecture level in block chain framework carries out block packing and enters the processing of chain.
In addition, it is necessary to explanation, in embodiments of the present invention, above-mentioned content-data be for account book angle,
The content-data may be to be made of the content information of multiple accounts, for example, the account book is for recording each account in stock market
The trading situation at family, the content-data of the account book is exactly to be made of the content information of multiple stock accounts.Above-mentioned account book
Content-data can also be made of the content information and other data unrelated with specific account of multiple accounts.Certainly,
Can also be that complete data unrelated with specific account are formed, for example, the account book is for recording daily weather condition,
The content-data is exactly daily weather data.
In addition, above-mentioned first node is for only for ease of the name for distinguishing that description is progress, which can be
Has the arbitrary node for performing method and step ability in the embodiment of the present invention in block chain network.
The embodiment of the present invention by during the generation of the content-data of account book, introducing OM mechanism, by proposition/
The form of answer is intervened or the process of the generation of control content data, so as to increase the content-data generating process of account book
Flexibility.For the realization process of proposition/answer, the external OM servers of block chain network may be used, can also use interior
The common recognition mechanism of the node in portion can also generate and obtain answer by other block chain networks, can be in many ways
Flexibly effectively the data forming process of block chain is controlled, can also neatly introduce centralization mechanism to get involved in area
The decentralization process of block chain network, so as to fulfill the opening of block chain network.
Embodiment two
As shown in figure 8, the data processing method of above-described embodiment one specifically can be as shown in Figure 8 block chain data at
Device is managed to realize, the data processing equipment of the present embodiment includes the be arranged on the first node in block chain network first life
Processing module 11 and first content data generation module 12 are inscribed, it is to carry out that first node here, which is for only for ease of differentiation description,
Name, which can be block chain network arbitrary node, you can be set on the arbitrary node in block chain network
Put the first proposition processing module 11 and first content data generation module 12.Wherein,
First proposition processing module 11, for generation account book content-data during, to the outgoing of first node
Go out proposition, and obtain the answer returned for the proposition, condition of the proposition as generation content-data.
Specifically, the first proposition processing module, which sends out proposition and obtained except the first node, returns to the processed of answer
Journey may be used such as the several ways described in embodiment one, and particular content has carried out retouching in detail in embodiment one
It states, details are not described herein.
First content data generation module 12, for generating content-data according to answer.First content data generate mould
Block 12 is after answer is obtained, it is possible to continue to execute the generation processing of the content-data of account book.Completing the content-data
After generation, the architecture level in block chain framework that can give carries out block packing and enters the processing of chain.
The embodiment of the present invention by during the generation of the content-data of account book, introducing OM mechanism, by proposition/
The form of answer is intervened or the process of the generation of control content data, so as to increase the content-data generating process of account book
Flexibility.For the realization process of proposition/answer, the external OM servers of block chain network may be used, can also use interior
The common recognition mechanism of the node in portion can also generate and obtain answer by other block chain networks, can be in many ways
Flexibly effectively the data forming process of block chain is controlled, can also neatly introduce centralization mechanism to get involved in area
The decentralization process of block chain network, so as to fulfill the opening of block chain network.
Embodiment three
As shown in figure 9, the flow diagram of the information processing method of its block chain for the embodiment of the present invention, in this implementation
In example, from this angle to the variation of the content information of specific account of the node of block chain network, to illustrate that it is directed to specific account
The information process at family.In the present embodiment, the main body for generating proposition demand is account, provides the answer for the proposition
Main body is also account, is actually being realized, the action realization of account is by running related journey in client or server
Sequence is realized to perform related with account operation.For example, user can use the computer of oneself as client, fortune
The relevant client software of row block chain, logs in the account of oneself, is inputted by way of human-computer interaction in answer or generation
Hold information generation request (such as being merchandised using the account) etc..Certainly, the account may correspond in a network
Server, which has more advanced processing capacity etc. with respect to client.
Specifically, the method for the present embodiment includes:
S201:The content information generation request from the first account is obtained, is wherein carried in content information generation request
There is the proposition as content information formation condition.The step can by any one in block chain network or multiple nodes Lai
It performing, the mode for obtaining content information generation request can receive the content information sent from client to generate request,
It can be the reading of content information generation request from block chain.
S202:OM of the broadcast comprising proposition is carried out to block chain network to ask, and multiple second accounts are carried in OM requests
Account address, multiple second accounts are as the specified inquiry object for answering proposition.The step equally can be by block chain network
In any one or multiple nodes perform.
Alternatively, can by whole accounts in block chain network or in addition to the first account with
Outer all the second accounts inquire object as proposition, and correspondingly, being carried in OM requests will be complete in the block chain network
Portion's account or instruction information of all the second accounts as proposition inquiry object other than the first account.
S203:The intermediate answer returned for the proposition is obtained, and according to the generation of preset common recognition mechanism for the proposition
Final result.The intermediate answer wherein got can be that the answer from all the second accounts may also be from part second
The answer of account.In practical applications, regular hour threshold value can be set and/or return to the amount threshold of answer, more than this
Answer after time threshold and/or amount threshold can be given up to fall, to improve the treatment effeciency of answer.The step equally can be by
Any one or multiple nodes in block chain network perform.
Specifically, the intermediate answer for the proposition that multiple second accounts of acquisition provide can be accompanied with weighted value,
The weighted value can be associated with the second account, for example weighted value is related to the credit worthiness of the second account etc..Correspondingly, root
For the final result of the proposition can be specially answer content according to each intermediate answer according to the generation of preset common recognition mechanism
And weighted value, statistics ranking is carried out to answer content, according to default rule, is selected in the preceding one or more answers of ranking
Hold the answer content as final result.
In addition, the second above-mentioned account can be the corresponding account of OM servers outside block chain network can also be with
Account inside the block chain network of first account same type.
S204:The content information that the first account is handled according to the final result generates request, so as to generate the first account
Content information.After the generation of content information of first account processing is completed, the basis in block chain framework can be given
Framework level carries out block packing and enters the processing of chain.The step equally can by any one in block chain network or
Multiple nodes perform, and can also only be performed by the node that content information generation request is first got in step S201,
Furthermore, it is necessary to explanation, in above-mentioned step S201 to S204, node can handle multiple first accounts simultaneously
The generation processing of the content information at family, can also only handle first account every time.For generating the first account in S204
Content information after, after the content information of sufficient amount of first account can be waited for generate, then perform and be packaged and enter the place of chain
Reason.
The embodiment of the present invention by during the generation of the content information of account, introducing OM mechanism, by proposition/
The form of answer is intervened or the process of the generation of control content information, so as to increase the content information generating process of account
Flexibility.For the realization process of proposition/answer, the external OM servers of block chain network may be used, can also use interior
The common recognition mechanism of the node in portion can also generate and obtain answer by other block chain networks, can be in many ways
Flexibly effectively the data forming process of block chain is controlled, can also neatly introduce centralization mechanism to get involved in area
The decentralization process of block chain network, so as to fulfill the opening of block chain network.
Example IV
As shown in Figure 10, it is one of structure diagram of information processing unit of block chain of the present embodiment, this implementation
The device of example can realize the information processing method of the block chain in above-described embodiment three.The device of the present embodiment can include the
One acquisition module 21, the first broadcast module 22, the first answer processing module 23 and first content message processing module 24, it is each
Module can be set on any one in block chain network or multiple nodes, the function performed by modules, Ke Yishi
Function module on multiple nodes cooperates to what is realized, and the modules on each node can handle multiple simultaneously
Content information generation request, OM requests and the intermediate answer of collection of account generate the operations such as final result.Specifically, Ge Gemo
The function of block is as follows:
First acquisition module 21 generates request, the wherein content information for obtaining the content information from the first account
The proposition as content information formation condition is carried in generation request.Wherein, the mode for obtaining content information generation request can
To be to receive from content information that client is sent generation request or the content information obtained is read from block chain
Generation request.
First broadcast module 22 is asked for carrying out OM of the broadcast comprising proposition to block chain network, is carried in OM requests
There is the account address of multiple second accounts, multiple second accounts are as the specified inquiry object for answering proposition.
Alternatively, can by whole accounts in block chain network or in addition to the first account with
Outer all the second accounts inquire object as proposition, correspondingly, in order to be distinguished with the first broadcast module 22, the function of the part
It can be completed by the second broadcast module, which is used for the OM for carrying out broadcast to block chain network and including proposition
Request is carried in OM requests by whole accounts in the block chain network or all the second accounts other than the first account
Instruction information of the family as proposition inquiry object.
First answer processing module 23, for obtaining the intermediate answer for the proposition, and according to preset common recognition mechanism
Generation is for the final result of the proposition.The intermediate answer wherein got can be that the answer from all the second accounts also may be used
It is the answer from the second account of part.In practical applications, regular hour threshold value can be set and/or return to the number of answer
Threshold value is measured, can give up to fall more than the answer after the time threshold and/or amount threshold, to improve the treatment effeciency of answer.It should
Step can equally be performed by any one in block chain network or multiple nodes.
Specifically, the intermediate answer for the proposition that multiple second accounts of acquisition provide can be accompanied with weighted value,
The weighted value can be associated with the second account, for example weighted value is related to the credit worthiness of the second account etc..Correspondingly, root
For the final result of the proposition can be specially answer content according to each intermediate answer according to the generation of preset common recognition mechanism
And weighted value, statistics ranking is carried out to answer content, according to default rule, is selected in the preceding one or more answers of ranking
Hold the answer content as final result.
In addition, the second above-mentioned account can be the corresponding account of OM servers outside block chain network can also be with
Account inside the block chain network of first account same type.
First content message processing module 24, the content information generation for handling the first account according to the final result please
It asks, so as to generate the content information of the first account.After the generation of content information of first account processing is completed, Ke Yijiao
Block packing is carried out to the architecture level in block chain framework and enters the processing of chain.
The embodiment of the present invention is realized by the above-mentioned modules being arranged on the node of block chain network in account
During the generation of content information, OM mechanism is introduced, is intervened or control content information by the form of proposition/answer
Generation process, so as to increase the flexibility of the content information generating process of account.For the realization process of proposition/answer,
The external OM servers of block chain network may be used, the common recognition mechanism of internal node can also be used, it can also be by it
His block chain network generates and obtains answer, can in many ways flexibly effectively to the data forming process of block chain
It is controlled, can also neatly introduce centralization mechanism to get involved in the decentralization process of block chain network, so as to fulfill
The opening of block chain network.
Embodiment five
As shown in figure 11, two for the flow diagram of the information processing method of the block chain of the embodiment of the present invention,
In the present embodiment, the realization of OM mechanism is combined with the architecture layer of block serobila system structure, OM message and answer
Record and transmission are all realized by the block chain of bottom.Specifically, the method for the present embodiment includes:
S301:The content information generation request of the first account is obtained, wherein carries work in content information generation request
Proposition for content information formation condition.The step can be held by any one in block chain network or multiple nodes
Row, the mode for obtaining content information generation request can receive the content information sent from client to generate request, also may be used
Be from block chain reading of content information generation request.Content information generation request can be had using the first Account Logon
Client or the initiations such as node, after being then broadcast to entire block chain network, block chain network gives birth to the content information
It has been driven into block chain into request, so that each node in block chain network can get this from the block chain
Content information generation asks to carry out subsequent processing.
S302:To the broadcast OM requests of block chain network, OM requests include:Proposition, OM addresses and for proposition return
Intermediate answer processing logic, processing logic be used for according to intermediate answer generate final result.The step equally can be by area
Any one or multiple nodes in block chain network perform.After being asked to block chain network broadcast OM, block link network
Network can ask to generate corresponding final result according to the OM, and the mode of the final answer of generation can be as front is each
Described in embodiment, final result is formed based on each node inside the block chain network or each account,
Final result can be obtained from external OM servers, also to get final result by other block chain network,
The mixing of various ways may be used to form final result.It is in the present embodiment, specific to locate as a kind of optional mode
Reason process can include:
S302a:Proposition can be written in block chain in block areas corresponding with OM addresses by block chain network.In area
In the storage organization of block chain, information or data are indexed by address information, therefore, for OM requests,
Its proposition being related to and answer can be indexed by OM addresses, and each node or client can pass through the OM
Corresponding information or data are found in address, and corresponding, the answer for proposition is also to be sent out as a purpose with the OM addresses,
It is namely finally written in block areas corresponding with the OM addresses.
S302b:The intermediate answer for proposition that multiple second accounts provide is collected, and the processing in being asked according to OM is patrolled
Volume, multiple intermediate answers are handled, generate final result.The intermediate treatment process of the step can equally be made with block chain
For the transmission medium of answer information, specifically, step S302b can include:
S302b1:Obtain the first response message from client corresponding with the second account and/or OM servers, and by this
One response message is broadcasted to block chain network, wherein, the first response message is included for the intermediate answer of proposition and OM addresses.
Specifically, the processing logic in OM requests can include collecting the preset time threshold of intermediate answer and/or preset
Amount threshold, correspondingly, step S302b1 can be specially:It obtains in preset time threshold and/or preset quantity threshold value
In the range of the first response message for being received from client and/or OM servers, it is and the first response message is wide to block chain network
It broadcasts.
In addition, the checking procedure to intermediate answer can also be included in step S302b1, i.e., from corresponding with the second account
Client and/or OM servers obtain the first response message, and according to it is preset verification rule in the first response message
Intermediate answer is verified, and weeds out corresponding first response message of intermediate answer of verification failure, the centre that verification is passed through
Corresponding first response message of answer is broadcasted to block chain network.Wherein, verification rule mentioned here can pass through calculating
The modes such as mean square deviation, irrelevance identify apparent bad intermediate answer, and the standard of final result is influenced to avoid these intermediate answers
Exactness.
S302b2:Intermediate answer is written in block chain in block areas corresponding with OM addresses.
S302b3:The OM addresses included in being asked according to OM obtain the intermediate answer for proposition, and root from block chain
It is handled in being asked according to OM comprising answer between processing logic pair, generates final result.
S302b4:The second response message is broadcasted to block chain network, the second response message includes OM addresses and final result.
S302c:The final result is written in block chain in block areas corresponding with OM addresses.
S303:The final result for being directed to proposition is obtained from block chain according to OM addresses, and needle is performed according to final result
The content information generation of first account is handled.The step equally can be by any one in block chain network or multiple sections
It puts to perform.
Furthermore, it is necessary to explanation, in above-mentioned each step, node can handle the interior of multiple first accounts simultaneously
Hold the generation processing of information, but only handle first account every time.The content that the first account is generated in S303 is believed
After breath, after the content information of sufficient amount of first account can be waited for generate, then the processing for being packaged and entering chain is performed.
The embodiment of the present invention by during the generation of the content information of account, introducing OM mechanism, by proposition/
The form of answer is intervened or the process of the generation of control content information, so as to increase the content information generating process of account
Flexibility.For the realization process of proposition/answer, the external OM servers of block chain network may be used, can also use interior
The common recognition mechanism of the node in portion can also generate and obtain answer by other block chain networks, can be in many ways
Flexibly effectively the data forming process of block chain is controlled, can also neatly introduce centralization mechanism to get involved in area
The decentralization process of block chain network, so as to fulfill the opening of block chain network.
It is squeezed into block chain by index of OM addresses in addition, all being squeezed into proposition/answer involved in OM mechanism, so as to make
Also the realization process of OM mechanism is had recorded while obtaining transmission medium of the block chain as proposition/answer, so that proposition/answer
Case has higher confidence level and tracing back property.
Embodiment six
As shown in figure 12, the second structural representation for the information processing unit of the block chain of the embodiment of the present invention, should
Device can realize the information processing method of the block chain in above-described embodiment five, wide including the second acquisition module 31, third
32 and second content information processing module 33 of broadcasting module.Modules in the present embodiment can be set in block chain network
On any one or multiple nodes, the function performed by modules can be the function module phase being located on multiple nodes
Mutually come what is realized, the modules on each node can handle the content information generation request of multiple accounts, OM simultaneously for cooperation
Request and the intermediate answer of collection generate the operations such as final result.The concrete function of wherein modules is as follows:
Second acquisition module 31 generates request for obtaining the content information of the first account, and the wherein content information generates
The proposition as content information formation condition is carried in request.
Third broadcast module 32, for the broadcast OM requests of block chain network, OM requests to include:Proposition, OM addresses with
And the processing logic of the intermediate answer returned for proposition, processing logic are used to generate final result according to intermediate answer.
Second content information processing module 33 is directed to finally answering for proposition for being obtained from block chain according to OM addresses
Case, and the content information generation processing for the first account is performed according to final result.
In addition, the present embodiment can be also used for performing the correlation module based on intermediate answer generation final result, it is specific to wrap
It includes:
First block chain writing module 34, for proposition to be written to block areas corresponding with OM addresses in block chain
In.
Second answer processing module 35, for collecting the intermediate answer for proposition that multiple second accounts provide, and root
Processing logic in being asked according to OM handles multiple intermediate answers, generates final result.
Further, in the second answer processing module 35, processing function can be specially following aspects:
1) the first response message is obtained from client corresponding with the second account and/or OM servers, and first should by this
Message is answered to broadcast to block chain network, wherein, the first response message is included for the intermediate answer of proposition and OM addresses.
In addition, the processing logic in OM requests can include collecting the preset time threshold and/or present count of intermediate answer
Measure threshold value, correspondingly, above-mentioned 1) processing procedure can be specially:It obtains in preset time threshold and/or preset quantity threshold
The first response message received in the range of value from client and/or OM servers, and by the first response message to block link network
Network is broadcasted.
In addition, above-mentioned 1) processing procedure in can also include to the checking procedure of intermediate answer, i.e., from second
The corresponding client of account and/or OM servers obtain the first response message, and according to preset verification rule to the first response
Intermediate answer in message is verified, and weeds out corresponding first response message of intermediate answer of verification failure, and verification is logical
Corresponding first response message of intermediate answer crossed is broadcasted to block chain network.Wherein, verification rule mentioned here can be
By calculating the modes such as mean square deviation, irrelevance, identify apparent bad intermediate answer, influenced to avoid these intermediate answers final
The accuracy of answer.
2) intermediate answer is written in block chain in block areas corresponding with OM addresses.
3) the OM addresses included in being asked according to OM obtain the intermediate answer for proposition from block chain, and please according to OM
It asks and is handled comprising answer between processing logic pair, generate final result.
4) the second response message is broadcasted to block chain network, the second response message includes OM addresses and final result.
Second block chain writing module 36, for the final result to be written to block corresponding with OM addresses in block chain
In region, it is ready so as to obtain final result for the second content information processing module 33.
The embodiment of the present invention by during the generation of the content information of account, introducing OM mechanism, by proposition/
The form of answer is intervened or the process of the generation of control content information, so as to increase the content information generating process of account
Flexibility.For the realization process of proposition/answer, the external OM servers of block chain network may be used, can also use interior
The common recognition mechanism of the node in portion can also generate and obtain answer by other block chain networks, can be in many ways
Flexibly effectively the data forming process of block chain is controlled, can also neatly introduce centralization mechanism to get involved in area
The decentralization process of block chain network, so as to fulfill the opening of block chain network.
It is squeezed into block chain by index of OM addresses in addition, all being squeezed into proposition/answer involved in OM mechanism, so as to
So that the realization process of OM mechanism is also had recorded while transmission medium of the block chain as proposition/answer, so that proposition/
Answer has higher confidence level and tracing back property.
One of ordinary skill in the art will appreciate that:Realizing all or part of step of above-mentioned each method embodiment can lead to
The relevant hardware of program instruction is crossed to complete.Aforementioned program can be stored in a computer read/write memory medium.The journey
Sequence when being executed, performs the step of including above-mentioned each method embodiment;And aforementioned storage medium includes:ROM, RAM, magnetic disc or
The various media that can store program code such as person's CD.
Finally it should be noted that:The above embodiments are only used to illustrate the technical solution of the present invention., rather than its limitations;To the greatest extent
Pipe is described in detail the present invention with reference to foregoing embodiments, it will be understood by those of ordinary skill in the art that:Its according to
Can so modify to the technical solution recorded in foregoing embodiments either to which part or all technical features into
Row equivalent replacement;And these modifications or replacement, various embodiments of the present invention technology that it does not separate the essence of the corresponding technical solution
The range of scheme.
Claims (10)
1. a kind of data processing method of block chain, which is characterized in that including:
First node in block chain network sends out life during the content-data of generation account book except the first node
Topic, and the answer returned for the proposition is obtained, the proposition is as the condition for generating the content-data;
The first node generates the content-data according to the answer.
2. according to the method described in claim 1, it is characterized in that, the first node in block chain network is in generation account book
During holding data, proposition is sent out except the first node, and obtains the answer returned for the proposition and includes:
Prophesy machine server of the first node except the block chain network sends the proposition and obtains answering for return
Case.
3. according to the method described in claim 1, it is characterized in that, the first node in block chain network is in generation account book
During holding data, proposition is sent out except the first node, and obtains the answer returned for the proposition and includes:
Multiple second nodes except the first node of from the first node to the block chain network broadcast the life
Topic, the first node acquisition block chain network generate the answer for the proposition by the mechanism of knowing together.
4. according to the method described in claim 3, it is characterized in that, the first node acquisition block chain network passes through altogether
The answer that knowledge mechanism generates for the proposition includes:
Multiple second nodes in the block chain network generate the respective answer for the proposition respectively, and are sent to institute
First node is stated, if there is multiple and different answers, the first node highest answer of selection proportion is for follow-up
Generate the content-data.
5. according to the method described in claim 1, it is characterized in that, there are multiple prophesies except the block chain network
Machine server,
First node in block chain network sends out life during the content-data of generation account book except the first node
Topic, and obtain the answer returned for the proposition and include:
Multiple second nodes except the first node of from the first node to the block chain network broadcast the life
It inscribes and initiates to vote, determine that sending the proposition foretells machine server, is sent to the proposition, and obtain by common recognition mechanism
The answer of return is taken,
Or
The first node sends the proposition to the multiple prophesy machine server, and obtains the multiple prophesy machine server
The multiple answers returned, will get the first node of the multiple answer and the proposition into the block chain network
Except multiple second nodes broadcasted, obtain that the block chain network determined by common recognition mechanism for described
The answer of proposition.
6. a kind of data processing equipment of block chain, which is characterized in that including being arranged on the first node in block chain network
The first proposition processing module and content-data generation module,
The first proposition processing module, for generation account book content-data during, except the first node
Proposition is sent out, and obtains the answer returned for the proposition, the proposition is as the condition for generating the content-data;
First content data generation module, for generating the content-data according to the answer.
7. device according to claim 6, which is characterized in that it is described during the content-data of generation account book, to
Proposition is sent out except the first node, and obtains the answer returned for the proposition and includes:
Prophesy machine server except the block chain network sends the proposition and obtains the answer of return.
8. device according to claim 6, which is characterized in that it is described during the content-data of generation account book, to
Proposition is sent out except the first node, and obtains the answer returned for the proposition and includes:
Multiple second nodes except the first node into the block chain network broadcast the proposition, and described in acquisition
Block chain network generates the answer for the proposition by the mechanism of knowing together.
9. device according to claim 8, which is characterized in that the acquisition block chain network passes through the mechanism institute that knows together
Generation includes for the answer of the proposition:
Multiple second nodes in the block chain network generate the respective answer for the proposition respectively, and are sent to institute
The first proposition processing module of first node is stated, if there is multiple and different answers, the first proposition processing module selection
The highest answer of proportion is used to be subsequently generated the content-data.
10. the apparatus according to claim 1, which is characterized in that there are multiple pre- except the block chain network
Speech machine server,
It is described to send out proposition except the first node during the content-data of generation account book, and obtain for the life
The answer that topic returns includes:
Multiple second nodes except the first node into the block chain network broadcast the proposition and initiate to vote,
Determine that sending the proposition foretells machine server, is sent to the proposition, and obtain the answer of return by common recognition mechanism,
Or
The proposition is sent to the multiple prophesy machine server, and obtains multiple the answering of the multiple prophesy machine server return
Case will get multiple except the first node of the multiple answer and the proposition into the block chain network
Two nodes are broadcasted, and obtain the answer for the proposition that the block chain network is determined by common recognition mechanism.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711122849.6A CN108171493A (en) | 2017-11-14 | 2017-11-14 | The data processing method and device of block chain |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711122849.6A CN108171493A (en) | 2017-11-14 | 2017-11-14 | The data processing method and device of block chain |
Publications (1)
Publication Number | Publication Date |
---|---|
CN108171493A true CN108171493A (en) | 2018-06-15 |
Family
ID=62527323
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201711122849.6A Pending CN108171493A (en) | 2017-11-14 | 2017-11-14 | The data processing method and device of block chain |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108171493A (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2020082917A1 (en) * | 2018-10-26 | 2020-04-30 | 阿里巴巴集团控股有限公司 | Methods and systems for publishing programming problem, publishing solution code, and checking solution code |
CN111259220A (en) * | 2020-01-11 | 2020-06-09 | 杭州拾贝知识产权服务有限公司 | Data acquisition method and system based on big data |
CN111488616A (en) * | 2020-04-08 | 2020-08-04 | 北京瑞策科技有限公司 | Method and device for realizing preplan machine of service data block chain |
CN112153124A (en) * | 2020-09-11 | 2020-12-29 | 北京天德科技有限公司 | Block chain and intelligent contract system cooperation layer design |
CN113064902A (en) * | 2021-04-06 | 2021-07-02 | 北京瑞卓喜投科技发展有限公司 | Method and device for retrieving transaction data on chain and electronic equipment |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1658617A (en) * | 2005-03-24 | 2005-08-24 | 中国科学院计算技术研究所 | High-reliability system of machine group and design method thereof |
CN106296359A (en) * | 2016-08-13 | 2017-01-04 | 深圳市樊溪电子有限公司 | Credible electric power networks transaction platform based on block chain technology |
US20170046689A1 (en) * | 2015-07-14 | 2017-02-16 | Fmr Llc | Crypto Voting and Social Aggregating, Fractionally Efficient Transfer Guidance, Conditional Triggered Transaction, Datastructures, Apparatuses, Methods and Systems |
CN106452884A (en) * | 2016-10-21 | 2017-02-22 | 北京云图科瑞科技有限公司 | A data distribution method and apparatus in a block chain system |
CN106845210A (en) * | 2017-01-19 | 2017-06-13 | 布比(北京)网络技术有限公司 | Event authentication method and apparatus |
CN106878000A (en) * | 2017-03-06 | 2017-06-20 | 中钞信用卡产业发展有限公司北京智能卡技术研究院 | A kind of alliance's chain common recognition method and system |
-
2017
- 2017-11-14 CN CN201711122849.6A patent/CN108171493A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1658617A (en) * | 2005-03-24 | 2005-08-24 | 中国科学院计算技术研究所 | High-reliability system of machine group and design method thereof |
US20170046689A1 (en) * | 2015-07-14 | 2017-02-16 | Fmr Llc | Crypto Voting and Social Aggregating, Fractionally Efficient Transfer Guidance, Conditional Triggered Transaction, Datastructures, Apparatuses, Methods and Systems |
CN106296359A (en) * | 2016-08-13 | 2017-01-04 | 深圳市樊溪电子有限公司 | Credible electric power networks transaction platform based on block chain technology |
CN106452884A (en) * | 2016-10-21 | 2017-02-22 | 北京云图科瑞科技有限公司 | A data distribution method and apparatus in a block chain system |
CN106845210A (en) * | 2017-01-19 | 2017-06-13 | 布比(北京)网络技术有限公司 | Event authentication method and apparatus |
CN106878000A (en) * | 2017-03-06 | 2017-06-20 | 中钞信用卡产业发展有限公司北京智能卡技术研究院 | A kind of alliance's chain common recognition method and system |
Non-Patent Citations (3)
Title |
---|
李赫 等: "智能合约如何可信地与外部世界交互", 《中国金融电脑》 * |
欧链: "欧链技术白皮书", 《HTTP://WWW.CHAINWHY.COM/WHITEPAPER/OCTWHITEPAPER.HTML》 * |
高志豪: "如何让区块链连接外面的世界", 《金卡工程》 * |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2020082917A1 (en) * | 2018-10-26 | 2020-04-30 | 阿里巴巴集团控股有限公司 | Methods and systems for publishing programming problem, publishing solution code, and checking solution code |
CN111259220A (en) * | 2020-01-11 | 2020-06-09 | 杭州拾贝知识产权服务有限公司 | Data acquisition method and system based on big data |
CN111259220B (en) * | 2020-01-11 | 2021-03-02 | 杭州拾贝知识产权服务有限公司 | Data acquisition method and system based on big data |
CN111488616A (en) * | 2020-04-08 | 2020-08-04 | 北京瑞策科技有限公司 | Method and device for realizing preplan machine of service data block chain |
CN112153124A (en) * | 2020-09-11 | 2020-12-29 | 北京天德科技有限公司 | Block chain and intelligent contract system cooperation layer design |
CN113064902A (en) * | 2021-04-06 | 2021-07-02 | 北京瑞卓喜投科技发展有限公司 | Method and device for retrieving transaction data on chain and electronic equipment |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108171493A (en) | The data processing method and device of block chain | |
JP6696001B2 (en) | Method and device for outputting risk information and constructing risk information | |
CN109447648A (en) | The method of recorded data zone block, accounting nodes and medium in block chain network | |
CN108170701A (en) | The information processing method and device of block chain | |
CN107644354A (en) | A kind of bonusing method, server, system and computer-readable recording medium | |
CN107767265A (en) | A kind of data sharing method and server | |
CN106603698A (en) | Block chain consensus method based on DPOS and nodes | |
CN105873049B (en) | A kind of method, equipment, system and storage medium for being used to share WAP | |
CN108777625A (en) | Verification method, device and system, storage medium, the electronic device of signature | |
CN107528882A (en) | The method, apparatus and electronic equipment of processing common recognition request in block chain common recognition network | |
CN108475249A (en) | Distributed, decentralized data polymerization | |
CN111507717B (en) | Data processing method, device, block node and computer readable storage medium | |
CN108073659A (en) | A kind of love and marriage object recommendation method and device | |
CN105516133A (en) | User identity verification method, server and client | |
CN108173899A (en) | The information processing method and device of block chain | |
CN110071897B (en) | Block chain system based on mobile terminal | |
CN108805694A (en) | Credit consultation method of servicing, device, equipment and computer readable storage medium | |
CN110097454A (en) | Handle the method and Related product of data on line | |
CN109598147A (en) | Data processing method and device based on block chain, electronic equipment | |
CN108768672A (en) | Data processing method, device and storage medium | |
CN108132868A (en) | A kind of data monitoring method, device, computing device and storage medium | |
CN108572970A (en) | A kind of processing method and distributed processing system(DPS) of structural data | |
CN107276970A (en) | One kind is unbinded, binding method and device | |
CN109639719A (en) | A kind of auth method and device based on temporary identifier | |
CN108550057A (en) | It attends a banquet request processing method, electronic device, the computer readable storage medium of answering questions |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20180615 |