CN110019326A - True from false of bills verification method and device and electronic equipment based on block chain - Google Patents

True from false of bills verification method and device and electronic equipment based on block chain Download PDF

Info

Publication number
CN110019326A
CN110019326A CN201811595313.0A CN201811595313A CN110019326A CN 110019326 A CN110019326 A CN 110019326A CN 201811595313 A CN201811595313 A CN 201811595313A CN 110019326 A CN110019326 A CN 110019326A
Authority
CN
China
Prior art keywords
invoice
block chain
digital digest
identified
request
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
CN201811595313.0A
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.)
Advanced New Technologies Co Ltd
Advantageous New Technologies Co Ltd
Original Assignee
Alibaba Group Holding 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 Alibaba Group Holding Ltd filed Critical Alibaba Group Holding Ltd
Priority to CN201811595313.0A priority Critical patent/CN110019326A/en
Publication of CN110019326A publication Critical patent/CN110019326A/en
Priority to TW108136799A priority patent/TWI714308B/en
Priority to PCT/CN2019/115357 priority patent/WO2020134574A1/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/245Query processing
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/27Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor
    • 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/3827Use of message hashing
    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07DHANDLING OF COINS OR VALUABLE PAPERS, e.g. TESTING, SORTING BY DENOMINATIONS, COUNTING, DISPENSING, CHANGING OR DEPOSITING
    • G07D7/00Testing specially adapted to determine the identity or genuineness of valuable papers or for segregating those which are unacceptable, e.g. banknotes that are alien to a currency
    • G07D7/004Testing specially adapted to determine the identity or genuineness of valuable papers or for segregating those which are unacceptable, e.g. banknotes that are alien to a currency using digital security elements, e.g. information coded on a magnetic thread or strip
    • G07D7/0047Testing specially adapted to determine the identity or genuineness of valuable papers or for segregating those which are unacceptable, e.g. banknotes that are alien to a currency using digital security elements, e.g. information coded on a magnetic thread or strip using checkcodes, e.g. coded numbers derived from serial number and denomination

Abstract

This specification embodiment provides a kind of true from false of bills verification method and device and electronic equipment based on block chain, the corresponding relationship being stored in the block chain between invoice and the digital digest of invoice, which comprises receive the fake certification for invoice to be identified that client is submitted and request;It is requested in response to the fake certification, calculates the digital digest of the invoice to be identified, and inquired in the block chain and whether store target invoice corresponding with the digital digest;If storing target invoice corresponding with the digital digest in the block chain, it is genuine verification result that Xiang Suoshu client, which returns to the invoice to be identified,.

Description

True from false of bills verification method and device and electronic equipment based on block chain
Technical field
This specification embodiment is related to block chain technical field more particularly to a kind of true from false of bills verifying based on block chain Method and device and electronic equipment.
Background technique
Block chain technology is also referred to as distributed account book technology, is that one kind is participated in " remembering jointly by several calculating equipment Account ", the emerging technology of common a complete distributed data base of maintenance.Since block chain technology has decentralization, openly Transparent, every calculating equipment can participate in data-base recording and respectively calculate that data synchronization can be rapidly performed by between equipment Characteristic so that block chain technology is widely applied in numerous fields.
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.
Detailed description of the invention
Fig. 1 is the flow chart for the true from false of bills verification method based on block chain that one embodiment of this specification provides;
Fig. 2 is the schematic diagram for the invoice cochain that one embodiment of this specification provides.
Fig. 3 is the hardware structure diagram for the true from false of bills verifying device based on block chain that one embodiment of this specification provides;
Fig. 4 is the module diagram for the true from false of bills verifying device based on block chain that one embodiment of this specification provides.
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.

Claims (15)

1. a kind of true from false of bills verification method based on block chain, the digital digest of invoice and invoice is stored in the block chain Between corresponding relationship, 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 inquired in the block chain and be It is no to store target invoice corresponding with the digital digest;
If storing target invoice corresponding with the digital digest in the block chain, Xiang Suoshu client return it is described to Identification invoice is genuine verification result.
2. according to the method described in claim 1, the method also includes:
Receive the invoice request to create that client is submitted;Wherein, the invoice request to create includes the invoice creation of user's input Information;
In response to the invoice request to create, the invoice creation logic for calling publication to state in the intelligent contract on block chain, 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 the area It is stored in block chain.
3. calculating the invoice to be identified according to the method described in claim 1, described request in response to the fake certification Digital digest, and inquire in the block chain and whether store target invoice corresponding with the digital digest, comprising:
It is requested in response to the fake certification, the invoice validation logic for calling publication to state in the intelligent contract on block chain, Calculate the digital digest of the invoice to be identified, and inquire in the block chain whether store it is corresponding with the digital digest Target invoice.
4. according to the method described in claim 1, the method also includes:
If storing target data corresponding with the digital digest in the block chain, Xiang Suoshu client returns to the mesh Mark invoice.
5. according to the method described in claim 2, the digital digest of the invoice includes:
For the invoice content of the invoice;Alternatively, the unique information in the invoice content carries out what hash was calculated Hash value.
6. according to the method described in claim 5, fake certification request includes the invoice content of the invoice to be identified;Or Person, the unique information in the invoice content;
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 only One property information;
For the invoice content of the invoice to be identified got;Alternatively, the unique information in the invoice content carries out Hash value is calculated in hash.
7. according to the method described in claim 1, the block chain is alliance's chain.
8. a kind of true from false of bills based on block chain verifies device, the digital digest of invoice and invoice is stored in the block chain Between corresponding relationship, 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 the area Whether with the digital digest corresponding target invoice is stored in block chain;
Return unit, if storing target invoice corresponding with the digital digest, Xiang Suoshu client in the block chain Returning to the invoice to be identified is genuine verification result.
9. device according to claim 8, 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 includes using The invoice of family input creates information;
Invoice creates response unit, in response to the invoice request to create, calls sound in the intelligent contract issued on block chain Bright invoice creates logic, creates information creating invoice based on the invoice;And the digital digest of the invoice is calculated, and The corresponding relationship of the invoice and the digital digest of the invoice is stored in the block chain.
10. device according to claim 8, the authentication unit, specifically include:
It is requested in response to the fake certification, the invoice validation logic for calling publication to state in the intelligent contract on block chain, Calculate the digital digest of the invoice to be identified, and inquire in the block chain whether store it is corresponding with the digital digest Target invoice.
11. device according to claim 8, described device further include:
Return unit is inquired, if storing target data corresponding with the digital digest in the block chain, to the visitor Family end returns to the target invoice.
12. the digital digest of device according to claim 9, the invoice includes:
For the invoice content of the invoice;Alternatively, the unique information in the invoice content carries out what hash was calculated Hash value.
13. device according to claim 12, the fake certification request includes the invoice content of the invoice to be identified; Alternatively, the unique information in the invoice content;
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 only One property information;
For the invoice content of the invoice to be identified got;Alternatively, the unique information in the invoice content carries out Hash value is calculated in hash.
14. device according to claim 8, the block chain is alliance's chain.
15. a kind of electronic equipment, comprising:
Processor;
Memory for storage processor executable instruction;
Wherein, the processor is configured to method described in any one of the claims 1-7.
CN201811595313.0A 2018-12-25 2018-12-25 True from false of bills verification method and device and electronic equipment based on block chain Pending CN110019326A (en)

Priority Applications (3)

Application Number Priority Date Filing Date Title
CN201811595313.0A CN110019326A (en) 2018-12-25 2018-12-25 True from false of bills verification method and device and electronic equipment based on block chain
TW108136799A TWI714308B (en) 2018-12-25 2019-10-14 Block chain-based invoice authenticity verification method and device and electronic equipment
PCT/CN2019/115357 WO2020134574A1 (en) 2018-12-25 2019-11-04 Blockchain-based invoice authenticity verification method, apparatus, and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811595313.0A CN110019326A (en) 2018-12-25 2018-12-25 True from false of bills verification method and device and electronic equipment based on block chain

Publications (1)

Publication Number Publication Date
CN110019326A true CN110019326A (en) 2019-07-16

Family

ID=67188687

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811595313.0A Pending CN110019326A (en) 2018-12-25 2018-12-25 True from false of bills verification method and device and electronic equipment based on block chain

Country Status (3)

Country Link
CN (1) CN110019326A (en)
TW (1) TWI714308B (en)
WO (1) WO2020134574A1 (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110597886A (en) * 2019-09-24 2019-12-20 腾讯科技(深圳)有限公司 Data processing method and device and computer storage medium
CN110598479A (en) * 2019-09-20 2019-12-20 腾讯科技(深圳)有限公司 Data processing method and device and computer readable storage medium
CN111292464A (en) * 2020-03-03 2020-06-16 苏州区盟链数字科技有限公司 Online evaluation system for gold labels of cash machines
WO2020134574A1 (en) * 2018-12-25 2020-07-02 阿里巴巴集团控股有限公司 Blockchain-based invoice authenticity verification method, apparatus, and electronic device
US11049115B2 (en) 2019-07-31 2021-06-29 Advanced New Technologies Co., Ltd. Blockchain-based bill write-off method, apparatus, electronic device, and storage medium
CN113128644A (en) * 2020-08-10 2021-07-16 虹光精密工业(苏州)有限公司 Electronic device with unique ticket and information processing method
CN113626775A (en) * 2021-07-31 2021-11-09 西南电子技术研究所(中国电子科技集团公司第十研究所) Credible scientific and technological information evidence chain tracing method
CN117273974A (en) * 2023-11-21 2023-12-22 中国人寿保险股份有限公司上海数据中心 Large enterprise expense reimbursement data generation and verification method based on block chain consensus

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106952124A (en) * 2017-03-16 2017-07-14 北京牛链科技有限公司 Electronic bill management system and method based on distribution book keeping operation
CN108305106A (en) * 2018-01-31 2018-07-20 复旦大学 A kind of electronic invoice register method based on block chain
CN109034924A (en) * 2018-08-16 2018-12-18 腾讯科技(深圳)有限公司 Electronic bill generation method, device, storage medium and computer equipment

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW201741955A (en) * 2016-05-18 2017-12-01 碩網資訊股份有限公司 An electronic ticket system using block chain and method thereof
TW201801009A (en) * 2016-06-30 2018-01-01 神通資訊科技股份有限公司 Method for storing electronic invoices by using blockchain improving the security of the electronic invoices and avoiding forgery, tampering, impersonation and double delivery
WO2018112945A1 (en) * 2016-12-23 2018-06-28 深圳前海达闼云端智能科技有限公司 Method and device for querying state information about electronic ticket, and block chain node
US11468439B2 (en) * 2017-01-12 2022-10-11 American Express Travel Related Services Company, Inc. Systems and methods for blockchain based proof of payment
CN108269351B (en) * 2018-01-15 2019-06-07 中链科技有限公司 A kind of digital ticket information processing method and system
CN108830109B (en) * 2018-06-11 2021-09-28 腾讯科技(深圳)有限公司 Electronic seal application, client implementation method, system and equipment, and storage medium
CN108961030B (en) * 2018-08-15 2023-01-03 深圳市智税链科技有限公司 Data processing method, apparatus, system, medium, and device for electronic ticket
CN110019326A (en) * 2018-12-25 2019-07-16 阿里巴巴集团控股有限公司 True from false of bills verification method and device and electronic equipment based on block chain

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106952124A (en) * 2017-03-16 2017-07-14 北京牛链科技有限公司 Electronic bill management system and method based on distribution book keeping operation
CN108305106A (en) * 2018-01-31 2018-07-20 复旦大学 A kind of electronic invoice register method based on block chain
CN109034924A (en) * 2018-08-16 2018-12-18 腾讯科技(深圳)有限公司 Electronic bill generation method, device, storage medium and computer equipment

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2020134574A1 (en) * 2018-12-25 2020-07-02 阿里巴巴集团控股有限公司 Blockchain-based invoice authenticity verification method, apparatus, and electronic device
US11049115B2 (en) 2019-07-31 2021-06-29 Advanced New Technologies Co., Ltd. Blockchain-based bill write-off method, apparatus, electronic device, and storage medium
US11429983B2 (en) 2019-07-31 2022-08-30 Advanced New Technologies Co., Ltd. Blockchain-based bill write-off method, apparatus, electronic device, and storage medium
CN110598479A (en) * 2019-09-20 2019-12-20 腾讯科技(深圳)有限公司 Data processing method and device and computer readable storage medium
CN110597886A (en) * 2019-09-24 2019-12-20 腾讯科技(深圳)有限公司 Data processing method and device and computer storage medium
CN111292464A (en) * 2020-03-03 2020-06-16 苏州区盟链数字科技有限公司 Online evaluation system for gold labels of cash machines
CN113128644A (en) * 2020-08-10 2021-07-16 虹光精密工业(苏州)有限公司 Electronic device with unique ticket and information processing method
CN113626775A (en) * 2021-07-31 2021-11-09 西南电子技术研究所(中国电子科技集团公司第十研究所) Credible scientific and technological information evidence chain tracing method
CN117273974A (en) * 2023-11-21 2023-12-22 中国人寿保险股份有限公司上海数据中心 Large enterprise expense reimbursement data generation and verification method based on block chain consensus
CN117273974B (en) * 2023-11-21 2024-02-06 中国人寿保险股份有限公司上海数据中心 Large enterprise expense reimbursement data generation and verification method based on block chain consensus

Also Published As

Publication number Publication date
WO2020134574A1 (en) 2020-07-02
TWI714308B (en) 2020-12-21
TW202024954A (en) 2020-07-01

Similar Documents

Publication Publication Date Title
CN110019326A (en) True from false of bills verification method and device and electronic equipment based on block chain
US11769154B1 (en) Token device for distributed ledger based interchange
CN109102269B (en) Transfer method and device based on block chain, block chain node and storage medium
US10742398B2 (en) Bespoke programmable crypto token
CN110020901A (en) Resource allocation methods and device and electronic equipment based on block chain
US7933835B2 (en) Secure money transfer systems and methods using biometric keys associated therewith
CN112037068B (en) Resource transfer method, system, device, computer equipment and storage medium
CN109325747B (en) Remittance method and device based on block chain
US20140316986A1 (en) Generation systems and methods for transaction identifiers having biometric keys associated therewith
CN109003185B (en) Intelligent contract establishing method and device, computing equipment and storage medium
CN110020900A (en) Invoice based on block chain rushes red method and device and electronic equipment
US20200226595A1 (en) Digital payment system
CN109544335B (en) Transaction data processing method, device, equipment and storage medium based on blockchain
CN110333948A (en) Virtual resource allocation method and apparatus based on block chain
WO2018204548A1 (en) Ledger management systems and methods
US20210192520A1 (en) Distributed credit ecosystem
CN110458561B (en) Method and device for realizing confidential transaction in block chain network
CN109327312A (en) Authentication method and device, electronic equipment
CN112561407B (en) Asset management method, system and device based on block chain
US20220067717A1 (en) Blockchain system that includes bank nodes each having separate ledgers for identity, digital currency and other functions, and operation method thereof
CN111402033A (en) Asset information management method and device based on block chain
US20220156725A1 (en) Cross-chain settlement mechanism
Christodorescu et al. Towards a two-tier hierarchical infrastructure: an offline payment system for central bank digital currencies
CN114363327A (en) Compliance mechanism in blockchain networks
CN113947394A (en) Block chain-based fair payment method for deletable duplicate data in cloud storage

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
REG Reference to a national code

Ref country code: HK

Ref legal event code: DE

Ref document number: 40010755

Country of ref document: HK

TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20200925

Address after: Cayman Enterprise Centre, 27 Hospital Road, George Town, Grand Cayman Islands

Applicant after: Innovative advanced technology Co.,Ltd.

Address before: Cayman Enterprise Centre, 27 Hospital Road, George Town, Grand Cayman Islands

Applicant before: Advanced innovation technology Co.,Ltd.

Effective date of registration: 20200925

Address after: Cayman Enterprise Centre, 27 Hospital Road, George Town, Grand Cayman Islands

Applicant after: Advanced innovation technology Co.,Ltd.

Address before: A four-storey 847 mailbox in Grand Cayman Capital Building, British Cayman Islands

Applicant before: Alibaba Group Holding Ltd.

RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20190716