CN109615513A - For value to be exchanged in block chain or the method and system of article even exchange - Google Patents
For value to be exchanged in block chain or the method and system of article even exchange Download PDFInfo
- Publication number
- CN109615513A CN109615513A CN201811300181.4A CN201811300181A CN109615513A CN 109615513 A CN109615513 A CN 109615513A CN 201811300181 A CN201811300181 A CN 201811300181A CN 109615513 A CN109615513 A CN 109615513A
- Authority
- CN
- China
- Prior art keywords
- transaction
- user
- information
- block chain
- exchange
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
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
- G06Q40/00—Finance; Insurance; Tax strategies; Processing of corporate or income taxes
- G06Q40/04—Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange
-
- 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/38—Payment protocols; Details thereof
- G06Q20/382—Payment protocols; Details thereof insuring higher security of transaction
- G06Q20/3829—Payment protocols; Details thereof insuring higher security of transaction involving key management
-
- 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/38—Payment protocols; Details thereof
- G06Q20/389—Keeping log of transactions for guaranteeing non-repudiation of a transaction
Landscapes
- Business, Economics & Management (AREA)
- Accounting & Taxation (AREA)
- Engineering & Computer Science (AREA)
- Finance (AREA)
- Physics & Mathematics (AREA)
- Strategic Management (AREA)
- General Business, Economics & Management (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Computer Security & Cryptography (AREA)
- Development Economics (AREA)
- Economics (AREA)
- Marketing (AREA)
- Technology Law (AREA)
- Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)
Abstract
Value to be exchanged or the method and system of article even exchange in block chain are disclosed in the case of participating in for realizing no trusted third party, method includes: the first step, and the first user and second user agree to the exchange first information and the second information;Second step, the first user and second user generate and sign jointly the first transaction, are related to the first information being transferred to the first user from the first user, the second information is transferred to second user from second user;Third step, the first user and second user generate and sign jointly the second transaction, for exchanging the first information and the second information;4th step, it is voted respectively the first transaction and the second transaction, when there are being not present in inconsistent situation, miner receives simultaneously or sequence receives first and second and trades for the first and second transaction, it does not exchange, otherwise there are miners simultaneously or sequentially to receive the first and second transaction;Appropriate numerical value is passed to the first user and second user by the 5th step, the first and second transaction, and exchange is completed or terminated.
Description
Technical field
The present invention relates to block chain fields, more particularly, in block chain it is to be exchanged value or article even exchange side
Method and system.
Background technique
As long as being traded, transaction cost will be generated, cost not only includes observable monetary cost, further includes
The costs such as invisible time, but it is highest, trust and the premise for generating transaction that cost is trusted in all costs.At present
Usual way is to look for a company or mechanism of credit rating S+ in life, is traded by mechanism, trusted third party.Of today
The calculating of all value Transfers is all placed on a central server by the endorsement of government or group company by centralization mechanism
In handled, wherein be bound to be related to the participation of people, due to people it is existing it is selfish also have it is unselfish, have it is greedy also have do not covet
Greedy, often make whole system become less credible.When the interests broken one's promise are more than cost, it may just will appear and ask
Topic.Transaction would not also be had by not trusting, and almost also there is no absolute objects trusty at present.
Block chain technology is come into being like this, it can be opened in the case where no third party trusts and endorses at one
It puts and carries out remote value Transfer on the platform of formula.All authorized persons are identical with the in store portion of participant in the whole network
Account book.Since being decentralization, that just can remove altered data without a certain personal or some operator, any to modify
It will be found and abandon.Any participant can check that All Activity data, this open and clear feature are complete simultaneously
Avoid a possibility that distorting.
However, this mechanism still has trust crisis, bring is the difficulty that even exchange is realized.Even exchange is also known as
It is fair for exchange, even exchange at present be all mostly by obtain the trusted third party of both sides or multi-party trust (TTP,
Trusted Third Party) Lai Shixian, wherein TTP is to obtain credible qualification by law, administration, business etc. approach,
Receive the supervision of administrative department, the countries concerned, provides the mechanism of maintenance operation service for various systems.Even exchange is transaction
One cardinal principle, party concerned not fully trust each other, such as online shopping, digital protocol signature and authorized mail, block chain
It is a kind of trusted third party, is formed by many not trusted each side, Fair Exchange Protocol must assure that a side of malice
Any interests will not be obtained for a honest side, more specifically for, need to meet following requirement: 1) efficiency, if two
Fang Hangwei is correct, eventually exchanges;2) fairness, including strong fair and weak justice, strong justice indicate to terminate in agreement
When, needed for two sides can obtain or two sides all there is no it is required, it is weak fair to indicate to obtain in strong justice
Under a variety of situations, a honest side can prove to have been received or still be able to after receiving to external arbitration organ another party
Person it is expected received thing;3) timeliness, a honest side, which can determine, completes agreement at determining time point, and complete in agreement
At when, swap status from one side of the honesty finally determine, timeliness require determine a fixed agreement it is complete
At time point, the characteristic avoid exchange a side ad infinitum wait another party, with determine exchange as a result, as successfully exchange or
It is failure;4) Noninvasive allows to exchange any article in the case where not making has any destructing requirement to agreement, i.e., fair
The form that exchange agreement does not allow to treat itself exchange article requires, for example, exchange is according to any standard digital signature
The signature that algorithm is formed, such as RSA or ECDSA, it is considered to be Noninvasive;5) duration traded, i.e. clearing house spend
Time should be short.There is the participation of TTP that even exchange although may be implemented, but in the biggish situation of network trading amount, TTP
The real-time activity of participating in business is likely to cause the bottleneck of the network operation, but also largely effects on trading efficiency.Assuming that two side's principles
On agreed to one transaction, this will be related to them and in some way mutually transmit valuable thing, though two Fang Jun agree to
The timetable how to exchange, also can force either party to send particular message and give block chain, to make without anything
At unfairness exchange occur a possibility that, therefore 100% guarantee implement even exchange be under current exchanging mechanism impossible
's.In addition, for the time timeliness require be likely to result in even if two sides be all it is honest, exchange still will fail, from
And influence the requirement of validity, and for resource-constrained equipment, for example, for all limited equipment of battery capacity or bandwidth it is long
The waiting of time is unacceptable.
In addition, current exchanging mechanism can be used in the case where for exchanging article at random, and if valence to be exchanged
Value or commodity itself are present in block chain, it is desirable to provide a kind of new mechanism, it is fair and timeliness to meet simultaneously
It is required that.Due to the connected transaction of time-out and anonymous miner, it is ensured that a pair of of block chain transaction while generation do not occur
It is that no mechanism guarantees in the prior art, the miner of a small number of corruption can not comply with the rules so as to cause even exchange failure.Example
Such as, in the case of A and B agrees to exchange X and Y, A and B sign trade agreement AB simultaneously, and BA comes into force so that trading, while A and B
Also the agreement AA and BB that endorsed " cancellation " transaction are respectively used to X and Y returning to each My World.Miner knows what A and B were related to
Transaction is to (AA, AB) and (BB, BA) and (AA, BA) and (BB, AB) should not be simultaneous, in other words according to honest former
Then two pairs transaction to be it is inconsistent, it is each honesty miner should vote a go-ahead (AB, BA) or (AA, BB), respectively indicate generation
Exchange occurs without exchange.If there is some not specific reasons, for having reached perfect flat between above-mentioned two pairs selections
Weighing apparatus, then obviously some dishonest miners do not comply with the rules, can break this balance, so that inconsistent transaction
To most of ballots, such as the most of ballots of (AA, BA) acquisition are obtained, then A can return to the X of itself, while the Y of B is obtained,
This is clearly inequitable to B.
Existing exchanging mechanism will face following problem, all be unsatisfactory:
1) the multiple blocks issued need additional verification step, are executed by several miners, verify content include about
Whether the necessary part of even exchange has been carried out in the case of no this additional verification function;
2) these blocks needs are bifurcated;
3) principle of even exchange is violated.
Summary of the invention
In view of above-mentioned technical problem, the present disclosure presents in the case where no trusted third party participates in for realizing
In block chain it is to be exchanged value or article even exchange method and system.
In the one aspect of present disclosure, the side of value to be exchanged or article even exchange in a kind of block chain is provided
Method exchanges the first information and the second information with second user for the first user, wherein first user possesses described first
Information, and the second user possesses second information, comprising steps of the first step, the first user and second user are agreed to hand over
Change the first information and the second information;Second step, the first user and second user generate and sign jointly first and trade, and described first
Transaction is related to the first information being transferred to the first user from the first user, and the second information is transferred to the second use from second user
First transaction can be placed on block chain by family, first user and the second user either side;Third step, institute
State the first user and the second user generate and sign jointly second transaction, it is described second transaction for exchange the first information and
Second transaction is placed in block as first user and second user the described second transaction of signature by the second information
On chain;4th step votes respectively to first transaction and second transaction, when first transaction and described second
Transaction is deposited in the case of inconsistencies, and there is no receive first transaction and second transaction or sequence simultaneously to receive institute
The miner for stating the first transaction and second transaction, does not exchange, when first transaction and second transaction are consistent
In the case of, a specific miner receives first transaction and second transaction simultaneously or sequence receives first transaction
With second transaction;5th step, it is described first transaction and it is described second transaction by numerical value appropriate pass to the first user and
Second user, exchange are completed or are terminated.
In some embodiments, first transaction can occur immediately or the following sometime point T occurs.
In some embodiments, first transaction include assign the first information and the second information fully enter or
The input of any share.
In some embodiments, signature of second transaction for no first user and the second user
In the case of be invalid.
In some embodiments, second transaction further includes the Hash operation value of any share input.
In some embodiments, the 5th step further includes that first user and the second user have the right to separate
Pay a part respectively traded.
At the another aspect of present disclosure, it is also proposed that value to be exchanged or article even exchange in a kind of block chain
System, including the first user terminal, second user end and transaction determining device, wherein first user terminal and the second user
The end exchange first information and the second information, and wherein first user terminal can be used for: agree to the second user end
Exchange the first information and the second information;The first transaction is generated and signed jointly with the second user end, and first transaction relates to
And the first information is transferred to the first user terminal from the first user terminal, first user terminal will not at the second user end
In the case that first transaction is placed on block chain, first transaction is placed on block chain;With the second user
End generates jointly and the second transaction of signature, and second transaction is for exchanging the first information and the second information, when first use
When the described second transaction of signature is completed at family end, and second transaction is not placed on block chain by the second user end
In the case of by it is described second transaction be placed on block chain;The second user end can be used for: same with first user terminal
The meaning exchange first information and the second information;The first transaction, first transaction are generated and signed jointly with first user terminal
It is related to the second information being transferred to the second client from the second client, the second user end does not have in first user terminal
Described first is traded in the case that first transaction is placed on block chain and is placed on block chain;With first user terminal
Common to generate and sign the second transaction, second transaction is for exchanging the second information and the first information, when the second user
When the described second transaction of signature is completed at end, and the feelings that second transaction is not placed on block chain by first user terminal
Second transaction is placed on block chain under condition;The transaction determining device is used for: processing to it is described first transaction and it is described
The ballot that second transaction carries out respectively is traded with described second when first transaction and is deposited in the case of inconsistencies, is not present
First transaction and second transaction are received simultaneously or sequence receives the mine of first transaction and second transaction
Work does not exchange, and under first transaction and the second transaction unanimous circumstances, a specific miner receives institute simultaneously
It states the first transaction and second transaction or sequence receives first transaction and second transaction;It is described first transaction and
Numerical value appropriate is passed to the first user and second user by second transaction, and exchange is completed or terminated.
In some embodiments, first transaction can occur immediately or the following sometime point T occurs.
In some embodiments, first transaction include assign the first information and the second information fully enter or
The input of any share.
In some embodiments, second transaction is for no first user terminal and the second user end
It is invalid in the case of signature.
In some embodiments, second transaction further includes the Hash operation value of any share input.
In some embodiments, first user terminal and the second user end have the right to separate what payment was respectively traded
A part.
In present disclosure in another aspect, additionally providing a kind of calculating equipment, which includes processor and deposits
Reservoir, wherein being stored with computer program instructions on the memory, the computer program instructions are held by the processor
It is realized when row as described above for value to be exchanged in block chain or the method for article even exchange.
In present disclosure in another aspect, additionally provide a kind of machine readable storage medium, it is stored thereon with computer
Program instruction, wherein the computer program instructions realize when executed by the processor it is as described above in block chain to
Exchange value or the method for article even exchange.
Compared with prior art, present disclosure has the beneficial effect that
The technical solution of present disclosure brings the mechanism of even exchange by the permitted trading space of extension,
100% guarantee implement even exchange be possibly realized under the exchanging mechanism, in addition, for exchange time timeliness require and
The requirement of validity is met simultaneously under the premise of justice, at this moment since the multiple blocks issued do not need additional core
Step is looked into, more bifurcated blocks are also not present.
Detailed description of the invention
It has been specifically explained in the appended claims novel feature of the invention.By reference to using this wherein
The features as discussed above that the illustrated embodiment of inventive principle is illustrated, it will to the features and advantages of the present invention
It is better understood from.Attached drawing is only used for showing the purpose of embodiment, and should not be considered as limitation of the present invention.
And throughout the drawings, identical element is presented with like reference characters, in the accompanying drawings:
Fig. 1 shows value or article justice friendship to be exchanged in the block chain according to present disclosure illustrative embodiments
The flow chart for the method changed;And
Fig. 2 shows the system structure diagrams for even exchange according to present disclosure illustrative embodiments.
Fig. 3 shows the schematic diagram of the calculating equipment according to present disclosure illustrative embodiments.
Specific embodiment
The illustrative embodiments of present disclosure are more fully described below with reference to accompanying drawings.Although being shown in attached drawing
The illustrative embodiments of present disclosure, it being understood, however, that may be realized in various forms present disclosure without should be by
Embodiments set forth herein is limited.It is to be able to thoroughly understand in the disclosure on the contrary, providing these embodiments
Hold, and can will scope of the present disclosure be completely communicated to those skilled in the art.Do not have in the following detailed description
Any content is intended to indicate that any specific components, feature or step are essential for the present invention.Those skilled in the art
It will be understood that scope of the present disclosure interior various features or step to substitute or combine each other not departing from.
Block chain is a series of a kind of linked data structure for being connected to form data in chronological order in a manner of blocks,
It is simultaneously also the distributed account book that can not be distorted He can not forge for guaranteeing data in a manner of cryptography.Block chain is utilized and is such as breathed out
The encryption technologies such as uncommon and signature and common recognition algorithm establish faith mechanism, allow denials, distort, guarantor huge with the cost of fraud
Can not distorting and can not forging for data is demonstrate,proved.Block catenary system is using the structure of decentralization, i.e., there is no center controls
Mechanism processed, the information being stored on block catenary system are managed jointly by each node of block catenary system, and each node has
One block chain, all block chains possessed by all nodes are all identical.Theoretically, any one node here be not can
Letter, but entire block catenary system is believable.Even exchange assumes that both sides' mutual mistrust of exchange and is likely to occur
Transaction is broken one's promise or is cheated, and the purpose is to realize the movable real-time fairness of exchange, i.e., or both sides can obtain from other side
The information for needing to exchange or everybody cannot get.
Fig. 1 shows the method flow for realizing even exchange according to one illustrative embodiments of present disclosure
Figure, this method exchanges the first information and the second information with second user for the first user, wherein first user possesses institute
The first information is stated, and the second user possesses second information.As shown in Figure 1, in a kind of block chain it is to be exchanged value or
The method of article even exchange exchanges the first information and the second information with second user for the first user, wherein described first
User possesses the first information, and the second user possesses second information, comprising steps of
S101, the first user and second user agree to the exchange first information and the second information;
S102, the first user and second user generate and sign jointly the first transaction, and the first transaction is related to the first information
It is transferred to the first user from the first user, the second information is transferred to second user from second user, in the step, the first user
The first transaction can be placed on block chain with second user either side, implement to need to be mutually authenticated before the placement step be
It is no to be executed by other side, it prevents from for the completely the same transaction of two parts of contents and trade detail being placed on block chain;
S103, the first user and second user generate and sign jointly the second transaction, and the second transaction is for exchanging the first letter
Second transaction is placed on block chain by breath and the second information as the first user and second user completion the second transaction of signature,
Similarly, it is needing to be mutually authenticated between the first user and second user before placement, is preventing duplicate placement from acting and corresponding to
Identical transaction content;
S104, miner vote respectively to the first transaction and the second transaction, when the first transaction and the second transaction exist not
Under unanimous circumstances, it was demonstrated that unfairness exchange is existing possible, so that there is no do not allow to receive the first transaction simultaneously system yet
The miner that the first transaction and the second transaction are received with the second transaction or sequence, does not exchange, when the first transaction and second is handed over
Under easy unanimous circumstances, a specific miner receives the first transaction and the second transaction simultaneously or sequence receives the first transaction and the
Two transaction;
Numerical value appropriate is passed to the first user and second user by S105, the first transaction and the second transaction, and exchange is completed
Or it terminates.
The first transaction being related to the first information or the second information and the second transaction are subjected to part signature and are placed into block
On catenary system, not only facilitates block catenary system transaction determining device and the authenticity of transaction is verified, and also contribute to letter
Breath exchange side verifies the authenticity of received transaction content.It therefore, in some embodiments, can be using the
The private key of one user signs to the part first information, is verified with the public key of the first user to the part first information, Huo Zheyong
The private key of second user verifies the second information of part to the second Information Signature of part, with the public key of second user;And
Second information or described the are reconstructed based on second information of part or the part first information in the case where being verified
One information.
Here the first user and second user refers to the both sides for needing to carry out information exchange, and " first " and " second "
It is not offered as ordinal relation, is used only to distinguish the both sides for carrying out information exchange, and the first user and second user
It may be used interchangeably.Here the first information and the second information refers to the information to be exchanged, and " first " and " second " is not
Order of representation relationship is used only to distinguish the information to be exchanged, and the first information and the second information can be interchanged and makes
With.
In addition, a block catenary system participated in many ways, in order to make both sides believe exchange transaction in both sides' process of exchange
Be it is fair, sequence and the characteristic of exchange article are all vital the step of exchange, but defect existing for this design
Be exactly that both sides must be on the scene simultaneously, and believes that other side can keep appointments or game rule, design pattern dependent on trusting, but
The trading volume on most of bit coin network can be included, the safety that cryptography expert research participates in many ways thus calculates, also
It is to say that multiple mistrustful participant, each participants mutually have respective data, the data for then integrating each main body are common
Calculate one as a result, but what each main body is not intended to that other participants is allowed to know oneself simultaneously data are, then usually this
A little calculate needs to be randomized, and breaks mutual association.Finally this is the result is that have Financial Attribute, and be irreversible
Turn, each there are two side participants of the mutual mistrust of sensitive data, executes a program or agreement jointly, be not only
Control data can also control the transaction being associated even fund.Therefore in some embodiments, the first transaction can be with
Occur immediately or the following sometime point T occurs.The first user or second user for ensuring to participate in the first transaction make a promise,
For example be related to disclosing in certain time and complete to exchange selected secret random number, to complete to be previously mentioned in cryptography " public
Levelling ", the script regulation certain guarantee gold of transaction is pointed out by bit coin, which is only used for following two payment feelings
Shape: the first payment scenarios is the common signature that must have the first user and second user, and second of payment scenarios is the first use
Family or second user disclose random number, consume the signature that the transaction only needs the first user or second user later.If the
The random words string symbol that one user selects is X, then output script ScriptPubkey will include the value of hash function H (X).And
Here time point T exactly guarantees the locking time that guarantee fund will not be removed before time T, and the first user or second are used
The steps necessary that family executes transaction within the time can guarantee that guarantee fund does not lose, so that this is signed, transaction is safe,
No longer using simple function arrange, but use have the time limit function agreement guarantee it is safe while also ensure timeliness and
Certain penalty mechanism.
In some embodiments, the first transaction includes assigning fully entering or arbitrarily for the first information and the second information
The input of share.
In some embodiments, the second transaction is for being invalid in the case of the signature without the first user and second user
's.
In some embodiments, the second transaction further includes the Hash operation value of any share input.
In some embodiments, the step S105 further includes that the first user and second user have the right to separate payment respectively
From a part of transaction.
Referring to fig. 2, value to be exchanged or the system structure diagram of article even exchange in a kind of block chain are indicated, is such as schemed
Shown in 2, which includes the first user terminal 201, second user end 202 and transaction determining device 203, wherein the first user terminal
201 exchange the first information and the second information with second user end 202, and wherein the first user terminal 201 can be used for: with second
User terminal 202 agrees to the exchange first information and the second information;It is generated jointly with second user end 202 and signature first is traded, the
One transaction is related to the first information being transferred to the first user terminal 201 from the first user terminal 201, and the first user terminal 201 is used second
In the case that first transaction is not placed on block chain by family end 202, the first transaction is placed on block chain;With second
User terminal 202 generates jointly and the second transaction of signature, and the second transaction is for exchanging the first information and the second information, as the first user
End 201 complete signature second transaction when, and second user end 202 by second transaction be placed on block chain in the case where will
Second transaction is placed on block chain;Second user end 202 can be used for: exchange the first information with the agreement of the first user terminal 201
With the second information;Generated jointly with the first user terminal 201 and the first transaction of signature, the first Transaction section be related to by the second information from
Second client 202 is transferred to the second client 202, and the first transaction is not put in the first user terminal 201 in second user end 202
It sets and the first transaction is placed on block chain in the case where block chain;It is generated jointly with the first user terminal 201 and signature second is handed over
Easily, the second transaction is for exchanging the second information and the first information, when the second transaction of signature is completed at second user end 202, and the
Second transaction is placed on block chain by one user terminal 201 in the case where the second transaction is not placed on block chain;It is described
Transaction determining device 203 is used for: the ballot carried out respectively to the first transaction and the second transaction is handled, when the first transaction and the second transaction
It deposits in the case of inconsistencies, is not present while receiving the first transaction and the second transaction or sequence receives the first transaction and second
The miner of transaction, does not exchange, and under the first transaction and the second transaction unanimous circumstances, specific miner receives the simultaneously
One transaction and the second transaction or sequence receive the first transaction and the second transaction;First transaction and second is traded numerical value appropriate
The first user and second user are passed to, exchange is completed or terminated.
It will trade to first be related to of the first information or the second information and the second transaction carry out part signature and is placed into area
On block catenary system, not only facilitates block catenary system transaction determining device and the authenticity of transaction is verified, and also contribute to
Information exchange side is verified by the authenticity of received transaction content.Therefore, in some embodiments, can use
The private key of first user signs to the part first information, is verified with the public key of the first user to the part first information, or
With the private key of second user to the second Information Signature of part, the second information of part is verified with the public key of second user;With
And second information or described is reconstructed based on second information of part or the part first information in the case where being verified
The first information.
Here the first user and second user refers to the both sides for needing to carry out information exchange, and " first " and " second "
It is not offered as ordinal relation, is used only to distinguish the both sides for carrying out information exchange, and the first user and second user
It may be used interchangeably.Here the first information and the second information refers to the information to be exchanged, and " first " and " second " is not
Order of representation relationship is used only to distinguish the information to be exchanged, and the first information and the second information can be interchanged and makes
With.
In addition, a block catenary system participated in many ways, in order to make both sides believe exchange transaction in both sides' process of exchange
Be it is fair, sequence and the characteristic of exchange article are all vital the step of exchange, but defect existing for this design
Be exactly that both sides must be on the scene simultaneously, and believes that other side can keep appointments or game rule, design pattern dependent on trusting, but
The trading volume on most of bit coin network can be included, the safety that cryptography expert research participates in many ways thus calculates, also
It is to say that multiple mistrustful participant, each participants mutually have respective data, the data for then integrating each main body are common
Calculate one as a result, but what each main body is not intended to that other participants is allowed to know oneself simultaneously data are, then usually this
A little calculate needs to be randomized, and breaks mutual association.Finally this is the result is that have Financial Attribute, and be irreversible
Turn, each there are two side participants of the mutual mistrust of sensitive data, executes a program or agreement jointly, be not only
Control data can also control the transaction being associated even fund.Therefore in some embodiments, the first transaction can be with
Occur immediately or the following sometime point T occurs.The first user or second user for ensuring to participate in the first transaction make a promise,
For example be related to disclosing in certain time and complete to exchange selected secret random number, to complete to be previously mentioned in cryptography " public
Levelling ", the script regulation certain guarantee gold of transaction is pointed out by bit coin, which is only used for following two payment feelings
Shape: the first payment scenarios is the common signature that must have the first user and second user, and second of payment scenarios is the first use
Family or second user disclose random number, consume the signature that the transaction only needs the first user or second user later.If the
The random words string symbol that one user selects is X, then output script ScriptPubkey will include the value of hash function H (X).And
Here the locking time that guarantee fund will not be removed before time point T formally guarantees T at the time point, the first user or second
The steps necessary that user executes transaction within the time can guarantee that guarantee fund does not lose, so that this signature transaction is safety
, no longer arranged using simple function, but the function for having time limit agreement is used to also ensure timeliness while guaranteeing safe
Property and certain penalty mechanism.
In some embodiments, the first transaction includes assigning fully entering or arbitrarily for the first information and the second information
The input of share.
In some embodiments, the second transaction for without being in the case of the first user terminal and the signature at second user end
Invalid.
In some embodiments, the second transaction further includes the Hash operation value of any share input.
In some embodiments, the first user terminal and second user end have the right to separate a part that payment is respectively traded.
It is appreciated that for the message that the node of block catenary system is signed with its private key, it can be existing using this field
Any form known to known or future and/or mode realize that the present invention does not restrict in this regard.
A kind of calculating equipment 300 is additionally provided comprising memory referring to Fig. 3 in the one aspect of present disclosure
302 and processor 301, wherein computer program instructions 3020 are stored on the memory 302, the computer program instructions
3020 by the processor 301 execute when realize be described above in block chain it is to be exchanged value or article even exchange
Method.Since each skill of the method for value to be exchanged in block chain or article even exchange is detailed above
Art scheme, therefore this will not be detailed here.
In the another aspect of disclosure, a kind of machine readable storage medium is additionally provided, the machine readable storage medium
On be stored with computer program instructions, wherein the computer program instructions realize when executed by the processor it is as described above
For value to be exchanged in block chain or the method for article even exchange.For public for value to be exchanged in block chain or article
Detailed description has been carried out above in each technical solution for the method that usual friendship is changed, and details are not described herein.In some embodiments
In, machine readable storage medium is the tangible components of digital processing device.In other embodiments, machine readable storage is situated between
Matter can optionally be removed from digital processing device.In some embodiments, machine readable for lifting non-limiting example
Storage medium may include USB flash disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory
(RAM, Random Access Memory), flash memory, programmable read only memory (PROM), erasable programmable are read-only
Memory (EPROM), solid-state memory, magnetic disk, CD, cloud computing system or service etc..
It should be appreciated that each step recorded in the method implementation of present disclosure can be held in a different order
Row, and/or parallel execution.In addition, method implementation may include additional step and/or omit the step of execution is shown.
The scope of the present invention is not limited in this respect.
In descriptions provided herein, numerous specific details are set forth.It will be appreciated, however, that present disclosure
Embodiment can be practiced without these specific details.In some embodiments, it is not been shown in detail known
Methods, structures and technologies, so as not to obscure the understanding of this specification.
It is aobvious for those skilled in the art although exemplary embodiments of the present invention have been illustrated and described herein
And be clear to, such embodiment only provides in an illustrative manner.Those skilled in the art now will without departing from
Many changes are expected in the case where the present invention, are changed and are substituted.It should be appreciated that practice the present invention during can using pair
The various alternative solutions of embodiments of the invention described herein.Following following claims is intended to limit the scope of the invention, and
Therefore the method and structure and its equivalent item in these scopes of the claims are covered.
Claims (14)
1. value to be exchanged or the method for article even exchange, exchange the with second user for the first user in a kind of block chain
One information and the second information, wherein first user possesses the first information, and the second user possesses described second
Information, comprising steps of the first step, the first user and second user agree to the exchange first information and the second information;Second step, first
User and second user generate and sign jointly the first transaction, and first transaction is related to shifting the first information from the first user
To the first user, the second information is transferred to second user from second user, first user and the second user are any
First transaction can be placed on block chain by one side;Third step, first user and the second user generate jointly
It trades with signature second, second transaction is for exchanging the first information and the second information, when first user and second use
When the described second transaction of signature of family, second transaction is placed on block chain;4th step, to it is described first transaction and it is described
Second transaction is voted respectively, and when first transaction and second transaction are deposited in the case of inconsistencies, there is no same
When receive it is described first transaction and it is described second transaction or sequence receive it is described first transaction and it is described second transaction miner,
It does not exchange, under first transaction and the second transaction unanimous circumstances, described in specific miner reception simultaneously
First transaction and second transaction or sequence receive first transaction and second transaction;5th step, described first
Numerical value appropriate is passed to the first user and second user by transaction and second transaction, and exchange is completed or terminated.
2. in block chain as described in claim 1 it is to be exchanged value or article even exchange method, wherein it is described first hand over
It can easily occur immediately or the following sometime point T occurs.
3. in block chain as described in claim 1 it is to be exchanged value or article even exchange method, wherein it is described first hand over
Easily include assign the first information and the second information fully enter or the input of any share.
4. in block chain as described in claim 1 it is to be exchanged value or article even exchange method, wherein it is described second hand over
Easily for being invalid in the case of the signature of no first user and the second user.
5. value to be exchanged or the method for article even exchange in the block chain as described in claim 1-4 is any, wherein described
Second transaction further includes the Hash operation value of any share input.
6. value to be exchanged or the method for article even exchange in the block chain as described in claim 1-4 is any, wherein described
5th step further includes that first user and the second user have the right to separate a part that payment is respectively traded.
7. in a kind of block chain it is to be exchanged value or article even exchange system, including the first user terminal, second user end with
And transaction determining device, wherein first user terminal exchanges the first information and the second information, and its with the second user end
Described in the first user terminal be used for: with the second user end agree to exchange the first information and the second information;It is used with described second
Family end generates and signs jointly the first transaction, and first transaction is related to the first information being transferred to the first use from the first user terminal
Family end, first user terminal the second user end not by it is described first transaction be placed on block chain in the case where,
First transaction is placed on block chain;The second transaction is generated and signed jointly with the second user end, and described second hands over
It is easy for exchanging the first information and the second information, when first user terminal completes the described second transaction of signature, and described the
Second transaction is placed on block chain by two user terminals in the case where second transaction is not placed on block chain;
The second user end is used for: exchanging the first information and the second information with first user terminal agreement;With first user
End is common to generate and signs the first transaction, and first transaction is related to the second information being transferred to the second client from the second client
End, the second user end will be described in the case where first transaction is not placed on block chain by first user terminal
First transaction is placed on block chain;The second transaction is generated and signed jointly with first user terminal, and second transaction is used for
The second information and the first information are exchanged, when the described second transaction of signature is completed at the second user end, and first user
Second transaction is placed on block chain by end in the case where second transaction is not placed on block chain;The friendship
Easy determining device is used for: handle the ballot carried out respectively to first transaction and second transaction, when first transaction and
It is described second transaction deposit in the case of inconsistencies, there is no simultaneously receive it is described first transaction and it is described second transaction or it is suitable
Sequence receives the miner of first transaction and second transaction, does not exchange, when first transaction and described second is handed over
Under easy unanimous circumstances, described in a specific miner receives first transaction and second transaction simultaneously or sequence receives
First transaction and second transaction;Numerical value appropriate is passed to different two by first transaction and second transaction
Side, exchange are completed or are terminated.
8. value to be exchanged or the system of article even exchange in a kind of block chain as claimed in claim 7, wherein described the
One transaction can occur immediately or the following sometime point T occurs.
9. value to be exchanged or the system of article even exchange in a kind of block chain as claimed in claim 7, wherein described the
One transaction include assign the first information and the second information fully enter or the input of any share.
10. value to be exchanged or the system of article even exchange in a kind of block chain as claimed in claim 7, wherein described the
Two transaction are for being invalid in the case of the signature of no first user and the second user.
11. value to be exchanged or the system of article even exchange, wherein institute in a kind of block chain as described in claim 7-10
State the Hash operation value that the second transaction further includes any share input.
12. value to be exchanged or the system of article even exchange, wherein institute in the block chain as described in claim 7-10 is any
It states the first user terminal and the second user end has the right to separate a part that payment is respectively traded.
13. a kind of calculating equipment, including processor and memory, wherein computer program instructions are stored on the memory,
The computer program instructions are realized when being executed by the processor is used for area as described in any one of claims 1 to 6
In block chain it is to be exchanged value or article even exchange method.
14. a kind of machine readable storage medium, is stored thereon with computer program instructions, wherein the computer program instructions exist
Realize that such as value to be exchanged in block chain described in any one of claims 1 to 6 or article justice are handed over when being executed by processor
The method changed.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811300181.4A CN109615513B (en) | 2018-11-02 | 2018-11-02 | Method and system for fair exchange of value or items to be exchanged within a blockchain |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811300181.4A CN109615513B (en) | 2018-11-02 | 2018-11-02 | Method and system for fair exchange of value or items to be exchanged within a blockchain |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109615513A true CN109615513A (en) | 2019-04-12 |
CN109615513B CN109615513B (en) | 2023-06-09 |
Family
ID=66002168
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811300181.4A Active CN109615513B (en) | 2018-11-02 | 2018-11-02 | Method and system for fair exchange of value or items to be exchanged within a blockchain |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109615513B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN117994038A (en) * | 2024-04-03 | 2024-05-07 | 湖南天河国云科技有限公司 | Transaction processing method, device, equipment and storage medium based on blockchain |
Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20020049601A1 (en) * | 1998-10-28 | 2002-04-25 | Nadarajah Asokan | Optimistic fair exchange protocols |
US20140195379A1 (en) * | 2011-10-18 | 2014-07-10 | Martin Alexander Hay | Technology Alternative to Money for Enabling Equitable Trade |
CN107169764A (en) * | 2017-05-10 | 2017-09-15 | 山东大学 | Fair data trade method based on block chain |
CN107862216A (en) * | 2017-10-13 | 2018-03-30 | 布比(北京)网络技术有限公司 | Method for secret protection, device and the storage medium merchandised for anonymity across chain |
CN107993059A (en) * | 2017-12-19 | 2018-05-04 | 北京航空航天大学 | Decentralization digital signature equity exchange method and system based on block chain |
CN108399571A (en) * | 2018-01-30 | 2018-08-14 | 厦门快商通信息技术有限公司 | Unsecured method of commerce and system based on block chain intelligence contract |
CN108494558A (en) * | 2018-02-13 | 2018-09-04 | 克洛斯比尔有限公司 | For realizing the method and system of even exchange |
CN108520402A (en) * | 2018-04-09 | 2018-09-11 | 济南浪潮高新科技投资发展有限公司 | A kind of method of commerce and transaction system based on block chain |
WO2018182861A1 (en) * | 2017-03-31 | 2018-10-04 | Intel Corporation | Systems and methods for fair information exchange using publish-subscribe with blockchain |
CN109478997A (en) * | 2016-07-29 | 2019-03-15 | 区块链控股有限公司 | System and method for block chain implementation |
-
2018
- 2018-11-02 CN CN201811300181.4A patent/CN109615513B/en active Active
Patent Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20020049601A1 (en) * | 1998-10-28 | 2002-04-25 | Nadarajah Asokan | Optimistic fair exchange protocols |
US20140195379A1 (en) * | 2011-10-18 | 2014-07-10 | Martin Alexander Hay | Technology Alternative to Money for Enabling Equitable Trade |
CN109478997A (en) * | 2016-07-29 | 2019-03-15 | 区块链控股有限公司 | System and method for block chain implementation |
WO2018182861A1 (en) * | 2017-03-31 | 2018-10-04 | Intel Corporation | Systems and methods for fair information exchange using publish-subscribe with blockchain |
CN107169764A (en) * | 2017-05-10 | 2017-09-15 | 山东大学 | Fair data trade method based on block chain |
CN107862216A (en) * | 2017-10-13 | 2018-03-30 | 布比(北京)网络技术有限公司 | Method for secret protection, device and the storage medium merchandised for anonymity across chain |
CN107993059A (en) * | 2017-12-19 | 2018-05-04 | 北京航空航天大学 | Decentralization digital signature equity exchange method and system based on block chain |
CN108399571A (en) * | 2018-01-30 | 2018-08-14 | 厦门快商通信息技术有限公司 | Unsecured method of commerce and system based on block chain intelligence contract |
CN108494558A (en) * | 2018-02-13 | 2018-09-04 | 克洛斯比尔有限公司 | For realizing the method and system of even exchange |
CN108520402A (en) * | 2018-04-09 | 2018-09-11 | 济南浪潮高新科技投资发展有限公司 | A kind of method of commerce and transaction system based on block chain |
Non-Patent Citations (1)
Title |
---|
高莹;吴进喜;: "基于区块链的高效公平多方合同签署协议", 密码学报 * |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN117994038A (en) * | 2024-04-03 | 2024-05-07 | 湖南天河国云科技有限公司 | Transaction processing method, device, equipment and storage medium based on blockchain |
Also Published As
Publication number | Publication date |
---|---|
CN109615513B (en) | 2023-06-09 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
Desai et al. | A hybrid blockchain architecture for privacy-enabled and accountable auctions | |
CN109523683B (en) | Anonymous electronic voting method based on block chain technology | |
US11416854B2 (en) | System and method for information protection | |
CN109903026A (en) | Event-handling method and device, electronic equipment based on block chain | |
WO2020248603A1 (en) | Blockchain-based virtual resource allocation method and device | |
US20240078538A1 (en) | Computer-implemented system and method for performing transaction mixing on a blockchain | |
CN109903027A (en) | Event-handling method and device, electronic equipment based on block chain | |
CN109636599A (en) | License block chain secret protection and monitoring and managing method based on group ranking | |
CN110147994A (en) | A kind of instant execution method of the block chain based on homomorphic cryptography | |
Al-Maaitah et al. | E-voting system based on blockchain technology: A survey | |
CN109299943A (en) | A kind of method and device of the intellectual property transaction based on block chain | |
CN109685486A (en) | A kind of polymeric chain framework based on block chain technology | |
CN109544331A (en) | Supply chain financial application method, apparatus and terminal device based on block chain | |
TWM543413U (en) | Web lending platform using technology of blockchain for deal | |
Ojetunde et al. | Secure payment system utilizing MANET for disaster areas | |
CN108881163A (en) | A kind of multicenter block catenary system with block issue mechanism | |
Xu et al. | Supporting blockchain-based cryptocurrency mobile payment with smart devices | |
Jeong et al. | Design of recruitment management platform using digital certificate on blockchain | |
CN107067243A (en) | Shareable value token is designed at circulation method in a kind of block chain | |
CN110263092A (en) | Rent method and device based on block chain | |
CN112862303B (en) | Crowdsourcing quality evaluation system and method based on block chain | |
CN111369730B (en) | Voting processing method and device based on block chain | |
Harikrishnan et al. | Secure digital service payments using zero knowledge proof in distributed network | |
CN110221919A (en) | Virtual resource allocation method and apparatus based on block chain | |
Li et al. | A decentralized and secure blockchain platform for open fair data trading |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |