Information processing method and device of block chainTechnical Field
The present invention relates to a block chain technology, and in particular, to an information processing method and apparatus for a block chain.
Background
The block chain is a chain data structure formed by combining data blocks in a sequential connection mode according to a time sequence, and is a distributed account book which is guaranteed in a cryptographic mode and cannot be tampered and forged. The blockchain is a decentralized architecture constructed based on P2P network, as shown in fig. 1, in the conventional blockchain architecture, mainly includes two levels in the figure: a data application layer and an infrastructure layer.
The data application layer mainly relates to the generation of content data of the ledger, and in a block chain network, each node participating in a transaction can generate content data related to a certain transaction based on the occurrence of the transaction, and the content data form the content data of the ledger. The content data in the ledger is associated with the account.
The basic architecture layer relates to the generation of blocks, namely the packing and chaining of the blocks, and the main work at the layer is as follows: and encrypting the account book generated in the first layer and packaging data to generate a new block according with a block chain protocol through a competition mechanism of a block chain network, and linking the new block to the existing block chain, thereby realizing the extension of the block chain.
In the prior art, in the data application layer, the generation process of the content data in the ledger is a closed process, the main work of the node of the blockchain is to passively record the content data, and the node does not interact with the node outside the blockchain network, so that the generation process of the content data of the ledger is not flexible.
Disclosure of Invention
The embodiment of the invention provides an information processing method and device of a block chain, which are used for increasing the flexibility of a generation process of content information of an account book.
In order to achieve the above purpose, the embodiment of the invention adopts the following technical scheme:
in a first aspect, an information processing method for a block chain is provided, including:
acquiring a content information generation request of a first account, wherein the content information generation request carries a proposition serving as a content information generation condition;
broadcasting an OM request to a blockchain network, the OM request including: the proposition, the OM address and the processing logic of the intermediate answer returned aiming at the proposition, wherein the processing logic is used for generating a final answer according to the intermediate answer;
and acquiring a final answer aiming at the proposition from a block chain according to the OM address, and executing content information generation processing aiming at the first account according to the final answer.
In a second aspect, an information processing apparatus of a block chain is provided, including:
the second acquisition module is used for acquiring a content information generation request of the first account, wherein the content information generation request carries a proposition serving as a content information generation condition;
a third broadcasting module, configured to broadcast an OM request to a blockchain network, where the OM request includes: the proposition, the OM address and the processing logic of the intermediate answer returned aiming at the proposition, wherein the processing logic is used for generating a final answer according to the intermediate answer;
and the second content information processing module is used for acquiring a final answer aiming at the proposition from a block chain according to the OM address and executing content information generation processing aiming at the first account according to the final answer.
According to the information processing method and device for the block chain, provided by the embodiment of the invention, a proposition/answer mechanism is introduced in the generation process of the content information to control the generation of the content information, so that the flexibility of the generation process of the content information of the account book is increased, and the application range of the block chain is expanded.
The foregoing description is only an overview of the technical solutions of the present invention, and the embodiments of the present invention are described below in order to make the technical means of the present invention more clearly understood and to make the above and other objects, features, and advantages of the present invention more clearly understandable.
Drawings
FIG. 1 is a block chain architecture diagram of the prior art;
FIG. 2 is a block chain processing system according to an embodiment of the present invention;
FIG. 3 is a second schematic diagram of the architecture of a processing system for block chaining according to an embodiment of the invention;
FIG. 4 is a third schematic diagram of the architecture of a processing system for blockchain according to an embodiment of the present invention;
fig. 5 is one of the block chain network architectures according to the embodiments of the present invention;
fig. 6 is a second schematic diagram of the architecture of the blockchain network according to the embodiment of the present invention;
FIG. 7 is a flowchart illustrating a data processing method of a blockchain according to an embodiment of the present invention;
FIG. 8 is a block chain data processing apparatus according to an embodiment of the present invention;
FIG. 9 is a flowchart illustrating an information processing method for a block chain according to an embodiment of the present invention;
FIG. 10 is a diagram illustrating a block chain information processing apparatus according to an embodiment of the present invention;
fig. 11 is a second flowchart illustrating an information processing method of a block chain according to an embodiment of the present invention;
fig. 12 is a second schematic structural diagram of an information processing apparatus of a block chain according to an embodiment of the present invention.
Detailed Description
Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
Since the blockchain was originally proposed with the generation of bitcoins, in describing data involved in the blockchain, expressions such as transactions and ledgers are adopted, and with the development of blockchain technology, information and data that can be recorded by the blockchain technology has not been limited to transactions in the conventional sense, but can be used to record any information and data.
Therefore, the ledger needs to be understood in a broad sense: the ledger does not mean an ledger which only records financial data in the conventional sense, but may record any data information which changes, and the change of the data information is triggered by a certain transaction. The book may be used for recording experimental data, contract content, temperature data, logistics information of a certain commodity, and data which may change in aspects of work and life and is desired to record the change. In the present invention, these data are collectively referred to as "content data" from the viewpoint of the account book, the content of the account record is referred to as "content information" from the viewpoint of the specific account, and the content information of the plurality of accounts constitutes the content data of the account book.
Generalized interpretation of accounts in ledgers: an account here also refers not only to an account in the traditional sense that records only the account related to the property, but also to an account that can record any data, which is distinguished by a unique user identification on the blockchain, usually called account address. Each content data may be associated with an account, and the occurrence of a transaction may involve one account or multiple accounts. For example, the account may be an identifier of a certain product, and the physical distribution information recorded in the account book corresponding to the certain product corresponds to the identifier of the certain product. As another example, temperature data is recorded and this account may correspond to a certain geographic area.
Generalized interpretation of transactions for ledgers: the transaction here is not intended to be a record of only transaction behavior related to property in the conventional sense, but rather refers to an event causing a change in content information of any account or an event causing a change in content data of an account book.
In the embodiment of the present invention, the blockchain refers to a data storage structure formed by a plurality of blocks and encrypted by using a blockchain technique, and the blockchain network refers to a network formed by a plurality of nodes implementing the blockchain technique. The nodes in the blockchain network can be servers or terminal equipment with a function of processing blockchain data in the internet.
The technical principle of the embodiment of the invention is that in the generation process of the content data of the ledger of the blockchain, the blockchain is not only passively recorded data but participates in the generation process of the content data, and an OM (oracle machine) mechanism is introduced to serve as a new generation condition of the content data, so that the processing of the blockchain network on the data can be more flexible and intelligent, and the application range of the blockchain technology is widened.
As shown in fig. 2, which is a schematic diagram of an architecture of a processing system of a block chain according to an embodiment of the present invention, in the embodiment of the present invention, an OM mechanism is introduced into the architecture of the block chain, a generation process of content data of an account book is improved, and the OM mechanism is introduced as a condition for generating the content data. As shown in fig. 2, the OM mechanism has a related function located between the data application layer and the infrastructure layer, and the main function of the predictive engine layer is to generate an answer (a) (i.e., QA mechanism) according to a proposition (Q) and then provide the answer to the data application layer, after acquiring the answer, the data application layer performs a process of generating content data by using the answer as a condition for generating content data, and after generating the content data, provides the content data to the infrastructure layer at the lowest layer to perform block packaging and link the content data to a block chain.
Specifically, the prediction engine layer may obtain answers from an OM server outside the blockchain network or an OM server inside the blockchain network or a client or each node corresponding to each account in the blockchain network. In an actual application process, the number of answers obtained by the predictive engine layer for a proposition may be multiple, for example, the answers may come from clients with multiple accounts and/or from multiple OM servers, and in this case, the predictive engine layer may process the multiple answers (which are equivalent to intermediate answers) according to some preset rules, so as to generate a final answer with higher credibility, and then provide the final answer to the data application layer.
As another implementation mode, the interaction of propositions and answers between the data application layer and the predictive engine layer is typed into the block chain through the underlying infrastructure layer, and the propositions and the answers are obtained and provided by taking the block chain as a data storage carrier, as shown in FIG. 3.
As shown in fig. 4, as another more specific implementation manner, in the process of generating the final answer by the predictive layer according to the intermediate answers, the intermediate answers are also first input into the blockchain, then extracted, and then generated into the final answer, and then the final answer is input into the blockchain for the data application layer to extract and use.
It should be noted that the above-mentioned architectures of fig. 2 to fig. 4 may be located in each node of the blockchain network, the proposition and the answer may be broadcast in the form of a message through the blockchain network to each node of the whole blockchain network, and in addition, since each node in the blockchain network commonly maintains the same blockchain, this blockchain itself is also a delivery carrier of proposition and answer, i.e. the mechanism shown in fig. 3 and fig. 4. As shown in fig. 5, which is a schematic diagram of an architecture of a blockchain network according to an embodiment of the present invention, each node may include the architectures shown in fig. 2 to 4, and a blockchain between each node is a link to share information and data with each other.
As shown in fig. 6, from the perspective of the blockchain network, the generation process of the proposition and the answer in the OM mechanism may be performed by an OM server outside the blockchain network (e.g., an OM server connected to the blockchain network 1), by a node inside the blockchain network (e.g., in the blockchain network 1, by interaction between nodes), or by another blockchain network outside the current blockchain network (e.g., the blockchain network 1 sends the proposition to the blockchain network 2, and the answer is generated by the blockchain network 2 and returned to the blockchain network 1). The mechanism for generating the answer by using the OM server outside the blockchain network can be regarded as a combination of the centralized mechanism and the decentralized mechanism of the blockchain network, that is, a reliable answer is obtained from an authoritative OM server outside the blockchain network as a condition for the node to process the content data of the ledger, and the OM server is actually the centralized mechanism.
In the embodiment of the invention, an OM mechanism is introduced in the generation process of the content data of the account book, and the generation process of the content data is intervened or controlled in a proposition/answer form, so that the flexibility of the generation process of the content data of the account book is increased. The technical solution of the present invention is further illustrated by the following specific examples.
Example one
As shown in fig. 7, which is a schematic flow chart of a data processing method of a block chain according to an embodiment of the present invention, the data processing method of the embodiment includes:
s101: in the process of generating content data of the account book, a first node in the block chain network sends out propositions to the outside of the first node, and answers returned according to the propositions are obtained. Wherein, proposition is taken as a condition for generating content data, and the proposition is taken as a condition for generating content data, which refers to the following two aspects:
1) influence of proposition on the generation process of content data: the generation of the content data is performed after the answer to the proposition is acquired.
2) Influence of proposition on content data itself: the answer to the proposition may be a part of the content data to be generated, may be a factor that affects whether and how the content data is generated, or may be initial data as the content data is generated.
For example, one item in the content data of the ledger records the weather condition of each day, and when the ledger data is updated every day, a proposition about the "weather condition of the day" is issued, and then a return answer is waited for and written into the ledger as one item in the content data.
As another example, the ledger may be used to record the contents of issuing high-temperature subsidies, including issuing high-temperature subsidies if the air temperature is above 40 degrees, and not issuing the high-temperature subsidies otherwise. When the account book is updated every day, the day of 'the temperature of the day' is sent out, then whether the content of sending the high-temperature subsidy of the day is recorded in the account book or not is determined according to the returned answer, and if the content of sending the high-temperature subsidy of the day is exceeded, the content of sending the high-temperature subsidy of the day is recorded, and if the content of sending the high-temperature subsidy of the. In such applications, propositions are factors that affect whether and how content data is generated.
For another example, the account book is used to record the account amount of a stock account, the account amount is calculated by the number of held stocks — the current stock price, the number of held stocks is a definite data existing in the content data of the existing account book, and the current stock price is a proposition that needs to wait for obtaining answers and needs to be obtained through an OM mechanism. The latest data of the account amount can be generated only after the current stock price data is obtained. In such an application, an answer to a proposition is used as initial data for generating content data.
In addition, the above process of issuing propositions and obtaining returned answers to the outside of the first node can adopt the following modes:
1) obtaining answers directly through external OM server
And sending propositions to a speaker server outside the block chain network where the first node is located and acquiring returned answers.
2) Forming answers through a consensus mechanism of multiple nodes in a blockchain network
The first node broadcasts propositions to a plurality of second nodes except the first node in the block chain network, and the first node acquires answers generated by the block chain network through a consensus mechanism aiming at the propositions. Specifically, a simpler consensus mechanism may be adopted to form a final answer, a plurality of second nodes in the blockchain network generate respective answers for propositions respectively and send the answers to the first node, and if a plurality of different answers exist, the first node selects the answer with the highest proportion for subsequent generation of content data.
3) An answer is formed by combining an external OM server and a consensus mechanism of each node of the block chain network
For example, a first node broadcasts propositions to a plurality of second nodes except the first node in the blockchain network and initiates voting, determines a sending proposition preloader server through a consensus mechanism, sends propositions to the server, and obtains returned answers.
For another example, a first node sends propositions to a plurality of predictive game servers, acquires a plurality of answers returned by the plurality of predictive game servers, broadcasts the acquired answers and propositions to a plurality of second nodes except the first node in the block chain network, and acquires answers to the propositions determined by the block chain network through a consensus mechanism.
In addition to the above methods of generating answers in the methods 1) to 3), propositions may be issued to other blockchain networks to obtain answers, and the above methods in 3 aspects may also be mixed together, for example, on the basis of the above method 2), the external OM server method in the method 1) may be combined, and answers obtained from the OM server and answers generated by a plurality of second nodes may be put together to serve as intermediate answers for generating final answers. Similarly, answers obtained from other blockchain networks and answers generated by a plurality of second nodes can be put together to serve as intermediate answers for generating final answers.
S102: the first node generates content data according to the answer. As described above, the first node can continue the generation process of the content data of the ledger after obtaining the answer. After the generation of the content data is completed, the content data can be handed to the infrastructure layer in the blockchain architecture for block packing and chaining.
In addition, in the embodiment of the present invention, the content data is from the perspective of a ledger, and the content data may be composed of content information of a plurality of accounts, for example, the ledger is used for recording transactions of each account of a stock market, and the content data of the ledger is composed of content information of a plurality of stock accounts. The content data of the above-described account book may be composed of content information of a plurality of accounts and other data unrelated to a specific account. Of course, the data may be completely independent of the specific account, for example, the account is used to record the weather condition of each day, and the content data is the weather data of each day.
In addition, the first node is only named for convenience of distinguishing description, and the first node may be any node in the blockchain network, which has the capability of executing the method steps in the embodiment of the present invention.
In the embodiment of the invention, an OM mechanism is introduced in the generation process of the content data of the account book, and the generation process of the content data is intervened or controlled in a proposition/answer form, so that the flexibility of the generation process of the content data of the account book is increased. For the implementation process of proposition/answer, an external OM server of a block chain network can be adopted, a consensus mechanism of internal nodes can also be adopted, answers can also be generated and obtained by means of other block chain networks, the data forming process of the block chain can be flexibly and effectively controlled in various modes, a centralization mechanism can also be flexibly introduced to intervene in the decentralized process of the block chain network, and therefore the block chain network is opened outwards.
Example two
As shown in fig. 8, the data processing method of the first embodiment may be specifically implemented by the data processing apparatus of the block chain shown in fig. 8, where the data processing apparatus of this embodiment includes a first proposition processing module 11 and a first content data generating module 12 that are disposed on a first node in the block chain network, where the first node is only named for convenience of description differentiation, and the first node may be any node in the block chain network, that is, the first proposition processing module 11 and the first content data generating module 12 may be disposed on any node in the block chain network. Wherein,
and the first proposition processing module 11 is used for issuing propositions to the outside of the first node in the process of generating the content data of the account book, and acquiring answers returned by aiming at the propositions, wherein the propositions are used as conditions for generating the content data.
Specifically, the processing procedure of the first proposition processing module issuing propositions to outside the first node and obtaining the return answers may adopt several ways as introduced in the first embodiment, and the specific content has been described in detail in the first embodiment, and is not described again here.
And a first content data generation module 12, configured to generate content data according to the answer. The first content data generation module 12 may continue to execute the generation processing of the content data of the ledger upon obtaining the answer. After the generation of the content data is completed, the content data can be handed to the infrastructure layer in the blockchain architecture for block packing and chaining.
In the embodiment of the invention, an OM mechanism is introduced in the generation process of the content data of the account book, and the generation process of the content data is intervened or controlled in a proposition/answer form, so that the flexibility of the generation process of the content data of the account book is increased. For the implementation process of proposition/answer, an external OM server of a block chain network can be adopted, a consensus mechanism of internal nodes can also be adopted, answers can also be generated and obtained by means of other block chain networks, the data forming process of the block chain can be flexibly and effectively controlled in various modes, a centralization mechanism can also be flexibly introduced to intervene in the decentralized process of the block chain network, and therefore the block chain network is opened outwards.
EXAMPLE III
As shown in fig. 9, which is a flowchart illustrating an information processing method of a blockchain according to an embodiment of the present invention, in this embodiment, an information processing procedure for a specific account is described from the perspective of a change in content information of the specific account, which is a node of a blockchain network. In this embodiment, the subject generating the proposition requirement is an account, and the subject providing the answer to the proposition is also an account, and in an actual implementation, the action implementation of the account is implemented by running a relevant program on a client or a server to execute the operation related to the account. For example, the user may use his or her computer as a client, run client software related to the blockchain, log in his or her account, input an answer through a human-computer interaction manner, or generate a request for generating content information (e.g., a transaction is performed using the account). Of course, the account may correspond to a server in a network that has more advanced processing capabilities than the client, etc.
Specifically, the method of the embodiment includes:
s201: and acquiring a content information generation request from the first account, wherein the content information generation request carries a proposition serving as a content information generation condition. The step may be performed by any one or more nodes in the blockchain network, and the manner of obtaining the content information generation request may be to receive the content information generation request sent from the client, or to read the content information generation request from the blockchain.
S202: and broadcasting an OM request containing the proposition to the block chain network, wherein the OM request carries account addresses of a plurality of second accounts, and the second accounts are used as query objects for appointing to answer the proposition. This step may also be performed by any one or more nodes in the blockchain network.
As another alternative, all the accounts in the blockchain network or all the second accounts except the first account may be used as the proposition query object, and accordingly, the OM request carries indication information that all the accounts in the blockchain network or all the second accounts except the first account are used as the proposition query object.
S203: and acquiring intermediate answers returned aiming at the proposition, and generating a final answer aiming at the proposition according to a preset consensus mechanism. Wherein the obtained intermediate answers may be answers from all the second accounts or answers from part of the second accounts. In practical application, a certain time threshold and/or a certain number threshold of returned answers can be set, and answers exceeding the time threshold and/or the number threshold can be discarded, so that the processing efficiency of the answers is improved. This step may also be performed by any one or more nodes in the blockchain network.
In particular, the obtained intermediate answers provided by the plurality of second accounts for the proposition may be accompanied by a weight value, which may be associated with the second accounts, such as the weight value being related to the reputation of the second accounts. Correspondingly, the generation of the final answer for the proposition according to the preset consensus mechanism may specifically be to perform statistical ranking on the answer content according to the answer content and the weight value of each intermediate answer, and select one or more answer contents ranked before as the answer content of the final answer according to a preset rule.
In addition, the second account may be an account corresponding to an OM server outside the blockchain network or an account inside the blockchain network of the same type as the first account.
S204: and processing the content information generation request of the first account according to the final answer, thereby generating the content information of the first account. After the generation processing of the content information of the first account is completed, the content information can be handed to an infrastructure layer in a blockchain architecture for block packaging and chaining. This step may be performed by any one or more nodes in the blockchain network, or may be performed only by the node that first acquired the content information generation request in step S201,
in addition, in the above steps S201 to S204, the node may process the generation process of the content information of a plurality of first accounts at the same time, or may process only one first account at a time. After the content information of the first account is generated in S204, the process of packaging and chaining may be executed after a sufficient number of content information of the first account are generated.
In the embodiment of the invention, an OM mechanism is introduced in the generation process of the content information of the account, and the generation process of the content information is intervened or controlled in a proposition/answer form, so that the flexibility of the generation process of the content information of the account is increased. For the implementation process of proposition/answer, an external OM server of a block chain network can be adopted, a consensus mechanism of internal nodes can also be adopted, answers can also be generated and obtained by means of other block chain networks, the data forming process of the block chain can be flexibly and effectively controlled in various modes, a centralization mechanism can also be flexibly introduced to intervene in the decentralized process of the block chain network, and therefore the block chain network is opened outwards.
Example four
As shown in fig. 10, which is one of the schematic structural diagrams of the information processing apparatus of the block chain in this embodiment, the apparatus of this embodiment can implement the information processing method of the block chain in the third embodiment. The apparatus of this embodiment may include a first obtaining module 21, a first broadcasting module 22, a first answer processing module 23, and a first content information processing module 24, where each module may be disposed on any one or more nodes in the block chain network, and functions executed by each module may be realized by the cooperation of functional modules located on multiple nodes, and each module on each node may simultaneously process operations such as content information generation requests, OM requests, and collecting intermediate answers to generate final answers for multiple accounts. Specifically, the functions of the respective modules are as follows:
the first obtaining module 21 is configured to obtain a content information generation request from a first account, where the content information generation request carries a proposition as a content information generation condition. The content information generation request may be received from a client, or may be a content information generation request read from a blockchain.
The first broadcasting module 22 is configured to broadcast an OM request including a proposition to the blockchain network, where the OM request carries account addresses of a plurality of second accounts, and the plurality of second accounts are used as query objects for specifying answers to the proposition.
As another alternative, all the accounts in the blockchain network or all the second accounts except the first account may be used as the topic query object, and accordingly, in order to distinguish from the first broadcast module 22, the partial function may be completed by the second broadcast module, where the second broadcast module is configured to broadcast an OM request including a topic to the blockchain network, and the OM request carries indication information that all the accounts in the blockchain network or all the second accounts except the first account are used as the topic query object.
The first answer processing module 23 is configured to obtain an intermediate answer for the proposition, and generate a final answer for the proposition according to a preset consensus mechanism. Wherein the obtained intermediate answers may be answers from all the second accounts or answers from part of the second accounts. In practical application, a certain time threshold and/or a certain number threshold of returned answers can be set, and answers exceeding the time threshold and/or the number threshold can be discarded, so that the processing efficiency of the answers is improved. This step may also be performed by any one or more nodes in the blockchain network.
In particular, the obtained intermediate answers provided by the plurality of second accounts for the proposition may be accompanied by a weight value, which may be associated with the second accounts, such as the weight value being related to the reputation of the second accounts. Correspondingly, the generation of the final answer for the proposition according to the preset consensus mechanism may specifically be to perform statistical ranking on the answer content according to the answer content and the weight value of each intermediate answer, and select one or more answer contents ranked before as the answer content of the final answer according to a preset rule.
In addition, the second account may be an account corresponding to an OM server outside the blockchain network or an account inside the blockchain network of the same type as the first account.
And the first content information processing module 24 is configured to process the content information generation request of the first account according to the final answer, so as to generate the content information of the first account. After the generation processing of the content information of the first account is completed, the content information can be handed to an infrastructure layer in a blockchain architecture for block packaging and chaining.
According to the embodiment of the invention, the OM mechanism is introduced in the generation process of the content information of the account through the modules arranged on the nodes of the block chain network, and the generation process of the content information is intervened or controlled through the proposition/answer form, so that the flexibility of the generation process of the content information of the account is increased. For the implementation process of proposition/answer, an external OM server of a block chain network can be adopted, a consensus mechanism of internal nodes can also be adopted, answers can also be generated and obtained by means of other block chain networks, the data forming process of the block chain can be flexibly and effectively controlled in various modes, a centralization mechanism can also be flexibly introduced to intervene in the decentralized process of the block chain network, and therefore the block chain network is opened outwards.
EXAMPLE five
As shown in fig. 11, which is a second flowchart of the information processing method of the blockchain according to the second embodiment of the present invention, in the present embodiment, the OM mechanism is implemented in combination with the basic architecture layer of the blockchain architecture, and the OM message and the answer are recorded and transmitted through the underlying blockchain. Specifically, the method of the embodiment includes:
s301: and acquiring a content information generation request of the first account, wherein the content information generation request carries a proposition serving as a content information generation condition. The step may be performed by any one or more nodes in the blockchain network, and the manner of obtaining the content information generation request may be to receive the content information generation request sent from the client, or to read the content information generation request from the blockchain. The content information generation request may be initiated by a client or a node logged in by using a first account, and then broadcast to the entire blockchain network, and then the blockchain network types the content information generation request into a blockchain, so that each node in the blockchain network can acquire the content information generation request from the blockchain to perform subsequent processing.
S302: broadcasting an OM request to the blockchain network, the OM request comprising: proposition, OM address and the processing logic of the intermediate answer that returns to proposition, processing logic is used for producing final answer according to the intermediate answer. This step may also be performed by any one or more nodes in the blockchain network. After broadcasting the OM request to the blockchain network, the blockchain network may generate a corresponding final answer according to the OM request, where the manner of generating the final answer may be as described in the foregoing embodiments, the final answer is formed based on each node or each account inside the blockchain network, the final answer may be obtained from an external OM server, the final answer may be obtained through another blockchain network, or a mixture of multiple manners may be used to form the final answer. As an optional manner, in this embodiment, the specific processing procedure may include:
s302 a: the blockchain network can write the proposition into a blockarea in the blockchain corresponding to the OM address. In the storage structure of the block chain, information or data is indexed by address information, so for an OM request, propositions and answers related to the OM request can be indexed by an OM address, each node or client can find corresponding information or data by the OM address, and correspondingly, answers to the propositions are also issued by taking the OM address as a destination, namely, are finally written into a block area corresponding to the OM address.
S302 b: and collecting intermediate answers provided by a plurality of second accounts for propositions, and processing the plurality of intermediate answers according to the processing logic in the OM request to generate final answers. The intermediate processing procedure of this step may also use the blockchain as a transmission medium of the answer information, specifically, the step S302b may include:
s302b 1: and acquiring a first response message from the client and/or the OM server corresponding to the second account, and broadcasting the first response message to the blockchain network, wherein the first response message comprises an intermediate answer aiming at the proposition and an OM address.
Specifically, the processing logic in the OM request may include a preset time threshold and/or a preset number threshold for gathering the intermediate answer, and accordingly, the step S302b1 may specifically be: and acquiring a first response message received from the client and/or the OM server within the range of a preset time threshold and/or a preset quantity threshold, and broadcasting the first response message to the blockchain network.
In addition, in step S302b1, a verification process for the intermediate answer may be further included, that is, the first answer message is obtained from the client and/or the OM server corresponding to the second account, the intermediate answer in the first answer message is verified according to a preset verification rule, the first answer message corresponding to the intermediate answer that fails in verification is removed, and the first answer message corresponding to the intermediate answer that passes verification is broadcast to the blockchain network. The verification rule mentioned here may be to identify obviously bad intermediate answers by calculating the mean square error, the deviation degree, and so on, so as to avoid that these intermediate answers influence the accuracy of the final answer.
S302b 2: and writing the intermediate answer into a block area corresponding to the OM address in the block chain.
S302b 3: and acquiring an intermediate answer aiming at the proposition from the block chain according to an OM address contained in the OM request, and processing the intermediate answer according to a processing logic contained in the OM request to generate a final answer.
S302b 4: broadcasting a second reply message to the blockchain network, the second reply message including the OM address and the final answer.
S302 c: and writing the final answer into a block area corresponding to the OM address in the block chain.
S303: and acquiring a final answer aiming at the proposition from the block chain according to the OM address, and executing content information generation processing aiming at the first account according to the final answer. This step may also be performed by any one or more nodes in the blockchain network.
In addition, it should be noted that, in each of the above steps, the node may process the generation processing of the content information of a plurality of first accounts at the same time, and only process one first account at a time. After the content information of the first account is generated in S303, the process of packaging and chaining may be executed after a sufficient number of content information of the first account are generated.
In the embodiment of the invention, an OM mechanism is introduced in the generation process of the content information of the account, and the generation process of the content information is intervened or controlled in a proposition/answer form, so that the flexibility of the generation process of the content information of the account is increased. For the implementation process of proposition/answer, an external OM server of a block chain network can be adopted, a consensus mechanism of internal nodes can also be adopted, answers can also be generated and obtained by means of other block chain networks, the data forming process of the block chain can be flexibly and effectively controlled in various modes, a centralization mechanism can also be flexibly introduced to intervene in the decentralized process of the block chain network, and therefore the block chain network is opened outwards.
In addition, propositions/answers related in the OM mechanism are all typed in a block chain by taking the OM address as an index, so that the block chain is used as a transmission medium of the propositions/answers, and the implementation process of the OM mechanism is recorded, so that the propositions/answers have higher credibility and traceability.
EXAMPLE six
As shown in fig. 12, which is a second schematic structural diagram of an information processing apparatus of a block chain according to an embodiment of the present invention, the apparatus can implement the information processing method of the block chain in the fifth embodiment, and includes a second obtaining module 31, a third broadcasting module 32, and a second content information processing module 33. Each module in this embodiment may be disposed on any one or more nodes in the block chain network, the function executed by each module may be realized by the mutual cooperation of the functional modules located on the plurality of nodes, and each module on each node may simultaneously process operations such as content information generation requests, OM requests, and intermediate answer collection to generate final answers for the plurality of accounts. The specific functions of each module are as follows:
the second obtaining module 31 is configured to obtain a content information generation request of the first account, where the content information generation request carries a proposition as a content information generation condition.
A third broadcasting module 32, configured to broadcast an OM request to the blockchain network, where the OM request includes: proposition, OM address and the processing logic of the intermediate answer that returns to proposition, processing logic is used for producing final answer according to the intermediate answer.
And a second content information processing module 33, configured to obtain a final answer for the proposition from the blockchain according to the OM address, and perform content information generation processing for the first account according to the final answer.
In addition, the embodiment may also be used to execute a correlation module that generates a final answer based on the intermediate answer, and specifically includes:
and a first blockchain writing module 34, configured to write the proposition into a block area corresponding to the OM address in the blockchain.
And the second answer processing module 35 is configured to collect intermediate answers provided by the plurality of second accounts for propositions, process the plurality of intermediate answers according to the processing logic in the OM request, and generate a final answer.
Further, in the second answer processing module 35, the processing functions thereof may be embodied as the following aspects:
1) and acquiring a first response message from the client and/or the OM server corresponding to the second account, and broadcasting the first response message to the blockchain network, wherein the first response message comprises an intermediate answer aiming at the proposition and an OM address.
In addition, the processing logic in the OM request may include a preset time threshold and/or a preset number threshold for collecting the intermediate answers, and accordingly, the processing procedure of 1) may specifically be: and acquiring a first response message received from the client and/or the OM server within the range of a preset time threshold and/or a preset quantity threshold, and broadcasting the first response message to the blockchain network.
In addition, the processing process in the above 1) may further include a verification process for the intermediate answer, that is, the first answer message is obtained from the client and/or the OM server corresponding to the second account, the intermediate answer in the first answer message is verified according to a preset verification rule, the first answer message corresponding to the intermediate answer that fails in verification is removed, and the first answer message corresponding to the intermediate answer that passes verification is broadcast to the blockchain network. The verification rule mentioned here may be to identify obviously bad intermediate answers by calculating the mean square error, the deviation degree, and so on, so as to avoid that these intermediate answers influence the accuracy of the final answer.
2) And writing the intermediate answer into a block area corresponding to the OM address in the block chain.
3) And acquiring an intermediate answer aiming at the proposition from the block chain according to an OM address contained in the OM request, and processing the intermediate answer according to a processing logic contained in the OM request to generate a final answer.
4) Broadcasting a second reply message to the blockchain network, the second reply message including the OM address and the final answer.
The second block chain writing module 36 is configured to write the final answer into a block area corresponding to the OM address in the block chain, so as to prepare for the second content information processing module 33 to obtain the final answer.
In the embodiment of the invention, an OM mechanism is introduced in the generation process of the content information of the account, and the generation process of the content information is intervened or controlled in a proposition/answer form, so that the flexibility of the generation process of the content information of the account is increased. For the implementation process of proposition/answer, an external OM server of a block chain network can be adopted, a consensus mechanism of internal nodes can also be adopted, answers can also be generated and obtained by means of other block chain networks, the data forming process of the block chain can be flexibly and effectively controlled in various modes, a centralization mechanism can also be flexibly introduced to intervene in the decentralized process of the block chain network, and therefore the block chain network is opened outwards.
In addition, propositions/answers related in the OM mechanism are all input into a block chain with OM addresses as indexes, so that the block chain is used as a transmission medium of the propositions/answers, and meanwhile, the implementation process of the OM mechanism is recorded, and the propositions/answers have high credibility and traceability.
Those of ordinary skill in the art will understand that: all or a portion of the steps of implementing the above-described method embodiments may be performed by hardware associated with program instructions. The program may be stored in a computer-readable storage medium. When executed, the program performs steps comprising the method embodiments described above; and the aforementioned storage medium includes: various media that can store program codes, such as ROM, RAM, magnetic or optical disks.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solution of the present invention, and not to limit the same; while the invention has been described in detail and with reference to the foregoing embodiments, it will be understood by those skilled in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present invention.