Summary of the invention
A kind of true from false of bills verification method and device and electronic equipment based on block chain that this specification embodiment provides:
According to this specification embodiment in a first aspect, providing a kind of true from false of bills verification method based on block chain, institute
State the corresponding relationship being stored between invoice and the digital digest of invoice in block chain, which comprises
The fake certification for invoice to be identified that client is submitted is received to request;
It is requested in response to the fake certification, calculates the digital digest of the invoice to be identified, and inquire the block chain
In whether store target invoice corresponding with the digital digest;
If storing target invoice corresponding with the digital digest in the block chain, Xiang Suoshu client returns to institute
Stating invoice to be identified is genuine verification result.
Optionally, the method also includes:
Receive the invoice request to create that client is submitted;Wherein, the invoice request to create includes the invoice of user's input
Create information;
In response to the invoice request to create, the invoice creation for calling publication to state in the intelligent contract on block chain is patrolled
Volume, information creating invoice is created based on the invoice;And
The digital digest of the invoice is calculated, and by the corresponding relationship of the invoice and the digital digest of the invoice in institute
It states and is stored in block chain.
Optionally, described to be requested in response to the fake certification, the digital digest of the invoice to be identified is calculated, and inquire
Whether with the digital digest corresponding target invoice is stored in the block chain, comprising:
It is requested in response to the fake certification, the invoice validation for calling publication to state in the intelligent contract on block chain is patrolled
Volume, the digital digest of the invoice to be identified is calculated, and inquire in the block chain and whether store and the digital digest pair
The target invoice answered.
Optionally, the method also includes:
If storing target data corresponding with the digital digest in the block chain, Xiang Suoshu client returns to institute
State target invoice.
Optionally, the digital digest of the invoice includes:
For the invoice content of the invoice;It is calculated alternatively, the unique information in the invoice content carries out hash
The hash value arrived.
Optionally, the fake certification request includes the invoice content of the invoice to be identified;Alternatively, the invoice content
In unique information;
The digital digest for calculating the invoice to be identified, comprising:
Obtain the invoice content of the invoice to be identified in the fake certification request;Alternatively, in the invoice content
Unique information;
For the invoice content of the invoice to be identified got;Alternatively, the unique information in the invoice content
It carries out hash and hash value is calculated.
Optionally, the block chain is alliance's chain.
According to the second aspect of this specification embodiment, a kind of true from false of bills verifying device based on block chain, institute are provided
The corresponding relationship being stored between invoice and the digital digest of invoice in block chain is stated, described device includes:
Receiving unit receives the fake certification for invoice to be identified that client is submitted and requests;
Authentication unit is requested in response to the fake certification, calculates the digital digest of the invoice to be identified, and inquires institute
It states and whether stores target invoice corresponding with the digital digest in block chain;
Return unit, if storing target invoice corresponding with the digital digest in the block chain, to the visitor
It is genuine verification result that family end, which returns to the invoice to be identified,.
Optionally, described device further include:
Request to create receiving unit receives the invoice request to create that client is submitted;Wherein, the invoice request to create packet
Include the invoice creation information of user's input;
Invoice creates response unit, in response to the invoice request to create, calls intelligent contract of the publication on block chain
The invoice of middle statement creates logic, creates information creating invoice based on the invoice;And it calculates the number of the invoice and plucks
It wants, and the corresponding relationship of the invoice and the digital digest of the invoice is stored in the block chain.
Optionally, the authentication unit, specifically includes:
It is requested in response to the fake certification, the invoice validation for calling publication to state in the intelligent contract on block chain is patrolled
Volume, the digital digest of the invoice to be identified is calculated, and inquire in the block chain and whether store and the digital digest pair
The target invoice answered.
Optionally, described device further include:
Return unit is inquired, if storing target data corresponding with the digital digest in the block chain, to institute
It states client and returns to the target invoice.
Optionally, the digital digest of the invoice includes:
For the invoice content of the invoice;It is calculated alternatively, the unique information in the invoice content carries out hash
The hash value arrived.
Optionally, the fake certification request includes the invoice content of the invoice to be identified;Alternatively, the invoice content
In unique information;
The digital digest for calculating the invoice to be identified, comprising:
Obtain the invoice content of the invoice to be identified in the fake certification request;Alternatively, in the invoice content
Unique information;
For the invoice content of the invoice to be identified got;Alternatively, the unique information in the invoice content
It carries out hash and hash value is calculated.
Optionally, the block chain is alliance's chain.
According to the 5th of this specification embodiment the aspect, a kind of electronic equipment is provided, comprising:
Processor;
Memory for storage processor executable instruction;
Wherein, the processor is configured to true from false of bills verification method of any of the above-described based on block chain.
This specification embodiment provides a kind of true from false of bills proof scheme based on block chain, in advance by invoice and hair
The digital digest of ticket is stored into block chain;Because there is the feature that can not be distorted, and number in the data stored in block chain
The unique features (i.e. the corresponding initial data of a digital digest) that abstract has;Therefore, it can be based on storing in block chain
Invoice digital digest carry out fake certification.Specifically, user only needs to upload invoice to be identified, if institute can be inquired
State the corresponding target invoice of digital digest that invoice to be identified is stored in block chain, so that it may illustrate invoice to be identified and target
Invoice is identical, and then can illustrate that invoice to be identified is true, otherwise is false.
Specific embodiment
Example embodiments are described in detail here, and the example is illustrated in the accompanying drawings.Following description is related to
When attached drawing, unless otherwise indicated, the same numbers in different drawings indicate the same or similar elements.Following exemplary embodiment
Described in embodiment do not represent all embodiments consistent with this specification.On the contrary, they are only and such as institute
The example of the consistent device and method of some aspects be described in detail in attached claims, this specification.
It is only to be not intended to be limiting this explanation merely for for the purpose of describing particular embodiments in the term that this specification uses
Book.The "an" of used singular, " described " and "the" are also intended to packet in this specification and in the appended claims
Most forms are included, unless the context clearly indicates other meaning.It is also understood that term "and/or" used herein is
Refer to and includes that one or more associated any or all of project listed may combine.
It will be appreciated that though various information may be described using term first, second, third, etc. in this specification, but
These information should not necessarily be limited by these terms.These terms are only used to for same type of information being distinguished from each other out.For example, not taking off
In the case where this specification range, the first information can also be referred to as the second information, and similarly, the second information can also be claimed
For the first information.Depending on context, word as used in this " if " can be construed to " ... when " or
" when ... " or " in response to determination ".
Invoice (Invoice) can refer to all units or individual in purchasing and selling commodities, offer or receive service and be engaged in
In other business activities, the business voucher issuing and collect.Invoice is usually the original foundation of accounting, and audit machine
It closes, the important evidence of tax authority's examination of law enforcement.For company, invoice is mainly the foundation that account is done by company, is also simultaneously
The expense voucher paid taxes;And for employee, invoice can mainly be used to submit an expense account.
Invoice provides or receives the feelings of false invoice due to being related to the relevant benefits such as pay taxes, submit an expense account in actual life
It happens occasionally under condition.The general tax bureau can provide the examination of true from false of bills, however due to being limited by professional knowledge, commonly
User can't arrive the tax bureau and check;This is easy for being utilized by some illegal businessmans, these businessmans can provide to evade a tax
False invoice is to user.It can be seen that, it is desirable to provide the simple and reliable invoice anticounterfeiting proof scheme of one kind inquires invoice for user at any time
The true and false.
This description presents a kind of true from false of bills proof scheme based on block chain, by advance by invoice and invoice
Digital digest is stored into block chain;Because there is the feature that can not be distorted and digital digest in the data stored in block chain
The unique features (i.e. the corresponding initial data of a digital digest) having;It therefore, can be based on the hair stored in block chain
The digital digest of ticket carries out fake certification.Specifically, user only needs to upload invoice to be identified, if the area can be inquired
The corresponding target invoice of digital digest of invoice to be identified is stored in block chain, so that it may illustrate invoice to be identified and target invoice
It is identical, and then can illustrate that invoice to be identified is true, on the contrary it is false.
Referring to FIG. 1, Fig. 1 is the stream for the true from false of bills verification method based on block chain that one embodiment of this specification provides
Cheng Tu, the corresponding relationship being stored in the block chain between invoice and the digital digest of invoice, which comprises
Step 110: receiving the fake certification for invoice to be identified that client is submitted and request;
Step 120: being requested in response to the fake certification, calculate the digital digest of the invoice to be identified, and inquire institute
It states and whether stores target invoice corresponding with the digital digest in block chain;
Step 130: if storing target invoice corresponding with the digital digest, Xiang Suoshu client in the block chain
It is genuine verification result that end, which returns to the invoice to be identified,.
The block chain described in this specification can specifically include privately owned chain, shared chain and alliance's chain etc., in this theory
Without being particularly limited in bright book.
For example, in one scenario, above-mentioned block chain specifically can be by total portion mechanism, branch, agency etc.
Alliance's chain as allied member's composition;The operator of alliance's chain can rely on alliance's chain, corresponding to dispose
Business;And described above as total portion mechanism of allied member, branch, agency it all can serve as above-mentioned business
A service node.Each service node can by produced by itself or receive with invoice and digital digest to hand over
Easy form is issued in alliance's chain, and in the transaction after the common recognition processing of the common recognition node in alliance's chain,
Distributed data base in alliance's chain is stored, and " cochain " for completing above-mentioned Transaction Information deposits card.
Wherein, it should be noted that transaction (Transact ion) described in this specification refers to and passes through block
The client of chain creates, and a data for needing finally to be distributed in the distributed data base of block chain.
Usually there is point of the transaction of narrow sense and the transaction of broad sense in the transaction in block chain.The transaction of narrow sense refers to use
The value Transfer that family is issued to block chain;For example, transaction can be user and exist in traditional bit coin block chain network
One initiated in block chain transfers accounts.And the transaction of broad sense refers to the industry being intended to business that user issues to block chain
Business data;For example, operator can build alliance's chain based on actual business demand, rely on the deployment of alliance's chain it is some with
Unrelated other types of line service (for example, depositing card business, fake certification business etc.) of value Transfer, and in this kind of alliance's chain
In, transaction can be the service message or service request with business intention that user issues in alliance's chain.
Above-mentioned client may include any type of underlying services data stored using in block chain as data branch
Support, to realize the upper layer application of specific business function.
In block chain technology, block chain interior joint carries out operation to block and usually requires to rely on corresponding intelligent contract
(Smart contract).Such as the operations such as storage, modification, deletion are required to rely on intelligent contract in block chain.The intelligence
Can contract can be it is a kind of be intended to apply contract is propagated, verified or executed in a manner of information-based can be deployed on block chain
Computer protocol.By stating that service logic may be implemented to execute corresponding operating in intelligent contract.Intelligent contract allows
Do not have to carry out credible transaction in third-party situation.These transaction are traceable and irreversible.Intelligent contract, which is capable of providing, to be better than
The safety of traditional contracts method, and reduce other transaction costs relevant to contract.In general, intelligent contract can be and be deployed in area
Block chain node is local, can call corresponding intelligent contract when node needs to be implemented some movement, run intelligent contract with
The service logic stated in intelligent contract is executed, to obtain implementing result.
Digital digest described in this specification can refer to that (hash also referred to as dissipates based on initial data progress Hash
Column) calculate after obtained hash value.
Specifically, the digital digest of the invoice includes:
For the invoice content of the invoice;It is calculated alternatively, the unique information in the invoice content carries out hash
The hash value arrived.
Wherein, the invoice content may include unique information.For example, invoice content may include invoice number, hair
Ticket code;Usual invoice number and invoice codes are unique informations;Corresponding, the digital digest of invoice can be denoted as hash
(invoice number+invoice codes).Certainly, invoice content can also include nonuniqueness information, such as the date of invoice, be free of tax
Volume;Corresponding, the digital digest of invoice can be denoted as hash (invoice number+invoice codes+date of invoice+be free of tax
Volume).
Correspondingly, the fake certification request includes the invoice content of the invoice to be identified;Alternatively, the invoice content
In unique information;
The digital digest for calculating the invoice to be identified, comprising:
Obtain the invoice content of the invoice to be identified in the fake certification request;Alternatively, in the invoice content
Unique information;
For the invoice content of the invoice to be identified got;Alternatively, the unique information in the invoice content
It carries out hash and hash value is calculated.
As previously mentioned, invoice is carried out cochain in advance by this specification, in one embodiment, the method also includes:
Receive the invoice request to create that client is submitted;Wherein, the invoice request to create includes the invoice of user's input
Create information;
In response to the invoice request to create, the invoice creation for calling publication to state in the intelligent contract on block chain is patrolled
Volume, information creating invoice is created based on the invoice;And
The digital digest of the invoice is calculated, and by the corresponding relationship of the invoice and the digital digest of the invoice in institute
It states and is stored in block chain.
It is noted that calculating the number of invoice when the aforementioned digital digest for calculating the invoice to be identified and creation invoice
Word is made a summary using identical hash algorithm.
It is illustrated below in conjunction with the schematic diagram of invoice cochain shown in Fig. 2:
In the present embodiment, user can pass through client used in it when needing to create invoice in the block chain
End initiates one for creating the transaction of invoice, i.e., initiates invoice request to create by client.Specifically, which can lead to
The invoice creation page for crossing client offer inputs the invoice creation information of target invoice to be created;For example, the lift of invoice
The information such as head, the amount of money.After the input that the user completes invoice creation information, which can be based on the invoice of user's input
Information is created to generate corresponding invoice request to create, and the node that the invoice request to create is sent in the block chain is set
It is standby.
Node device in the block chain can carry out the invoice request to create after receiving the invoice request to create
Response, the invoice creation logic for calling publication to state in the intelligent contract on block chain, based on the hair in invoice request to create
Ticket creates information creating invoice;And after completing invoice creation, the digital digest of the invoice can be further calculated, and will
The corresponding relationship of the digital digest of the invoice and the invoice is stored in the block chain.
In one embodiment, in response to the node device of the invoice request to create, it can also first determine and be created with the invoice
It builds and requests the invoice creation amount of corresponding invoice issuing side whether sufficient.
For example, it can obtain invoice from the invoice creation information that the user in the invoice request to create inputs and open
The Taxpayer Identification Number of tool side, and determine that corresponding invoice issuing side, the invoice issuing side are based on the Taxpayer Identification Number
The corresponding invoice issuing side of invoice request to create.It is subsequent, it can first determine whether the invoice of the invoice issuing side creates amount
It is sufficient.
In a kind of embodiment shown, the intelligent contract being deployed on the block chain can be called by the node device
The amount of middle statement checks logic, determines whether the invoice creation amount of the invoice issuing side is sufficient.
Wherein, amount checks that logic specifically can be statement in the intelligence contract, with the hair for checking invoice issuing side
Ticket creates the relevant program code of execution logic (such as: some program technics or function for calling) of amount.
Alternatively, third-party trusted service can also be called by the node device, which is sent to this
Third-party trusted service.Wherein, third-party trusted service, which can be, is deployed in third-party trusted service equipment, with
Check the relevant program code of execution logic of the invoice creation amount of invoice issuing side.For example, this is third-party credible
Service equipment can be the equipment in tax intraoffice network, it is possible thereby to improve Information Security.
The third-party trusted service can determine whether the invoice creation amount of the invoice issuing side is sufficient, and will determine
As a result it is back to the node device.The node device can be based on the determination that the third-party trusted service returns as a result, determining
Whether the invoice creation amount of the invoice issuing side is sufficient.
Specifically, the third-party trusted service can determine the invoice issuing side invoice create amount abundance when,
The definitive result of the invoice creation amount abundance of the invoice issuing side is returned to the node device.The node device is receiving this
After definitive result, it can determine that the invoice creation amount of the invoice issuing side is sufficient.Alternatively, the third-party trusted service can be with
When the invoice creation amount for determining the invoice issuing side is inadequate, the invoice wound of the invoice issuing side is returned to the node device
Build the insufficient definitive result of amount.The node device can determine the invoice issuing side after receiving the definitive result
It is inadequate that invoice creates amount.
If it is determined that the invoice creation amount of the invoice issuing side is sufficient, then the intelligence being deployed on the block chain can be called
The invoice creation logic stated in energy contract, creates information based on the invoice that user in the invoice request to create inputs, creates mesh
Mark invoice.
Wherein, invoice creation logic specifically can be statement in the intelligence contract, the execution logic with creation invoice
Relevant program code.
In another embodiment, the invoice can be by be originally generated invoice mechanism provide.Such as can be by
First invoice data of invoice is directly or indirectly uploaded to block chain by the national taxation bureau.Specifically, when an equipment of drawing a bill is opened
Has an a/d, which is also recorded in the system of the tax bureau, and the tax system of the tax bureau can synchronize will be on invoice
Chain deposits card.Wherein the cochain deposit card process embodiment as previously described it is identical, be not discussed here.
As shown in Fig. 2, after invoice A, invoice B and invoice C cochain, can have been recorded in block chain invoice A hash and
The mapping relations of invoice A data;The mapping relations of invoice B hash and invoice B data;Invoice C hash and invoice C data reflect
Penetrate relationship.
The process that invoice anticounterfeiting is verified in this specification introduced below:
User knows true from false of bills after the receipt of invoice if necessary, can be using the invoice as invoice to be identified, and can
To submit the fake certification for invoice to be identified to request to block chain by client, to be invoked at the use disposed on block chain
In the intelligent contract of invoice anticounterfeiting verifying, the true and false of the invoice to be identified is verified.
In one implementation, such as preceding creation invoice is similar, and user can input invoice to be verified on the client
Invoice content or invoice content in unique information (below by the unique information in invoice content or invoice content
Referred to as invoice data), and the invoice data of input is carried in the fake certification request that client is sent;It is sent to block
Node device in chain verifies the true of invoice to be identified to trigger the intelligent contract that the node device in block chain calls deployment
It is pseudo-.That is, block chain interior joint equipment can directly receive invoice data.
In another implementation, user can take pictures to invoice to be identified, acquire the invoice of invoice to be identified
Image, and image recognition is carried out to collected invoice image on the client or in third party's identifying system, to identify
Invoice data, and the invoice data obtained by image recognition is carried in the fake certification request that client is sent, it sends
Hair to be identified is verified to the node device in block chain to trigger the intelligent contract that the node device in block chain calls deployment
The true and false of ticket.
Wherein, image recognition is carried out to the image data of collected invoice, it specifically can be by being deployed in block chain
Intelligent contract is completed, and can also be completed by calling third-party trusted service.
In one embodiment, according to image recognition algorithm, the invoice data in the invoice image is identified.The embodiment
In, intelligent contract itself has the contract logic of image recognition, can locally identify the invoice number in invoice image in node
According to.
In one embodiment, the method also includes:
Node device can also will be prevented by calling third-party trusted service (such as third-party image recognition mechanism)
Invoice image in pseudo- checking request is sent to third party's trusted service, the image recognition by third party's trusted service based on carrying
Algorithm carries out image recognition to invoice image and obtains above-mentioned invoice data, and the available third party's image of node device
The invoice data that identification mechanism returns.In the embodiment, third party's image recognition mechanism image recognition can be transferred to complete, from
And reduce the requirement (and not all node can have image recognition needed for computing resource) to joint behavior.
In one embodiment, node device can call publication after getting the invoice data in fake certification request
The invoice validation logic stated in intelligent contract on block chain, calculates the digital digest of the invoice to be identified, and inquires
Whether with the digital digest corresponding target invoice is stored in the block chain.
If storing target invoice corresponding with the digital digest in the block chain, illustrate that invoice to be identified exists
Block chain deposits card;It therefore can be that genuine verification result returns to the client by the invoice to be identified;Further, such as
Target data corresponding with the digital digest is stored in block chain described in fruit, Xiang Suoshu client returns to the target hair
Ticket, so that client is checked.
If inquiring target invoice corresponding less than the digital digest in the block chain, illustrate that invoice to be identified does not have
Card is deposited on block chain, therefore can be that false verification result returns to the client by the invoice to be identified.
This description presents a kind of true from false of bills proof scheme based on block chain, by advance by invoice and invoice
Digital digest is stored into block chain;Because there is the feature that can not be distorted and digital digest in the data stored in block chain
The unique features (i.e. the corresponding initial data of a digital digest) having;It therefore, can be based on the hair stored in block chain
The digital digest of ticket carries out fake certification.Specifically, user only needs to upload invoice to be identified, if the area can be inquired
The corresponding target invoice of digital digest of invoice to be identified is stored in block chain, so that it may illustrate invoice to be identified and target invoice
It is identical, and then can illustrate that invoice to be identified is true, on the contrary it is false.
Corresponding with the aforementioned true from false of bills verification method embodiment based on block chain, this specification is additionally provided based on area
The embodiment of the true from false of bills verifying device of block chain.Described device embodiment can also pass through hardware by software realization
Or the mode of software and hardware combining is realized.It taking software implementation as an example, is by where it as the device on a logical meaning
Computer business program instruction corresponding in nonvolatile memory is read into memory what operation was formed by the processor of equipment.
For hardware view, as shown in figure 3, one kind of equipment where verifying device based on the true from false of bills of block chain for this specification
Hardware structure diagram fills in embodiment other than processor shown in Fig. 3, network interface, memory and nonvolatile memory
Equipment where setting verifies actual functional capability generally according to the true from false of bills based on block chain, can also include other hardware, to this
It repeats no more.
Fig. 4 is referred to, the module of device is verified for the true from false of bills based on block chain that one embodiment of this specification provides
Figure, described device have corresponded to embodiment illustrated in fig. 1, pair being stored between invoice and the digital digest of invoice in the block chain
It should be related to, described device includes:
Receiving unit 210 receives the fake certification for invoice to be identified that client is submitted and requests;
Authentication unit 220 is requested in response to the fake certification, calculates the digital digest of the invoice to be identified, and is looked into
It askes and whether stores target invoice corresponding with the digital digest in the block chain;
Return unit 230, if storing target invoice corresponding with the digital digest, Xiang Suoshu in the block chain
It is genuine verification result that client, which returns to the invoice to be identified,.
Optionally, described device further include:
Request to create receiving unit receives the invoice request to create that client is submitted;Wherein, the invoice request to create packet
Include the invoice creation information of user's input;
Invoice creates response unit, in response to the invoice request to create, calls intelligent contract of the publication on block chain
The invoice of middle statement creates logic, creates information creating invoice based on the invoice;And it calculates the number of the invoice and plucks
It wants, and the corresponding relationship of the invoice and the digital digest of the invoice is stored in the block chain.
Optionally, the authentication unit 220, specifically includes:
It is requested in response to the fake certification, the invoice validation for calling publication to state in the intelligent contract on block chain is patrolled
Volume, the digital digest of the invoice to be identified is calculated, and inquire in the block chain and whether store and the digital digest pair
The target invoice answered.
Optionally, described device further include:
Return unit is inquired, if storing target data corresponding with the digital digest in the block chain, to institute
It states client and returns to the target invoice.
Optionally, the digital digest of the invoice includes:
For the invoice content of the invoice;It is calculated alternatively, the unique information in the invoice content carries out hash
The hash value arrived.
Optionally, the fake certification request includes the invoice content of the invoice to be identified;Alternatively, the invoice content
In unique information;
The digital digest for calculating the invoice to be identified, comprising:
Obtain the invoice content of the invoice to be identified in the fake certification request;Alternatively, in the invoice content
Unique information;
For the invoice content of the invoice to be identified got;Alternatively, the unique information in the invoice content
It carries out hash and hash value is calculated.
Optionally, the block chain is alliance's chain.
System, device, module or the unit that above-described embodiment illustrates can specifically realize by computer chip or entity,
Or it is realized by the product with certain function.A kind of typically to realize that equipment is computer, the concrete form of computer can
To be personal computer, laptop computer, cellular phone, camera phone, smart phone, personal digital assistant, media play
In device, navigation equipment, E-mail receiver/send equipment, game console, tablet computer, wearable device or these equipment
The combination of any several equipment.
The function of each unit and the realization process of effect are specifically detailed in the above method and correspond to step in above-mentioned apparatus
Realization process, details are not described herein.
For device embodiment, since it corresponds essentially to embodiment of the method, so related place is referring to method reality
Apply the part explanation of example.The apparatus embodiments described above are merely exemplary, wherein described be used as separation unit
The unit of explanation may or may not be physically separated, and component shown as a unit can be or can also be with
It is not physical unit, it can it is in one place, or may be distributed over multiple network units.It can be according to actual
The purpose for needing to select some or all of the modules therein to realize this specification scheme.Those of ordinary skill in the art are not
In the case where making the creative labor, it can understand and implement.
Figure 4 above describes inner function module and the structural representation of the verifying device of the true from false of bills based on block chain,
Substantial executing subject can be a kind of electronic equipment, comprising:
Processor;
Memory for storage processor executable instruction;
Wherein, the processor is configured to:
The fake certification for invoice to be identified that client is submitted is received to request;
It is requested in response to the fake certification, calculates the digital digest of the invoice to be identified, and inquire the block chain
In whether store target invoice corresponding with the digital digest;Wherein, invoice and invoice are stored in the block chain
Corresponding relationship between digital digest;
If storing target invoice corresponding with the digital digest in the block chain, Xiang Suoshu client returns to institute
Stating invoice to be identified is genuine verification result.
Optionally, further includes:
Receive the invoice request to create that client is submitted;Wherein, the invoice request to create includes the invoice of user's input
Create information;
In response to the invoice request to create, the invoice creation for calling publication to state in the intelligent contract on block chain is patrolled
Volume, information creating invoice is created based on the invoice;And
The digital digest of the invoice is calculated, and by the corresponding relationship of the invoice and the digital digest of the invoice in institute
It states and is stored in block chain.
Optionally, described to be requested in response to the fake certification, the digital digest of the invoice to be identified is calculated, and inquire
Whether with the digital digest corresponding target invoice is stored in the block chain, comprising:
It is requested in response to the fake certification, the invoice validation for calling publication to state in the intelligent contract on block chain is patrolled
Volume, the digital digest of the invoice to be identified is calculated, and inquire in the block chain and whether store and the digital digest pair
The target invoice answered.
Optionally, further includes:
If storing target data corresponding with the digital digest in the block chain, Xiang Suoshu client returns to institute
State target invoice.
Optionally, the digital digest of the invoice includes:
For the invoice content of the invoice;It is calculated alternatively, the unique information in the invoice content carries out hash
The hash value arrived.
Optionally, the fake certification request includes the invoice content of the invoice to be identified;Alternatively, the invoice content
In unique information;
The digital digest for calculating the invoice to be identified, comprising:
Obtain the invoice content of the invoice to be identified in the fake certification request;Alternatively, in the invoice content
Unique information;
For the invoice content of the invoice to be identified got;Alternatively, the unique information in the invoice content
It carries out hash and hash value is calculated.
Optionally, the block chain is alliance's chain.
In the embodiment of above-mentioned electronic equipment, it should be appreciated that the processor can be central processing unit (English:
Central Process ing Uni t, referred to as: CPU), it can also be other general processors, digital signal processor (English
Text: Digital Signal Processor, referred to as: DSP), specific integrated circuit (English: Application Specific
Integrated Circui t, referred to as: ASIC) etc..General processor can be microprocessor or the processor is also possible to
Any conventional processor etc., and memory above-mentioned can be read-only memory (English: read-only memory, abbreviation:
ROM), random access memory (English: random access memory, abbreviation: RAM), flash memory, hard disk or solid
State hard disk.The step of method in conjunction with disclosed in the embodiment of the present invention, can be embodied directly in hardware processor and execute completion, or
Hardware and software module combination in person's processor execute completion.
All the embodiments in this specification are described in a progressive manner, same and similar portion between each embodiment
Dividing may refer to each other, and each embodiment focuses on the differences from other embodiments.It is set especially for electronics
For standby embodiment, since it is substantially similar to the method embodiment, so being described relatively simple, related place is referring to method reality
Apply the part explanation of example.
Those skilled in the art after considering the specification and implementing the invention disclosed here, will readily occur to this specification
Other embodiments.This specification is intended to cover any variations, uses, or adaptations of this specification, these modifications,
Purposes or adaptive change follow the general principle of this specification and undocumented in the art including this specification
Common knowledge or conventional techniques.The description and examples are only to be considered as illustrative, the true scope of this specification and
Spirit is indicated by the following claims.
It should be understood that this specification is not limited to the precise structure that has been described above and shown in the drawings,
And various modifications and changes may be made without departing from the scope thereof.The range of this specification is only limited by the attached claims
System.