CN109889343A - Electronic invoice circulation control method and device - Google Patents
Electronic invoice circulation control method and device Download PDFInfo
- Publication number
- CN109889343A CN109889343A CN201811641489.5A CN201811641489A CN109889343A CN 109889343 A CN109889343 A CN 109889343A CN 201811641489 A CN201811641489 A CN 201811641489A CN 109889343 A CN109889343 A CN 109889343A
- Authority
- CN
- China
- Prior art keywords
- electronic invoice
- invoice
- data
- block chain
- information
- 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.)
- Granted
Links
Abstract
The present invention provides a kind of electronic invoice circulation control method, comprising: according to the check code of the electronic invoice of acquisition, generates the digital identity check information of the electronic invoice;According to the essential information of the electronic invoice of acquisition, the clear data of the electronic invoice is generated;Key is generated according to the check code of the electronic invoice of acquisition, is encrypted using the key message of the key pair electronic invoice, to generate the ciphertext data of the electronic invoice;Using the digital identity check information as unique identification, the ciphertext data of the electronic invoice and clear data group are combined into electronic invoice block chain data publication.Electronic invoice provided by the invention circulation control method carried out on chain, by way of being combined under chain electronic invoice block chain data deposit card and data are saved from damage, reduce the storage resource of electronic invoice block chain data occupancy, and improves efficiency when accessing and update after electronic invoice block chain enters chain.
Description
Technical field
The present invention relates to electronic invoice technical fields, and more particularly, to a kind of electronic invoice circulation control method
And device.
Background technique
Electronic invoice is the product for adapting to information age development, and the effect of electronic invoice is the same with paper invoice, manager
Formula is the same with paper invoice, uniformly carries out that taxpayer's qualification is appraised and decided, ticket kind is appraised and decided by tax office, and uniformly sells invoice generation by tax office
Code, number, paper invoice are printed by tax office is unified, are used for taxpayer;Electronic invoice then uses the unified pattern formulated of tax office,
Electronic invoice layout files is generated according to unified pattern by taxpayer.
The generation of electronic invoice receives the consistent approval of society, uniqueness, can not tamper, low cost, low-carbon ring
It protects, transmitting such as facilitates gradually to be approved by businessman and consumer at the advantages, greatly promotion social production rate.
Electronic invoice has played huge work as business transaction certificate, concerning taxes voucher and accounting voucher in social production
With.
Currently, in use, there is the problem of single data are reused in many ways in electronic invoice.To improve electricity
The credibility of sub- invoice needs to introduce the evidence obtaining that the electronic invoice true and false is carried out from third-party verification information, this causes in electricity
It needs that additional information exchange is caused to operate in sub- invoice use process, causes communication bandwidth and a large amount of of computing resource open
Pin.
Summary of the invention
The present invention provides a kind of electronic invoice circulation control method and device, is tested with overcoming must be introduced into from third-party
The technical issues of card information can just carry out electronic invoice evidence obtaining.
In a first aspect, including the following steps: the present invention provides a kind of electronic invoice circulation control method
S10: according to the check code of the electronic invoice of acquisition, the digital identity check information of the electronic invoice is generated;
S20: according to the essential information of the electronic invoice of acquisition, the clear data of the electronic invoice is generated;
S30: generating key according to the check code of the electronic invoice of acquisition, is believed using the key of the key pair electronic invoice
Breath is encrypted, to generate the ciphertext data of the electronic invoice;
S40: using the digital identity check information as unique identification, by the ciphertext data and plaintext number of the electronic invoice
Electronic invoice block chain data publication is combined into according to group;
Wherein, the electronic invoice block chain data after distribution, store to distribution in electronic invoice block chain.
Specifically, further includes:
According to the check code of the electronic invoice of acquisition, the digital identity check information of electronic invoice is generated;
According to the check code of the electronic invoice of acquisition, key is generated;
Using the digital identity check information as unique identification, obtained and the digital identity from electronic invoice block chain
The ciphertext data and clear data of the corresponding electronic invoice of check information;
The key message of electronic invoice is obtained to the ciphertext data deciphering according to the key.
Specifically, further includes:
According to the check code of the electronic invoice obtained from authorized party, the digital identity check information of electronic invoice is generated;
According to the check code of the electronic invoice of acquisition, key is generated;
Using the digital identity check information as unique identification, obtained and the digital identity from electronic invoice block chain
The ciphertext data and clear data of the corresponding electronic invoice of check information;
The key message of the electronic invoice is obtained to the ciphertext data deciphering of the electronic invoice according to the key;
According to the Authorized operation obtained from authorized party, the status information and core of electronic invoice are extracted from the clear data
It is right;Or, extracting the status information of electronic invoice from the clear data and updating the status information of the electronic invoice;
The status information of the electronic invoice include: invoice effectively, invoice kept accounts reimbursement, invoice deduction, invoice filing.
Specifically,
According to the check code of the electronic invoice of acquisition, the digital identity check information of the electronic invoice is generated, comprising:
Secondary digital digest operation is carried out to the check code of electronic invoice, to generate the digital identity school of the electronic invoice
Test information.
Specifically, key is generated according to the check code of the electronic invoice of acquisition, comprising:
Digital digest operation is carried out to the check code of electronic invoice, to generate key.
Second aspect, the present invention provides a kind of electronic invoice circulation control devices, comprising:
Digital identity check information module 100 generates the electronics hair for the check code according to the electronic invoice of acquisition
The digital identity check information of ticket;
Clear data generation module 200 generates the electronic invoice for the essential information according to the electronic invoice of acquisition
Clear data;
Ciphertext data generation module 300, is used for: key is generated according to the check code of the electronic invoice of acquisition, using described
The key message of key pair electronic invoice is encrypted, to generate the ciphertext data of the electronic invoice;
Block chain data publication module 400, is used for: using the digital identity check information as unique identification, by the electricity
The ciphertext data and clear data group of sub- invoice are combined into electronic invoice block chain data publication;
Wherein, the electronic invoice block chain data after distribution, store to distribution in electronic invoice block chain.
Specifically, further includes:
Electronic invoice block chain data check module, are used for: according to the check code of the electronic invoice of acquisition, generating electronics hair
The digital identity check information of ticket;
According to the check code of the electronic invoice of acquisition, key is generated;
Using the digital identity check information as unique identification, obtained and the digital identity from electronic invoice block chain
The ciphertext data and clear data of the corresponding electronic invoice of check information;
The key message of electronic invoice is obtained to the ciphertext data deciphering according to the key.
Specifically, further includes:
Electronic invoice block chain data supplementing module, is used for:
According to the check code of the electronic invoice obtained from authorized party, the digital identity check information of electronic invoice is generated;
According to the check code of the electronic invoice of acquisition, key is generated;
Using the digital identity check information as unique identification, obtained and the digital identity from electronic invoice block chain
The ciphertext data and clear data of the corresponding electronic invoice of check information;
The key message of the electronic invoice is obtained to the ciphertext data deciphering of the electronic invoice according to the key;
According to the Authorized operation obtained from authorized party, the status information and core of electronic invoice are extracted from the clear data
It is right;Or, extracting the status information of electronic invoice from the clear data and updating the status information of the electronic invoice;
The status information of the electronic invoice include: invoice effectively, invoice kept accounts reimbursement, invoice deduction, invoice filing.
Specifically, the digital identity check information module 100, is also used to:
Secondary digital digest operation is carried out to the check code of electronic invoice, to generate the digital identity school of the electronic invoice
Test information.
Specifically, ciphertext data generation module 300, is also used to:
Digital digest operation is carried out to the check code of electronic invoice, to generate key.
Electronic invoice circulation control method provided by the invention and device, complete electronic invoice by means of block chain technology
Deposit card and verifying, carried out on chain, by way of being combined under chain electronic invoice block chain data deposit card and data are saved from damage,
Not only the storage resource of electronic invoice block chain data occupancy had been reduced, but also has improved electronic invoice block chain and enter to access after chain and more
Efficiency when new improves the runnability of electronic invoice circulation control system on the whole.
Detailed description of the invention
By reference to the following drawings, exemplary embodiments of the present invention can be more fully understood by:
Fig. 1 is the flow diagram of the electronic invoice circulation control method of one embodiment of the invention;
Fig. 2 is the composition schematic diagram of the electronic invoice circulation control device of one embodiment of the invention;
Fig. 3 is that the electronic invoice node data of one embodiment of the invention enters the flow diagram of chain;
Fig. 4 is the flow diagram that the electronic invoice node data of one embodiment of the invention is inquired;
Fig. 5 is the additional flow diagram of the electronic invoice node data state of one embodiment of the invention.
Specific embodiment
Exemplary embodiments of the present invention are introduced referring now to the drawings, however, the present invention can use many different shapes
Formula is implemented, and is not limited to the embodiment described herein, and to provide these embodiments be at large and fully disclose
The present invention, and the scope of the present invention is sufficiently conveyed to person of ordinary skill in the field.Show for what is be illustrated in the accompanying drawings
Term in example property embodiment is not limitation of the invention.In the accompanying drawings, identical cells/elements use identical attached
Icon note.
Unless otherwise indicated, term (including scientific and technical terminology) used herein has person of ordinary skill in the field
It is common to understand meaning.Further it will be understood that with the term that usually used dictionary limits, should be understood as and its
The context of related fields has consistent meaning, and is not construed as Utopian or too formal meaning.
Block chain technology is derived from the development of bit coin Floor layer Technology.The maximum feature of block chain is open, common recognition.It is added to
As long as any node in block chain abides by block chain rule, block chain can be runed and safeguarded jointly.Number on block chain
According to by common recognition, formation can not distort, the block chain type of non-repudiation storage, data be all to all members it is transparent visible,
Such mode natively forms the faith mechanism of block chain.
What block chain was established is a kind of common recognition mechanism of decentralization, and this common recognition mechanism combines digital encryption and wins
Opinion is played chess, so that participant need not voluntarily form the trusted context mutually restrained in the case where the constraint of any external forced.This
The believable environment of kind eliminates in centralization licensing mode, the necessity of external control, or even exactly establishes in mutual mistrust
On basis, then this decentralization, go that the block chain framework trusted solved exactly this full of virtually with it is anonymous
The credit and governing problem of network world.
The control method as shown in Figure 1, electronic invoice of one embodiment of the invention circulates, includes the following steps:
S10: according to the check code of the electronic invoice of acquisition, the digital identity check information of the electronic invoice is generated;
S20: according to the essential information of the electronic invoice of acquisition, the clear data of the electronic invoice is generated;
S30: generating key according to the check code of the electronic invoice of acquisition, is believed using the key of the key pair electronic invoice
Breath is encrypted, to generate the ciphertext data of the electronic invoice;
S40: using the digital identity check information as unique identification, by the ciphertext data and plaintext number of the electronic invoice
Electronic invoice block chain data publication is combined into according to group;
Wherein, the electronic invoice block chain data after distribution, in whole peer nodes of electronic invoice block chain
On store in a distributed manner.
The embodiment electronic invoice circulation control method royalities office system generate electronic invoice terminal in (namely
Invoice issuing side) it disposes and applies.
It is construed as, the essential information of the electronic invoice is that simultaneously treated for screening from whole invoice informations;
Whole invoice informations includes: invoice codes, number, date, invoice status, electronic invoice service platform ID, purchase
Square identifier, comes back at consumer's cell-phone number, type etc..
The essential information of the electronic invoice includes: the check value for obtain after HASH twice to invoice check code;Electricity
Sub- invoice service platform ID;The value obtained after Hash is carried out to the layout files of electronic invoice;To the data of electronic invoice
File carries out the value obtained after a hash.
Information above can be used as clear data and upload in electronic invoice block chain, in order to subsequent in electronic invoice area
When accessing electronic invoice in block chain, the preliminary indirect audit of invoice validity, authenticity is carried out;That is, not depending on invoice
Full ticket information and the validity of invoice, authenticity are audited, raising review efficiency can be adjusted, reduce electronic invoice block
The total capacity of data in chain.
It is construed as, electronic invoice naturally has privacy as a kind of business voucher;Therefore, by electronic invoice
It is published to again after encrypted message key in electronic invoice block chain and is known together and circulated, electronic invoice block chain number can be improved
According to safety.
The key message of the electronic invoice is that simultaneously treated for screening from whole invoice informations;
Whole invoice informations includes: invoice codes, number, date, invoice status, electronic invoice service platform ID, purchase
Square identifier, comes back at consumer's cell-phone number, type etc..
The key message of the electronic invoice includes: resource address URL when electronic invoice generates in tax office system, is visited
It asks the address, the full ticket information of the electronic invoice can be directly obtained.
Compared to the full ticket information of electronic invoice, will be published in electronic invoice block chain after resource address URL encryption
It is known together and is circulated, not only can be reduced the total capacity of data in electronic invoice block chain, but also be able to achieve and electricity is directly quickly accessed
The full ticket information of sub- invoice, high-efficient, resource occupation is few.
It is construed as, is encrypted in the key message using the key pair electronic invoice, to generate the electronics
When the ciphertext data of invoice, with the various Encryption Algorithm of flexible choice (various digital digest algorithms and data encryption algorithm) and it can add
The encryption version of close algorithm.In decryption, according to the encryption version of Encryption Algorithm corresponding decipherment algorithm and Encryption Algorithm
Ciphertext data are decrypted.
Specifically, the electronic invoice circulation control method of the embodiment, further includes:
According to the check code of the electronic invoice of acquisition, the digital identity check information of electronic invoice is generated;
According to the check code of the electronic invoice of acquisition, key is generated;
Using the digital identity check information as unique identification, obtained and the digital identity from electronic invoice block chain
The ciphertext data and clear data of the corresponding electronic invoice of check information;
The key message of electronic invoice is obtained to the ciphertext data deciphering according to the key.
The step of electronic invoice circulation control method of the embodiment is access electronic invoice block chain data, in consumer
And (namely invoice user and audit side) deployment and application in the terminal for checking electronic invoice of enterprise.
Specifically, further includes:
According to the check code of the electronic invoice obtained from authorized party, the digital identity check information of electronic invoice is generated;
According to the check code of the electronic invoice of acquisition, key is generated;
Using the digital identity check information as unique identification, obtained and the digital identity from electronic invoice block chain
The ciphertext data and clear data of the corresponding electronic invoice of check information;
The key message of the electronic invoice is obtained to the ciphertext data deciphering of the electronic invoice according to the key;
According to the Authorized operation obtained from authorized party, the status information and core of electronic invoice are extracted from the clear data
It is right;Or, extracting the status information of electronic invoice from the clear data and updating the status information of the electronic invoice;
The status information of the electronic invoice include: invoice effectively, invoice kept accounts reimbursement, invoice deduction, invoice filing.
The electronic invoice circulation control method of the embodiment is to access and modify electronic invoice block chain data to confirm hair
In the step of ticket state, the audit in consumer and enterprise and the terminal using electronic invoice (namely invoice user and audit
Side) it disposes and applies.
Specifically, according to the check code of the electronic invoice of acquisition, the digital identity check information of the electronic invoice is generated,
Include:
Secondary digital digest operation is carried out to the check code of electronic invoice, to generate the digital identity school of the electronic invoice
Test information.
Specifically, key is generated according to the check code of the electronic invoice of acquisition, comprising:
Digital digest operation is carried out to the check code of electronic invoice, to generate key.
Above digital digest operation is preferably Hash operation, and uniqueness is good, high safety.
Second aspect, the present invention provides a kind of electronic invoice circulation control devices, comprising:
Digital identity check information module 100 generates the electronics hair for the check code according to the electronic invoice of acquisition
The digital identity check information of ticket;
Clear data generation module 200 generates the electronic invoice for the essential information according to the electronic invoice of acquisition
Clear data;
Ciphertext data generation module 300, is used for: key is generated according to the check code of the electronic invoice of acquisition, using described
The key message of key pair electronic invoice is encrypted, to generate the ciphertext data of the electronic invoice;
Block chain data publication module 400, is used for: using the digital identity check information as unique identification, by the electricity
The ciphertext data and clear data group of sub- invoice are combined into electronic invoice block chain data publication;
Wherein, the electronic invoice block chain data after distribution, in whole peer nodes of electronic invoice block chain
On store in a distributed manner.
Specifically, further includes:
Electronic invoice block chain data check module, are used for: according to the check code of the electronic invoice of acquisition, generating electronics hair
The digital identity check information of ticket;
According to the check code of the electronic invoice of acquisition, key is generated;
Using the digital identity check information as unique identification, obtained and the digital identity from electronic invoice block chain
The ciphertext data and clear data of the corresponding electronic invoice of check information;
The key message of electronic invoice is obtained to the ciphertext data deciphering according to the key.
Specifically, further includes:
Electronic invoice block chain data supplementing module, is used for:
According to the check code of the electronic invoice obtained from authorized party, the digital identity check information of electronic invoice is generated;
According to the check code of the electronic invoice of acquisition, key is generated;
Using the digital identity check information as unique identification, obtained and the digital identity from electronic invoice block chain
The ciphertext data and clear data of the corresponding electronic invoice of check information;
The key message of the electronic invoice is obtained to the ciphertext data deciphering of the electronic invoice according to the key;
According to the Authorized operation obtained from authorized party, the status information and core of electronic invoice are extracted from the clear data
It is right;Or, extracting the status information of electronic invoice from the clear data and updating the status information of the electronic invoice;
The status information of the electronic invoice include: invoice effectively, invoice kept accounts reimbursement, invoice deduction, invoice filing.
Specifically, the digital identity check information module 100, is also used to:
Secondary digital digest operation is carried out to the check code of electronic invoice, to generate the digital identity school of the electronic invoice
Test information.
Specifically, ciphertext data generation module 300, is also used to:
Digital digest operation is carried out to the check code of electronic invoice, to generate key.
The electronic invoice circulation control device of the embodiment in the specific implementation, can have diversified forms, as electronics is sent out
Ticket block chain data generating device, electronic invoice block chain data query device, electronic invoice block chain data mode more new clothes
It sets, relates separately to the various businesses type of electronic invoice circulation overall process.
These electronic invoice block chain data generating devices, electronic invoice block chain data query device, multiple electronics hairs
Ticket block chain data mode updating device, in its local, is each configured with and deposits accordingly and in electronic invoice block chain link
Storage device (database or disk permutation), in real time to uploading to electronic invoice block chain data on electronic invoice block chain
It knows together, and according to preset condition of acceptance, receives relevant electronic invoice block chain data.
Whole electronic invoice circulation control devices are connected on electronic invoice block chain in a manner of on a 50-50 basis, constitute electronics
Invoice block catenary system.
Block chain goes central characteristics that the reliability that electronic invoice deposits card can be enhanced;Tax office system is passed through to electronic invoice
The data verified are converted, and are formed data summarization and password, have both been accomplished secret protection, also ensured that electronic invoice deposits card
The non repudiation of data and characteristic can not be distorted;The each side for holding electronic invoice necessary information can access block chain at any time,
Carry out invoice validation;Solves the technology hardly possible for needing to introduce from third-party verification information and assisting to carry out electronic invoice notarization
Topic;The whole electronization of electronic invoice is realized, so that electronic invoice easy, can be deposited quickly as digital asset
The problem of card and evidence obtaining.
Electronic invoice circulation control device is low to hardware requirement, implementation cost is advantageously reduced, so that invoice verification is more
Add easy, feasible;Not only privacy of user is protected, but also realizes and safely and reliably deposits card effect to electronic invoice.
Electronic invoice circulation control method and device are not needed by the way of combining under chain cochain by the institute of invoice
There are data to be typed into electronic invoice block chain data, had not only reduced the storage resource of electronic invoice block chain data occupancy, but also
Efficiency when accessing and update after electronic invoice block chain enters chain is improved, improves electronic invoice circulation control system on the whole
Runnability.
Currently, electronic invoice technology relative maturity.The invoice codes and invoice number of electronic invoice are all made of the whole nation
Unified coding;Electronic invoice is when issuing, and using unified anti-counterfeiting technology, carries out ciphertext encryption to unanimous vote face;It is also complete to invoice
Nominal value carries out digest calculations, generates invoice check code;Finally, covering invoice beginning enterprise after the generation of electronic invoice layout files
The Invoice Seal of industry carries out the encapsulation of entire layout files.
Ordinary electronic invoice deposits card and covers Electronic Signature by the layout files to electronic invoice, guarantees that electronic invoice is going out
Do not turned to change when tool;But the data that other links generate are easy illegally or maliciously to be distorted.
Such as, after electronic invoice layout files generates, the process control that circulates to invoice is required except in profession, otherwise invoice
During circulation, the electronic data that each side is formed has the risk being tampered.And the process that circulates to invoice is required according to profession
Control then needs to meet: system environments, the equipment that must be generated to network environment, electronic data when saving electronic data from damage carry out clear
Clean property inspection;Evidence should be obtained standard time service timestamp by national time service center, carry out evidence using hash algorithm when fixed
Consistency desired result value calculates;Technology secrecy etc. is carried out to data and transmission channel when data are transmitted.Requirements above is complicated, from technology
It is difficult to carry out in upper and cost.
Electronic invoice is completed to prove as business transaction certificate, concerning taxes voucher and accounting voucher to it, it is necessary to which dependence has by force
The chain of evidence of power, this chain of evidence must be that anyone can not forge and destroy, and it is extremely high for forging cost in other words
And it is almost impossible.
Card of depositing common at present proves relatively easy, e.g., provides bill, communications records carry out depositing card.Because of these evidences
It is very easy to be forged and destroy, this to deposit card mode not stringent, it is difficult to meet requirement.
The electronic invoice circulation control method that the embodiment provides, carries out electronic invoice using block chain technology and deposits card.Tool
Body, it is exactly the advantage using block chain, in block chain data, electronic invoice layout files and data file is carried out actively
Protection;Electronic invoice circulation control system is established, solves the problems, such as that electronic invoice is saved from damage and notarization problem based on block chain technology.
When progress electronic invoice deposits card, if by electronic invoice and its depositing the server demonstrate,proved data and be stored in centralization
On, then electronic invoice may occur and destroy or loss by changing, stealing etc., electronic invoice will be caused as depositing and demonstrate,prove foundation not
Complete phenomenon causes to deposit card failure.
Electronic invoice is carried out based on block chain technology and deposits card, then what is taken is to deposit card means in many ways.Specifically, in order to guarantee
Integrality, the authenticity of card information are deposited, third-party platform and tax office establish electronic invoice alliance chain, carry out multi-party common recognition and deposit card.
What this mode was formed is that multiple spot deposits card.Specifically, by carrying out electricity in authoritative institutions such as judicial expertise, audit, notarization, arbitrations
Sub- invoice deposits card service in many ways, and the authority that electronic invoice deposits card can be improved, be conducive to the notarization for depositing card, in solution department
Landing is easier when method problem.
Therefore, it is usually third-party platform in the electronic invoice locally saved that electronic invoice, which deposits card data, is belonged to from card card
According to being easily lost, distort, the legal effect of evidence is easy to be queried.Once generating dispute, platform service quotient (i.e. third party
Electronic invoice service platform) it must cooperate and show original electronic invoice data, via the evidence obtaining of the mechanisms such as judicial expertise, notarization, mirror
After fixed, vaild evidence could be become by providing related proof, obtain the approval of law court.
In order to meet the needs of client deposits card for electronic invoice, the method for the embodiment is carrying out area to electronic invoice
When block chain deposits card, just the card of depositing of intervention electronic invoice is saved from damage since electronic invoice life cycle.
It is the authoritative machines such as electronic third-party invoice service platform joint tax office, consumers' association, finance that block chain electronic invoice, which deposits card,
Structure initiates block chain alliance chain jointly, provides electronic invoice access card service.Using block chain decentralization feature, invoice is realized
Evidence solidification and indissolubility save.Once generating dispute, user can collect evidence at any time from the arbitrary node in alliance's chain, the full chain of data
The each node of item deposits card, data safety, anti-tamper, enhances confidence level.Arbitration organ can be directly from the node of its O&M
Middle acquisition and verify data are considered as positive evidence card data are deposited, it is no longer necessary to which the third-party institution provides a certificate.
Specifically, it is just fixed up card information is deposited when electronic invoice generates, and is being transmitted to alliance's chain at the first time
Each node server, allow certifying organization that can verify primitiveness, the authenticity of a certain electronic invoice in the following any time;Electricity
The information one that sub- invoice generates during beginning and circulation is stored, either party can not distort.
Specifically, electronic invoice initial data is generated by taxation control system.After electronic invoice generation, electronic invoice is generated
Data file and layout files;Electronic invoice initial data enters the electronics bottom account library of tax office by taxation control system.
It is construed as, the data file and layout files of electronic invoice utilize tax by electronic third-party invoice service platform
After control system generates, there is invoice check code in the nominal value of electronic invoice.
Correspondingly, consumer (recipient of invoice) or enterprise (the pin core side of invoice, it is also possible to while be connecing for invoice
Debit) when using card ground electronic invoice has been deposited, from the cleartext information of invoice, invoice check code is obtained, invoice is verified
Code is electronic invoice data file cipher text and layout files ciphertext are decrypted as password after a hash after extract electricity
Sub- invoice data file and layout files.
It can be directly to the electronics obtained from block chain according to the data file hash value and layout files hash value
The authenticity of invoice is verified.Specifically, to from the data file in the clear data of the electronic invoice obtained on block chain
Or layout files does hash operation, deposits the corresponding value demonstrate,proved in block chain data with electronic invoice and is compared, and compares logical
Crossing can judge that electronic invoice is verified;
Only invoice summary info, such as invoice codes, invoice number, third-party service platform are compiled on electronic invoice block chain
The contents such as code are stored as plaintext;The acquisition address (URL) of full ticket information is stored on block chain as ciphertext.
As shown in figure 3, third-party service platform, after generating electronic invoice initial data by taxation control system, which sends out
Ticket circulates control device according to the following data composition clear data extracted from taxation control system, comprising:
Invoice codes, number, date, invoice status;
Verification password (HASH twice specifically, is carried out to invoice check code) is generated according to the invoice check code received;
Electronic invoice service platform ID, the encryption version of symmetric encipherment algorithm;
And other optional satellite informations, such as purchaser's identifier, consumer's cell-phone number (optional).
The electronic invoice circulates control device using following methods generation ciphertext data:
Encryption key is generated, specifically, a HASH is carried out to invoice check code;
Using the encryption key, resource address URL is encrypted using symmetric encryption method, obtains resource address ciphertext
Data;
Further, electronic invoice circulation control device by the above clear data and ciphertext data be filled into one it is empty
In electronic invoice block chain data, obtain depositing card data for the block chain of the electronic invoice;
It is issued card data are deposited for the block chain of the electronic invoice in electronic invoice block chain.
Correspondingly, each electronic invoice circulation control device in entire electronic invoice block chain can be synchronously received and deposit
It stores up the block chain for being directed to the electronic invoice and deposits card data.
It is construed as, although whole nodes of entire electronic invoice block catenary system can be synchronously received and store
Card data are deposited for the block chain of the electronic invoice, but only its clear portion can be accessed directly;And its cipher text part, only
There is the recipient of authorization just available using symmetrical decryption method;Also the recipient only authorized, just can be to electronic invoice
State modify or edit.
As shown in figure 4, consumer is from electronic invoice block chain when inquiring electronic invoice information, according to interface prompt,
Typing invoice codes, number, check code;
Electronic invoice circulation control device calculates verification password (specifically, to hair according to the invoice check code received
Ticket check code carries out HASH twice);
According to the identification information that invoice codes, number or verification password are formed, searched in electronic invoice block chain, from
Electronic invoice block chain data corresponding with the identification information are obtained in block chain;
Encryption key (HASH specifically, is done to invoice check code) is calculated according to the invoice check code received, benefit
The address ciphertext in the electronic invoice block chain data of acquisition is decrypted with the encryption key, obtains invoice resource URL;
The invoice resource URL obtained using decryption, is accessed invoice resource URL, obtains the electricity from third-party service platform
The full ticket information of sub- invoice.
As shown in figure 5, block chain node of the enterprise ERP where it write off to electronic invoice when handling, according to boundary
Face prompt, is passed to invoice codes, number, invoice status, check code;
Electronic invoice circulation control device calculates verification password (specifically, to hair according to the invoice check code received
Ticket check code carries out HASH twice);
According to invoice codes, number, invoice status (e.g., invoice effectively, invoice kept accounts reimbursement, invoice deduction, invoice returns
Shelves), the device-identification information that is formed after verification password combination, searched in electronic invoice block chain, from block chain data acquisition system
It is middle to obtain electronic invoice block chain data corresponding with the identification information, and more new state.
It is construed as, block chain node of the enterprise ERP where it write off to electronic invoice when handling, and also includes
Acquisition operation to electronic invoice data, is omitted here.
In addition, block chain node of the enterprise ERP where it write off to electronic invoice when handling, has and be directed to the electricity
The authorization of sub- invoice status change.The authorization is from user using invoice codes, number, invoice status, verification password as in plain text
Form pass to enterprise ERP.
The embodiment is described by reference to a small amount of embodiment above.However, known to one of skill in the art
, as defined by subsidiary Patent right requirement, in addition to the embodiment other embodiments disclosed above are equally fallen
In the range of the embodiment.
Normally, all terms used in the claims are all solved according to them in the common meaning of technical field
It releases, unless in addition clearly being defined wherein.All references " one/described/be somebody's turn to do [device, component etc.] " are all opened ground
At least one example being construed in described device, component etc., unless otherwise expressly specified.Any method disclosed herein
Step need not all be run with disclosed accurate sequence, unless explicitly stated otherwise.
Claims (10)
- The control method 1. a kind of electronic invoice circulates, which comprises the steps of:S10: according to the check code of the electronic invoice of acquisition, the digital identity check information of the electronic invoice is generated;S20: according to the essential information of the electronic invoice of acquisition, the clear data of the electronic invoice is generated;S30: according to the check code of the electronic invoice of acquisition generate key, using the key pair electronic invoice key message into Row encryption, to generate the ciphertext data of the electronic invoice;S40: using the digital identity check information as unique identification, by the ciphertext data and clear data group of the electronic invoice It is combined into electronic invoice block chain data publication;Wherein, the electronic invoice block chain data after distribution, store to distribution in electronic invoice block chain.
- 2. the method according to claim 1, wherein further include:According to the check code of the electronic invoice of acquisition, the digital identity check information of electronic invoice is generated;According to the check code of the electronic invoice of acquisition, key is generated;Using the digital identity check information as unique identification, obtains from electronic invoice block chain and verified with the digital identity The ciphertext data and clear data of the corresponding electronic invoice of information;The key message of electronic invoice is obtained to the ciphertext data deciphering according to the key.
- 3. the method according to claim 1, wherein further include:According to the check code of the electronic invoice obtained from authorized party, the digital identity check information of electronic invoice is generated;According to the check code of the electronic invoice of acquisition, key is generated;Using the digital identity check information as unique identification, obtains from electronic invoice block chain and verified with the digital identity The ciphertext data and clear data of the corresponding electronic invoice of information;The key message of the electronic invoice is obtained to the ciphertext data deciphering of the electronic invoice according to the key;According to the Authorized operation obtained from authorized party, the status information of electronic invoice and verification are extracted from the clear data; Or, extracting the status information of electronic invoice from the clear data and updating the status information of the electronic invoice;The status information of the electronic invoice include: invoice effectively, invoice kept accounts reimbursement, invoice deduction, invoice filing.
- 4. the method according to claim 1, whereinAccording to the check code of the electronic invoice of acquisition, the digital identity check information of the electronic invoice is generated, comprising:Secondary digital digest operation is carried out to the check code of electronic invoice, to generate the digital identity verification letter of the electronic invoice Breath.
- 5. the method according to claim 1, whereinKey is generated according to the check code of the electronic invoice of acquisition, comprising:Digital digest operation is carried out to the check code of electronic invoice, to generate key.
- The control device 6. a kind of electronic invoice circulates characterized by comprisingDigital identity check information module 100 generates the electronic invoice for the check code according to the electronic invoice of acquisition Digital identity check information;Clear data generation module 200 generates the bright of the electronic invoice for the essential information according to the electronic invoice of acquisition Literary data;Ciphertext data generation module 300, is used for: generating key according to the check code of the electronic invoice of acquisition, utilizes the key The key message of electronic invoice is encrypted, to generate the ciphertext data of the electronic invoice;Block chain data publication module 400, is used for: using the digital identity check information as unique identification, the electronics being sent out The ciphertext data and clear data group of ticket are combined into electronic invoice block chain data publication;Wherein, the electronic invoice block chain data after distribution, store to distribution in electronic invoice block chain.
- 7. device according to claim 6, which is characterized in that further include:Electronic invoice block chain data check module, are used for: according to the check code of the electronic invoice of acquisition, generating electronic invoice Digital identity check information;According to the check code of the electronic invoice of acquisition, key is generated;Using the digital identity check information as unique identification, obtains from electronic invoice block chain and verified with the digital identity The ciphertext data and clear data of the corresponding electronic invoice of information;The key message of electronic invoice is obtained to the ciphertext data deciphering according to the key.
- 8. device according to claim 6, which is characterized in that further include:Electronic invoice block chain data supplementing module, is used for:According to the check code of the electronic invoice obtained from authorized party, the digital identity check information of electronic invoice is generated;According to the check code of the electronic invoice of acquisition, key is generated;Using the digital identity check information as unique identification, obtains from electronic invoice block chain and verified with the digital identity The ciphertext data and clear data of the corresponding electronic invoice of information;The key message of the electronic invoice is obtained to the ciphertext data deciphering of the electronic invoice according to the key;According to the Authorized operation obtained from authorized party, the status information of electronic invoice and verification are extracted from the clear data; Or, extracting the status information of electronic invoice from the clear data and updating the status information of the electronic invoice;The status information of the electronic invoice include: invoice effectively, invoice kept accounts reimbursement, invoice deduction, invoice filing.
- 9. device according to claim 6, which is characterized in thatThe digital identity check information module 100, is also used to:Secondary digital digest operation is carried out to the check code of electronic invoice, to generate the digital identity verification letter of the electronic invoice Breath.
- 10. device according to claim 6, which is characterized in thatCiphertext data generation module 300, is also used to:Digital digest operation is carried out to the check code of electronic invoice, to generate key.
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 true CN109889343A (en) | 2019-06-14 |
CN109889343B 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) |
Cited By (2)
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 |
CN112613902A (en) * | 2020-12-15 | 2021-04-06 | 航天信息股份有限公司 | Method and system for establishing user portrait |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20170243193A1 (en) * | 2016-02-18 | 2017-08-24 | Skuchain, Inc. | Hybrid blockchain |
CN108830600A (en) * | 2018-06-19 | 2018-11-16 | 方欣科技有限公司 | A kind of electronic invoice system and implementation method based on block chain |
CN108922012A (en) * | 2018-07-11 | 2018-11-30 | 北京大账房网络科技股份有限公司 | The invoice checking method of raw information is not revealed based on block chain technology |
CN109034924A (en) * | 2018-08-16 | 2018-12-18 | 腾讯科技(深圳)有限公司 | Electronic bill generation method, device, storage medium and computer equipment |
-
2018
- 2018-12-29 CN CN201811641489.5A patent/CN109889343B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20170243193A1 (en) * | 2016-02-18 | 2017-08-24 | Skuchain, Inc. | Hybrid blockchain |
CN108830600A (en) * | 2018-06-19 | 2018-11-16 | 方欣科技有限公司 | A kind of electronic invoice system and implementation method based on block chain |
CN108922012A (en) * | 2018-07-11 | 2018-11-30 | 北京大账房网络科技股份有限公司 | The invoice checking method of raw information is not revealed based on block chain technology |
CN109034924A (en) * | 2018-08-16 | 2018-12-18 | 腾讯科技(深圳)有限公司 | Electronic bill generation method, device, storage medium and computer equipment |
Cited By (2)
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 |
CN112613902A (en) * | 2020-12-15 | 2021-04-06 | 航天信息股份有限公司 | Method and system for establishing user portrait |
Also Published As
Publication number | Publication date |
---|---|
CN109889343B (en) | 2023-04-14 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
RU2144269C1 (en) | Method of secret use of digital signatures in commercial cryptographic system | |
US6983368B2 (en) | Linking public key of device to information during manufacture | |
US7047414B2 (en) | Managing database for reliably identifying information of device generating digital signatures | |
US20080224823A1 (en) | Identification Systems | |
US20080263645A1 (en) | Privacy identifier remediation | |
CN108288157A (en) | A kind of supply chain management method based on financial block chain technology | |
JP2006246543A (en) | Cryptographic system and method with key escrow function | |
CN107230050A (en) | The method and system of digital cash payment is carried out based on viewable numbers currency chip card | |
CN107240010B (en) | Method and system for transferring digital currency to digital currency chip card | |
WO2021250129A1 (en) | Computer implemented systems and methods for improved authentication of blockchain-based tokens | |
CN109889343A (en) | Electronic invoice circulation control method and device | |
CN116057554A (en) | Method for managing transaction data sets, participant unit, transaction register and payment system | |
CN107230074B (en) | Method and system for depositing digital currency into digital currency chip card | |
KR102376783B1 (en) | The blockchain-based transaction history confirmation system | |
EP0886248B1 (en) | Method and apparatus for registration of information with plural institutions and recording medium with registration program stored thereon | |
CN112418867A (en) | Distributed token payment method based on block chain | |
US20040015688A1 (en) | Interactive authentication process | |
KR100830969B1 (en) | Method and System for Implementing Financial Transactions Using OTP | |
US20240127242A1 (en) | Methods and systems for processing customer-initiated payment transactions | |
CN115964692A (en) | Cross-system electronic bill one-way docking and information authentication system and method | |
CN113793149A (en) | Off-line transaction authentication system and method, central server and client | |
AU2008203525B2 (en) | Linking public key of device to information during manufacturing | |
Chine et al. | Digital Signature Realities in Modern Businesses |
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 |