CN109889343B - Electronic invoice circulation control method, device and system - Google Patents

Electronic invoice circulation control method, device and system Download PDF

Info

Publication number
CN109889343B
CN109889343B CN201811641489.5A CN201811641489A CN109889343B CN 109889343 B CN109889343 B CN 109889343B CN 201811641489 A CN201811641489 A CN 201811641489A CN 109889343 B CN109889343 B CN 109889343B
Authority
CN
China
Prior art keywords
electronic invoice
invoice
data
information
electronic
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.)
Active
Application number
CN201811641489.5A
Other languages
Chinese (zh)
Other versions
CN109889343A (en
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.)
Aisino Corp
Original Assignee
Aisino Corp
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 Aisino Corp filed Critical Aisino Corp
Priority to CN201811641489.5A priority Critical patent/CN109889343B/en
Publication of CN109889343A publication Critical patent/CN109889343A/en
Application granted granted Critical
Publication of CN109889343B publication Critical patent/CN109889343B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Storage Device Security (AREA)

Abstract

The invention provides an electronic invoice flow control method, which comprises the following steps: generating digital identity verification information of the electronic invoice according to the acquired verification code of the electronic invoice; generating plaintext data of the electronic invoice according to the acquired basic information of the electronic invoice; generating a key according to the acquired check code of the electronic invoice, and encrypting key information of the electronic invoice by using the key to generate ciphertext data of the electronic invoice; and combining the ciphertext data and the plaintext data of the electronic invoice into block chain data of the electronic invoice to be issued by taking the digital identity verification information as a unique identifier. The electronic invoice circulation control method provided by the invention carries out evidence storage and data preservation on the electronic invoice block chain data in a chain-up and chain-down combined mode, reduces the storage resources occupied by the electronic invoice block chain data, and improves the efficiency of accessing and updating the electronic invoice block after the electronic invoice block chain enters the chain.

Description

Electronic invoice circulation control method, device and system
Technical Field
The invention relates to the technical field of electronic invoices, in particular to an electronic invoice circulation control method and device.
Background
The electronic invoice is a product adapting to the development of the information era, the electronic invoice has the same function as a paper invoice, the management mode is the same as the paper invoice, taxpayer qualification verification and ticket seed verification are uniformly carried out by a tax bureau, invoice codes and numbers are uniformly distributed by the tax bureau, and the paper invoice is uniformly printed by the tax bureau and is used by taxpayers; the electronic invoice adopts a style set uniformly by a tax bureau, and a taxpayer generates an electronic invoice layout file according to the uniform style.
The generation of the electronic invoice is accepted by society consistently, and the advantages of uniqueness, non-tampering property, low cost, low carbon, environmental protection, convenient transfer and the like are gradually accepted by merchants and consumers, so that the social productivity is greatly improved.
Electronic invoices play a great role in social production as business transaction vouchers, tax-related vouchers and accounting vouchers.
At present, in the using process of the electronic invoice, the problem that single data is repeatedly used by multiple parties occurs. In order to improve the credibility of the electronic invoice, verification information from a third party needs to be introduced to obtain the evidence of the authenticity of the electronic invoice, which causes additional information exchange operation in the use process of the electronic invoice, and causes a large amount of expenses of communication bandwidth and computing resources.
Disclosure of Invention
The invention provides an electronic invoice flow control method and device, aiming at overcoming the technical problem that electronic invoice forensics can be carried out only by introducing verification information from a third party.
In a first aspect, the present invention provides an electronic invoice flow control method, including the following steps:
s10: generating digital identity verification information of the electronic invoice according to the acquired verification code of the electronic invoice;
s20: generating plaintext data of the electronic invoice according to the acquired basic information of the electronic invoice;
s30: generating a key according to the acquired check code of the electronic invoice, and encrypting key information of the electronic invoice by using the key to generate ciphertext data of the electronic invoice;
s40: combining the ciphertext data and the plaintext data of the electronic invoice into block chain data of the electronic invoice to be issued by taking the digital identity verification information as a unique identifier;
and after the electronic invoice block chain data are issued, the electronic invoice block chain data are stored in an electronic invoice block chain in a distributed manner.
Specifically, the method further comprises the following steps:
generating digital identity verification information of the electronic invoice according to the acquired verification code of the electronic invoice;
generating a secret key according to the acquired check code of the electronic invoice;
taking the digital identity verification information as a unique identifier, and acquiring ciphertext data and plaintext data of the electronic invoice corresponding to the digital identity verification information from an electronic invoice block chain;
and decrypting the ciphertext data according to the secret key to obtain the key information of the electronic invoice.
Specifically, the method further comprises the following steps:
generating digital identity verification information of the electronic invoice according to a verification code of the electronic invoice acquired from an authorized party;
generating a secret key according to the acquired check code of the electronic invoice;
acquiring ciphertext data and plaintext data of the electronic invoice corresponding to the digital identity verification information from an electronic invoice block chain by taking the digital identity verification information as a unique identifier;
decrypting the ciphertext data of the electronic invoice according to the secret key to obtain key information of the electronic invoice;
extracting the state information of the electronic invoice from the plain text data according to an authorization operation obtained from an authorized party and checking the state information; or, extracting the state information of the electronic invoice from the plaintext data and updating the state information of the electronic invoice;
the status information of the electronic invoice comprises: the invoice is valid, the invoice is credited and reimbursed, the invoice is withheld, and the invoice is filed.
In particular, the amount of the solvent to be used,
according to the acquired check code of the electronic invoice, generating digital identity check information of the electronic invoice, wherein the digital identity check information comprises the following steps:
and carrying out secondary digital abstract operation on the check code of the electronic invoice to generate digital identity check information of the electronic invoice.
Specifically, generating a key according to the acquired check code of the electronic invoice includes:
and carrying out digital digest operation on the check code of the electronic invoice to generate a secret key.
In a second aspect, the present invention provides an electronic invoice flow control apparatus, including:
the digital identity verification information module 100 is configured to generate digital identity verification information of the electronic invoice according to the obtained verification code of the electronic invoice;
the plaintext data generating module 200 is configured to generate plaintext data of the electronic invoice according to the acquired basic information of the electronic invoice;
the ciphertext data generating module 300 is configured to: generating a key according to the acquired check code of the electronic invoice, and encrypting key information of the electronic invoice by using the key to generate ciphertext data of the electronic invoice;
a blockchain data publishing module 400 configured to: combining the ciphertext data and the plaintext data of the electronic invoice into block chain data of the electronic invoice to be issued by taking the digital identity verification information as a unique identifier;
and after the electronic invoice block chain data are issued, the electronic invoice block chain data are stored in an electronic invoice block chain in a distributed manner.
Specifically, the method further comprises the following steps:
an electronic invoice blockchain data viewing module for: generating digital identity verification information of the electronic invoice according to the acquired verification code of the electronic invoice;
generating a secret key according to the acquired check code of the electronic invoice;
taking the digital identity verification information as a unique identifier, and acquiring ciphertext data and plaintext data of the electronic invoice corresponding to the digital identity verification information from an electronic invoice block chain;
and decrypting the ciphertext data according to the secret key to obtain the key information of the electronic invoice.
Specifically, the method further comprises the following steps:
an electronic invoice blockchain data appending module for:
generating digital identity verification information of the electronic invoice according to a verification code of the electronic invoice acquired from an authorized party;
generating a secret key according to the acquired check code of the electronic invoice;
acquiring ciphertext data and plaintext data of the electronic invoice corresponding to the digital identity verification information from an electronic invoice block chain by taking the digital identity verification information as a unique identifier;
decrypting the ciphertext data of the electronic invoice according to the secret key to obtain key information of the electronic invoice;
extracting the state information of the electronic invoice from the plain text data according to an authorization operation obtained from an authorized party and checking the state information; or, extracting the state information of the electronic invoice from the plaintext data and updating the state information of the electronic invoice;
the status information of the electronic invoice comprises: the invoice is valid, the invoice is credited and reimbursed, the invoice is withheld, and the invoice is filed.
Specifically, the digital identity verification information module 100 is further configured to:
and carrying out secondary digital abstract operation on the check code of the electronic invoice to generate digital identity check information of the electronic invoice.
Specifically, the ciphertext data generating module 300 is further configured to:
and carrying out digital digest operation on the check code of the electronic invoice to generate a secret key.
According to the electronic invoice circulation control method and device, the evidence storage and verification of the electronic invoice are completed through the block chain technology, the evidence storage and data preservation of the block chain data of the electronic invoice are carried out in a chain-up and chain-down combined mode, the storage resources occupied by the block chain data of the electronic invoice are reduced, the efficiency of the electronic invoice circulation control system during access and updating after the block chain is linked is improved, and the operation performance of the electronic invoice circulation control system is integrally improved.
Drawings
A more complete understanding of exemplary embodiments of the present invention may be had by reference to the following drawings in which:
FIG. 1 is a flow chart diagram of an electronic invoice flow control method according to one embodiment of the invention;
FIG. 2 is a schematic block diagram of an electronic invoice flow control apparatus according to one embodiment of the invention;
FIG. 3 is a flow diagram of electronic invoice node data chaining, according to one embodiment of the invention;
FIG. 4 is a flow diagram of an electronic invoice node data query, in accordance with one embodiment of the present invention;
fig. 5 is a flow chart illustrating the addition of the data state of the electronic invoice node according to an embodiment of the present invention.
Detailed Description
Example embodiments of the present invention will now be described with reference to the accompanying drawings, however, the invention may be embodied in many different forms and should not be construed as limited to the embodiments set forth herein, which are provided for a complete and complete disclosure of the invention and to fully convey the scope of the invention to those skilled in the art. The terms used in the exemplary embodiments shown in the drawings are not intended to limit the present invention. In the drawings, the same unit/element is denoted by the same reference numeral.
Unless otherwise defined, terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs. Further, it will be understood that terms, such as those defined in commonly used dictionaries, should be interpreted as having a meaning that is consistent with their meaning in the context of the relevant art and will not be interpreted in an idealized or overly formal sense.
The block chain technique is derived from the development of the bitcoin underlying technique. The block chain is characterized by openness and consensus. Any node added to the blockchain can co-operate and maintain the blockchain as long as the blockchain rules are complied with. The data on the block chain forms non-tamper-proof and non-repudiation block chain storage through consensus, and the data is transparent and visible for all members, so that a trust mechanism of the block chain is formed naturally.
The block chain establishes a decentralization consensus mechanism, and the consensus mechanism combines digital encryption and game theory, so that participants can form a mutually-drawn trusted environment without any external mandatory constraint. The trusted environment removes the necessity of external regulation in a centralized authorization mode even on the basis of mutual distrust, so that the decentralized and distrust blockchain architecture solves the credit and governance problem of the network world full of virtualization and anonymity.
As shown in fig. 1, the electronic invoice flow control method according to an embodiment of the present invention includes the following steps:
s10: generating digital identity verification information of the electronic invoice according to the acquired verification code of the electronic invoice;
s20: generating plaintext data of the electronic invoice according to the acquired basic information of the electronic invoice;
s30: generating a key according to the acquired check code of the electronic invoice, and encrypting key information of the electronic invoice by using the key to generate ciphertext data of the electronic invoice;
s40: combining the ciphertext data and the plaintext data of the electronic invoice into block chain data of the electronic invoice to be issued by taking the digital identity verification information as a unique identifier;
after the electronic invoice block chain data are issued, the electronic invoice block chain data are stored in a distributed mode on all peer nodes of the electronic invoice block chain.
The electronic invoice flow control method of the embodiment is deployed and applied in a terminal (i.e., an invoice issuing party) that generates an electronic invoice using a tax office system.
It should be understood that the basic information of the electronic invoice is screened and processed from all invoice information;
all invoice information includes: invoice code, number, date, invoice status, electronic invoice service platform ID, purchaser identification number, consumer mobile phone number, new line, category, and the like.
The basic information of the electronic invoice comprises: performing HASH on the invoice verification code for two times to obtain a verification value; an electronic invoice service platform ID; performing Hash on the format file of the electronic invoice for one time to obtain a value; and carrying out hash on the data file of the electronic invoice for one time to obtain the value.
The information can be uploaded to an electronic invoice block chain as plaintext data, so that the invoice validity and authenticity can be preliminarily and indirectly checked when the electronic invoice is subsequently accessed in the electronic invoice block chain; that is, validity and authenticity of the invoice are checked without depending on full invoice face information of the invoice, so that checking efficiency can be improved, and total capacity of data in an electronic invoice block chain is reduced.
It should be understood that electronic invoices, as a kind of business evidence, are naturally private; therefore, the key information of the electronic invoice is encrypted and then issued to the electronic invoice block chain for consensus and circulation, and the safety of the block chain data of the electronic invoice can be improved.
The key information of the electronic invoice is screened and processed from all invoice information;
all invoice information includes: invoice code, number, date, invoice status, electronic invoice service platform ID, purchaser identification number, consumer mobile phone number, new line, category, and the like.
The key information of the electronic invoice comprises: when the electronic invoice is generated in the tax bureau system, the resource address URL accesses the address, and the full invoice face information of the electronic invoice can be directly obtained.
Compared with the full ticket face information of the electronic invoice, the resource address URL is encrypted and then issued to the electronic invoice block chain for consensus and circulation, so that the total capacity of data in the electronic invoice block chain can be reduced, the full ticket face information of the electronic invoice can be directly and quickly accessed, the efficiency is high, and the resource occupation is small.
It should be understood that, when the key information of the electronic invoice is encrypted by using the key to generate the ciphertext data of the electronic invoice, various encryption algorithms (various digital digest algorithms and data encryption algorithms) and encrypted versions of the encryption algorithms can be flexibly selected. During decryption, the ciphertext data can be decrypted according to the decryption algorithm corresponding to the encryption algorithm and the encrypted version of the encryption algorithm.
Specifically, the electronic invoice flow control method of the embodiment further includes:
generating digital identity verification information of the electronic invoice according to the acquired verification code of the electronic invoice;
generating a secret key according to the acquired check code of the electronic invoice;
taking the digital identity verification information as a unique identifier, and acquiring ciphertext data and plaintext data of the electronic invoice corresponding to the digital identity verification information from an electronic invoice block chain;
and decrypting the ciphertext data according to the secret key to obtain the key information of the electronic invoice.
The electronic invoice circulation control method of the embodiment is a step of accessing the block chain data of the electronic invoice issuing area, and is deployed and applied in terminals (namely an invoice user and an auditing party) of consumers and enterprises for checking electronic invoices.
Specifically, the method further comprises the following steps:
generating digital identity verification information of the electronic invoice according to a verification code of the electronic invoice acquired from an authorized party;
generating a secret key according to the acquired check code of the electronic invoice;
taking the digital identity verification information as a unique identifier, and acquiring ciphertext data and plaintext data of the electronic invoice corresponding to the digital identity verification information from an electronic invoice block chain;
decrypting the ciphertext data of the electronic invoice according to the secret key to obtain key information of the electronic invoice;
according to an authorization operation obtained from an authorized party, extracting the state information of the electronic invoice from the plaintext data and checking the state information; or, extracting the state information of the electronic invoice from the plaintext data and updating the state information of the electronic invoice;
the status information of the electronic invoice comprises: the invoice is valid, the invoice is posted and reimbursed, the invoice is withheld, and the invoice is filed.
The electronic invoice circulation control method of the embodiment is a step of accessing and modifying the electronic invoice blockchain data to confirm the state of the invoice, and is deployed and applied in terminals (namely an invoice user and an audit party) for auditing customers and enterprises and using electronic invoices.
Specifically, the generating of the digital identity verification information of the electronic invoice according to the obtained verification code of the electronic invoice comprises:
and carrying out secondary digital abstract operation on the check code of the electronic invoice to generate digital identity check information of the electronic invoice.
Specifically, generating a key according to the acquired check code of the electronic invoice includes:
and carrying out digital digest operation on the check code of the electronic invoice to generate a secret key.
The digital abstract operation is preferably Hash operation, and has good uniqueness and strong safety.
In a second aspect, the present invention provides an electronic invoice flow control apparatus, including:
the digital identity verification information module 100 is configured to generate digital identity verification information of the electronic invoice according to the obtained verification code of the electronic invoice;
the plaintext data generating module 200 is configured to generate plaintext data of the electronic invoice according to the acquired basic information of the electronic invoice;
the ciphertext data generating module 300 is configured to: generating a key according to the acquired check code of the electronic invoice, and encrypting key information of the electronic invoice by using the key to generate ciphertext data of the electronic invoice;
a blockchain data publishing module 400 configured to: combining the ciphertext data and the plaintext data of the electronic invoice into block chain data of the electronic invoice to be issued by taking the digital identity verification information as a unique identifier;
after the electronic invoice block chain data are issued, the electronic invoice block chain data are stored in a distributed mode on all peer nodes of the electronic invoice block chain.
Specifically, the method further comprises the following steps:
an electronic invoice blockchain data viewing module for: generating digital identity verification information of the electronic invoice according to the acquired verification code of the electronic invoice;
generating a secret key according to the acquired check code of the electronic invoice;
taking the digital identity verification information as a unique identifier, and acquiring ciphertext data and plaintext data of the electronic invoice corresponding to the digital identity verification information from an electronic invoice block chain;
and decrypting the ciphertext data according to the secret key to obtain the key information of the electronic invoice.
Specifically, the method further comprises the following steps:
an electronic invoice blockchain data appending module for:
generating digital identity verification information of the electronic invoice according to a verification code of the electronic invoice acquired from an authorized party;
generating a secret key according to the acquired check code of the electronic invoice;
taking the digital identity verification information as a unique identifier, and acquiring ciphertext data and plaintext data of the electronic invoice corresponding to the digital identity verification information from an electronic invoice block chain;
decrypting the ciphertext data of the electronic invoice according to the secret key to obtain key information of the electronic invoice;
extracting the state information of the electronic invoice from the plain text data according to an authorization operation obtained from an authorized party and checking the state information; or, extracting the state information of the electronic invoice from the plaintext data and updating the state information of the electronic invoice;
the status information of the electronic invoice comprises: the invoice is valid, the invoice is posted and reimbursed, the invoice is withheld, and the invoice is filed.
Specifically, the digital identity verification information module 100 is further configured to:
and carrying out secondary digital abstract operation on the check code of the electronic invoice to generate the digital identity check information of the electronic invoice.
Specifically, the ciphertext data generating module 300 is further configured to:
and carrying out digital digest operation on the check code of the electronic invoice to generate a secret key.
When the electronic invoice circulation control device of the embodiment is specifically implemented, the electronic invoice circulation control device can have various forms, such as an electronic invoice distribution block chain data generation device, an electronic invoice distribution block chain data query device, an electronic invoice distribution block chain data state updating device and the like, and respectively relate to various service types of the whole electronic invoice circulation process.
The electronic invoice block chain data generation devices, the electronic invoice block chain data query devices and the electronic invoice block chain data state updating devices are all connected with the electronic invoice block chain, and are locally provided with corresponding storage devices (databases or magnetic disc arrays) respectively, so that the electronic invoice block chain data uploaded to the electronic invoice block chain are identified in real time, and the relevant electronic invoice block chain data are received according to preset receiving conditions.
All the electronic invoice circulation control devices are connected to the electronic invoice distribution block chain in a peer-to-peer mode to form an electronic invoice block chain system.
The de-center characteristic of the block chain can enhance the reliability of electronic invoice certificate storage; the data of the electronic invoice verified by a tax bureau system is transformed to form a data abstract and a password, so that privacy protection is achieved, and non-repudiation and non-tampering characteristics of the electronic invoice certificate storage data are guaranteed; all parties holding the necessary information of the electronic invoice can access the block chain at any time to verify the invoice; the technical problem that verification information from a third party is required to be introduced to assist in electronic invoice notarization is solved; the whole-process electronization of the electronic invoice is realized, so that the electronic invoice serving as a digital asset can be subjected to evidence storage and evidence collection simply and conveniently.
The electronic invoice circulation control device has low requirement on hardware, is beneficial to reducing the implementation cost and ensures that the invoice authenticity check is easier and more feasible; the privacy of the user is protected, and the effect of safely and reliably storing the electronic invoice is achieved.
The electronic invoice circulation control method and the electronic invoice circulation control device adopt a chain uplink-downlink combination mode, all data of the invoices do not need to be input into the electronic invoice region block chain data, storage resources occupied by the electronic invoice region block chain data are reduced, the efficiency of the electronic invoice region block chain access and update after the electronic invoice region block chain enters the chain is improved, and the operation performance of an electronic invoice circulation control system is integrally improved.
Currently, electronic invoice technology is relatively mature. The invoice code and the invoice number of the electronic invoice are all coded uniformly nationwide; when the electronic invoice is issued, a uniform anti-counterfeiting technology is adopted to encrypt the ciphertext of the whole invoice face; carrying out abstract calculation on the full invoice surface of the invoice to generate an invoice check code; and finally, after the electronic invoice format file is generated, adding an invoice special seal of an invoice issuing enterprise, and packaging the whole format file.
The common electronic invoice certificate storage ensures that the electronic invoice is not changed when being issued by adding an electronic signature to a format file of the electronic invoice; however, data generated by other links is easy to be illegally or maliciously tampered.
For example, after the electronic invoice layout file is generated, unless the invoice circulation process is controlled according to professional requirements, electronic data formed by all parties risks being tampered in the invoice circulation process. And the control of the invoice circulation process according to professional requirements needs to meet the following requirements: when electronic data is saved, cleanliness check must be performed on a network environment, a system environment for generating the electronic data, and equipment; when the evidence is fixed, a standard time service timestamp is obtained through a national time service center, and evidence consistency check value calculation is carried out by adopting a Hash algorithm; and carrying out technical encryption on data and a transmission channel during data transmission. The above requirements are complex and difficult to implement both technically and cost-effectively.
Electronic invoices as vouchers for business transactions, taxes and accounting, for which proof of completion must rely on a strong chain of evidence that must be impossible to counterfeit and destroy by anyone, or extremely expensive to counterfeit and nearly impossible.
At present, the common evidence of evidence deposit is relatively simple, for example, the evidence of deposit is provided by bills and communication records. Because these evidences are very easy to forge and destroy, the mode of evidence storage is not strict and is difficult to meet the use requirements.
The electronic invoice circulation control method provided by the embodiment utilizes a block chain technology to store the electronic invoice. Specifically, the advantages of the block chain are utilized, and in the block chain data, the electronic invoice layout file and the data file are actively protected; an electronic invoice circulation control system is established, and the electronic invoice security problem and the notarization problem are solved based on the block chain technology.
When the electronic invoice is stored, if the electronic invoice and the certificate storage data thereof are stored in a centralized server, the electronic invoice may be damaged or lost due to modification, stealing and the like, which may cause an incomplete phenomenon that the electronic invoice is used as a certificate storage basis, resulting in a failure of certificate storage.
And carrying out electronic invoice evidence storage based on the block chain technology, and adopting a multi-party evidence storage means. Specifically, in order to ensure the integrity and authenticity of the certificate-storing information, an electronic invoice alliance chain is established by a third-party platform and a tax bureau, and multi-party common certificate-storing is carried out. This way a multi-point evidence is formed. Specifically, by carrying out multi-party evidence storage service on the electronic invoice in authorities such as judicial identification, audit, notarization and arbitration, the authority of electronic invoice evidence storage can be improved, the notarization of the evidence storage is facilitated, and the electronic invoice can be more easily landed when the judicial problem is solved.
Therefore, the electronic invoice evidence storage data is usually an electronic invoice stored locally by a third-party platform, belongs to self-evidence, is easy to lose and tamper, and the legal effectiveness of the evidence is easy to question. Once disputes occur, the platform service provider (i.e. the third party electronic invoice service platform) must show the original electronic invoice data, and after obtaining evidence and identification by the institutions such as judicial identification and notary, the platform service provider can issue relevant evidence to become effective evidence and obtain the approval of the court.
In order to meet the requirement of a customer on the evidence preservation of the electronic invoice, the method of the embodiment intervenes in the evidence preservation of the electronic invoice from the beginning of the life cycle of the electronic invoice when the block chain evidence preservation is carried out on the electronic invoice.
The block chain electronic invoice issuing and evidence collection service is realized by jointly initiating a block chain alliance chain by an authority organization such as a third-party electronic invoice service platform joint tax bureau, a subsidy and finance organization and the like. And the characteristic of centralization of the block chain is utilized to realize invoice evidence solidification and persistent storage. Once disputes occur, a user can obtain evidence from any node in the alliance chain at any time, each node of the data full chain has evidence, data is safe and tamper-proof, and reliability is enhanced. The arbitration mechanism can directly acquire and verify data from the operation and maintenance nodes, and the evidence storage data is regarded as direct evidence, so that a third-party mechanism is not required to issue the evidence.
Specifically, when the electronic invoice is generated, the certificate storing information is fixed and is transmitted to each node server of the alliance chain at the first time, so that the verification mechanism can verify the originality and the authenticity of a certain electronic invoice at any time in the future; once the information generated by the electronic invoice in the process of issuing and circulating is stored, any party cannot tamper with the information.
Specifically, the electronic invoice raw data is generated through a tax control system. After the electronic invoice is generated, generating a data file and a format file of the electronic invoice; and the original data of the electronic invoice enters an electronic ledger library of a tax bureau through a tax control system.
It should be understood that after the data file and the format file of the electronic invoice are generated by the third-party electronic invoice service platform by using the tax control system, the invoice face of the electronic invoice has an invoice check code.
Correspondingly, when a consumer (an invoice receiver) or an enterprise (an invoice verifying party or an invoice receiver) uses an electronic invoice stored in a certificate, an invoice check code is obtained from plaintext information of the invoice, the invoice check code is subjected to hash once and then serves as a password to decrypt an electronic invoice data file ciphertext and a format file ciphertext, and then the electronic invoice data file and the format file are extracted.
And directly checking the authenticity of the electronic invoice acquired from the block chain according to the Hash value of the data file and the Hash value of the format file. Specifically, a hash operation is performed on a data file or a format file in plaintext data of the electronic invoice acquired from the block chain, the hash operation is compared with a corresponding value of the electronic invoice stored in the block chain data, and the electronic invoice can be judged to be verified if the comparison is passed;
only the invoice summary information, such as invoice codes, invoice numbers, third-party service platform codes and other contents are stored as plain texts on the electronic invoice region chain; the full ticket information's acquisition address (URL) is stored as ciphertext on the blockchain.
As shown in fig. 3, after the third-party service platform generates the original data of the electronic invoice through the tax control system, the electronic invoice circulation control device forms plaintext data according to the following data extracted from the tax control system, including:
invoice code, number, date, invoice status;
generating a check password according to the received invoice check code (specifically, performing HASH on the invoice check code twice);
an electronic invoice service platform ID, an encrypted version of a symmetric encryption algorithm;
and other optional ancillary information such as a purchaser identification number, a consumer mobile phone number (optional), and the like.
The electronic invoice flow control device generates ciphertext data by adopting the following method:
generating an encryption key, and specifically, performing HASH on an invoice check code once;
encrypting the resource address URL by using the encryption key and a symmetric encryption method to obtain resource address ciphertext data;
further, the electronic invoice circulation control device fills the plaintext data and the ciphertext data into empty electronic invoice block chain data to obtain block chain evidence storage data for the electronic invoice;
and issuing the block chain evidence storing data aiming at the electronic invoice in the electronic invoice block chain.
Correspondingly, each electronic invoice flow control device in the whole electronic invoice blockchain can synchronously receive and store the blockchain evidence storing data aiming at the electronic invoice.
It should be understood that although all nodes of the entire electronic invoice blockchain system can synchronously receive and store blockchain forensic data for the electronic invoice, only the plaintext portion thereof can be directly accessed; the ciphertext part can be obtained only by an authorized receiver by using a symmetric decryption method; the status of the electronic invoice may also be modified or edited only by an authorized recipient.
As shown in fig. 4, when a consumer inquires the electronic invoice information from the electronic invoice block chain, the consumer inputs an invoice code, a number and a check code according to the interface prompt;
the electronic invoice flow control device calculates a check password according to the received invoice check code (specifically, the invoice check code is subjected to HASH twice);
searching in an electronic invoice block chain according to identification information formed by invoice codes, numbers or verification passwords, and acquiring electronic invoice block chain data corresponding to the identification information from the block chain;
calculating an encryption key according to the received invoice check code (specifically, performing HASH on the invoice check code once), and decrypting an address ciphertext in the acquired electronic invoice region chain data by using the encryption key to obtain an invoice resource URL;
and accessing the invoice resource URL by using the invoice resource URL obtained by decryption, and acquiring the full invoice face information of the electronic invoice from the third-party service platform.
As shown in fig. 5, when the enterprise ERP performs the account cancellation processing on the electronic invoice at the block link point where the enterprise ERP is located, the invoice code, the number, the invoice status and the check code are transmitted according to the interface prompt;
the electronic invoice flow control device calculates a check password according to the received invoice check code (specifically, the invoice check code is subjected to HASH twice);
and searching in the electronic invoice block chain according to state identification information formed after invoice codes, numbers, invoice states (such as invoice validity, invoice account reimbursement, invoice deduction and invoice filing) and check password combination, acquiring electronic invoice block chain data corresponding to the identification information from the block chain data set, and updating the state.
It should be understood that the enterprise ERP also includes the operation of acquiring the data of the electronic invoice when the electronic invoice is subjected to the accounting processing at the block link point where the enterprise ERP is located, and the operation is omitted here.
In addition, the enterprise ERP has authorization for the state change of the electronic invoice when the electronic invoice is subjected to the account cancellation processing at the block link point where the enterprise ERP is located. The authorization comes from the user passing the invoice code, number, invoice status, and check password to the enterprise ERP as plain text.
This embodiment has been described above by reference to a few embodiments. However, other embodiments than the one disclosed above are equally possible within the scope of these embodiments, as would be apparent to a person skilled in the art, as defined by the appended patent claims.
Generally, all terms used in the claims are to be interpreted according to their ordinary meaning in the technical field, unless explicitly defined otherwise herein. All references to "a/an/the [ means, component, etc ]" are to be interpreted openly as referring to at least one instance of said means, component, etc., unless explicitly stated otherwise. The steps of any method disclosed herein do not have to be performed in the exact order disclosed, unless explicitly stated.

Claims (10)

1. An electronic invoice flow control method is characterized by comprising the following steps:
s10: the electronic invoice issuing party generates digital identity verification information of the electronic invoice according to the acquired verification code of the electronic invoice;
s20: the electronic invoice issuing party generates plaintext data of the electronic invoice according to the acquired basic information of the electronic invoice; the basic information of the electronic invoice comprises the following steps: performing HASH on the invoice verification code for two times to obtain a verification value; an electronic invoice service platform ID; performing Hash on the format file of the electronic invoice for one time to obtain a value; carrying out hash on the data file of the electronic invoice for one time to obtain a value;
s30: the electronic invoice issuing party generates a key according to the acquired check code of the electronic invoice, and encrypts key information of the electronic invoice by using the key to generate ciphertext data of the electronic invoice; the key information of the electronic invoice comprises: when the electronic invoice is generated in a tax office system, the resource address URL accesses the address, and the full invoice face information of the electronic invoice can be directly obtained;
s40: the electronic invoice issuing party combines the ciphertext data and the plaintext data of the electronic invoice into electronic invoice block chain data to issue by taking the digital identity verification information as a unique identifier;
and after the electronic invoice block chain data are issued, the electronic invoice block chain data are stored in an electronic invoice block chain in a distributed manner.
2. The method of claim 1, further comprising, after step S40:
the invoice user and the auditing party generate digital identity verification information of the electronic invoice according to the acquired verification code of the electronic invoice;
the invoice user and the auditing party generate a secret key according to the check code of the acquired electronic invoice;
the invoice user and the auditing party acquire the ciphertext data and the plaintext data of the electronic invoice corresponding to the digital identity verification information from the electronic invoice block chain by taking the digital identity verification information as a unique identifier;
and the invoice user and the auditing party decrypt the ciphertext data according to the secret key to obtain the key information of the electronic invoice.
3. The method of claim 2, further comprising, after the step of obtaining key information for the electronic invoice:
the invoice using party and the auditing party generate digital identity verification information of the electronic invoice according to the verification code of the electronic invoice acquired from the authorizing party;
the invoice user and the auditing party generate a secret key according to the acquired check code of the electronic invoice;
the invoice user and the auditing party take the digital identity verification information as a unique identifier and acquire ciphertext data and plaintext data of the electronic invoice corresponding to the digital identity verification information from an electronic invoice block chain;
the invoice user and the auditing party decrypt the ciphertext data of the electronic invoice according to the key to obtain the key information of the electronic invoice;
the invoice user and the auditing party extract the state information of the electronic invoice from the plain text data and check the state information according to the authorization operation obtained from the authorizing party; or, extracting the state information of the electronic invoice from the plaintext data and updating the state information of the electronic invoice;
the status information of the electronic invoice comprises: the invoice is valid, the invoice is credited and reimbursed, the invoice is withheld, and the invoice is filed.
4. The method of claim 1,
according to the acquired check code of the electronic invoice, generating digital identity check information of the electronic invoice, wherein the digital identity check information comprises the following steps:
and carrying out secondary digital abstract operation on the check code of the electronic invoice to generate digital identity check information of the electronic invoice.
5. The method of claim 1,
generating a key according to the acquired check code of the electronic invoice, comprising the following steps:
and carrying out digital digest operation on the check code of the electronic invoice to generate a secret key.
6. An electronic invoice circulation control system comprises a data generation device, a data query device and a data state updating device, and is characterized in that the data generation device comprises:
the digital identity verification information module (100) is used for generating digital identity verification information of the electronic invoice according to the acquired verification code of the electronic invoice;
the clear text data generation module (200) is used for generating clear text data of the electronic invoice according to the acquired basic information of the electronic invoice; the basic information of the electronic invoice comprises the following steps: performing HASH on the invoice verification code for two times to obtain a verification value; an electronic invoice service platform ID; carrying out Hash on the format file of the electronic invoice to obtain a value; carrying out hash on the data file of the electronic invoice for one time to obtain a value;
-a ciphertext data generation module (300) configured to: generating a key according to the acquired check code of the electronic invoice, and encrypting key information of the electronic invoice by using the key to generate ciphertext data of the electronic invoice; the key information of the electronic invoice comprises: when the electronic invoice is generated in a tax bureau system, the resource address URL accesses the address, and the full invoice face information of the electronic invoice can be directly obtained;
a blockchain data publishing module (400) to: combining the ciphertext data and the plaintext data of the electronic invoice into block chain data of the electronic invoice to be issued by taking the digital identity verification information as a unique identifier;
and after the electronic invoice block chain data are issued, the electronic invoice block chain data are stored in an electronic invoice block chain in a distributed manner.
7. The system of claim 6, wherein the data querying means comprises:
an electronic invoice blockchain data viewing module for: generating digital identity verification information of the electronic invoice according to the acquired verification code of the electronic invoice;
generating a secret key according to the acquired check code of the electronic invoice;
taking the digital identity verification information as a unique identifier, and acquiring ciphertext data and plaintext data of the electronic invoice corresponding to the digital identity verification information from an electronic invoice block chain;
and decrypting the ciphertext data according to the secret key to obtain the key information of the electronic invoice.
8. The system of claim 6, wherein the data status updating means comprises:
an electronic invoice blockchain data appending module for:
generating digital identity verification information of the electronic invoice according to a verification code of the electronic invoice acquired from an authorized party;
generating a secret key according to the acquired check code of the electronic invoice;
acquiring ciphertext data and plaintext data of the electronic invoice corresponding to the digital identity verification information from an electronic invoice block chain by taking the digital identity verification information as a unique identifier;
decrypting the ciphertext data of the electronic invoice according to the secret key to obtain key information of the electronic invoice;
according to an authorization operation obtained from an authorized party, extracting the state information of the electronic invoice from the plaintext data and checking the state information; or, extracting the state information of the electronic invoice from the plaintext data and updating the state information of the electronic invoice;
the status information of the electronic invoice comprises: the invoice is valid, the invoice is credited and reimbursed, the invoice is withheld, and the invoice is filed.
9. The system of claim 6,
the digital identity verification information module (100) is further configured to:
and carrying out secondary digital abstract operation on the check code of the electronic invoice to generate digital identity check information of the electronic invoice.
10. The system of claim 6,
-ciphertext data generating means (300), further configured to:
and carrying out digital digest operation on the check code of the electronic invoice to generate a secret key.
CN201811641489.5A 2018-12-29 2018-12-29 Electronic invoice circulation control method, device and system Active CN109889343B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811641489.5A CN109889343B (en) 2018-12-29 2018-12-29 Electronic invoice circulation control method, device and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811641489.5A CN109889343B (en) 2018-12-29 2018-12-29 Electronic invoice circulation control method, device and system

Publications (2)

Publication Number Publication Date
CN109889343A CN109889343A (en) 2019-06-14
CN109889343B true CN109889343B (en) 2023-04-14

Family

ID=66925401

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811641489.5A Active CN109889343B (en) 2018-12-29 2018-12-29 Electronic invoice circulation control method, device and system

Country Status (1)

Country Link
CN (1) CN109889343B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111222929A (en) * 2019-12-31 2020-06-02 航天信息股份有限公司 Electronic invoice application method and device supporting dynamic file permission
CN112163917B (en) * 2020-09-28 2024-06-07 财付通支付科技有限公司 Bill processing method and device based on blockchain, medium and electronic equipment
CN112613902B (en) * 2020-12-15 2024-06-07 航天信息股份有限公司 Method and system for establishing user portrait

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170243193A1 (en) * 2016-02-18 2017-08-24 Skuchain, Inc. Hybrid blockchain
CN108830600B (en) * 2018-06-19 2022-02-18 方欣科技有限公司 Block chain-based electronic invoice system and implementation method
CN108922012B (en) * 2018-07-11 2020-05-19 北京大账房网络科技股份有限公司 Invoice checking method without leakage of original information based on block chain technology
CN110400188B (en) * 2018-08-16 2021-08-13 深圳市智税链科技有限公司 Electronic bill generating method, electronic bill generating device, storage medium and computer equipment

Also Published As

Publication number Publication date
CN109889343A (en) 2019-06-14

Similar Documents

Publication Publication Date Title
CN109766712B (en) Credit reporting streaming method based on block chain and Intel SGX
EP3644265A1 (en) Method and system for digital currency transaction verification and registration
CN100401669C (en) Method and system for the supply of data, transactions and electronic voting
US5841865A (en) Enhanced cryptographic system and method with key escrow feature
DE69534490T2 (en) METHOD FOR THE SAFE APPLICATION OF DIGITAL SIGNATURES IN A COMMERCIAL ENCRYPTION SYSTEM
US11095646B2 (en) Method and system for data security within independent computer systems and digital networks
US20150356523A1 (en) Decentralized identity verification systems and methods
CN109074434A (en) Method and system for verifying ownership of digital assets using distributed hash tables and point-to-point distributed ledgers
US20080263645A1 (en) Privacy identifier remediation
CN108737442A (en) A kind of cryptographic check processing method
CN109889343B (en) Electronic invoice circulation control method, device and system
CN112905979B (en) Electronic signature authorization method and device, storage medium and electronic device
CN111639952A (en) Returned goods checking method, returned goods checking system, returned goods checking server and returned goods checking terminal based on block chain
CN111491024A (en) Block chain-based bank letter method, system, terminal and storage medium
CN110619223A (en) Block chain-based safe sharing method for credit data in personal credit investigation system
US20180268380A1 (en) System and method for electronic deposit and authentication of original electronic information objects
Haga et al. Blockchain-based autonomous notarization system using national eid card
CN116436708A (en) Trusted data sharing method and system based on blockchain technology
Abadi et al. Payment with Dispute Resolution: A Protocol for Reimbursing Frauds Victims
Zhang et al. FutureText: A blockchain-based contract signing prototype with security and convenience
CN102609842A (en) Payment cipher device based on hardware signature equipment, and application method of payment cipher device
US11775677B2 (en) Tokenization and encryption for secure data transfer
CN114565485A (en) Labor contract management method and system based on block chain ipfs storage
Chen et al. A traceable online insurance claims system based on blockchain and smart contract technology. Sustainability 2021, 13, 9386
CN117649307A (en) Invoice data controllable access method based on alliance chain

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant