CN107993059A - Decentralization digital signature equity exchange method and system based on block chain - Google Patents

Decentralization digital signature equity exchange method and system based on block chain Download PDF

Info

Publication number
CN107993059A
CN107993059A CN201711375726.3A CN201711375726A CN107993059A CN 107993059 A CN107993059 A CN 107993059A CN 201711375726 A CN201711375726 A CN 201711375726A CN 107993059 A CN107993059 A CN 107993059A
Authority
CN
China
Prior art keywords
signature
supplier
contract
transaction
fund
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201711375726.3A
Other languages
Chinese (zh)
Inventor
伍前红
韩天煦
张文涛
牛俊翔
刘建伟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beihang University
Original Assignee
Beihang University
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beihang University filed Critical Beihang University
Priority to CN201711375726.3A priority Critical patent/CN107993059A/en
Publication of CN107993059A publication Critical patent/CN107993059A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/04Payment circuits
    • G06Q20/06Private payment circuits, e.g. involving electronic currency used among participants of a common payment scheme
    • G06Q20/065Private payment circuits, e.g. involving electronic currency used among participants of a common payment scheme using e-cash
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • G06Q20/389Keeping log of transactions for guaranteeing non-repudiation of a transaction
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/08Network architectures or network communication protocols for network security for authentication of entities
    • H04L63/083Network architectures or network communication protocols for network security for authentication of entities using passwords
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/12Applying verification of the received information
    • H04L63/123Applying verification of the received information received data contents, e.g. message integrity

Landscapes

  • Engineering & Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Accounting & Taxation (AREA)
  • Computer Security & Cryptography (AREA)
  • Theoretical Computer Science (AREA)
  • General Business, Economics & Management (AREA)
  • General Physics & Mathematics (AREA)
  • Physics & Mathematics (AREA)
  • Strategic Management (AREA)
  • Computer Hardware Design (AREA)
  • Finance (AREA)
  • Computing Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention discloses a kind of decentralization digital signature equity exchange method and system based on block chain, this method includes:The signature contract and public private key pair of oneself are provided respectively between two signature suppliers to be transacted;Whether two signature suppliers generate by the signature contract of other side mutual public private key pair, and are verifying obstructed out-of-date close the trade;Two signature suppliers to realize the digital signature to first contract text and second contract text, and redeem respective guarantee fund after completion of transactions by self-defined trading card and the digital signature to the self-defined trading card.The present invention can remove the problems such as high cost caused by third party and low communication efficiency, and ensure the fairness of exchange process.

Description

Decentralization digital signature equity exchange method and system based on block chain
Technical field
It is more particularly to a kind of to be based on area the present invention relates to the cryptography in information security and cryptography currency technical field The decentralization digital signature equity exchange method and system of block chain.
Background technology
Even exchange due to its be widely applied scene and it is intrinsic the characteristics of, have studied more than 30 years by password educational circles. All the time, either by bit swapping protocol or TTP (Trusted Third Party, trusted third party) even exchange Agreement (online or offline) is realized complete unified all not on guaranteeing fairness and abandoning third party's dependence.As center is attacked Hit the further serious of problem, online third party is gradually faded out the arena of history, the substitute is using offline third party as arbitrator Arbitral agreement.
Trend shows, the security attack behavior to emerge in an endless stream causes people to going the demand of third-party Fair Exchange Protocol It is more and more urgent.However, removing third party completely means that the algorithm of higher complexity and more complicated agreement, at this How to realize breakthrough, and cryptologist in the problem of further investigation on point.
2009, middle acute hearing delivered bit coin creationism text《Bit coin:A kind of point-to-point electronic cash system》.Point pair Point just means to cast off centralization once and for all, and bit coin also becomes that only one is typical and security is high goes Centralized system.Due to opening of the bit coin system to Script Programming so that the exploitation of its Floor layer Technology block chain application is always Carried out in high gear.After the source code of bit coin system is announced, its extremely strong security is self-evident, block chain Also the essential platform for removing third-party application is therefore become.
The Core Superiority of block serobila architecture is:First, any node can create transaction, when by one section Between confirmation after, it is possible to reasonably confirm the transaction whether be it is effective, for attempt to rewrite or change transaction record and Speech, its cost is very high.Therefore, block chain can effectively prevent the generation of honeysuckle problem.Secondly, block chain realizes Two kinds of records:Transaction and block.
Transaction is stored in real data on block chain, and block to be then some transaction of registration confirmed be when, And become a part for block chain database in what order.Transaction is to be created by participant in normal processes using system Build, and block is then to be responsible for establishment by the unit we term it miner.The superposition of both records ensure that the complete of data Whole property and trackability.
In view of the integrality and trackability of data on block chain, the decentralization feature of bit coin system in itself, is handed over The editability of easy script, and digital signature and the uniformity of bit coin trading signature, the present invention propose that one kind is based on block The decentralization digital signature even exchange scheme of chain.
The content of the invention
It is contemplated that one of technical problem in above-mentioned correlation technique is solved at least to a certain extent.
For this reason, an object of the present invention is to provide a kind of decentralization digital signature even exchange based on block chain Method.This method is intended to remove the problems such as high cost caused by third party and low communication efficiency, and ensures exchange process Fairness.
It is another object of the present invention to propose a kind of decentralization digital signature even exchange system based on block chain System.
To achieve these goals, an aspect of of the present present invention discloses a kind of decentralization digital signature based on block chain Equity exchange method, comprises the following steps:
S1:First signature supplier provides the first signature contract, and based on the described first signature contract generation bit coin net The first legal public private key pair in network;Second signature supplier provides the second signature contract, and based on the described second signature contract Generate the second public private key pair legal in bit coin network;S2:First signature supplier's verification, second signature provides Whether person using the described second signature contract generates second public private key pair, and the second signature supplier's verification described the Whether one signature supplier uses the described first signature contract generation first public private key pair;If it is not, then close the trade;Such as Fruit is then to perform step S3;S3:It is described first signature supplier and it is described second signature supplier by self-defined trading card with And the digital signature to the self-defined trading card, to realize the number to first contract text and second contract text Word is signed;The first signature supplier and the first signature supplier input respective guarantee fund to the self-defined friendship Yi Danhou, the first signature supplier and the second signature supplier are traded, and respective guarantor is redeemed after Successful Transaction Card gold.
Decentralization digital signature equity exchange method based on block chain according to the present invention, first confirms that to be transacted double Whether side is the other side for wanting transaction, and then both sides to be transacted, which establish, merchandises and the guarantee fund of oneself is taken out in transaction, is handing over The guarantee fund of oneself is redeemed after being readily accomplished, high cost caused by third party and low communication efficiency etc. can be so removed and ask Topic, and ensure the fairness of exchange process.
In addition, the decentralization digital signature equity exchange method according to the above embodiment of the present invention based on block chain is also There can be technical characteristic additional as follows:
Further, step S1 is specifically included:S101:According to Hash operation and elliptic curve cryptography method, described first The first digital signature contract is converted to first public private key pair by signature supplier, and the second signature supplier is by institute State the second digital signature contract and be converted to the second public private key pair;S102:The first signature supplier and second signature carry Donor discloses parameter preset to each other.
Further, the first signature supplier and the second signature supplier pass through self-defined trading card and right The digital signature of the self-defined trading card, signs the numeral of first contract text and second contract text with realizing Name specifically includes:S301:The first signature supplier and the second signature supplier create a fund and enter block friendship jointly Easily;S302:The first signature supplier creates the first fund and redeems transaction and the first time-out reparation transaction, second signature Supplier creates the second fund and redeems transaction and the second time-out reparation transaction;S303:The first signature supplier is to described the Two funds redeem trading signature, and the second signature supplier redeems trading signature to first fund;S304:Described first Signature supplier and the second signature supplier enter block trading signature to the fund jointly, and are broadcasted.
Further, the described the step of respective guarantee fund is redeemed after Successful Transaction, specifically includes:S305:If The first signature supplier redeems transaction to first fund and signs, then it is assumed that the first signature supplier is sincere Real, the first signature supplier redeems the guarantee fund of oneself;S306:If the second signature supplier provides to described second Gold redeems transaction and signs, then it is assumed that the second signature supplier is honest, and the second signature supplier redeems oneself Guarantee fund.
Another aspect of the present invention discloses a kind of decentralization digital signature even exchange system based on block chain, bag Include:
Contract and account binding module, for making the first signature supplier provide the first signature contract, and based on described the The first legal public private key pair in one signature contract generation bit coin network;The contract and account binding module are additionally operable to make the Two signature suppliers provide the second signature contracts, and based in the described second signature contract generation bit coin network legal second Public private key pair;Interactive proof module, for making whether the first signature supplier's verification the second signature supplier makes Second public private key pair is generated with the described second signature contract, and the second signature supplier's verification first signature carries Whether donor uses the described first signature contract generation first public private key pair;The interactive proof module is additionally operable to testing Card is not by closing the trade then;Transaction transceiver module, for making the first signature supplier and the second signature supplier By self-defined trading card and the digital signature to the self-defined trading card, to realize to first contract text and institute State the digital signature of the second contract text;The transaction transceiver module is additionally operable to make the first signature supplier and described first Signature supplier inputs respective guarantee fund to the self-defined trading card, the first signature supplier and the second signature Supplier is traded, and respective guarantee fund is redeemed after Successful Transaction.
Decentralization digital signature even exchange system based on block chain according to the present invention, first confirms that to be transacted double Whether side is the other side for wanting transaction, and then both sides to be transacted, which establish, merchandises and the guarantee fund of oneself is taken out in transaction, is handing over The guarantee fund of oneself is redeemed after being readily accomplished, high cost caused by third party and low communication efficiency etc. can be so removed and ask Topic, and ensure the fairness of exchange process.
In addition, the decentralization digital signature even exchange system according to the above embodiment of the present invention based on block chain is also There can be technical characteristic additional as follows:
Further, the contract is specifically used for according to Hash operation and elliptic curve cryptography side with account binding module The first digital signature contract is converted to first public private key pair, second label by method, the first signature supplier The second digital signature contract is converted to the second public private key pair by name supplier, and makes the first signature supplier and described Second signature supplier discloses parameter preset to each other.
Further, the transaction transceiver module is specifically used for:The first signature supplier and second signature carry Donor creates a fund and enters block transaction jointly;The first signature supplier creates the first fund and redeems transaction and the first time-out Reparation transaction, the second signature supplier create the second fund and redeem transaction and the second time-out reparation transaction;First label Name supplier redeems second fund trading signature, and the second signature supplier redeems first fund transaction label Name;The first signature supplier and the second signature supplier jointly enter the fund block trading signature, and carry out wide Broadcast.
Further, the transaction transceiver module is additionally operable to:If the first signature supplier is to first fund Redeem transaction to sign, then it is assumed that the first signature supplier is honest, and the first signature supplier redeems the guarantor of oneself Card gold;If the second signature supplier redeems transaction to second fund and signs, then it is assumed that second signature Supplier is honest, and the second signature supplier redeems the guarantee fund of oneself.
The additional aspect and advantage of the present invention will be set forth in part in the description, and will partly become from the following description Obtain substantially, or recognized by the practice of the present invention.
Brief description of the drawings
The above-mentioned and/or additional aspect and advantage of the present invention will become in the description from combination accompanying drawings below to embodiment Substantially and it is readily appreciated that, wherein:
Fig. 1 is the flow of the decentralization digital signature equity exchange method according to embodiments of the present invention based on block chain Figure;
Fig. 2 is the principle explanation of the decentralization digital signature equity exchange method based on block chain of the embodiment of the present invention Figure;
Fig. 3 is the open parameter of the decentralization digital signature equity exchange method based on block chain of the embodiment of the present invention Interaction figure;
Fig. 4 is the transaction transmitting-receiving of the decentralization digital signature equity exchange method based on block chain of the embodiment of the present invention Schematic diagram;
Fig. 5 is the structure of the decentralization digital signature even exchange system according to embodiments of the present invention based on block chain Figure.
Embodiment
The embodiment of the present invention is described below in detail, the example of the embodiment is shown in the drawings, wherein from beginning to end Same or similar label represents same or similar element or has the function of same or like element.Below with reference to attached The embodiment of figure description is exemplary, and is only used for explaining the present invention, and is not considered as limiting the invention.
Handed over below in conjunction with the attached drawing description decentralization digital signature based on block chain according to embodiments of the present invention is fair Change method and system.
Fig. 1 is the decentralization digital signature equity exchange method according to an embodiment of the invention based on block chain Flow chart.
As shown in Figure 1, the decentralization digital signature even exchange according to an embodiment of the invention based on block chain Method, including:
S110:First signature supplier provides the first signature contract, and based on the described first signature contract generation bit coin The first legal public private key pair in network;Second signature supplier provides the second signature contract, and is closed based on the described second signature With the second public private key pair legal in generation bit coin network.
In one embodiment of the invention, step S1 is specifically included:
S101:According to Hash operation and elliptic curve cryptography method, the first signature supplier is digital by described first Signature contract is converted to first public private key pair, and the second signature supplier is converted to the second digital signature contract Second public private key pair.
Specifically, step S101 is specifically included:
S101A-1:A chooses elliptic curve secp256k1:y2=x3The generation member G (x of+7 (mod p)G,yG), calculate it Exponent number q;
S101A-2:A randomly selects two Big prime pAAnd qA, calculate
NA=pA·qA·q
And
S101A-3:A selection random numbers rA, calculate contract text MAHash add salt figure
hA=H (MA,rA)
S101A-4:A calculates to obtain private key
Public key
pkA=skA·G
S102A:With reference to shown in Fig. 3, A will disclose parameter (MA,rA,hA,NA,q,G,pkA) pass to B, parameter (skA,pA, qA) oneself preserve.
Wherein, in step sl:B similarly performs step S101A-1 to S102A, by open parameter (MB,rB,hB,NB,q, G,pkB) pass to A, parameter (skB,pB,qB) oneself preserve.
Wherein, the N described in step S101A-2A, it at least should be 2048, otherwise should choose p againAAnd qA, until NAMeet condition." Hash adds salt " function H described in step S101A-3, is HASH-256 algorithms, i.e., does two to target sequence Secondary SHA-256 computings.Sk in step S101A-4AThe requirement to private key in bit coin system should be met, that is, should be less than particular value (0xFFFFFFFF, FFFFFFFF, FFFFFFFF, FFFFFFFE, BAAEDCE6, AF48A03B, BFD25E8C, D0364141), Otherwise step S101A-3 should be re-executed, chooses r againAUntil the sk being calculated in step S101A-4AMeet condition.
S2:Whether the first signature supplier's verification the second signature supplier is given birth to using the described second signature contract Into second public private key pair, and whether the second signature supplier's verification the first signature supplier uses described first Signature contract generates first public private key pair;If it is not, then close the trade;If it is, perform step S3.
Specifically, the parameter that the first signature supplier A and the second signature supplier B are just exchanged carries out associated interactive meter Calculate, it was demonstrated that the M first agreed upon that really acts of oneselfAAnd MBCalculating process is performed, rather than is substituted with other contract texts It.
S201:If
A is calculated
S202:A selects a random number k ∈ Zq *(1≤k≤q-1), calculates
S=H (X, Y, Z, kG, kX, kY)
S203:A is calculated
T=k-xs (mod q)
And (X, Y, Z), (s, t) are sent to B, (X ', Y ', Z ') is denoted as, (s ', t ');
S204:B is received (X ', Y ', Z ') of A transmissions, (s ', t '), calculates whether Z ' is equal to
hA·G
If equal, following step is continued to execute;If unequal, it is dishonest that can conclude A immediately, should stop scheme immediately Execution;
S205:B calculates whether v is equal to
H(X′,Y′,Z′,t′·G+s′·X′,t′·X′+s′·Y′,t′·Y′+s′·Z′)
If equal, can determine that A is honest, pkA&skAReally by contract text MAEquivalence converts;If unequal, It is dishonest that can conclude A immediately, should stop the execution of scheme immediately;
S206:A and B exchange role, re-execute step S201-S205, if finally judging, B is honest person, continue into Enter trade mode.
Wherein, the function H described in step S205, is HASH-256 algorithms, i.e., SHA-256 fortune twice is done to target sequence Calculate.
S3:It is described first signature supplier and it is described second signature supplier by self-defined trading card and to it is described from The digital signature of trading card is defined, to realize the digital signature to first contract text and second contract text;Institute State the first signature supplier and the first signature supplier inputs respective guarantee fund to the self-defined trading card, institute State the first signature supplier and the second signature supplier is traded, and the respective guarantee fund is redeemed after Successful Transaction.
As an example, with reference to shown in Fig. 4, the first signature supplier A and the second signature supplier B create a transaction Structure is divided into five transaction lists, its title is respectively that fund enters block transaction (Funding Transaction), fund redeems transaction (A and B respectively have one, Timeout for (A and B respectively have one, Refunding Transaction) and time-out reparation transaction Refunding Transaction), tx is used respectivelyFWithRepresent.
In one embodiment of the invention, step S3 is specifically included:
S301:The first signature supplier and the second signature supplier create a fund and enter block transaction jointly.
Specifically, A and B creates transaction tx jointlyF
Above-mentioned " creating transaction ", is to insert related content in the input script and output script to the trading card, is allowed into For an all complete trading card in addition to signing messages.Wherein, txFInput pin be originally divided into0And in1Two parts, in0It is directed toward Be A provide one output the amount of money be no less than z BTC trading card, in1What is be directed toward is that the output amount of money that B is provided is many In the trading card of z BTC.
S302:The first signature supplier creates the first fund and redeems transaction and the first time-out reparation transaction, and described the Two signature suppliers create the second fund and redeem transaction and the second time-out reparation transaction.
Specifically, A creates transactionWithB creates transactionWith
S303:The first signature supplier redeems second fund trading signature, the second signature supplier Trading signature is redeemed to first fund.
Specifically, A is to transactionSign, obtainB is to transactionSign, obtain
Respective guarantee fund is inputted to trading card in the first signature supplier and the second signature supplier, the first signature Supplier and the second signature supplier are traded.
Guarantee fund is the form performance of bit coin.Wherein, with reference to shown in Fig. 2, the operation in block chain, client is It is not involved in.
S304:The first signature supplier and the second signature supplier jointly enter the fund block transaction label Name, and broadcasted.
Specifically, A and B is to the tx that merchandisesFSign, obtain
Above-mentioned " signature ", detailed process are:Redeem Script sequence of the signer in trading card to be signed input script The full content of script is inputted instead of it, then replaced trading card is encrypted with the private key of oneself, obtains signature sequence Signature sequence, is finally inserted the input script relevant position of trading card before replacing by row.
A and B broadcast transaction
TransactionIn T time after being broadcasted, A must be to transactionSigned to obtainAnd be broadcasted, otherwise after T time, B can be to transactionSigned to obtainAnd by its Broadcast;Equally, merchandiseIn T time after being broadcasted, B must be to transactionSigned to obtainAnd be broadcasted, otherwise after T time, A can be to transactionSigned to obtainAnd by its Broadcast.Wherein, broadcast, which refers to upload to the trading card complete sequence after signature in bit coin network, waits miner to confirm.
S305:If the first signature supplier redeems transaction to first fund and signs, then it is assumed that described First signature supplier is honest, and the first signature supplier redeems the guarantee fund of oneself.
S306:If the second signature supplier redeems transaction to second fund and signs, then it is assumed that described Second signature supplier is honest, and the second signature supplier redeems the guarantee fund of oneself.
Specifically, block transaction tx is entered in fundFIn, A and B each put into the guarantee fund of z BTC wherein.If A is showed For honesty, A will redeem transaction in fundIn surrender the digital signature of oneself and redeem guarantee fund at the same time;If A shows as not sincere Real, A does not surrender digital signature, then the z BTC guarantee fund of A will be merchandised by time-out reparationCompensate to B.Similarly, if B Honesty is shown as, B will redeem transaction in fundIn surrender the digital signature of oneself and redeem guarantee fund at the same time;If B is shown as not Honesty, B do not surrender digital signature, then the z BTC guarantee fund of B will be merchandised by time-out reparationCompensate to A.
Decentralization digital signature equity exchange method based on block chain according to the present invention, first confirms that to be transacted double Whether side is the other side for wanting transaction, and then both sides to be transacted, which establish, merchandises and the guarantee fund of oneself is taken out in transaction, is handing over The guarantee fund of oneself is redeemed after being readily accomplished, high cost caused by third party and low communication efficiency etc. can be so removed and ask Topic, and ensure the fairness of exchange process.
Fig. 5 is the decentralization digital signature even exchange system according to an embodiment of the invention based on block chain Structure diagram.
As shown in figure 5, the decentralization digital signature even exchange system based on block chain of one embodiment of the invention, Including:Contract and account binding module 210, interactive proof module 220 and transaction transceiver module 230.
Wherein, contract is used to make the first signature supplier provide the first signature contract with account binding module 210, and is based on The first legal public private key pair in the first signature contract generation bit coin network.The contract and account binding module 210 It is additionally operable to the second signature supplier is provided the second signature contract, and based in the described second signature contract generation bit coin network The second legal public private key pair.Interactive proof module 220 is used to make the first signature supplier's verification second signature Whether supplier is using the described second signature contract generation second public private key pair, and the second signature supplier verifies institute The first signature supplier is stated whether using first contract text generation the first signature contract.The interactive proof mould Block 220 is additionally operable in verification not by then closing the trade.Transaction transceiver module 230 is used to make the first signature supplier and institute The second signature supplier is stated by self-defined trading card and the digital signature to the self-defined trading card, to realize to described The digital signature of first contract text and second contract text.The transaction transceiver module 230 is additionally operable to make described first Signature supplier and the first signature supplier input respective guarantee fund to the self-defined trading card, and described first Signature supplier and the second signature supplier are traded, and the respective guarantee fund is redeemed after Successful Transaction.
Decentralization digital signature even exchange system based on block chain according to the present invention, first confirms that to be transacted double Whether side is the other side for wanting transaction, and then both sides to be transacted, which establish, merchandises and the guarantee fund of oneself is taken out in transaction, is handing over The guarantee fund of oneself is redeemed after being readily accomplished, high cost caused by third party and low communication efficiency etc. can be so removed and ask Topic, and ensure the fairness of exchange process.
In certain embodiments, the contract is specifically used for bent according to Hash operation and ellipse with account binding module 210 The first digital signature contract is converted to first public private key pair, institute by line encryption method, the first signature supplier State the second signature supplier and the second digital signature contract is converted into the second public private key pair, and first signature is provided Person and the second signature supplier disclose parameter preset to each other.
In certain embodiments, confirm that module 210 is specifically additionally operable to according to Hash operation and elliptic curve cryptography method, institute The first digital signature contract is converted to the first public private key pair by the first signature supplier, and supplier signs by described in institute second Second digital signature contract is converted to the second public private key pair;According to Hash operation and elliptic curve cryptography method, first label Name supplier is according to the first digital signature contract and the open parameter of the first public private key pair generation the first signature supplier, institute The second signature supplier is stated according to the second digital signature contract and the public affairs of the second public private key pair generation the second signature supplier Open parameter.
In certain embodiments, transaction transceiver module 230 is specifically used for:The first signature supplier and second label Name supplier creates a fund and enters block transaction jointly;The first signature supplier creates the first fund and redeems transaction and first Time-out reparation transaction, the second signature supplier create the second fund and redeem transaction and the second time-out reparation transaction;Described One signature supplier redeems second fund trading signature, and the second signature supplier, which redeems first fund, to hand over Easily signature;The first signature supplier and the second signature supplier enter block trading signature to the fund jointly, go forward side by side Row broadcast.
In certain embodiments, transaction transceiver module 230 is additionally operable to:If the first signature supplier is to described first Fund redeems transaction and signs, then it is assumed that the first signature supplier is honest, and the first signature supplier redeems oneself Guarantee fund;If the second signature supplier redeems transaction to second fund and signs, then it is assumed that described second The supplier that signs is honest, and the second signature supplier redeems the guarantee fund of oneself.
It should be noted that the decentralization digital signature even exchange system based on block chain of the embodiment of the present invention The specific reality of the decentralization digital signature equity exchange method based on block chain of specific implementation and the embodiment of the present invention Existing mode is similar, specifically refers to the description of the decentralization digital signature equity exchange method part based on block chain, in order to Redundancy is reduced, is not repeated herein.
In addition, term " first ", " second " are only used for description purpose, and it is not intended that instruction or hint relative importance Or the implicit quantity for indicating indicated technical characteristic.Thus, define " first ", the feature of " second " can be expressed or Implicitly include at least one this feature.In the description of the present invention, " multiple " are meant that at least two, such as two, three It is a etc., unless otherwise specifically defined.
In the present invention, unless otherwise clearly defined and limited, term " installation ", " connected ", " connection ", " fixation " etc. Term should be interpreted broadly, for example, it may be fixedly connected or be detachably connected, or integrally;Can be that machinery connects Connect or be electrically connected;It can be directly connected, can also be indirectly connected by intermediary, can be in two elements The connection in portion or the interaction relationship of two elements, unless otherwise restricted clearly.For those of ordinary skill in the art For, the concrete meaning of above-mentioned term in the present invention can be understood as the case may be.
In the description of this specification, reference term " one embodiment ", " some embodiments ", " example ", " specifically show The description of example " or " some examples " etc. means specific features, structure, material or the spy for combining the embodiment or example description Point is contained at least one embodiment of the present invention or example.In the present specification, schematic expression of the above terms is not It must be directed to identical embodiment or example.Moreover, particular features, structures, materials, or characteristics described can be in office Combined in an appropriate manner in one or more embodiments or example.In addition, without conflicting with each other, the skill of this area Art personnel can be tied the different embodiments or example described in this specification and different embodiments or exemplary feature Close and combine.
Although the embodiment of the present invention has been shown and described above, it is to be understood that above-described embodiment is example Property, it is impossible to limitation of the present invention is interpreted as, those of ordinary skill in the art within the scope of the invention can be to above-mentioned Embodiment is changed, changes, replacing and modification.

Claims (8)

1. a kind of decentralization digital signature equity exchange method based on block chain, it is characterised in that comprise the following steps:
S1:First signature supplier provides the first signature contract, and based in the described first signature contract generation bit coin network The first legal public private key pair;Second signature supplier provides the second signature contract, and based on the described second signature contract generation The second legal public private key pair in bit coin network;
S2:Whether the first signature supplier's verification the second signature supplier uses the described second signature contract generation institute The second public private key pair is stated, and whether the second signature supplier's verification the first signature supplier signs using described first Contract generates first public private key pair;
If it is not, then close the trade;If it is, perform step S3;
S3:The first signature supplier and the second signature supplier are by self-defined trading card and to described self-defined The digital signature of trading card, to realize the digital signature to first contract text and second contract text;Described One signature supplier and the first signature supplier input respective guarantee fund to the self-defined trading card, and described the One signature supplier and the second signature supplier are traded, and respective guarantee fund is redeemed after Successful Transaction.
2. the decentralization digital signature equity exchange method according to claim 1 based on block chain, it is characterised in that Step S1 is specifically included:
S101:According to Hash operation and elliptic curve cryptography method, the first signature supplier is by first digital signature Contract is converted to first public private key pair, and the second digital signature contract is converted to second by the second signature supplier Public private key pair;
S102:The first signature supplier and the second signature supplier disclose parameter preset to each other.
3. the decentralization digital signature equity exchange method according to claim 1 based on block chain, it is characterised in that The first signature supplier and the second signature supplier are by self-defined trading card and to the self-defined trading card Digital signature, the digital signature of first contract text and second contract text is specifically included with realizing:
S301:The first signature supplier and the second signature supplier create a fund and enter block transaction jointly;
S302:The first signature supplier creates the first fund and redeems transaction and the first time-out reparation transaction, second label Name supplier creates the second fund and redeems transaction and the second time-out reparation transaction;
S303:The first signature supplier redeems second fund trading signature, and the second signature supplier is to institute State the first fund and redeem trading signature;
S304:The first signature supplier and the second signature supplier jointly enter the fund block trading signature, and Broadcasted.
4. the decentralization digital signature equity exchange method according to claim 3 based on block chain, it is characterised in that The described the step of respective guarantee fund is redeemed after Successful Transaction, specifically includes:
S305:If the first signature supplier redeems transaction to first fund and signs, then it is assumed that described first The supplier that signs is honest, and the first signature supplier redeems the guarantee fund of oneself;
S306:If the second signature supplier redeems transaction to second fund and signs, then it is assumed that described second The supplier that signs is honest, and the second signature supplier redeems the guarantee fund of oneself.
A kind of 5. decentralization digital signature even exchange system based on block chain, it is characterised in that including:
Contract and account binding module, for making the first signature supplier provide the first signature contract, and based on the described first label The first legal public private key pair in name contract generation bit coin network;The contract is additionally operable to make the second label with account binding module Name supplier provides the second signature contract, and public and private based in the described second signature contract generation bit coin network legal second Key pair;
Interactive proof module, for whether making the first signature supplier's verification the second signature supplier using described Second signature contract generates second public private key pair, and the second signature supplier's verification the first signature supplier is It is no to generate first public private key pair using the described first signature contract;The interactive proof module is additionally operable to obstructed in verification Cross, close the trade;
Transaction transceiver module, for making the first signature supplier and the second signature supplier pass through self-defined trading card And the digital signature to the self-defined trading card, to realize to first contract text and second contract text Digital signature;The transaction transceiver module is additionally operable to make the first signature supplier and the first signature supplier will be respective Guarantee fund input to the self-defined trading card, it is described first signature supplier and second signature supplier be traded, And respective guarantee fund is redeemed after Successful Transaction.
6. the decentralization digital signature even exchange system according to claim 5 based on block chain, it is characterised in that The contract is specifically used for being provided according to Hash operation and elliptic curve cryptography method, first signature with account binding module The first digital signature contract is converted to first public private key pair by person, and the second signature supplier counts described second Word signature contract is converted to the second public private key pair, and makes the first signature supplier and the second signature supplier to each other Open parameter preset.
7. the decentralization digital signature even exchange system according to claim 5 based on block chain, it is characterised in that The transaction transceiver module is specifically used for:
The first signature supplier and the second signature supplier create a fund and enter block transaction jointly;
The first signature supplier creates the first fund and redeems transaction and the first time-out reparation transaction, and second signature provides Person creates the second fund and redeems transaction and the second time-out reparation transaction;
The first signature supplier redeems second fund trading signature, and the second signature supplier is to described first Fund redeems trading signature;
The first signature supplier and the second signature supplier jointly enter the fund block trading signature, and carry out wide Broadcast.
8. the decentralization digital signature even exchange system according to claim 7 based on block chain, it is characterised in that The transaction transceiver module is additionally operable to:
If the first signature supplier redeems transaction to first fund and signs, then it is assumed that first signature carries Donor is honest, and the first signature supplier redeems the guarantee fund of oneself;
If the second signature supplier redeems transaction to second fund and signs, then it is assumed that second signature carries Donor is honest, and the second signature supplier redeems the guarantee fund of oneself.
CN201711375726.3A 2017-12-19 2017-12-19 Decentralization digital signature equity exchange method and system based on block chain Pending CN107993059A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711375726.3A CN107993059A (en) 2017-12-19 2017-12-19 Decentralization digital signature equity exchange method and system based on block chain

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711375726.3A CN107993059A (en) 2017-12-19 2017-12-19 Decentralization digital signature equity exchange method and system based on block chain

Publications (1)

Publication Number Publication Date
CN107993059A true CN107993059A (en) 2018-05-04

Family

ID=62039097

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711375726.3A Pending CN107993059A (en) 2017-12-19 2017-12-19 Decentralization digital signature equity exchange method and system based on block chain

Country Status (1)

Country Link
CN (1) CN107993059A (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108600272A (en) * 2018-05-10 2018-09-28 阿里巴巴集团控股有限公司 A kind of block chain data processing method, device, processing equipment and system
CN109409890A (en) * 2018-11-13 2019-03-01 华瓴(南京)信息技术有限公司 A kind of electricity transaction system and method based on block chain
CN109615513A (en) * 2018-11-02 2019-04-12 克洛斯比尔有限公司 For value to be exchanged in block chain or the method and system of article even exchange
WO2019222939A1 (en) * 2018-05-23 2019-11-28 Cheng Sheng Huo Method for risk avoidance of virtual currency
WO2019233123A1 (en) * 2018-06-08 2019-12-12 AnApp Technologies Limited System and method for securing transaction in a blockchain network
CN112132573A (en) * 2019-06-24 2020-12-25 鄢华中 CA (certificate Authority) and Key removal electronic signature and electronic contract system based on block chain
US11784826B2 (en) 2020-12-11 2023-10-10 Visa International Service Association System, method, and computer program product for secure real-time n-party computation
US11811933B2 (en) 2019-11-27 2023-11-07 Visa International Service Association System and method for fair, secure n-party computation using at least one blockchain
US12081677B2 (en) 2023-09-06 2024-09-03 Visa International Service Association System, method, and computer program product for secure real-time N-party computation

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1877627A (en) * 2005-06-10 2006-12-13 中国科学院软件研究所 On-line transaction electronic payment system and method
US20150379510A1 (en) * 2012-07-10 2015-12-31 Stanley Benjamin Smith Method and system to use a block chain infrastructure and Smart Contracts to monetize data transactions involving changes to data included into a data supply chain.
CN106504008A (en) * 2016-10-24 2017-03-15 中山大学 A kind of fair contract signature method based on block chain

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1877627A (en) * 2005-06-10 2006-12-13 中国科学院软件研究所 On-line transaction electronic payment system and method
US20150379510A1 (en) * 2012-07-10 2015-12-31 Stanley Benjamin Smith Method and system to use a block chain infrastructure and Smart Contracts to monetize data transactions involving changes to data included into a data supply chain.
CN106504008A (en) * 2016-10-24 2017-03-15 中山大学 A kind of fair contract signature method based on block chain

Non-Patent Citations (5)

* Cited by examiner, † Cited by third party
Title
HAIBO TIAN ET.AL: "Contract Coin: Toward Practical Contract Signing on Blockchain", 《INFORMATION SECURITY PRACTICE AND EXPERIENCE》 *
HUI HUANG ET.AL: "A Fair Three-Party Contract Singing Protocol Based on Blockchain", 《CYBERSPACE SAFETY AND SECURITY》 *
YUJUE WANG ET.AL: "Provably secure robust optimistic fair exchange of distributed signatures", 《FUTURE GENERATION COMPUTER SYSTEMS》 *
田海博 等: "基于公开区块链的隐私保护公平合同签署协议", 《密码学报》 *
袁望 等: "区块链技术发展现状与展望", 《自动化学报》 *

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108600272A (en) * 2018-05-10 2018-09-28 阿里巴巴集团控股有限公司 A kind of block chain data processing method, device, processing equipment and system
US10848314B2 (en) 2018-05-10 2020-11-24 Advanced New Technologies Co., Ltd. Blockchain data processing methods, apparatuses, processing devices, and systems
WO2019222939A1 (en) * 2018-05-23 2019-11-28 Cheng Sheng Huo Method for risk avoidance of virtual currency
WO2019233123A1 (en) * 2018-06-08 2019-12-12 AnApp Technologies Limited System and method for securing transaction in a blockchain network
CN109615513A (en) * 2018-11-02 2019-04-12 克洛斯比尔有限公司 For value to be exchanged in block chain or the method and system of article even exchange
CN109615513B (en) * 2018-11-02 2023-06-09 克洛斯比尔有限公司 Method and system for fair exchange of value or items to be exchanged within a blockchain
CN109409890A (en) * 2018-11-13 2019-03-01 华瓴(南京)信息技术有限公司 A kind of electricity transaction system and method based on block chain
CN112132573A (en) * 2019-06-24 2020-12-25 鄢华中 CA (certificate Authority) and Key removal electronic signature and electronic contract system based on block chain
CN112132573B (en) * 2019-06-24 2024-05-31 鄢华中 Electronic signature and electronic contract system for removing CA (CA) Key based on blockchain
US11811933B2 (en) 2019-11-27 2023-11-07 Visa International Service Association System and method for fair, secure n-party computation using at least one blockchain
US11784826B2 (en) 2020-12-11 2023-10-10 Visa International Service Association System, method, and computer program product for secure real-time n-party computation
US12081677B2 (en) 2023-09-06 2024-09-03 Visa International Service Association System, method, and computer program product for secure real-time N-party computation

Similar Documents

Publication Publication Date Title
CN107993059A (en) Decentralization digital signature equity exchange method and system based on block chain
US11170439B2 (en) Method and apparatus for distributed, privacy-preserving and integrity-preserving exchange, inventory and order book
CN109345387A (en) Across the chain method of commerce of block chain, across chain communication device and storage medium
CN109242675A (en) Assets dissemination method and device, electronic equipment based on block chain
CN108681965A (en) The block chain network transaction processing method and recipient's node of offline node
CN109564663A (en) Dynamic password currency alias uses
CN109257182A (en) A kind of block chain method for secret protection that the cryptography promise based on homomorphism is proved with Zero Knowledge range
CN107180350A (en) A kind of method of the multi-party shared transaction metadata based on block chain, apparatus and system
CN108399571A (en) Unsecured method of commerce and system based on block chain intelligence contract
CN109284627A (en) A kind of reference prestige method and device based on block chain intelligence contract
CN109409890A (en) A kind of electricity transaction system and method based on block chain
CN109903027A (en) Event-handling method and device, electronic equipment based on block chain
CN106503098A (en) It is built in the block chain cloud service frame system of Paas service layers
CN107408174A (en) The system and method that networking for managing secure entity is promised to undertake
CN109840767A (en) Multi-party Fair contract based on block chain technology deposits card method and system
CN110912705A (en) Distributed electronic voting method and system based on block chain
Chen et al. A blockchain-based signature exchange protocol for metaverse
WO2019150132A1 (en) Secure, distributed futures market exchange
WO1997024833A2 (en) Ideal electronic negotiations
CN114240547B (en) Steel trade transaction method, system, device and storage medium based on digital signature
CN114424223A (en) Divisible token
CN107563755A (en) A kind of data trade method, seller terminal, buying side's terminal and system
CN110278266A (en) A kind of method for processing resource and device based on block chain
CN109862559A (en) Suitable for industry internet data perception without certificate signature method and system
Wu et al. New sealed-bid electronic auction with fairness, security and efficiency

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20180504