CN110188572A - A kind of verification method and device for consuming voucher applied to block chain - Google Patents

A kind of verification method and device for consuming voucher applied to block chain Download PDF

Info

Publication number
CN110188572A
CN110188572A CN201910427763.7A CN201910427763A CN110188572A CN 110188572 A CN110188572 A CN 110188572A CN 201910427763 A CN201910427763 A CN 201910427763A CN 110188572 A CN110188572 A CN 110188572A
Authority
CN
China
Prior art keywords
checking
writing
write
voucher
check
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
CN201910427763.7A
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.)
WeBank Co Ltd
Original Assignee
WeBank Co Ltd
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 WeBank Co Ltd filed Critical WeBank Co Ltd
Priority to CN201910427763.7A priority Critical patent/CN110188572A/en
Publication of CN110188572A publication Critical patent/CN110188572A/en
Priority to PCT/CN2020/082204 priority patent/WO2020233236A1/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/64Protecting data integrity, e.g. using checksums, certificates or signatures
    • 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/382Payment protocols; Details thereof insuring higher security of transaction
    • G06Q20/3829Payment protocols; Details thereof insuring higher security of transaction involving key management
    • 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
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/04Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange

Landscapes

  • Engineering & Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Accounting & Taxation (AREA)
  • Theoretical Computer Science (AREA)
  • Finance (AREA)
  • Computer Security & Cryptography (AREA)
  • General Physics & Mathematics (AREA)
  • Physics & Mathematics (AREA)
  • General Business, Economics & Management (AREA)
  • Strategic Management (AREA)
  • Economics (AREA)
  • Technology Law (AREA)
  • Marketing (AREA)
  • Development Economics (AREA)
  • Health & Medical Sciences (AREA)
  • Bioethics (AREA)
  • General Health & Medical Sciences (AREA)
  • Computer Hardware Design (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Storage Device Security (AREA)

Abstract

The present embodiments relate to the fields techno-financial (Fintech), more particularly, to a kind of verification method and device for consuming voucher applied to block chain, which comprises the side of checking and writing off obtain that user provides to the voucher checked and write off;There is executed each time record in the voucher checks and writes off record;The side of checking and writing off obtains the registration of checking and writing off of the voucher from block chain, described to check and write off record in registration and have the first Hash values;First hash value be the voucher it is upper once check and write off after generated according to all executed records of checking and writing off;It is described check and write off root according to executed each time in the voucher check and write off record generate the second hash value;The side of checking and writing off determines that the voucher can be used for checking and writing off when confirming that first hash value is consistent with second hash value.

Description

A kind of verification method and device for consuming voucher applied to block chain
Technical field
The present embodiments relate to the field techno-financial (Fintech), more particularly, to it is a kind of applied to block chain can Consume the verification method and device of voucher.
Background technique
With the development of computer technology, more and more technical applications are in financial field, and traditional financial industry is gradually Change to financial technology (Finteh), block chain (Block chain) technology is no exception, but due to the safety of financial industry Property, requirement of real-time, also to technology propose higher requirement.
Traditional server-side for consuming voucher scheme and needing centralization often has the morals of " changing rule after hair certificate " to denounce. Block chain is a kind of mode of whole people's participation book keeping operation, has the characteristics that decentralization and goes to trust.Block chain most importantly solves It has determined intermediate credit problem.In the past, it is difficult that two people for mutually not recognizing and trusting, which will reach cooperation, it is necessary to rely on third Side.Such as payment behavior, it transfers accounts in past any one, it is necessary to the presence of mechanism as bank or Alipay.But By block chain technology, in the case that bit coin is mankind's participation there are currently no any intermediary real for the first time, both sides are completed Can be with the behavior of transferring accounts of mutual trust, this is the important breakthrough of block chain, and also therefore block chain has been to be concerned by more and more people.
During block chain use, checking and writing off to the distribution that can consume voucher (such as discount coupon, prescription, admission ticket) is area One hot spot of block chain industry.But there are still problems to cause verifying difficult for current verification process.
Summary of the invention
The present invention provide it is a kind of consume evidence method and device applied to block chain, to solve in the prior art with Card checks and writes off the problem for requesting insincere safety low.
The embodiment of the present invention provides a kind of verification method for consuming voucher applied to block chain, comprising:
The side of checking and writing off obtain that user provides to the voucher checked and write off;There is executed each time record in the voucher checks and writes off note Record;
The side of checking and writing off obtains the registration of checking and writing off of the voucher from block chain, described to check and write off record in registration and have the first Kazakhstan Uncommon hash value;First hash value be the voucher it is upper once check and write off after generated according to all executed records of checking and writing off 's;
It is described check and write off root according to executed each time in the voucher check and write off record generate the second hash value;
The side of checking and writing off determines that the voucher is available when confirming that first hash value is consistent with second hash value In checking and writing off.
A kind of possible implementation, described check and write off in record further includes the last side of checking and writing off checked and write off to described first What hash value was signed checks and writes off signature;
The side of checking and writing off determines that the voucher is available when confirming that first hash value is consistent with second hash value In checking and writing off, comprising:
The side of checking and writing off obtained from the voucher it is last check and write off check and write off record;
It is described check and write off root according to the last time check and write off check and write off record in organization information of checking and writing off check and write off signature to described It is verified;
The side of checking and writing off is confirming that first hash value is consistent with second hash value and described checks and writes off signature verification By when, determine that the voucher can be used for checking and writing off.
A kind of possible implementation, after the side of checking and writing off determines that the voucher can be used for checking and writing off, further includes:
The locking request checked and write off the return of user described in direction and be directed to the voucher;The locking request is used for the use Family generates locking signature and locking signature is uploaded to the block chain;The locking signature is used to indicate the block chain Lock-in state is set by the lock state checked and write off in registration and the locking signature is recorded in registration in described check and write off;
The side of checking and writing off receives the locking success response that the user sends;The locking success response is described for triggering It is checked and write off the side of checking and writing off.
A kind of possible implementation, after the side of checking and writing off receives the locking success response that the user sends, further includes:
After the side's of checking and writing off verifying locking signature is legal, the corresponding side's of the checking and writing off record of request is checked and write off described in generation;
The side of checking and writing off record is sent to the user by the side of checking and writing off;
The side of checking and writing off obtains user side's record that the user returns;
It is described check and write off root side of checking and writing off described in record and the user side record determine described in check and write off and request corresponding core Write off record;
The root of checking and writing off checks and writes off record according to executed each time in the voucher and described checks and writes off the corresponding core of request Record is write off, third hash value is generated;
The first hash value checked and write off in registration that the side of checking and writing off updates voucher described in the block chain is the third Hash value.
A kind of possible implementation, the method also includes:
The write state of the voucher is revised as unlocking by the side of checking and writing off, and the locking is signed, block chain is written;
It is described check and write off user described in direction return check and write off successful response.
First hash value on block chain is updated to described by a kind of possible implementation, the side of checking and writing off Before three hash values, further includes:
The write state of the voucher on the block chain is inquired by the side of checking and writing off;
If it is determined that said write state is unlock, then the instruction that relocks is returned to the user, and by the voucher In described second check and write off record deletion after, be back to the user.
A kind of possible implementation, the side of checking and writing off obtained from block chain the voucher check and write off registration before, also Include:
What the side of checking and writing off obtained that the user sends the voucher checks and writes off request;The request of checking and writing off of the voucher includes institute It states the attribute signature of voucher and checks and writes off number;
The root of checking and writing off determines that the residue of the voucher can use number according to the voucher;
Checked and write off described in the side of checking and writing off verifying request check and write off number whether be less than or equal to the voucher residue it is available Number;The side of checking and writing off obtains the public key of the publisher of the voucher from block chain, and whether the attribute for verifying the voucher signs It is legal.
A kind of possible implementation, the method also includes:
The check value for checking and writing off request checked and write off user described in direction and send the voucher;The check value is for described It checks and writes off checking and writing off for request described in generating and records and described check and write off record for what the side of checking and writing off described in the user's checking generated in the side of checking and writing off.
The embodiment of the present invention provides a kind of verifying device for consuming voucher applied to block chain, comprising:
Transmit-Receive Unit, for obtain user's offer to the voucher checked and write off;Record has executed each in the voucher It is secondary to check and write off record;Obtain the registration of checking and writing off of the voucher from block chain, it is described to check and write off record in registration and have the first Hash Hash Value;First hash value be the voucher it is upper once check and write off after generated according to all executed records of checking and writing off;
Processing unit generates the second hash value for checking and writing off record according to executed each time in the voucher;True Recognize first hash value it is consistent with second hash value when, determine that the voucher can be used for checking and writing off.
A kind of possible implementation, described check and write off in record further includes the last side of checking and writing off checked and write off to described first What hash value was signed checks and writes off signature;The processing unit, is used for: what the acquisition last time checked and write off from the voucher checks and writes off note Record;The signature of checking and writing off is verified according to the organization information of checking and writing off in record of checking and writing off that the last time checks and writes off;Confirming First hash value is consistent with second hash value and described when checking and writing off signature verification and passing through, and determines that the voucher can be used for It checks and writes off.
A kind of possible implementation, the Transmit-Receive Unit are also used to: Xiang Suoshu user returns to the lock for being directed to the voucher Fixed request;The locking request generates locking signature for the user and locking signature is uploaded to the block chain; It is described locking signature be used to indicate the block chain by it is described check and write off registration in lock state be set as lock-in state and described It checks and writes off and records the locking signature in registration;Receive the locking success response that the user sends;The locking success response is used It is checked and write off the side of checking and writing off described in triggering.
A kind of possible implementation, the Transmit-Receive Unit are also used to: the side of checking and writing off record is sent to the use Family;Obtain user side's record that the user returns;
The processing unit, is also used to: after the verifying locking signature is legal, checking and writing off described in generation and requests corresponding check and write off Fang Jilu;It is recorded according to the side of checking and writing off record and the user side and checks and writes off request described in determining and corresponding check and write off record;According to It checks and writes off record for executed each time in the voucher and described checks and writes off that request is corresponding to check and write off record, generation third hash value; The first hash value checked and write off in registration for updating voucher described in the block chain is the third hash value.
A kind of possible implementation, the processing unit are also used to: the write state of the voucher is revised as solving Lock, and the locking is signed, block chain is written;It is returned to the user and checks and writes off successful response.
A kind of possible implementation, the processing unit are used for: inquiring the write-in shape of the voucher on the block chain State;If it is determined that said write state is unlock, then the instruction that relocks is returned to the user, and by the institute in the voucher State second check and write off record deletion after, be back to the user.
A kind of possible implementation, the Transmit-Receive Unit are used for: being obtained the user and are sent checking and writing off for the voucher and ask It asks;The voucher checks and writes off the attribute signature and check and write off number that request includes the voucher;
The processing unit, is used for: that request is checked and write off described in verifying checks and writes off whether number is less than or equal to the voucher Number can be used;The side of checking and writing off obtains the public key of the publisher of the voucher from block chain, verifies the attribute signature of the voucher Whether it is legal after, return to the verification result for checking and writing off request of the voucher.
A kind of possible implementation, the processing unit are used for: what Xiang Suoshu user sent the voucher checks and writes off request Check value;The check value be used for the side of checking and writing off generate described in check and write off checking and writing off for request and record and for the user's checking institute That states that the side of checking and writing off generates described checks and writes off record.
The embodiment of the present invention provides a kind of computer storage medium, and the computer readable storage medium includes computer journey Sequence, when computer program is run on computers, so that the computer executes side described in any one of above-described embodiment Method.
The embodiment of the present invention provides a kind of computer program product comprising instruction, when described instruction is run on computers When, so that the computer executes such as the described in any item methods of above-described embodiment.
In the embodiment of the present invention, note is checked and write off by being checked and write off in the hash value and voucher in registration on block chain by the side of checking and writing off Record serializing after generate hash value compare, verifying can consume voucher check and write off record whether be tampered with.Only exist Cochain is just needed when checking and writing off, and does not expose any private data on block chain, improves verification efficiency.
Detailed description of the invention
To describe the technical solutions in the embodiments of the present invention more clearly, make required in being described below to embodiment Attached drawing is briefly introduced, it should be apparent that, drawings in the following description are only some embodiments of the invention, for this For the those of ordinary skill in field, without any creative labor, it can also be obtained according to these attached drawings His attached drawing.
Fig. 1 a is a kind of system architecture schematic diagram provided in an embodiment of the present invention;
Fig. 1 b is a kind of system architecture schematic diagram provided in an embodiment of the present invention;
Fig. 2 is the flow diagram that one kind provided in an embodiment of the present invention can consume evidence method;
Fig. 3 is the structural schematic diagram that one kind provided in an embodiment of the present invention can consume voucher device;
Fig. 4 is a kind of structural schematic diagram of computer equipment provided in an embodiment of the present invention.
Specific embodiment
To make the objectives, technical solutions, and advantages of the present invention clearer, below in conjunction with attached drawing to the present invention make into It is described in detail to one step, it is clear that the described embodiments are only some of the embodiments of the present invention, rather than whole implementation Example.Based on the embodiments of the present invention, obtained by those of ordinary skill in the art without making creative efforts All other embodiment, shall fall within the protection scope of the present invention.
The side of checking and writing off: this role is used to describe the mechanism for having permission and checking and writing off voucher.Other mechanisms may be to checking and writing off Voucher is checked and write off in side's application.
Publisher: this role is used to describe the mechanism for having permission generation voucher, and issuing to user.
User: this role can obtain the voucher of publisher's transmission, and can apply for checking and writing off the need of voucher to the side of checking and writing off It asks.
Block chain: all participants all have the read and write access ability of block chain, wherein participant can be the side of checking and writing off, Publisher and user etc. have the object of block chain account.
Block (block): being in each section for recording the data acquisition system marked off according to certain condition and state outcome What point was formed after reaching common understanding, in embodiments of the present invention, the data for needing to record are mainly data or the data of user Resume more new information after variation.It is divided specifically, block can be with the time, such as generated one at interval of 10 seconds (s) A block, then this block is all data recorded in this 10s, or generates a block in each interval of one day, then This block is to record this intraday all data;Alternatively, block can also be according to the data or resume received The quantity of more new information is divided, for example, generating one after data or the resume more new information for receiving specified quantity A block, then this block is for recording the data for the specified quantity having received more new information, certainly, the present invention is real Example is applied to the specific division mode of block and is not limited.One block includes block head and block body.Wherein, in block head Including previous block address (Prev-block), previous block address can pass through previous block Hash codes in block head (pre-Hash) form is stored, and all blocks are together in series by the direction of previous block address, and then is formed One block chain.It is then used to store specific data in block body, such as the data in the embodiment of the present invention.
Block chain (block chain): or distributed data collection account book is that one kind according to certain sequence will store number According to block in such a way that sequence is connected a kind of linked data structure for being combined into.Block is together in series in sequence and shape At a block chain.
Node: refer to the calculating equipment of the treatment processes such as record or the verifying for participating in data in block chain network, such as count The equipment that calculation machine, mobile phone, mine machine, desktop computer or server etc. possess computing capability can be used as the section in block chain network Point.
In addition, the terms "and/or", only a kind of incidence relation for describing affiliated partner, indicates may exist Three kinds of relationships, for example, A and/or B, can indicate: individualism A exists simultaneously A and B, these three situations of individualism B.Separately Outside, character "/" herein typicallys represent the relationship that forward-backward correlation object is a kind of "or" in the case where not illustrating.
In order to be conducive to that the principle of block chain is described below to the understanding of the technical solution of the embodiment of the present invention.
In block chain technology, any one equipment in network all can serve as a node of block chain, and can To participate in the recording and storage of block chain, it is based on common recognition mechanism between node, safeguards entire block jointly by competing to calculate Chain.Since any node can possess the data copy of a complete block chain, thus any node fails, remaining node It still is able to be normally carried out work, thus the mode high reliablity based on the storage of block chain.
Further, since safeguarding entire block chain, each node jointly by numerous nodes in block chain technique center The permission possessed can be it is identical, thus and there is no centralization equipment or management organization.It is all in block chain Data information be all it is open and clear, individual node can not influence other nodes even more than modification of the node to data Data, all modify unless can control in entire block chain network more than the node of half, but this mode difficulty It is too big, and two blocks of each of block chain block all with front and back are associated, to distort the number of a block According to, it is necessary to the data of associated multiple blocks are distorted, difficulty is larger, so that the data based on the storage of block chain have not It can tamper.
Hash values: to the algorithm of certain text string generation Hash mapping value, such as sha3.
Voucher can be consumed: can be electronic certificate, access times are limited, can consume when checking and writing off every time, use up and just lose Effect.The common voucher that consumes can be prescription, discount coupon, admission ticket etc..Traditional voucher scheme that consumes needs centralization Server-side often has the morals of " changing rule after hair certificate " to denounce.In this regard, voucher generation hash value can be deposited card by the side of checking and writing off is placed on area Publicity on block chain.Fig. 1 a illustrates a kind of applicable system architecture schematic diagram of the embodiment of the present invention, as shown in Figure 1a, this The applicable system architecture of inventive embodiments includes user 101, the side of checking and writing off 102, publisher 103 and block chain network 104.Wherein, Voucher publisher 103 can consume voucher to user for issuing.Voucher holder (user 101): as holder, user can be with By showing the consumption that voucher carries out voucher to the side of checking and writing off.The voucher side of checking and writing off can check and write off for roles, this roles such as trade companies The voucher of user's offer simultaneously provides service for user.User 101 checks and writes off request to the side's of checking and writing off transmission voucher;The side of checking and writing off and block Chain network is connected, and the data for needing cochain are sent to block chain network;User is connected with block chain network, and the verifying side of checking and writing off returns Response data.Node in block chain network can be accounting nodes or ordinary node.
Each participant mechanism such as the side of checking and writing off, publisher, user is using the rivest, shamir, adelman arranged, as ECDSA is raw At the public private key pair of oneself;By in private key storage to oneself private data library, then by public key cochain.As shown in Figure 1 b, mechanism A The public key A of oneself is distributed on block chain, the public key B of oneself is distributed on block chain by mechanism B.For existing voucher Check and write off, need the voucher Token that will can be consumed voucher and be abstracted on block chain, so the distribution of voucher, voucher check and write off it is whole A life cycle is all on chain.However, this way efficiency is very low: businessman may send millions of preferential daily Certificate, to it, all logical cardization can cause huge burden to block chain.
Based on the above issues, the embodiment of the present invention, which provides, a kind of consumes evidence method applied to block chain, comprising:
Step 1: voucher is generated for user in voucher publisher, and voucher is sent to user.
In a kind of specific embodiment, check value can be the character string of an indefinite length.A kind of possible realization side Formula, a format that can consume voucher can indicate that attribute item may include following field, such as with a json character string Shown in table 1:
Key Value
Publisher Address on publisher's chain
Issuing date and validity period Issuing date and validity period
ID UUID character string
Recipient Address on recipient's chain
Content The business datum that publisher voluntarily determines
Maximum can use number Number can be used in the maximum of voucher
Signature The signature that publisher generates
Check and write off record set A plurality of voucher checks and writes off the set of record, and establishment moment is sky
Table 1
Wherein, the business datum that publisher voluntarily determines can be " full 50-25 ", " 10 yuan of viewings ", the data such as " prescription ", It is not limited here.It is what original text generated that the signature that publisher generates, which can be publisher according to the attribute information in voucher, example Such as, can according to do not include check and write off record other content be original text.In the specific implementation process, oneself can be used in publisher Private key sign to text string generation after the serializing of all properties item of voucher.It checks and writes off mechanism or user can be by publisher's public affairs Public key of the cloth on block chain verifies this signature value.Recipient can be user, i.e. publisher finishes voucher generation Afterwards, which is sent to user, user can also be sent to by third party, it is not limited here.
A kind of possible implementation, checking and writing off record set can be another being nested in the json that can consume voucher Json character string is sky in the creation of voucher.After voucher checks and writes off record, checks and writes off and may include a plurality of check and write off in record set Record, every is checked and write off record format, can is serializing, i.e., is converted to the content of a table a string according to " Key:Value " The mode of character string.As shown in table 2, including following field:
Key Value
Check and write off the time Check and write off the time
Check and write off mechanism Check and write off address on mechanism chain
Remaining access times This remaining access times after checking and writing off
Check value Check and write off random value
Check and write off user's signature The signature that user generates
Check and write off authority signature Check and write off the signature of mechanism generation
Table 2
It should be noted that each record of checking and writing off needs user and checks and writes off the common signature of mechanism, this is to protect Card both sides confirm the legal use of voucher by way of digital signature.Checking and writing off user's signature can be user according to this Check and write off be recorded as original text generation signature, check and write off authority signature can be check and write off mechanism checked and write off according to this be recorded as original text generation Signature.Specifically, the private key that user's signature can be user according to oneself can be checked and write off, to check and write off the time, mechanism is checked and write off, is remained Complementary degree, check value are the signature that original text generates.A kind of possible implementation, the check value are used for the side's of checking and writing off generation It is described to check and write off checking and writing off for request and record and described check and write off record for what the side of checking and writing off described in the user's checking generated.Check value can be with One of input parameter for the character string of a not designated length, for Digital Signature Algorithm.It is tested in user or the side of checking and writing off Card is checked and write off when recording corresponding signature, needs to provide this check value simultaneously.This provides the anti-playback attack capability of digital signature, So that signature just can be by correct verification in the case where exchanging check value only between specified user and the side of checking and writing off.
Step 2: user checks and writes off request to the side's of checking and writing off transmission voucher.
In the specific implementation process, checking and writing off for the voucher requests including the voucher and checks and writes off number.
It in the specific implementation process, may include: to check and write off root according to checking and writing off checking and writing off time for request described in the credential verification The residue whether number is less than or equal to the voucher can use number;Specifically, the root of checking and writing off checks and writes off number and institute described in Record can be checked and write off with what number and last time were written by stating the maximum in voucher, confirm that the residue of the voucher can use number, really The fixed side of checking and writing off obtains the public key of the publisher of the voucher from block chain, and whether the attribute signature for verifying the voucher closes Method.
As shown in Fig. 2, the embodiment of the present invention provides a kind of verification method for consuming voucher applied to block chain, packet It includes:
Step 201: the side of checking and writing off obtain that user provides to the voucher checked and write off;Record has executed each in the voucher It is secondary to check and write off record;
Step 202: the side of checking and writing off obtains the registration of checking and writing off of the voucher from block chain, described to check and write off record in registration and have the One Hash values;First hash value be the voucher it is upper once check and write off after according to all executed check and write off record life At;
In order to prevent user distort voucher check and write off record or directly delete its content, on chain, need to store each with Card checks and writes off record.A kind of possible implementation, the voucher can be established for each voucher checks and writes off registration.Specific real It during applying, can be stored by serializing field, as shown in table 3, the registration of checking and writing off of voucher includes the first hash value.
Table 3
To reinforce verification the verifying results, a kind of possible implementation, described check and write off in record further includes the last core checked and write off Signature is checked and write off to what first hash value was signed in pin side.This check and write off signature can according to hash value and the last layer core What pin side generated checks and writes off the signature that the check value of record generates for original text.
Step 203: checking and writing off root according to executed each time in the voucher and check and write off record the second hash value of generation;
Step 204: the side of checking and writing off determines the voucher when confirming that first hash value is consistent with second hash value It can be used for checking and writing off.
In the embodiment of the present invention, voucher just needs cochain when checking and writing off, and only storage voucher last state, core on chain The efficiency and safety of credential verification has been effectively ensured in the hash value and signature for writing off record.
The side's of checking and writing off validating documents check and write off whether record is tampered with, a kind of possible implementation, comprising:
The side of checking and writing off obtained from the voucher it is last check and write off check and write off record;
Root is checked and write off to carry out the signature of checking and writing off according to the organization information of checking and writing off checked and write off in record that the last time checks and writes off Verifying;
The side of checking and writing off is confirming that first hash value is consistent with second hash value and described check and write off signature verification and passes through When, determine that the voucher can be used for checking and writing off.
In the specific implementation process, the side of checking and writing off can check and write off Hash in registration on chain and voucher checks and writes off records series The hash value generated later compares.If it is not consistent with second hash value for empty and the first hash value to check and write off record, Then further, the public key that the last time side of checking and writing off is obtained from chain, using the first hash value as original text, verifying checks and writes off whether signature closes Method.If the two is any illegal, failure is returned.
Further, the side of checking and writing off can validating documents content, and signature legitimacy.A kind of possible implementation, The public key of publisher can be obtained from chain, then with voucher all properties, after serializing according to the address of voucher publisher Character string is original text, and whether verifying signature is legal.If illegal, failure is returned.
Further, it is the legitimacy of further validating documents, checks and writes off root according in provided voucher and check and write off record set Whether close is empty entrance:
If checking and writing off set of records ends not is sky, record is checked and write off to every in voucher, is obtained from block chain and checks and writes off machine Structure public key and client public key, then successively verifying checks and writes off whether authority signature, to check and write off user's signature legal.If there is any one Any signature checked and write off in record is illegal, returns to failure.Otherwise enter in next step.
If checking and writing off set of records ends as sky, it is determined that the voucher is not written off also, and also without the voucher on block chain Check and write off registration.At this point, on chain checking and writing off in registration thus voucher newly-increased one check and write off the record of registration and insert voucher The ID or ID for checking and writing off registration generated for the voucher.
To avoid a voucher at multiple trade companies while consuming successful behavior, i.e. honeysuckle.It, can in the embodiment of the present invention To carry out transactional locking to checking and writing off using intelligent contract, guarantee that whether the holder of voucher or the side of checking and writing off all are not present Carry out the possibility of honeysuckle attack.
After avoiding honeysuckle, a kind of possible implementation, the side of checking and writing off from determining that the voucher can be used for checking and writing off, also Include:
The locking request checked and write off the return of user described in direction and be directed to the voucher;The locking request is used for the use Family generates locking signature and locking signature is uploaded to the block chain;The locking signature is used to indicate the block chain Lock-in state is set by the lock state checked and write off in registration and the locking signature is recorded in registration in described check and write off;
To avoid honeysuckle, the safety of verifying is improved, it can be while sending locking request, Xiang Suoshu user sends institute State the check value for checking and writing off request of voucher;The check value can be used for user and generate locking signature according to the check value, with This checks and writes off unique identification, and after the locking success response that user's transmission is got so as to the side of checking and writing off, process is checked and write off in triggering.
The side of checking and writing off receives the locking success response that the user sends;The locking success response is described for triggering It is checked and write off the side of checking and writing off.
Specifically, user generates locking label to check and write off the Hash in registering and check value as original text, with the private key of oneself Name.The corresponding table item of the voucher in registration is checked and write off in user's modification, and lock state is set as Y, and encloses locking signature.
In conjunction with above-described embodiment, checking and writing off for voucher can store lock state and locking signature in registration.Specific real During applying, it can be stored by serializing field, as shown in table 4:
Table 4
In the specific implementation process, the side of checking and writing off checks in voucher registration in block chain, if is being in locking shape State.It is same to return to failure if ought up till now voucher be locked out.
A kind of possible implementation may include:
Step 1: checking and writing off the corresponding side of checking and writing off of request described in generation after the side's of checking and writing off verifying locking signature is legal Record;
In the specific implementation process, user notifies the side's of checking and writing off locking flow to complete, and can start to check and write off;The side of checking and writing off from The attribute item and described check and write off that corresponding voucher ID is found in credential status table request the corresponding check value generated, obtain from chain The public key at family is taken, checks whether voucher is correctly locked, and whether sign legal.If unlocked or signature does not conform to Method returns to failure.
Root is checked and write off according to the record set of checking and writing off of voucher, the side's of checking and writing off record is generated, includes residue degree, core in the side's of checking and writing off record Time, check value are checked and write off etc. in pin mechanism address.
Further, the side of checking and writing off write-in can also check and write off authority signature in the side of checking and writing off records, specifically, can be to check and write off Time checks and writes off organization address, residue degree, check value together as original text, generates signature with the private key of itself, inserts the side of checking and writing off In " checking and writing off authority signature " item of record.
Step 2: the side of checking and writing off record is sent to the user by the side of checking and writing off;
Specifically, the side of checking and writing off, which will check and write off record, issues user, it is desirable that user, which confirms, implements the side's of checking and writing off record, and signs.
Step 3: the side of checking and writing off obtains user side's record that the user returns;
Specifically, user obtains from chain checks and writes off authority public key, whether authority signature is checked and write off in verifying legal.If do not conformed to Method, or check and write off content there are mistake, then require to check and write off mechanism and regenerate the side's of checking and writing off record.Otherwise, customer acceptance checks and writes off mechanism Signature, and generated and signed with the private key of itself, filling is checked and write off in " checking and writing off user's signature " item of record.The original text of signature can be Original text identical with authority signature is checked and write off, or different original texts, it is not limited here.
Step 4: check and write off root according to described in the side of checking and writing off record and the user side record determine described in check and write off request it is corresponding Check and write off record;
The public key that user is obtained on Fang Conglian is checked and write off, it is whether legal that user's signature is checked and write off in verifying, if illegal return is lost It loses.Otherwise, then show that completely checking and writing off record for one has generated.
Specifically, update voucher in the side's of checking and writing off checks and writes off record set, newly-increased one is checked and write off record, the filling side of checking and writing off record and use Family side's record.It may include: to check and write off the time, check and write off organization address, residue degree, check value, check and write off authority signature, check and write off user Signature.Certainly, it updating to check and write off and be updated when record set may be step 2, the side of checking and writing off is not necessarily to the independent side of checking and writing off record, Only need core that updated voucher is sent to user.
Step 5: check and write off root according to executed each time in the voucher check and write off record and it is described check and write off request it is corresponding Record is checked and write off, third hash value is generated;
Step 6: the first hash value checked and write off in registration that the side of checking and writing off updates voucher described in the block chain is described the Three hash values.
In the specific implementation process, the side of checking and writing off carries out serializing generation Hash to all records of checking and writing off, and then writes Hash Enter checking and writing off in registration and in " hash value " of this voucher ID corresponding table item onto chain, meanwhile, using hash value as original text, use oneself Private key generate signature, be written in " Hash sign item " for checking and writing off registration corresponding table item.
A kind of possible implementation, the method also includes:
The write state of the voucher is revised as unlocking by the side of checking and writing off, and the locking is signed, block chain is written;It checks and writes off User described in direction returns and checks and writes off successful response.
At this point, the side of checking and writing off can modify check and write off registration in lock state be N, and delete locking signature.This step can also be with Lock state is modified by user, it is not limited here.Checking and writing off user described in direction and returning to check and write off successfully to respond to include Provide a user the corresponding business service of voucher.
First hash value on block chain is updated to described by a kind of possible implementation, the side of checking and writing off Before three hash values, further includes:
The write state of the voucher on the block chain is inquired by the side of checking and writing off;
If it is determined that said write state is unlock, then the instruction that relocks is returned to the user, and by the voucher In described second check and write off record deletion after, be back to the user.
If at this time the side of checking and writing off discovery lock state be not Y, illustrate user may attempt to this voucher into The operation of row honeysuckle.The side of checking and writing off can terminate immediately and check and write off process, and user is required to enter voucher locking flow again.
It should be noted that the block chain with permission also can be used in the side of checking and writing off, guarantee that this unlocked state is only checked and write off It can modify just now, further avoid the possibility of honeysuckle, improve the safety checked and write off.
In the embodiment of the present invention, institute's documentary just needs cochain when checking and writing off, and the only storage newest shape of voucher on chain State, the Hash and signature for checking and writing off record;Even if number is used for multiple times in a voucher, also only need to record on a chain;Entirely Checking and writing off process only needs most four blocks chain write operations.In addition, checking and writing off, process can be effectively prevented user or the side of checking and writing off appoints Anticipate a side honeysuckle attack, the efficiency and safety of credential verification has been effectively ensured.
Based on identical inventive concept, as shown in figure 3, the embodiment of the present invention provides a kind of consuming applied to block chain The verifying device of voucher, comprising:
Transmit-Receive Unit, for obtain user's offer to the voucher checked and write off;Record has executed each in the voucher It is secondary to check and write off record;Obtain the registration of checking and writing off of the voucher from block chain, it is described to check and write off record in registration and have the first Hash Hash Value;First hash value be the voucher it is upper once check and write off after generated according to all executed records of checking and writing off;
Processing unit generates the second hash value for checking and writing off record according to executed each time in the voucher;True Recognize first hash value it is consistent with second hash value when, determine that the voucher can be used for checking and writing off.
A kind of possible implementation, described check and write off in record further includes the last side of checking and writing off checked and write off to described first What hash value was signed checks and writes off signature;The processing unit, is used for: what the acquisition last time checked and write off from the voucher checks and writes off note Record;The signature of checking and writing off is verified according to the organization information of checking and writing off in record of checking and writing off that the last time checks and writes off;Confirming First hash value is consistent with second hash value and described when checking and writing off signature verification and passing through, and determines that the voucher can be used for It checks and writes off.
A kind of possible implementation, the Transmit-Receive Unit are also used to: Xiang Suoshu user returns to the lock for being directed to the voucher Fixed request;The locking request generates locking signature for the user and locking signature is uploaded to the block chain; It is described locking signature be used to indicate the block chain by it is described check and write off registration in lock state be set as lock-in state and described It checks and writes off and records the locking signature in registration;Receive the locking success response that the user sends;The locking success response is used It is checked and write off the side of checking and writing off described in triggering.
A kind of possible implementation, the Transmit-Receive Unit are also used to: the side of checking and writing off record is sent to the use Family;Obtain user side's record that the user returns;
The processing unit, is also used to: after the verifying locking signature is legal, checking and writing off described in generation and requests corresponding check and write off Fang Jilu;It is recorded according to the side of checking and writing off record and the user side and checks and writes off request described in determining and corresponding check and write off record;According to It checks and writes off record for executed each time in the voucher and described checks and writes off that request is corresponding to check and write off record, generation third hash value; The first hash value checked and write off in registration for updating voucher described in the block chain is the third hash value.
A kind of possible implementation, the processing unit are also used to: the write state of the voucher is revised as solving Lock, and the locking is signed, block chain is written;It is returned to the user and checks and writes off successful response.
A kind of possible implementation, the processing unit are used for: inquiring the write-in shape of the voucher on the block chain State;If it is determined that said write state is unlock, then the instruction that relocks is returned to the user, and by the institute in the voucher State second check and write off record deletion after, be back to the user.
A kind of possible implementation, the Transmit-Receive Unit are used for: being obtained the user and are sent checking and writing off for the voucher and ask It asks;The voucher checks and writes off the attribute signature and check and write off number that request includes the voucher;
The processing unit, is used for: that request is checked and write off described in verifying checks and writes off whether number is less than or equal to the voucher Number can be used;The side of checking and writing off obtains the public key of the publisher of the voucher from block chain, verifies the attribute signature of the voucher Whether it is legal after, return to the verification result for checking and writing off request of the voucher.
A kind of possible implementation, the processing unit are used for: if it is determined that the verification result is to pass through, then to institute State the check value for checking and writing off request that user sends the voucher;The check value is used to check and write off request described in the side's of checking and writing off generation Check and write off and record and described check and write off record for what the side of checking and writing off described in the user's checking generated.
Fig. 4 is referred to, is based on same technical concept, the embodiment of the invention also provides a kind of computer equipments, for holding The method of row user or the side of checking and writing off in any embodiment of the present invention may include memory 1001 and processor 1002.
The memory 1001, the computer program executed for storage processor 1002.Memory 1001 can be wrapped mainly Include storing program area and storage data area, wherein storing program area can application needed for storage program area, at least one function Program etc.;Storage data area, which can be stored, uses created data etc. according to computer equipment.Processor 1002, can be one A central processing unit (central processing unit, CPU), or be digital processing element etc..The present invention is implemented The specific connection medium between above-mentioned memory 1001 and processor 1002 is not limited in example.The embodiment of the present invention in Fig. 4 with It is connected between memory 1001 and processor 1002 by bus 1003, bus 1003 is indicated in Fig. 4 with thick line, other components Between connection type, be only to be schematically illustrated, do not regard it as and be limited.The bus 1003 can be divided into address bus, Data/address bus, control bus etc..Only to be indicated with a thick line convenient for indicating, in Fig. 4, it is not intended that an only bus or A type of bus.
Memory 1001 can be volatile memory (volatile memory), such as random access memory (random-access memory, RAM);Memory 1001 is also possible to nonvolatile memory (non-volatile Memory), such as read-only memory, flash memory (flash memory), hard disk (hard disk drive, HDD) or solid State hard disk (solid-state drive, SSD) or memory 1001 can be used for carrying or storing have instruction or number According to structure type desired program code and can by any other medium of computer access, but not limited to this.Memory 1001 can be the combination of above-mentioned memory.
Processor 1002 executes the embodiment of the present invention when for calling the computer program stored in the memory 1001 What is provided consumes evidence method based on block chain.
The embodiment of the invention also provides a kind of computer storage medium, it is stored as execution needed for executing above-mentioned processor Computer executable instructions, it includes the programs for execution needed for executing above-mentioned processor.
In some possible embodiments, the various aspects for consuming evidence method based on block chain that this hair provides It is also implemented as a kind of form of program product comprising program code, when described program product is transported on a computing device When row, said program code is for making the computer equipment execute the examples various according to the present invention of this specification foregoing description Property implement provide the step consumed in evidence method based on block chain, for example, the computer equipment can execute sheet The verification method for consuming voucher based on block chain that inventive embodiments provide.
Described program product can be using any combination of one or more readable mediums.Readable medium can be readable letter Number medium or readable storage medium storing program for executing.Readable storage medium storing program for executing for example may be-but not limited to-electricity, magnetic, optical, electromagnetic, red The system of outside line or semiconductor, device or device, or any above combination.The more specific example of readable storage medium storing program for executing (non exhaustive list) includes: the electrical connection with one or more conducting wires, portable disc, hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read only memory (EPROM or flash memory), optical fiber, portable compact disc Read memory (CD-ROM), light storage device, magnetic memory device or above-mentioned any appropriate combination.
The program product for consuming evidence method based on block chain provided in embodiments of the present invention can use Portable compact disc read only memory (CD-ROM) and including program code, and can run on the computing device.However, this hair Bright program product is without being limited thereto, and in this document, readable storage medium storing program for executing can be any tangible Jie for including or store program Matter, the program can be commanded execution system, device or device use or in connection.
Readable signal medium may include in a base band or as the data-signal that carrier wave a part is propagated, wherein carrying Readable program code.The data-signal of this propagation can take various forms, including --- but being not limited to --- electromagnetism letter Number, optical signal or above-mentioned any appropriate combination.Readable signal medium can also be other than readable storage medium storing program for executing it is any can Read medium, the readable medium can send, propagate or transmit for by instruction execution system, device or device use or Program in connection.
The program code for including on readable medium can transmit with any suitable medium, including --- but being not limited to --- Wirelessly, wired, optical cable, RF etc. or above-mentioned any appropriate combination.
The program for executing operation of the present invention can be write with any combination of one or more programming languages Code, described program design language include object oriented program language-Java, C++ etc., further include conventional Procedural programming language-such as " C " language or similar programming language.Program code can be fully in user It calculates and executes in equipment, partly executes on a user device, being executed as an independent software package, partially in user's calculating Upper side point is executed on a remote computing or is executed in remote computing device or server completely.It is being related to far Journey calculates in the situation of equipment, and remote computing device can pass through the network of any kind --- including local area network (LAN) or extensively Domain net (WAN)-be connected to user calculating equipment, or, it may be connected to external computing device (such as utilize Internet service Provider is connected by internet).
It should be noted that although being referred to several unit or sub-units of device in the above detailed description, this stroke It point is only exemplary not enforceable.In fact, embodiment according to the present invention, it is above-described two or more The feature and function of unit can embody in a unit.Conversely, the feature and function of an above-described unit can It is to be embodied by multiple units with further division.
In addition, although describing the operation of the method for the present invention in the accompanying drawings with particular order, this do not require that or Hint must execute these operations in this particular order, or have to carry out shown in whole operation be just able to achieve it is desired As a result.Additionally or alternatively, it is convenient to omit multiple steps are merged into a step and executed by certain steps, and/or by one Step is decomposed into execution of multiple steps.
It should be understood by those skilled in the art that, the embodiment of the present invention can provide as method, system or computer program Product.Therefore, complete hardware embodiment, complete software embodiment or reality combining software and hardware aspects can be used in the present invention Apply the form of example.Moreover, it wherein includes the computer of computer usable program code that the present invention, which can be used in one or more, The computer program implemented in usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) produces The form of product.
The present invention be referring to according to the method for the embodiment of the present invention, the process of equipment (system) and computer program product Figure and/or block diagram describe.It should be understood that every one stream in flowchart and/or the block diagram can be realized by computer program instructions The combination of process and/or box in journey and/or box and flowchart and/or the block diagram.It can provide these computer programs Instruct the processor of general purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices to produce A raw machine, so that being generated by the instruction that computer or the processor of other programmable data processing devices execute for real The device for the function of being specified in present one or more flows of the flowchart and/or one or more blocks of the block diagram.
These computer program instructions, which may also be stored in, is able to guide computer or other programmable data processing devices with spy Determine in the computer-readable memory that mode works, so that it includes referring to that instruction stored in the computer readable memory, which generates, Enable the manufacture of device, the command device realize in one box of one or more flows of the flowchart and/or block diagram or The function of being specified in multiple boxes.
These computer program instructions also can be loaded onto a computer or other programmable data processing device, so that counting Series of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, thus in computer or The instruction executed on other programmable devices is provided for realizing in one or more flows of the flowchart and/or block diagram one The step of function of being specified in a box or multiple boxes.
Although preferred embodiments of the present invention have been described, it is created once a person skilled in the art knows basic Property concept, then additional changes and modifications can be made to these embodiments.So it includes excellent that the following claims are intended to be interpreted as It selects embodiment and falls into all change and modification of the scope of the invention.
Obviously, various changes and modifications can be made to the invention without departing from essence of the invention by those skilled in the art Mind and range.In this way, if these modifications and changes of the present invention belongs to the range of the claims in the present invention and its equivalent technologies Within, then the present invention is also intended to include these modifications and variations.

Claims (11)

1. a kind of verification method for consuming voucher applied to block chain characterized by comprising
The side of checking and writing off obtain that user provides to the voucher checked and write off;There is executed each time record in the voucher checks and writes off record;
The side of checking and writing off obtains the registration of checking and writing off of the voucher from block chain, described to check and write off record in registration and have the first Hash Hash value;First hash value be the voucher it is upper once check and write off after generated according to all executed records of checking and writing off;
It is described check and write off root according to executed each time in the voucher check and write off record generate the second hash value;
The side of checking and writing off determines that the voucher can be used for core when confirming that first hash value is consistent with second hash value Pin.
2. the method as described in claim 1, which is characterized in that described check and write off in record further includes the last side of checking and writing off checked and write off Signature is checked and write off to what first hash value was signed;
The side of checking and writing off determines that the voucher can be used for core when confirming that first hash value is consistent with second hash value Pin, comprising:
The side of checking and writing off obtained from the voucher it is last check and write off check and write off record;
The root of checking and writing off carries out the signature of checking and writing off according to the organization information of checking and writing off checked and write off in record that the last time checks and writes off Verifying;
The side of checking and writing off is confirming that first hash value is consistent with second hash value and described check and write off signature verification and passes through When, determine that the voucher can be used for checking and writing off.
3. the method as described in claim 1, which is characterized in that after the side of checking and writing off determines that the voucher can be used for checking and writing off, Further include:
The locking request checked and write off the return of user described in direction and be directed to the voucher;The locking request is raw for the user The block chain is uploaded at locking signature and by locking signature;The locking signature is used to indicate the block chain for institute The lock state checked and write off in registration is stated to be set as lock-in state and record the locking signature in registration in described check and write off;
The side of checking and writing off receives the locking success response that the user sends;The locking success response is for triggering described check and write off Fang Jinhang checks and writes off.
4. the method as described in claim 1, which is characterized in that the side of checking and writing off receives the locking that the user sends and successfully rings Ying Hou, further includes:
After the side's of checking and writing off verifying locking signature is legal, the corresponding side's of the checking and writing off record of request is checked and write off described in generation;
The side of checking and writing off record is sent to the user by the side of checking and writing off;
The side of checking and writing off obtains user side's record that the user returns;
It is described check and write off root side of checking and writing off described in record and the user side record determine described in check and write off and request corresponding to check and write off note Record;
The root of checking and writing off checks and writes off record according to executed each time in the voucher and described check and write off request and corresponding check and write off note Record generates third hash value;
The first hash value checked and write off in registration that the side of checking and writing off updates voucher described in the block chain is the 3rd Hash Value.
5. method as claimed in claim 4, which is characterized in that the method also includes:
The write state of the voucher is revised as unlocking by the side of checking and writing off, and the locking is signed, block chain is written;
It is described check and write off user described in direction return check and write off successful response.
6. method as claimed in claim 4, which is characterized in that the side of checking and writing off by first hash value on block chain, It is updated to before the third hash value, further includes:
The write state of the voucher on the block chain is inquired by the side of checking and writing off;
If it is determined that said write state is unlock, then the instruction relocked is returned to the user, and will be in the voucher After described second checks and writes off record deletion, it is back to the user.
7. the method as described in claim 1, which is characterized in that the side of checking and writing off obtains checking and writing off for the voucher from block chain Before registration, further includes:
What the side of checking and writing off obtained that the user sends the voucher checks and writes off request;The voucher check and write off request include it is described with Number is signed and checked and write off to the attribute of card;
The root of checking and writing off determines that the residue of the voucher can use number according to the voucher;
Checking and writing off number and whether being less than or equal to the residue of the voucher and can use number for request is checked and write off described in the side of checking and writing off verifying;
The side of checking and writing off obtains the public key of the publisher of the voucher from block chain, and whether the attribute signature for verifying the voucher closes Method.
8. the method for claim 7, which is characterized in that the method also includes:
The check value for checking and writing off request checked and write off user described in direction and send the voucher;The check value is checked and write off for described Checking and writing off for request is checked and write off described in Fang Shengcheng to record and described check and write off record for what the side of checking and writing off described in the user's checking generated.
9. a kind of verifying device for consuming voucher applied to block chain characterized by comprising
Transmit-Receive Unit, for obtain user's offer to the voucher checked and write off;Record has executed each secondary core in the voucher Write off record;Obtain the registration of checking and writing off of the voucher from block chain, it is described to check and write off record in registration and have the first Hash values;Institute State the first hash value be the voucher it is upper once check and write off after generated according to all executed records of checking and writing off;
Processing unit generates the second hash value for checking and writing off record according to executed each time in the voucher;In confirmation institute State the first hash value it is consistent with second hash value when, determine that the voucher can be used for checking and writing off.
10. a kind of computer storage medium, which is characterized in that the computer readable storage medium includes computer program, when When computer program is run on computers, so that the computer executes method as described in any of the claims 1 to 8.
11. a kind of computer program product comprising instruction, which is characterized in that when described instruction is run on computers, make It obtains the computer and executes method as described in any of the claims 1 to 8.
CN201910427763.7A 2019-05-22 2019-05-22 A kind of verification method and device for consuming voucher applied to block chain Pending CN110188572A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201910427763.7A CN110188572A (en) 2019-05-22 2019-05-22 A kind of verification method and device for consuming voucher applied to block chain
PCT/CN2020/082204 WO2020233236A1 (en) 2019-05-22 2020-03-30 Verification method and device of consumable certificates applied to block chain

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910427763.7A CN110188572A (en) 2019-05-22 2019-05-22 A kind of verification method and device for consuming voucher applied to block chain

Publications (1)

Publication Number Publication Date
CN110188572A true CN110188572A (en) 2019-08-30

Family

ID=67717200

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910427763.7A Pending CN110188572A (en) 2019-05-22 2019-05-22 A kind of verification method and device for consuming voucher applied to block chain

Country Status (2)

Country Link
CN (1) CN110188572A (en)
WO (1) WO2020233236A1 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111522829A (en) * 2020-04-14 2020-08-11 深圳市启迪网络科技有限公司 Method for realizing distributed lock on block chain
CN111985918A (en) * 2020-07-27 2020-11-24 王李琰 Block chain-based electronic certificate circulation management method and system and block chain platform
WO2020233236A1 (en) * 2019-05-22 2020-11-26 深圳前海微众银行股份有限公司 Verification method and device of consumable certificates applied to block chain

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114826653B (en) * 2022-03-10 2024-04-16 蚂蚁区块链科技(上海)有限公司 Credential verification method, system, device, equipment and storage medium based on blockchain network

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170085562A1 (en) * 2015-09-18 2017-03-23 Case Wallet, Inc. Biometric data hashing, verification and security
TWI608434B (en) * 2016-12-20 2017-12-11 Chunghwa Telecom Co Ltd Decentralized electronic transaction record method and system with traceability verification mechanism
US20180227293A1 (en) * 2015-08-03 2018-08-09 Coinplug Inc. Certificate issuing system based on block chain
CN109146583A (en) * 2018-07-24 2019-01-04 腾讯科技(深圳)有限公司 bill processing method and device, storage medium and electronic device
US20190012695A1 (en) * 2017-07-06 2019-01-10 Mastercard International Incorporated Method and system for electronic vouchers via blockchain
CN109447601A (en) * 2018-10-11 2019-03-08 上海保险交易所股份有限公司 The method of eye-witness's transfer transactions is executed in block chain network
CN109559164A (en) * 2018-11-19 2019-04-02 泰康保险集团股份有限公司 Favor information processing method, device, electronic equipment and computer-readable medium

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110188572A (en) * 2019-05-22 2019-08-30 深圳前海微众银行股份有限公司 A kind of verification method and device for consuming voucher applied to block chain

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20180227293A1 (en) * 2015-08-03 2018-08-09 Coinplug Inc. Certificate issuing system based on block chain
US20170085562A1 (en) * 2015-09-18 2017-03-23 Case Wallet, Inc. Biometric data hashing, verification and security
TWI608434B (en) * 2016-12-20 2017-12-11 Chunghwa Telecom Co Ltd Decentralized electronic transaction record method and system with traceability verification mechanism
US20190012695A1 (en) * 2017-07-06 2019-01-10 Mastercard International Incorporated Method and system for electronic vouchers via blockchain
CN109146583A (en) * 2018-07-24 2019-01-04 腾讯科技(深圳)有限公司 bill processing method and device, storage medium and electronic device
CN109447601A (en) * 2018-10-11 2019-03-08 上海保险交易所股份有限公司 The method of eye-witness's transfer transactions is executed in block chain network
CN109559164A (en) * 2018-11-19 2019-04-02 泰康保险集团股份有限公司 Favor information processing method, device, electronic equipment and computer-readable medium

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2020233236A1 (en) * 2019-05-22 2020-11-26 深圳前海微众银行股份有限公司 Verification method and device of consumable certificates applied to block chain
CN111522829A (en) * 2020-04-14 2020-08-11 深圳市启迪网络科技有限公司 Method for realizing distributed lock on block chain
CN111522829B (en) * 2020-04-14 2023-11-28 深圳市启迪网络科技有限公司 Method for realizing distributed lock on block chain
CN111985918A (en) * 2020-07-27 2020-11-24 王李琰 Block chain-based electronic certificate circulation management method and system and block chain platform

Also Published As

Publication number Publication date
WO2020233236A1 (en) 2020-11-26

Similar Documents

Publication Publication Date Title
US11669811B2 (en) Blockchain-based digital token utilization
CN108833081B (en) Block chain-based equipment networking authentication method
JP7241216B2 (en) Computer-implemented method and system for validating tokens for blockchain-based cryptocurrencies
CN108781161B (en) Method for controlling and distributing blockchain implementation of digital content
JP2022166214A (en) System and method for controlling asset-related actions via blockchain
CN112037068B (en) Resource transfer method, system, device, computer equipment and storage medium
CN110188572A (en) A kind of verification method and device for consuming voucher applied to block chain
CN109325747B (en) Remittance method and device based on block chain
CN109241778A (en) A kind of public transport data processing method and device based on block chain
BR112019008058A2 (en) information protection system and method
TW201944757A (en) Computer-implemented system and method suitable for increasing the security of instant off-line blockchain transactions
CN110188550A (en) A kind of data verification method and device of block chain
EP4362388A2 (en) Computer-implemented systems and methods relating to a binary blockchain comprising a pair of coupled blockchains
US20200134719A1 (en) Distributed ledger implementation for entity formation and monitoring system
CN110659906A (en) Bill information processing method, related device and medium
CN110930152B (en) Data processing method based on block chain and related equipment
CN109767217A (en) Digital asset, server, terminal and digital asset method of commerce
JP2023536163A (en) blockchain token
CN113221191A (en) Block chain-based data evidence storage method, device, equipment and storage medium
CN110351292B (en) Private key management method, device, equipment and storage medium
KR102376783B1 (en) The blockchain-based transaction history confirmation system
US20210374843A1 (en) Debt Resource Management in a Distributed Ledger System
CN110163754B (en) Method, client, blockchain and system for realizing coinage transaction in Fabric blockchain
CN111242785A (en) Bill processing method and device, electronic equipment and storage medium
Zhang et al. FutureText: A blockchain-based contract signing prototype with security and convenience

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