Summary of the invention
The present invention proposes the content interaction method and system of a kind of decentralization, how to realize decentralization for solving
The problem of content interaction between different institutions.
To solve the above-mentioned problems, according to an aspect of the invention, there is provided a kind of content interaction side of decentralization
Method, which is characterized in that the described method includes:
Acquisition request is created in first server and is issued;Wherein, the acquisition request include: obtain content title,
Obtain the quantity of content, the term of validity of the quantity of Push Service resource and the acquisition request;
Lock Service Source corresponding with the quantity of the Push Service resource;
Push request Concurrency cloth is created in second server;Wherein, it is described push request include: push content title,
It pushes the quantity of content, obtain the quantity of Service Source and the term of validity of the push request;
Lock content corresponding with the push quantity of content;
Determine that the acquisition request and push request meet preset matching strategy, the initiation mechanism of the acquisition request and
The initiation mechanism of push request carries out content interaction, generates interaction voucher and stores into block chain.
Preferably, wherein the method also includes:
Before publication, legitimate verification is carried out to the acquisition request and push request.
Preferably, wherein the determination acquisition request and push request meet preset matching strategy, comprising:
Determine what the title that content is obtained in the acquisition request and the quantity for obtaining content were requested with the push respectively
The title for pushing content is consistent with the push quantity of content, and the quantity of the Push Service resource meets the number for obtaining Service Source
Amount requires, and the acquisition request and push request are in effective status, it is determined that the acquisition request and push request
Meet preset matching strategy.
Preferably, raw wherein the initiation mechanism of the acquisition request and the initiation mechanism of push request carry out content interaction
At interaction voucher and store into block chain, comprising:
Lock the acquisition request, receive that the initiation mechanism of the acquisition request sends with the Push Service resource
The corresponding Service Source of quantity generates the first interaction voucher and stores into the block chain;
The push request is locked, is sent and the corresponding Service Source of the acquisition quantity of Service Source and the acquisition
It requests to the initiation mechanism of the push request, obtains content corresponding with the push quantity of content, generate the second interaction
Voucher is simultaneously stored into the block chain;
The initiation mechanism for sending content corresponding with the acquisition quantity of content to the acquisition request, generates third and hands over
Mutual voucher is simultaneously stored into the block chain;
It is configured to first transaction certificate, the second transaction certificate and third transaction certificate to combine interactive voucher, and deposits
Storage completes content interaction into the block chain;Wherein, described to combine the initiation machine that interaction voucher includes: the acquisition request
The coalition signature of structure and the initiation mechanism of the push request.
Preferably, wherein the method also includes:
When completing content interaction not within the term of validity of the acquisition request, the acquisition request is cancelled;
When not completing content interaction within the term of validity of the push request, the push request is cancelled.
Preferably, wherein the method also includes:
The initiation mechanism of initiation mechanism and push request to the acquisition request carries out authentication.
According to another aspect of the present invention, a kind of content interactive system of decentralization is provided, which is characterized in that institute
The system of stating includes:
Acquisition request release module, for creating acquisition request in first server and issuing;Wherein, the acquisition request
It include: the validity period of the title for obtaining content, the quantity for obtaining content, the quantity of Push Service resource and the acquisition request
Limit;
First locking module, for locking Service Source corresponding with the quantity of the Push Service resource;
Push request release module, for creating push request Concurrency cloth in second server;Wherein, the push request
It include: the validity period of the title for pushing content, the quantity for pushing content, the quantity for obtaining Service Source and the push request
Limit;
Second locking module, for locking content corresponding with the push quantity of content;
Content interactive module, it is described to obtain for determining that the acquisition request and push request meet preset matching strategy
The initiation mechanism of the initiation mechanism and push request that take request carries out content interaction, generates interaction voucher and stores to block chain
In.
Preferably, wherein the system also includes:
Legitimate verification module, for carrying out legitimacy to the acquisition request and push request before publication
Verifying.
Preferably, wherein the content interactive module, determines that the acquisition request and push request meet preset matching
Strategy, comprising:
Determine what the title that content is obtained in the acquisition request and the quantity for obtaining content were requested with the push respectively
The title for pushing content is consistent with the push quantity of content, and the quantity of the Push Service resource meets the number for obtaining Service Source
Amount requires, and the acquisition request and push request are in effective status, it is determined that the acquisition request and push request
Meet preset matching strategy.
Preferably, wherein the content interactive module, the initiation mechanism of the initiation mechanism of acquisition request and push request into
The interaction of row content generates interaction voucher and stores into block chain, comprising:
Lock the acquisition request, receive that the initiation mechanism of the acquisition request sends with the Push Service resource
The corresponding Service Source of quantity generates the first interaction voucher and stores into the block chain;
The push request is locked, is sent and the corresponding Service Source of the acquisition quantity of Service Source and the acquisition
It requests to the initiation mechanism of the push request, obtains content corresponding with the push quantity of content, generate the second interaction
Voucher is simultaneously stored into the block chain;
The initiation mechanism for sending content corresponding with the acquisition quantity of content to the acquisition request, generates third and hands over
Mutual voucher is simultaneously stored into the block chain;
It is configured to first transaction certificate, the second transaction certificate and third transaction certificate to combine interactive voucher, and deposits
Storage completes content interaction into the block chain;Wherein, described to combine the initiation machine that interaction voucher includes: the acquisition request
The coalition signature of structure and the initiation mechanism of the push request.
Preferably, wherein the system also includes:
First revocation module, when for completing content interaction not within the term of validity of the acquisition request, described in revocation
Acquisition request;Second revocation module, when for for not completing content interaction within the term of validity of the push request, revocation
The push request.
Preferably, wherein the system also includes:
Authentication module, the initiation mechanism for initiation mechanism and push request to the acquisition request carry out identity
Certification.
The present invention provides a kind of content interaction method of decentralization and systems, comprising: obtains in first server creation
Take request Concurrency cloth;Lock Service Source corresponding with the quantity of the Push Service resource;It creates and pushes in second server
Request Concurrency cloth;Lock content corresponding with the push quantity of content;And determine the acquisition request and push request
Meet preset matching strategy, the initiation mechanism of the acquisition request and the initiation mechanism of push request carry out content interaction, raw
At interaction voucher and store into block chain.The present invention is by intermediary agency by two different mechanisms that can not directly interact
Demand is matched, and is completed content interaction, is met the request of different institutions;Meanwhile it generating corresponding interaction voucher and being stored in
In block chain, due to using distributed accounting and storage, there is no the hardware of centralization or management organization, any node is all equal
Deng, change difficulty is big, ensure that the stability and safety of content interaction.
Specific embodiment
Exemplary embodiments of the present invention are introduced referring now to the drawings, however, the present invention can use many different shapes
Formula is implemented, and is not limited to the embodiment described herein, and to provide these embodiments be at large and fully disclose
The present invention, and the scope of the present invention is sufficiently conveyed to person of ordinary skill in the field.Show for what is be illustrated in the accompanying drawings
Term in example property embodiment is not limitation of the invention.In the accompanying drawings, identical cells/elements use identical attached
Icon note.
Unless otherwise indicated, term (including scientific and technical terminology) used herein has person of ordinary skill in the field
It is common to understand meaning.Further it will be understood that with the term that usually used dictionary limits, should be understood as and its
The context of related fields has consistent meaning, and is not construed as Utopian or too formal meaning.
Fig. 1 is the flow chart according to the content interaction method 100 of the decentralization of embodiment of the present invention.As shown in Figure 1,
The content interaction method for the decentralization that embodiments of the present invention provide by intermediary agency by two it is different can not be direct
The demand of interactive mechanism is matched, and is completed content interaction, is met the request of different institutions;Meanwhile generating corresponding hand over
Mutual voucher is stored in block chain, and due to using distributed accounting and storage, there is no the hardware of centralization or management organizations, is appointed
What node be all it is impartial, change difficulty is big, ensure that the stability and safety of content interaction.Embodiments of the present invention mention
The content interaction method of the decentralization of confession creates acquisition request simultaneously in first server since step 101 place, in step 101
Publication;Wherein, the acquisition request include: the title for obtaining content, obtain the quantity of content, the quantity of Push Service resource and
The term of validity of the acquisition request.
In step 102, Service Source corresponding with the quantity of the Push Service resource is locked.
In embodiments of the present invention, acquisition request can be able to be for a purchase request, the title for obtaining content
One material object or virtual objects, such as bit coin, movie name or investment gold bar etc.;Push Service resource can be in kind or empty
Quasi- article, such as currency or fixed assets etc..
For example, the initiation mechanism of acquisition request creates acquisition request in first server and issues.Wherein, acquisition request packet
It includes: obtaining the entitled bit coin (BTC) of content, quantity is 1, and the quantity of Push Service resource, i.e. purchasing price are 10000
RMB, the validity period of request are 3 days.Then, after acquisition request publication, first server will lock the acquisition request
Initiation mechanism Service Source corresponding with the quantity of Push Service resource, i.e. 10000 RMB, until content interaction complete
Or acquisition request revocation.
In addition, server or the other user where remarks, such as the other user can also be arranged in acquisition request is interior
Hold quantitative requirement etc..
In step 103, push request Concurrency cloth is created in second server;Wherein, the push request includes: in push
The term of validity of the title of appearance, the quantity for pushing content, the quantity for obtaining Service Source and the push request.
In step 104, content corresponding with the push quantity of content is locked.
In embodiments of the present invention, push request can be to sell request, and the title for pushing content can be one
In kind or virtual objects, such as bit coin, movie name or investment gold bar etc.;Obtaining Service Source can be in kind or virtual object
Product, such as currency or fixed assets etc..
For example, the initiation mechanism of push request creates push request Concurrency cloth in second server.Wherein, request packet is pushed
It includes: pushing the entitled bit coin of content, quantity is 1, and the quantity for obtaining Service Source is 8000 Hongkong dollars, the validity period of request
It is 3 days.Then, the push request publication after, second server will lock it is described push request initiation mechanism with push
The corresponding content of the quantity of content, i.e. 1 bit coin, until content interaction is completed or acquisition request revocation.
In addition, the clothes of server or the other user where remarks, such as the other user can also be arranged in acquisition request
The quantitative requirement etc. for resource of being engaged in.
Preferably, wherein the method also includes:
Before publication, legitimate verification is carried out to the acquisition request and push request.
In embodiments of the present invention, acquisition request created and push are requested, requires to close it
Method verifying;Wherein, property is verified if legal, then is issued;Property verifying if legal does not pass through, then it is obstructed to feed back legitimate verification
Message is crossed, mechanism is initiated with prompt and is modified.
In step 105, determine that the acquisition request and push request meet preset matching strategy, the acquisition request
The initiation mechanism for initiating mechanism and push request carries out content interaction, generates interaction voucher and stores into block chain.
Preferably, wherein the determination acquisition request and push request meet preset matching strategy, comprising:
Determine what the title that content is obtained in the acquisition request and the quantity for obtaining content were requested with the push respectively
The title for pushing content is consistent with the push quantity of content, and the quantity of the Push Service resource meets the number for obtaining Service Source
Amount requires, and the acquisition request and push request are in effective status, it is determined that the acquisition request and push request
Meet preset matching strategy.
Preferably, raw wherein the initiation mechanism of the acquisition request and the initiation mechanism of push request carry out content interaction
At interaction voucher and store into block chain, comprising:
Lock the acquisition request, receive that the initiation mechanism of the acquisition request sends with the Push Service resource
The corresponding Service Source of quantity generates the first interaction voucher and stores into the block chain;
The push request is locked, is sent and the corresponding Service Source of the acquisition quantity of Service Source and the acquisition
It requests to the initiation mechanism of the push request, obtains content corresponding with the push quantity of content, generate the second interaction
Voucher is simultaneously stored into the block chain;
The initiation mechanism for sending content corresponding with the acquisition quantity of content to the acquisition request, generates third and hands over
Mutual voucher is simultaneously stored into the block chain;
It is configured to first transaction certificate, the second transaction certificate and third transaction certificate to combine interactive voucher, and deposits
Storage completes content interaction into the block chain;Wherein, described to combine the initiation machine that interaction voucher includes: the acquisition request
The coalition signature of structure and the initiation mechanism of the push request.
The transaction certificate of the initiation mechanism coalition signature for the initiation mechanism and push request by acquisition request that will acquire
It stores as transaction record in block chain network, what can not be distorted is permanently stored in block chain network, to ensure this
Licit traffic record after reaching common understanding in block chain network, updates the initiation mechanism of acquisition request and the initiation of push request
The account value of mechanism, the interaction of this content are completed.
Preferably, wherein the method also includes:
When completing content interaction not within the term of validity of the acquisition request, the acquisition request is cancelled;
When not completing content interaction within the term of validity of the push request, the push request is cancelled.
Preferably, wherein the method also includes: to the initiation machine of the initiation mechanism of the acquisition request and push request
Structure carries out authentication.
In primary transaction, if only initiating mechanism issues acquisition request, it can choose and suitably meet the requirements
After target mechanism, then pass through the completion transaction of the process as shown in step 101-105.
In primary transaction, if only target mechanism publication push request, it can choose and suitably meet the requirements
After initiating mechanism, then pass through the completion transaction of the process as shown in step 101-105.
The embodiment illustrated the present invention in detail below
In embodiments of the present invention, the content interaction for realizing decentralization includes: to initiate user A to be intended in exchange 1
1 bit coin is bought using 45000 RMB, target user B is intended to sell 1 bit coin, price 5000 in exchange 2
Hongkong dollar.Since mesh first two legal tender can not be supported in single digital exchange, and user A and B are in different friendships
Therefore easy institute realizes by the intermediation of intermediate user C and meets the content interaction for initiating user A and target user B,
And intermediate user is realized using decentralization.
Fig. 2 is the overall system architecture figure according to the assets exchange of the decentralization of embodiment of the present invention.Such as Fig. 2 institute
Show, ordinary user A is as node is initiated in exchange 1, and as destination node in exchange 2, both sides pass through ordinary user B
Intermediate user node carries out authentication, content interaction, generation transaction certificate etc., and is stored in block chain.
Fig. 3 is the flow chart according to the method 300 of the assets exchange of the decentralization of embodiment of the present invention.Such as Fig. 3 institute
Show, in embodiments of the present invention, realizes the assets exchange of decentralization since step 301, in step 301, initiate to use
Family A creates purchase application in exchange 1 and issues.Wherein, purchase application includes: the entitled bit coin for obtaining content, quantity
It is 1, purchasing price is 45000 RMB, and the term of validity of application is 3 days.
Remark information can also be added in purchase application, for example, exchange 2 carried out by the transaction of remarks reception user, connects
It receives the bit coin quantity that user possesses and is greater than 1, service charge etc..
Wherein, satisfactory purchase is applied, initiates user A for cooperation and completes content interaction;It is wanted for not meeting
The purchase application asked is issued again after needing to initiate user A revocation or modification.
In step 302, the exchange 1 where initiating user A initiates in user A account according to purchase application locking
The assets of 45000 RMB, until transaction is completed or revocation.
Wherein, it after the purchase assets in the account that user A is initiated in locking, if transaction is completed at the appointed time, provides
Currency will send to intermediate user be not returned to initiate user;If failing transaction to complete, this time Transaction Reversal, the friendship after revocation
Hang-up can be easily issued again.
In step 303, target user B creates to sell in exchange 2 to be applied and issues.Wherein, selling application includes: push
The entitled bit coin of content, quantity are 1, and commercial value is 50000 Hongkong dollars, and the term of validity of application is 3 days.
Remark information can also be added in selling application, for example, exchange 1 carried out by the transaction of remarks reception user, connects
It receives the assets that user possesses and is greater than 50000 Hongkong dollars etc..
Wherein, satisfactory purchase is applied, initiates user B for cooperation and completes content interaction;It is wanted for not meeting
The purchase application asked is issued again after needing to initiate user B revocation or modification.Transaction where step 304, target user B
2 according to sell application locking target user B account in 1 bit coin, until transaction complete or revocation.
Wherein, it after the sale assets in the account that user B is initiated in locking, if transaction is completed at the appointed time, mentions
The sale assets of confession, which will be sent to intermediate user not being returned to, initiates user;If failing transaction to complete, this time Transaction Reversal, revocation
Transaction afterwards can issue hang-up again.
In step 305, determines the purchase application and sells and apply meeting preset matching strategy, carry out content interaction,
And it generates interactive voucher and stores into block chain.Wherein, intermediate user has account, Neng Goutong in exchange 1 and exchange 2
When meet two request.
Fig. 4 is the flow chart according to the method 400 of the carry out content of embodiment of the present invention interaction.As shown in figure 4, specific
Including the following steps:
Step 401, determine that the purchase application and push request meet preset matching strategy.Specifically, comprising: determine
Buy the title and push of the push content that the quantity of the title of acquisition content and acquisition content in application is applied with sale respectively
The quantity of content is consistent, and the quantity of the Push Service resource meets the quantitative requirement for obtaining Service Source, and the acquisition
Request and push request are in effective status, it is determined that the acquisition request and push request meet preset matching strategy.
Step 402, intermediate user is reached common understanding by exchange 1 and exchange 2.It can make this node that there is peace in this way
Entirely, openly, reliability, the registration of intermediate node can be completed.
Step 403, intermediate user confirms in exchange 1 undertakes the sheet for initiating user, which is locked, receives and initiates
The 45000CNY of user simultaneously, and generates the first interaction voucher and stores into block chain.At this point, the sheet for initiating user will not
Confirmed again by other users, the confirmation of the sheet requires the BTC remaining sum of intermediate user sufficient, for example is greater than 1BTC.
The sheet being identified must be completed at the appointed time, and otherwise sheet will be hung up again, and intermediate user will be by
To punishment, corresponding interactive voucher is generated after the completion of sheet transaction, which is just stored in block chain and can not distort
Transaction record.
Step 404, intermediate user buys 1 BTC to target user using 50000HKD in exchange 2, and in exchange 1
The user's sheet information confirmed, as the response for selling application remarks for target user.
Step 405, target user receives 1 BTC of intermediate user transmission, and confirmation remarks demand is met, cooperated
At transaction, 50000HKD is received, and sends 1 BTC to intermediate user, and generates the second interaction voucher and stores into block chain;
Corresponding second interaction voucher is generated after the completion of this transaction will be stored in block chain, become the transaction note that can not be distorted
Record, guarantees the legitimacy of this process of exchange.
Step 406, intermediate user receives 1 BTC, sends 1 BTC to user is initiated in the exchange 1, and generate
Third interaction voucher is stored into block chain.
Step 407, by first transaction certificate, the second transaction certificate and third transaction certificate be configured to combination interaction with
Card, and store into the block chain, complete content interaction.Initiate user and target user by coalition signature interaction with
This joint transaction voucher is stored by intermediate user and is used as transaction record into block chain network by card, can not be distorted and (be distorted need
Want the proof of work of great number, can not realize) be permanently stored in block chain network with ensure this licit traffic record,
After reaching common understanding in block chain network, the account value for initiating user and target user is updated, this exchange dealings is completed.
Fig. 5 is the structural schematic diagram according to the content interactive system 500 of the decentralization of embodiment of the present invention.Such as Fig. 5
It is shown, the content interactive system 500 for the decentralization that embodiments of the present invention provide, comprising: acquisition request release module
501, the first locking module 502, push request release module 503, the second locking module 504 and content interactive module 505.
Preferably, the acquisition request release module 501, for creating acquisition request in first server and issuing;Its
In, the acquisition request includes: the title for obtaining content, obtains the quantity of content, the quantity of Push Service resource and described obtain
Take the term of validity of request.
Preferably, first locking module 502, for locking service corresponding with the quantity of the Push Service resource
Resource.
Preferably, release module 503 is requested in the push, for creating push request Concurrency cloth in second server;Its
In, the push request includes: the title for pushing content, the quantity for pushing content, the quantity for obtaining Service Source and described pushes away
Send the term of validity of request.
Preferably, second locking module 504, for locking content corresponding with the push quantity of content.
Preferably, the content interactive module 505, for determining that the acquisition request and push request meet preset
With strategy, the initiation mechanism of the acquisition request and the initiation mechanism of push request carry out content interaction, generate interaction voucher simultaneously
It stores into block chain.
Preferably, wherein the content interactive module 505, determines that the acquisition request and push request meet preset
With strategy, comprising: determine that the title for obtaining content in the acquisition request and the quantity for obtaining content are asked with the push respectively
The title for the push content asked is consistent with the push quantity of content, and the quantity of the Push Service resource, which meets, obtains Service Source
Quantitative requirement, and the acquisition request and push request be in effective status, it is determined that the acquisition request and push
Request meets preset matching strategy.
Preferably, wherein the content interactive module 505, the initiation mechanism of acquisition request and the initiation mechanism of push request
Content interaction is carried out, interaction voucher is generated and is stored into block chain, comprising: locks the acquisition request, receives the acquisition
The Service Source corresponding with the quantity of the Push Service resource that the initiation mechanism of request is sent generates the first interaction voucher simultaneously
It stores into the block chain;Push request is locked, sends that the quantity of Service Source is corresponding services money with the acquisition
The initiation mechanism of source and the acquisition request to the push request, acquisition content corresponding with the push quantity of content,
It generates the second interaction voucher and stores into the block chain;Corresponding with the acquisition quantity of content content is sent to described
The initiation mechanism of acquisition request generates third interaction voucher and stores into the block chain;By first transaction certificate,
Two transaction certificates and third transaction certificate are configured to combine interactive voucher, and store into the block chain, complete content interaction;
Wherein, the connection of the initiation mechanism for combining initiation mechanism and the push request that interaction voucher includes: the acquisition request
Close signature.
Preferably, wherein the system also includes legitimate verification module, for asking to the acquisition before publication
The push request of summing carries out legitimate verification.
Preferably, wherein the system also includes: first revocation module, for not in the term of validity of the acquisition request
When the interaction of interior completion content, the acquisition request is cancelled;Second revocation module, for for not in the effective of the push request
When completing content interaction in the time limit, the push request is cancelled.
Preferably, wherein the system also includes authentication module, for the acquisition request initiation mechanism and
The initiation mechanism of push request carries out authentication.
In the going of the content interactive system 500 of the decentralization of the embodiment of the present invention and another embodiment of the invention
The content interaction method 100 of the heart is corresponding, and details are not described herein.
The present invention is described by reference to a small amount of embodiment.However, it is known in those skilled in the art, as
Defined by subsidiary Patent right requirement, in addition to the present invention other embodiments disclosed above equally fall in it is of the invention
In range.
Normally, all terms used in the claims are all solved according to them in the common meaning of technical field
It releases, unless in addition clearly being defined wherein.All references " one/described/be somebody's turn to do [device, component etc.] " are all opened
Ground is construed at least one example in described device, component etc., unless otherwise expressly specified.Any method disclosed herein
The step of need not all be run with disclosed accurate sequence, unless explicitly stated otherwise.