CN109165957A - Invoice data method of charging out, system and relevant device based on block chain - Google Patents

Invoice data method of charging out, system and relevant device based on block chain Download PDF

Info

Publication number
CN109165957A
CN109165957A CN201810922801.1A CN201810922801A CN109165957A CN 109165957 A CN109165957 A CN 109165957A CN 201810922801 A CN201810922801 A CN 201810922801A CN 109165957 A CN109165957 A CN 109165957A
Authority
CN
China
Prior art keywords
invoice
data
reimbursement
service node
request
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201810922801.1A
Other languages
Chinese (zh)
Inventor
张民遐
林宇斌
吕小东
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hainan High Light Technology Co Ltd
Original Assignee
Hainan High Light Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hainan High Light Technology Co Ltd filed Critical Hainan High Light Technology Co Ltd
Priority to CN201810922801.1A priority Critical patent/CN109165957A/en
Publication of CN109165957A publication Critical patent/CN109165957A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING; COUNTING
    • G06QDATA PROCESSING SYSTEMS OR METHODS, SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL, SUPERVISORY OR FORECASTING PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL, SUPERVISORY OR FORECASTING PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q30/00Commerce, e.g. shopping or e-commerce
    • G06Q30/01Customer relationship, e.g. warranty
    • G06Q30/018Business or product certification or verification
    • G06Q30/0185Product, service or business identity fraud
    • GPHYSICS
    • G06COMPUTING; CALCULATING; COUNTING
    • G06QDATA PROCESSING SYSTEMS OR METHODS, SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL, SUPERVISORY OR FORECASTING PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL, SUPERVISORY OR FORECASTING PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q30/00Commerce, e.g. shopping or e-commerce
    • G06Q30/04Billing or invoicing, e.g. tax processing in connection with a sale

Abstract

The embodiment of the invention provides invoice data method of charging out, system and relevant devices based on block chain, for preventing invoice from repeating to submit an expense account, usurping other people invoice reimbursements.Embodiment method includes: the invoice data that client node receives service node transmission of making out an invoice, and invoice data includes at least invoice identification code;Client node inquires the corresponding invoice data of invoice identification code in block chain, and by corresponding invoice data user identity information associated storage corresponding with client node;When reimbursement service node receives the invoice reimbursement request of client node transmission, inquiry invoice submits an expense account corresponding first invoice data of the first invoice identification code and associated first user identity information in request in block chain;Reimbursement service node determines whether the invoice reimbursement request of client node according to the first invoice data and associated first user identity information;If the invoice of client node is allowed to submit an expense account request, reimbursement service node safeguards that the state of the first invoice data is to have submitted an expense account state.

Description

Invoice data method of charging out, system and relevant device based on block chain
Technical field
The present invention relates to technical field of information processing, and in particular to invoice data method of charging out, system based on block chain And relevant device.
Background technique
Electronic invoice is the product of information age, the same with common invoice, using the form of tax bureau's unified payment to quotient Family uses, and invoice number is distributed to businessman, had on electronic invoice using national Unified coding using unified anti-counterfeiting technology The signature mechanism of electronics tax office.Compared with traditional paper invoice, electronic invoice can make out an invoice online, save invoice cost, tax Control machine cost and related human cost.
Although electronic invoice can accomplish invoice anticounterfeiting, it cannot prevent to repeat to submit an expense account, entire invoice cannot be tracked Transmitting state.At present in enterprise, there is submitting an expense account by other people paper invoice and electronic invoice, or same hair is taken Ticket repeats the case where submitting an expense account, and brings economic loss to enterprise.
In view of this, it is necessary to propose a kind of new invoice data method of charging out.
Summary of the invention
The embodiment of the invention provides invoice data method of charging out, system and relevant devices based on block chain, for preventing Only invoice repeats to submit an expense account, usurps other people invoice reimbursements.
First aspect of the embodiment of the present invention provides a kind of invoice data method of charging out based on block chain, and feature exists In, comprising:
Client node receives the invoice data for service node transmission of making out an invoice, and the invoice data is identified including at least invoice Code;
The client node inquires the corresponding invoice data of the invoice identification code in block chain, and the invoice is known The corresponding invoice data of other code user identity information associated storage corresponding with the client node;
When reimbursement service node receives the invoice reimbursement request that the client node is sent, institute is inquired in block chain State corresponding first invoice data of the first invoice identification code and associated first user identity information in invoice reimbursement request;
The reimbursement service node judges whether according to first invoice data and associated first user identity information The invoice of the client node is allowed to submit an expense account request;
If the invoice of the client node is allowed to submit an expense account request, the reimbursement service node safeguards first invoice data State be submitted an expense account state.
Second aspect of the embodiment of the present invention provides a kind of invoice data method of charging out based on block chain, and feature exists In applying to client node, which comprises
The invoice data for service node transmission of making out an invoice is received, the invoice data includes at least invoice identification code;
Inquire the corresponding invoice data of the invoice identification code in block chain, and by the corresponding hair of the invoice identification code Ticket data user identity information associated storage corresponding with the client node.
The third aspect of the embodiment of the present invention provides a kind of invoice data method of charging out based on block chain, and feature exists In, apply to submit an expense account service node, which comprises
Receive the invoice that client node is sent and submit an expense account request, and inquire in block chain in the invoice reimbursement request the Corresponding first invoice data of one invoice identification code and associated first user identity information;
The client node is determined whether according to first invoice data and associated first user identity information Invoice submit an expense account request;
If the invoice of the client node is allowed to submit an expense account request, safeguard that the state of first invoice data is to have submitted an expense account State.
Optionally, as a kind of possible embodiment, described according to first invoice data in the embodiment of the present invention And associated first user identity information determines whether the invoice reimbursement request of the client node, comprising:
Judge whether first invoice data is in the state of reimbursement, if first invoice data, which is in, has submitted an expense account shape State does not allow then the invoice of the client node to submit an expense account request;
And/or judge whether first invoice data matches with the invoice data in invoice reimbursement request, if not Matching does not allow then the invoice of the client node to submit an expense account request;
And/or judge first user identity information user identity information corresponding with the client node whether phase Together, if it is not identical, do not allow the invoice of the client node to submit an expense account request.
It optionally, further include the consumption cryptographic Hash generated according to the first invoice data in first invoice data, it is described It further include verification cryptographic Hash in invoice reimbursement request;Optionally, as a kind of possible embodiment, in the embodiment of the present invention, It is described to judge whether first invoice data matches with the invoice data in invoice reimbursement request, comprising:
Judge whether the consumption cryptographic Hash and the verification cryptographic Hash are consistent, if unanimously, first invoice data Whether matched with the invoice data in invoice reimbursement request.
Optionally, as a kind of possible embodiment, described that the hair is inquired in block chain in the embodiment of the present invention Corresponding first invoice data of the first invoice identification code in ticket reimbursement request, comprising:
Information inquiring request is sent to service node of making out an invoice according to the invoice identification code, is wrapped in the information inquiring request The first encryption algorithm identification that key agreement parameter and the reimbursement service side containing the reimbursement service node are chosen;
The key agreement parameter for the service node of making out an invoice that service node of making out an invoice described in reception is sent;
According to the key agreement parameter of the service node of making out an invoice and the key agreement private key meter of the reimbursement service node Calculate common shared key;
The target data that service node of making out an invoice described in obtaining from block chain uploads, the target data are the clothes of making out an invoice It is engaged in what node was generated according to first Encryption Algorithm and the shared key pair invoice data encryption.
The target data, which is decrypted, according to the shared key obtains corresponding invoice data.
Optionally, as a kind of possible embodiment, described that the hair is inquired in block chain in the embodiment of the present invention Corresponding first invoice data of the first invoice identification code in ticket reimbursement request, comprising:
Information inquiring request is sent to service node of making out an invoice according to the invoice identification code, is wrapped in the information inquiring request Block chain public key containing the reimbursement service node;
The target data that service node of making out an invoice described in obtaining from block chain uploads, the target data include the first encryption Data and third encryption data, wherein first encryption data is using symmetric encipherment algorithm and symmetric key to invoice data Encryption generates, and the third encryption data is the block chain public key using the reimbursement service node to the symmetric encipherment algorithm Mark and its symmetric key encryption generate;
The third encryption data, which is decrypted, according to the block chain private key of the reimbursement service node obtains the symmetric cryptography Algorithm mark and its symmetric key;
Corresponding hair is obtained according to the first encryption data described in symmetric encipherment algorithm mark and its symmetric key decryption Ticket data.
Fourth aspect of the embodiment of the present invention provides a kind of invoice data reimbursement system based on block chain, and feature exists In, comprising:
Submit an expense account service node, make out an invoice service node and client node;
Invoice data is sent to client's section for generating invoice data according to consumption details by the service node of making out an invoice Point;
The service node of making out an invoice is also used to encrypt invoice data, generates target data, and by the number of targets According to being synchronized to block chain;
The client node is used to receive the invoice data of the service node transmission of making out an invoice, and institute is inquired in block chain The corresponding invoice data of invoice identification code is stated, and the corresponding invoice data of the invoice identification code is corresponding with the client node User identity information associated storage;
The reimbursement service node is used to receive the invoice reimbursement request that the client node is sent, and looks into block chain Ask corresponding first invoice data of the first invoice identification code and associated first user identifier letter in the invoice reimbursement request Breath;
The reimbursement service node is also used to be sentenced according to first invoice data and associated first user identity information The disconnected invoice for whether allowing the client node submits an expense account request;
If the invoice of the client node is allowed to submit an expense account request, the reimbursement service node is also used to safeguard first hair The state of ticket data is to have submitted an expense account state.
The 5th aspect of the embodiment of the present invention provides a kind of server for applying to client node, which is characterized in that described Server includes processor, and the processor is for realizing following steps when executing the computer program stored in memory:
The invoice data for service node transmission of making out an invoice is received, the invoice data includes at least invoice identification code;
Inquire the corresponding invoice data of the invoice identification code in block chain, and by the corresponding hair of the invoice identification code Ticket data user identity information associated storage corresponding with the client node.
The 6th aspect of the embodiment of the present invention provides a kind of server for applying to submit an expense account service node, which is characterized in that The server includes processor, and such as third party is realized when the processor is for executing the computer program stored in memory Step in face and any possible embodiment of second aspect.
As can be seen from the above technical solutions, the embodiment of the present invention has the advantage that
In the embodiment of the present invention, the invoice data for being issued to user can be sent to client node by service node of making out an invoice, The invoice data be synchronized in block chain deposit card simultaneously, client node can will be deposited in block chain the invoice data of card with it is corresponding User identity information associated storage.When reimbursement service node receives the invoice reimbursement request that each client node is sent, Corresponding first invoice data of the first invoice identification code and associated first in invoice reimbursement request can be inquired in block chain User identity information, reimbursement service node are sentenced according to the reimbursement state and associated first user identity information of the first invoice data The disconnected invoice for whether allowing client node submits an expense account request, can prevent invoice from repeating to submit an expense account, usurping other people invoice reimbursements.
Detailed description of the invention
Fig. 1 is a kind of one embodiment signal of the invoice data method of charging out based on block chain in the embodiment of the present invention Figure;
Fig. 2 is a kind of another embodiment signal of the invoice data method of charging out based on block chain in the embodiment of the present invention Figure;
Fig. 3 is a kind of another embodiment signal of the invoice data method of charging out based on block chain in the embodiment of the present invention Figure;
Fig. 4 is a kind of another embodiment signal of the invoice data method of charging out based on block chain in the embodiment of the present invention Figure;
Fig. 5 is a kind of another embodiment signal of the invoice data method of charging out based on block chain in the embodiment of the present invention Figure;
Fig. 6 is a kind of one embodiment signal of the invoice data reimbursement system based on block chain in the embodiment of the present invention Figure;
Fig. 7 is a kind of one embodiment schematic diagram for the server for applying to client node in the embodiment of the present invention;
Fig. 8 is a kind of one embodiment schematic diagram for the server for applying to submit an expense account service node in the embodiment of the present invention.
Specific embodiment
The embodiment of the invention provides the embodiment of the invention provides invoice data method of charging out, the systems based on block chain And relevant device, for preventing invoice from repeating to submit an expense account, usurping other people invoice reimbursements.
In order to enable those skilled in the art to better understand the solution of the present invention, below in conjunction in the embodiment of the present invention Attached drawing, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment is only The embodiment of a part of the invention, instead of all the embodiments.Based on the embodiments of the present invention, ordinary skill people The model that the present invention protects all should belong in member's every other embodiment obtained without making creative work It encloses.
Description and claims of this specification and term " first ", " second ", " third ", " in above-mentioned attached drawing Four " etc. be to be used to distinguish similar objects, without being used to describe a particular order or precedence order.It should be understood that using in this way Data be interchangeable under appropriate circumstances, so that the embodiments described herein can be in addition to illustrating herein or describing Sequence other than appearance is implemented.In addition, term " includes " and " having " and their any deformation, it is intended that covering is non-exclusive Include, for example, the process, method, system, product or equipment for containing a series of steps or units are not necessarily limited to clearly arrange Those of out step or unit, but may include be not clearly listed or it is solid for these process, methods, product or equipment The other step or units having.
In order to make it easy to understand, the system architecture in the embodiment of the present invention is briefly described below, the embodiment of the present invention It is that invoice data reimbursement is realized based on block chain, the node that block chain is accessed in the embodiment of the present invention includes at least three types, It is reimbursement service node, make out an invoice service node and client node respectively.For paper invoice, uploaded to by scanning invoice data Background service, background server store invoice data into block chain.For electronic invoice, block chain allied member's electronics hair After ticket is issued, invoice data is stored into block chain by making out an invoice service node.Client's section in block chain allied member For point when submit an expense account invoice, submitting an expense account service node can be to being inquired on chain, if having inquired corresponding invoice and not reported It sold, and stamped the label of " reimbursement " to it after reimbursement, if the invoice inquired was submitted an expense account, not submitted an expense account, To solve the problems, such as to repeat to submit an expense account.
In order to make it easy to understand, the detailed process in the embodiment of the present invention is described below, referring to Fig. 1, of the invention A kind of one embodiment of the invoice data method of charging out based on block chain in embodiment can include:
101, client node receives the invoice data for service node transmission of making out an invoice.
In practice, after client's consumption, service node of making out an invoice can generate invoice data according to consumption details, should Invoice data includes at least invoice identification code, and optionally, invoice data can also include according to the demand of user other data, For example, the consumption cryptographic Hash that can be generated according to consumption details data and/or electronic invoice data, it can also be according to user's Consumption details data generate the electronic invoice of PDF format or picture format, and the content that specific invoice data includes can basis The demand of user is reasonably arranged, specifically herein without limitation.
It, can be according to the demand of making out an invoice of client, to corresponding client node after service node of making out an invoice generates invoice data Invoice data is sent, client node can receive the invoice data for service node transmission of making out an invoice.Meanwhile service node of making out an invoice needs Generation invoice data is synchronized in block chain and deposit card, the process for specifically depositing card will describe in subsequent embodiment.
102, client node inquires the corresponding invoice data of invoice identification code in block chain, and invoice identification code is corresponding Invoice data user identity information associated storage corresponding with client node.
The electronic invoice that other people usurp client in order to prevent is submitted an expense account, and different clients can incite somebody to action in the embodiment of the present invention The invoice received stamps the label of itself.Specifically, each client node can inquire invoice identification code pair in block chain The invoice data answered, and by the corresponding invoice data of invoice identification code user identity information associated storage corresponding with client node In block chain.After later period only needs to inquire corresponding invoice data in block chain according to invoice identification code, Ji Kegen The ownership of the invoice data is determined according to the user identity information of associated storage.Optionally, in the case where user is voluntary, invoice number According to ownership can shift, i.e., invoice data and corresponding verification information can be transmitted to acceptor by user, by being given People re-starts binding to invoice data, and the transfer of invoice data can be completed in the label for stamping acceptor.
103, it when reimbursement service node receives the invoice reimbursement request of client node transmission, inquires and sends out in block chain Corresponding first invoice data of the first invoice identification code and associated first user identity information in ticket reimbursement request.
When client needs to submit an expense account invoice, can the client based on client node to reimbursement service node send invoice report Pin request, invoice identification code is included at least in the request, and for convenient for distinguishing, the invoice identification code in invoice reimbursement request is known as the One invoice identification code.When reimbursement service node receives the invoice reimbursement request of client node transmission, inquired in block chain Corresponding first invoice data of the first invoice identification code and associated first user identity information in invoice reimbursement request.
104, reimbursement service node is determined whether according to the first invoice data and associated first user identity information The invoice of client node submits an expense account request.
Reimbursement state and associated first user identity information of the service node according to the first invoice data are submitted an expense account, according to visitor The preset rule in family determines whether the invoice reimbursement request of client node, and specific judgment rule only needs certified invoice not It is repeated reimbursement, specific judgment rule is herein without limitation.
Illustratively, reimbursement service node may determine that whether the first invoice data is in the state of reimbursement, if the first hair Ticket data is in and has submitted an expense account state, then the invoice of client node is not allowed to submit an expense account request;
And/or reimbursement service node may determine that whether the first invoice data submits an expense account the invoice data in request with invoice Matching does not allow the invoice of client node to submit an expense account request if mismatching;
And/or reimbursement service node may determine that the first user identity information user identifier letter corresponding with client node Whether breath is identical, if not identical, the invoice of client node is not allowed to submit an expense account request.
If the invoice of client node 105, is allowed to submit an expense account request, reimbursement service node safeguards that the state of the first invoice data is State is submitted an expense account.
The invoice of client node is allowed to submit an expense account request if submitting an expense account service node, reimbursement service node safeguards the first invoice data State be submitted an expense account state.Specifically, reimbursement service node can be stored with the original of the first invoice data in block chain It increases the newest status information of first invoice data in block newly, or a block can be increased newly in block chain, this is new Increasing block includes simultaneously the full content of a upper block and the newest status information of the first invoice data, specific invoice data State-maintenance mode is herein without limitation.
In the embodiment of the present invention, the invoice data for being issued to user can be sent to client node by service node of making out an invoice, The invoice data be synchronized in block chain deposit card simultaneously, client node can will be deposited in block chain the invoice data of card with it is corresponding User identity information associated storage.When reimbursement service node receives the invoice reimbursement request that each client node is sent, Corresponding first invoice data of the first invoice identification code and associated first in invoice reimbursement request can be inquired in block chain User identity information, reimbursement service node are sentenced according to the reimbursement state and associated first user identity information of the first invoice data The disconnected invoice for whether allowing client node submits an expense account request, can prevent invoice from repeating to submit an expense account, usurping other people invoice reimbursements.
Simultaneously from client node side and reimbursement service node side in the embodiment of the present invention in above-mentioned embodiment shown in FIG. 1 The process of the invoice data method of charging out based on block chain be described, in order to make it easy to understand, below will be respectively from client Node side and reimbursement service node side to the process of the invoice data method of charging out based on block chain in the embodiment of the present invention into Row description.Referring to Fig. 2, embodiment shown in Fig. 2 will be described from client node side, one kind is based in the embodiment of the present invention Another embodiment of the invoice data method of charging out of block chain can include:
201, the invoice data for service node transmission of making out an invoice is received, invoice data includes at least invoice identification code.
It is described in content described in step 201 in the present embodiment and the step 101 in above-mentioned embodiment shown in FIG. 1 Content it is similar, referring specifically to step 101, be not repeated herein.
202, the corresponding invoice data of invoice identification code is inquired in block chain, and by the corresponding invoice number of invoice identification code According to user identity information associated storage corresponding with client node.
The electronic invoice that other people usurp client in order to prevent is submitted an expense account, the hair that can will be received in the embodiment of the present invention Ticket stamps the label of itself.Client node can inquire the corresponding invoice data of invoice identification code in block chain, and by invoice The corresponding invoice data of identification code user identity information associated storage corresponding with client node is in block chain.Later period only needs After inquiring corresponding invoice data in block chain according to invoice identification code, it can be believed according to the user identifier of associated storage Cease the ownership for determining the invoice data.
Referring to Fig. 3, embodiment shown in Fig. 3 will be described from reimbursement service node side, one in the embodiment of the present invention Another embodiment of invoice data method of charging out of the kind based on block chain can include:
301, receive the invoice that client node is sent and submit an expense account request, and inquire in block chain in invoice reimbursement request the Corresponding first invoice data of one invoice identification code and associated first user identity information.
When client needs to submit an expense account invoice, can the client based on client node to reimbursement service node send invoice report Pin request, invoice identification code is included at least in the request, and for convenient for distinguishing, the invoice identification code in invoice reimbursement request is known as the One invoice identification code.When reimbursement service node receives the invoice reimbursement request of client node transmission, inquired in block chain Corresponding first invoice data of the first invoice identification code and associated first user identity information in invoice reimbursement request.
302, the hair of client node is determined whether according to the first invoice data and associated first user identity information Ticket reimbursement request.
Reimbursement state and associated first user identity information of the service node according to the first invoice data are submitted an expense account, according to visitor The preset rule in family determines whether the invoice reimbursement request of client node, and specific judgment rule only needs certified invoice not It is repeated reimbursement, specific judgment rule is herein without limitation.
Illustratively, reimbursement service node may determine that whether the first invoice data is in the state of reimbursement, if the first hair Ticket data is in and has submitted an expense account state, then the invoice of client node is not allowed to submit an expense account request;
And/or reimbursement service node may determine that whether the first invoice data submits an expense account the invoice data in request with invoice Matching does not allow the invoice of client node to submit an expense account request if mismatching;
And/or reimbursement service node may determine that the first user identity information user identifier letter corresponding with client node Whether breath is identical, if not identical, the invoice of client node is not allowed to submit an expense account request.
If the invoice of client node 303, is allowed to submit an expense account request, safeguard that the state of the first invoice data is to have submitted an expense account shape State.
The invoice of client node is allowed to submit an expense account request if submitting an expense account service node, reimbursement service node safeguards the first invoice data State be submitted an expense account state.Specifically, reimbursement service node can be stored with the original of the first invoice data in block chain It increases the newest status information of first invoice data in block newly, or a block can be increased newly in block chain, this is new Increasing block includes simultaneously the full content of a upper block and the newest status information of the first invoice data, specific invoice data State-maintenance mode is herein without limitation.
In the embodiment of the present invention, the invoice data for being issued to user can be sent to client node by service node of making out an invoice, The invoice data be synchronized in block chain deposit card simultaneously, client node can will be deposited in block chain the invoice data of card with it is corresponding User identity information associated storage.When reimbursement service node receives the invoice reimbursement request that each client node is sent, Corresponding first invoice data of the first invoice identification code and associated first in invoice reimbursement request can be inquired in block chain User identity information, reimbursement service node are sentenced according to the reimbursement state and associated first user identity information of the first invoice data The disconnected invoice for whether allowing client node submits an expense account request, can prevent invoice from repeating to submit an expense account, usurping other people invoice reimbursements.
On the basis of the above embodiments, in order to ensure the safety and confidentiality of stream compression in block chain, the present invention In embodiment, make out an invoice service node by generate invoice data be synchronized to carry out depositing card in block chain when, need to invoice data into Row encryption, specific cipher mode can be reasonably arranged according to the demand of user, specifically herein without limitation.It is exemplary , the embodiment of the present invention provides two kinds of optional cipher modes, specific as follows:
The first cipher mode makes out an invoice service node P1 before by invoice data M1 cochain, and first random output one is right by P1 Claim the code key S of encryption, encryption then is carried out to M1 using symmetric encipherment algorithm and generates the first encryption data C1, symmetric encipherment algorithm It can arbitrarily select, such as DES, 3DES, AES, the symmetric encipherment algorithms such as SM4.By the code key S of symmetric cryptography and selected right Claim the mark (for example, the character marks such as DES, 3DES, AES, SM4) of Encryption Algorithm to be used as data M2, is calculated using asymmetric encryption Method (including but not limited to RSA, ECC, SM2 scheduling algorithm) carries out encryption to it and generates the second encryption data C2, code key when encryption It is the public key of service node block chain of making out an invoice, C1 and C2 is synchronized on block chain.
The corresponding manner of decryption of the first cipher mode can also there are many, for example, the first manner of decryption, optionally, The first corresponding manner of decryption of the first cipher mode can be with are as follows: when the service node P2 that makes out an invoice in alliance needs to obtain in plain text When data M1, first to P1 application authorization (while subsidiary code key negotiates parameter and respective encrypted algorithm F), P1 will do it after agreeing to Following operation: 1) P1 sends code key negotiation parameter to P2, and code key negotiation algorithm can choose DH, ECDH etc..2) P1 and P2 take After having arrived the code key negotiation parameter of other side, along with the private key of oneself, so that it may calculate common code key SS, and negotiate A kind of method F of symmetric cryptography.3) P1 obtains encryption data C1, C2 from chain, is obtained using the private key decryption C2 of P1 oneself bright Literary M2, then using in M2 symmetric encipherment algorithm and code key S C1 is decrypted, obtain plaintext M 1.4) P1 uses code key SS M1 is encrypted again with symmetric encipherment algorithm F, obtains ciphertext C1 ' as target data.5) P1 will be on target data C1 ' Chain.6): P2 obtains data C1 ' from chain.7): P2 decrypts C1 ' using symmetrical code key SS and corresponding symmetric encipherment algorithm F To plaintext M 1.
Optionally, corresponding second of the manner of decryption of the first cipher mode are as follows: the service of making out an invoice in block chain alliance It when node P2 needs to obtain clear data M1, is authorized first to P1 application, P1 will do it following operation after agreeing to: 1) obtaining from chain Encryption data C1, C2 is taken, obtains plaintext M 2 using the private key decryption C2 of P1 oneself.2) P1 is using the public key of P2 to M2 re-encrypted Obtain C3.3) P1 is using C1 and C3 as target data cochain again.4): P2 obtains datum target data from chain.5): P2 is used The private key decryption C3 of oneself obtains M2.6): P2 using in M2 code key S and corresponding symmetric encipherment algorithm decryption C1 wait until M1.
Second of cipher mode makes out an invoice service node before by invoice data M1 cochain, using service node block of making out an invoice The public key of chain to invoice data M1 encrypted to the 4th encryption data C4.
The embodiment of the present invention is only illustrated so that service node of making out an invoice is using the first above-mentioned cipher mode as an example.It is optional , by taking the first manner of decryption in the first cipher mode as an example, as a kind of possible embodiment, referring to Fig. 4, this A kind of another embodiment of the invoice data method of charging out based on block chain may include: in inventive embodiments
401, it receives the invoice that client node is sent and submits an expense account request.
When client needs to submit an expense account invoice, can the client based on client node to reimbursement service node send invoice report Pin is requested, comprising invoice identification code and the corresponding invoice data for needing to submit an expense account in the request, for convenient for distinguishing, invoice reimbursement is asked Invoice identification code in asking is known as the first invoice identification code.When reimbursement service node receives the invoice reimbursement of client node transmission When request, corresponding first invoice data of the first invoice identification code and associated in invoice reimbursement request is inquired in block chain First user identity information.
402, information inquiring request is sent to service node of making out an invoice according to invoice identification code.
In the present embodiment by taking the first manner of decryption in the first cipher mode as an example, when reimbursement service node receives After invoice identification code, invoice data can be inquired to corresponding service node request of making out an invoice according to invoice identification code, specifically, Service node is submitted an expense account in the present embodiment can send information inquiring request information to service node of making out an invoice, and include in the inquiry request The first encryption algorithm identification that the key agreement parameter and reimbursement service side for submitting an expense account service node are chosen, wherein key agreement ginseng Number is in DH (Diffie-Hellman) cipher key agreement algorithm or ECDH cipher key agreement algorithm for not sharing any secret In the case of negotiate a key needed for parameter, specific DH cipher key agreement algorithm and ECDH cipher key agreement algorithm are existing skill Art is not repeated herein.
403, the key agreement parameter of the service node of making out an invoice for service node transmission of making out an invoice is received.
If service node of making out an invoice agrees to the invoice data inquiry request of reimbursement service node, service node of making out an invoice can be to report Pin service node sends the key agreement parameter for service node of making out an invoice.
404, it is calculated altogether according to the key agreement private key of the key agreement parameter for service node of making out an invoice and reimbursement service node Same shared key.
According to DH cipher key agreement algorithm or ECDH cipher key agreement algorithm principle, makes out an invoice service node and reimbursement service node obtains The key agreement parameter and the key agreement private key of itself for getting other side can calculate identical shared key.
405, the target data for service node upload of making out an invoice is obtained from block chain.
Make out an invoice service node using the first Encryption Algorithm and shared key pair invoice data encryption generate target data it Afterwards, reimbursement service node can obtain the target data for service node upload of making out an invoice from block chain.
406, corresponding first invoice data is obtained according to shared key decryption target data.
Reimbursement service node can decrypt target data according to shared key and obtain corresponding invoice data.
407, the hair of client node is determined whether according to the first invoice data and associated first user identity information Ticket reimbursement request.
Reimbursement state and associated first user identity information of the service node according to the first invoice data are submitted an expense account, according to visitor The preset rule in family determines whether the invoice reimbursement request of client node, and specific judgment rule only needs certified invoice not It is repeated reimbursement, specific judgment rule is herein without limitation.
Illustratively, reimbursement service node may determine that whether the first invoice data is in the state of reimbursement, if the first hair Ticket data is in and has submitted an expense account state, then the invoice of client node is not allowed to submit an expense account request;
And/or reimbursement service node may determine that whether the first invoice data submits an expense account the invoice data in request with invoice Matching does not allow the invoice of client node to submit an expense account request if mismatching;
And/or reimbursement service node may determine that the first user identity information user identifier letter corresponding with client node Whether breath is identical, if not identical, the invoice of client node is not allowed to submit an expense account request.
Specifically, making out an invoice service node when generating invoice data in the present embodiment, Hash can be carried out to invoice data The consumption cryptographic Hash that operation generates, and block chain is synchronized to using consumption cryptographic Hash as a part of invoice data.When client saves When point needs to submit an expense account invoice, the invoice data progress operation that client node required can be submitted an expense account generates verification cryptographic Hash, and high-ranking officers A part that cryptographic Hash is tested as invoice reimbursement solicited message is sent to reimbursement service node.Reimbursement service node judgement as a result, First invoice data whether with invoice reimbursement request in invoice data match, can specifically include: judgement consumption cryptographic Hash and Whether consistent cryptographic Hash is verified, if unanimously, whether the first invoice data matches with the invoice data in invoice reimbursement request.
If the invoice of client node 408, is allowed to submit an expense account request, safeguard that the state of the first invoice data is to have submitted an expense account shape State.
The invoice of client node is allowed to submit an expense account request if submitting an expense account service node, reimbursement service node safeguards the first invoice data State be submitted an expense account state.Specifically, reimbursement service node can be stored with the original of the first invoice data in block chain It increases the newest status information of first invoice data in block newly, or a block can be increased newly in block chain, this is new Increasing block includes simultaneously the full content of a upper block and the newest status information of the first invoice data, specific invoice data State-maintenance mode is herein without limitation.
In the embodiment of the present invention, the invoice data for being issued to user can be sent to client node by service node of making out an invoice, The invoice data be synchronized in block chain deposit card simultaneously, client node can will be deposited in block chain the invoice data of card with it is corresponding User identity information associated storage.When reimbursement service node receives the invoice reimbursement request that each client node is sent, Corresponding first invoice data of the first invoice identification code and associated first in invoice reimbursement request can be inquired in block chain User identity information, reimbursement service node are sentenced according to the reimbursement state and associated first user identity information of the first invoice data The disconnected invoice for whether allowing client node submits an expense account request, can prevent invoice from repeating to submit an expense account, usurping other people invoice reimbursements.Secondly, Each invoice data in block chain have it is encrypted, can be with the safety and confidentiality of effective guarantee stream compression.
Optionally, as a kind of possible embodiment, by taking second of manner of decryption in the first cipher mode as an example, Referring to Fig. 5, a kind of another embodiment of the invoice data method of charging out based on block chain can wrap in the embodiment of the present invention It includes:
501, it receives the invoice that client node is sent and submits an expense account request.
It is described in content described in step 501 in the present embodiment and the step 401 in above-mentioned embodiment shown in Fig. 4 Content it is similar, referring specifically to step 401, be not repeated herein.
502, information inquiring request is sent to service node of making out an invoice according to invoice identification code, includes report in information inquiring request Sell the block chain public key of service node.
If service node of making out an invoice agrees to the invoice data inquiry request of reimbursement service node, service node of making out an invoice can be to the Two encryption data C2 are decrypted after obtaining the data M2 being made of the code key S of symmetric cryptography and the mark of symmetric encipherment algorithm, can Third encryption data C3 is generated to carry out encryption to data M2 using the block chain public key of reimbursement service node, and will be after encryption Third encryption data C3 and the first encryption data C1 as target data be synchronized to block chain.
503, the target data for service node upload of making out an invoice is obtained from block chain.
Reimbursement service node can obtain the target data for service node upload of making out an invoice from block chain.It can by step 502 Know that target data includes the first encryption data and third encryption data, wherein the first encryption data be using symmetric encipherment algorithm and Symmetric key generates invoice data encryption, and third encryption data is to be added using the block chain public key of reimbursement service node to symmetrical Close algorithm mark and its symmetric key encryption generate.
504, symmetric encipherment algorithm mark is obtained according to the block chain private key decryption third encryption data of reimbursement service node And its symmetric key.
Reimbursement service node can decrypt third encryption data according to the block chain private key of itself and obtain symmetric encipherment algorithm Mark and its symmetric key.
505, corresponding first hair is obtained according to symmetric encipherment algorithm mark and its first encryption data of symmetric key decryption Ticket data.
Reimbursement service node can be identified according to symmetric encipherment algorithm and its first encryption data of symmetric key decryption obtains Corresponding first invoice data.
506, the hair of client node is determined whether according to the first invoice data and associated first user identity information Ticket reimbursement request.
If the invoice of client node 507, is allowed to submit an expense account request, safeguard that the state of the first invoice data is to have submitted an expense account shape State.
The step 407 of step 506 in the present embodiment into content and above-mentioned embodiment shown in Fig. 4 described in 507 It is similar to content described in 408, referring specifically to step 407 to 408, it is not repeated herein.
In the embodiment of the present invention, the invoice data for being issued to user can be sent to client node by service node of making out an invoice, The invoice data be synchronized in block chain deposit card simultaneously, client node can will be deposited in block chain the invoice data of card with it is corresponding User identity information associated storage.When reimbursement service node receives the invoice reimbursement request that each client node is sent, Corresponding first invoice data of the first invoice identification code and associated first in invoice reimbursement request can be inquired in block chain User identity information, reimbursement service node are sentenced according to the reimbursement state and associated first user identity information of the first invoice data The disconnected invoice for whether allowing client node submits an expense account request, can prevent invoice from repeating to submit an expense account, usurping other people invoice reimbursements.Secondly, Each invoice data in block chain have it is encrypted, can be with the safety and confidentiality of effective guarantee stream compression.
It is understood that in various embodiments of the present invention, the size of the serial number of above steps is not meant to Execution sequence it is successive, the execution of each step sequence should be determined by its function and internal logic, without coping with the embodiment of the present invention Implementation process constitute any restriction.
The invoice data method of charging out based on block chain in the embodiment of the present invention is described in above-described embodiment, under The invoice data reimbursement system based on block chain in the embodiment of the present invention will be described in face.Referring to Fig. 6, the present invention is real Apply a kind of one embodiment of the invoice data reimbursement system based on block chain in example can include:
Submit an expense account service node 60, make out an invoice service node 70 and client node 80;
Service node 70 of making out an invoice is used to generate invoice data according to consumption details, and invoice data is sent to client node 80;
Service node 70 of making out an invoice is also used to encrypt invoice data, generates target data, and target data is synchronous To block chain;
Client node 80 inquires invoice identification for receiving the invoice data for service node transmission of making out an invoice in block chain The corresponding invoice data of code, and the corresponding invoice data of invoice identification code user identity information corresponding with client node is associated with Storage;
Reimbursement service node 60 is used to receive the invoice reimbursement request of client node transmission, and inquires invoice in block chain Corresponding first invoice data of the first invoice identification code and associated first user identity information in reimbursement request;
Reimbursement service node 60 is also used to be judged whether according to the first invoice data and associated first user identity information The invoice of client node is allowed to submit an expense account request;
If the invoice of client node 80 is allowed to submit an expense account request, reimbursement service node 60 is also used to safeguard the first invoice data State is to have submitted an expense account state.
In the embodiment of the present invention, the invoice data for being issued to user can be sent to client node by service node of making out an invoice, The invoice data be synchronized in block chain deposit card simultaneously, client node can will be deposited in block chain the invoice data of card with it is corresponding User identity information associated storage.When reimbursement service node receives the invoice reimbursement request that each client node is sent, Corresponding first invoice data of the first invoice identification code and associated first in invoice reimbursement request can be inquired in block chain User identity information, reimbursement service node are sentenced according to the reimbursement state and associated first user identity information of the first invoice data The disconnected invoice for whether allowing client node submits an expense account request, can prevent invoice from repeating to submit an expense account, usurping other people invoice reimbursements.
It is apparent to those skilled in the art that for convenience and simplicity of description, the system of foregoing description, The specific work process of device and unit, can refer to corresponding processes in the foregoing method embodiment, and details are not described herein.
The invoice data method of charging out and system based on block chain in the embodiment of the present application are described above, under Face is described the server in the embodiment of the present application from the angle of hardware handles:
The embodiment of the present application also provides a kind of servers 7 for applying to client node, as shown in fig. 7, for the ease of saying It is bright, part relevant to the embodiment of the present application is illustrated only, it is disclosed by specific technical details, please refer to the embodiment of the present application side Method part.The server 7 for applying to client node refers generally to the stronger computer equipment of the processing capacities such as computer installation.
With reference to Fig. 7, the server 7 for applying to client node includes: power supply 710, memory 720, processor 730, wired Or radio network interface 740 and storage are in memory and the computer program that can run on a processor.Processor executes The step in above-mentioned each qualification method embodiment based on block chain is realized when computer program, such as shown in Fig. 2 Step 201 is to 102.Alternatively, processor realizes each module in above-mentioned each Installation practice or unit when executing computer program Function.
In some embodiments of the present application, processor is specifically used for realizing following steps:
The invoice data for service node transmission of making out an invoice is received, invoice data includes at least invoice identification code;
Inquire the corresponding invoice data of invoice identification code in block chain, and by the corresponding invoice data of invoice identification code with The corresponding user identity information associated storage of client node.
The embodiment of the present application also provides a kind of servers 8 for applying to submit an expense account service node, as shown in figure 8, applying to Reimbursement service node server 8 include: power supply 810, memory 820, processor 830, wired or wireless network interface 840 with And store the computer program that can be run in memory and on a processor.Processor is realized above-mentioned when executing computer program Step in each qualification method embodiment based on block chain, such as step 301 shown in Fig. 3 is to 303.Alternatively, place Reason device realizes each module or the function of unit in above-mentioned each Installation practice when executing computer program.
In some embodiments of the present application, processor is specifically used for realizing following steps:
It receives the invoice that client node is sent and submits an expense account request, and inquire the first hair in invoice reimbursement request in block chain Corresponding first invoice data of ticket identification code and associated first user identity information;
The invoice report of client node is determined whether according to the first invoice data and associated first user identity information Pin request;
If the invoice of client node is allowed to submit an expense account request, safeguard that the state of the first invoice data is to have submitted an expense account state.
Optionally, in some embodiments of the present application, processing implement body is also used to realize following steps:
Judge whether the first invoice data is in the state of reimbursement, if the first invoice data, which is in, has submitted an expense account state, no The invoice of client node is allowed to submit an expense account request;
And/or judge whether the first invoice data matches with the invoice data in invoice reimbursement request, if mismatching, The invoice of client node is not allowed to submit an expense account request;
And/or judge whether the first user identity information user identity information corresponding with client node is identical, if not phase Together, then the invoice of client node is not allowed to submit an expense account request.
Optionally, in some embodiments of the present application, processing implement body is also used to realize following steps:
Judge consume cryptographic Hash with verification cryptographic Hash it is whether consistent, if unanimously, the first invoice data whether with invoice report Invoice data matching in pin request.
Optionally, in some embodiments of the present application, processing implement body is also used to realize following steps:
Information inquiring request is sent to service node of making out an invoice according to invoice identification code, includes reimbursement clothes in information inquiring request The key agreement parameter of node of being engaged in and the first encryption algorithm identification of reimbursement service side's selection;
Receive the key agreement parameter of the service node of making out an invoice for service node transmission of making out an invoice;
It is calculated jointly according to the key agreement parameter for service node of making out an invoice and the key agreement private key for submitting an expense account service node Shared key;
The target data for service node upload of making out an invoice is obtained from block chain, target data is to make out an invoice service node according to the What one Encryption Algorithm and the encryption of shared key pair invoice data generated.
Target data, which is decrypted, according to shared key obtains corresponding invoice data.
Optionally, in some embodiments of the present application, processing implement body is also used to realize following steps:
Information inquiring request is sent to service node of making out an invoice according to invoice identification code, includes reimbursement clothes in information inquiring request The block chain public key of business node;
The target data for service node upload of making out an invoice is obtained from block chain, target data includes the first encryption data and the Three encryption datas, wherein the first encryption data is to encrypt to generate to invoice data using symmetric encipherment algorithm and symmetric key, the Three encryption datas are raw to symmetric encipherment algorithm mark and its symmetric key encryption using the block chain public key of reimbursement service node At;
According to reimbursement service node block chain private key decryption third encryption data obtain symmetric encipherment algorithm mark and its Symmetric key;
Corresponding invoice data is obtained according to symmetric encipherment algorithm mark and its first encryption data of symmetric key decryption.
Server in the embodiment of the present invention can be desktop PC, notebook, palm PC and cloud computer Device etc. calculates equipment.Illustratively, computer program can be divided into one or more module/units, and one or more A module/unit is stored in memory, and is executed by processor.One or more module/units can be and can complete The series of computation machine program instruction section of specific function, the instruction segment is for describing computer program holding in computer installation Row process.
It will be understood by those skilled in the art that structure shown in Fig. 7 and Fig. 8 does not constitute the restriction to server, clothes Business device may include perhaps combining certain components or different component layouts, such as count than illustrating more or fewer components Calculation machine device can also include input-output equipment, bus etc..
Alleged processor can be central processing unit (Central Processing Unit, CPU), can also be it His general processor, digital signal processor (Digital Signal Processor, DSP), specific integrated circuit (Application Specific Integrated Circuit, ASIC), ready-made programmable gate array (Field- Programmable Gate Array, FPGA) either other programmable logic device, discrete gate or transistor logic, Discrete hardware components etc..General processor can be microprocessor or the processor is also possible to any conventional processor Deng processor is the control centre of computer installation, utilizes each portion of various interfaces and the entire computer installation of connection Point.
Memory can be used for storing computer program and/or module, and processor is stored in memory by operation or execution Interior computer program and/or module, and the data being stored in memory are called, realize the various function of computer installation Energy.Memory can mainly include storing program area and storage data area, wherein storing program area can storage program area, at least Application program needed for one function (such as sound-playing function, image player function etc.) etc.;Storage data area can store root Created data (such as audio data, phone directory etc.) etc. are used according to mobile phone.In addition, memory may include that high speed is random Memory is accessed, can also include nonvolatile memory, such as hard disk, memory, plug-in type hard disk, intelligent memory card (Smart Media Card, SMC), secure digital (Secure Digital, SD) card, flash card (Flash Card), at least one disk Memory device, flush memory device or other volatile solid-state parts.
In several embodiments provided herein, it should be understood that disclosed system, device and method can be with It realizes by another way.For example, the apparatus embodiments described above are merely exemplary, for example, the unit It divides, only a kind of logical function partition, there may be another division manner in actual implementation, such as multiple units or components It can be combined or can be integrated into another system, or some features can be ignored or not executed.Another point, it is shown or The mutual coupling, direct-coupling or communication connection discussed can be through some interfaces, the indirect coupling of device or unit It closes or communicates to connect, can be electrical property, mechanical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple In network unit.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme 's.
The above, the above embodiments are merely illustrative of the technical solutions of the present invention, rather than its limitations;Although referring to before Stating embodiment, invention is explained in detail, those skilled in the art should understand that: it still can be to preceding Technical solution documented by each embodiment is stated to modify or equivalent replacement of some of the technical features;And these It modifies or replaces, the spirit and scope for technical solution of various embodiments of the present invention that it does not separate the essence of the corresponding technical solution.

Claims (10)

1. a kind of invoice data method of charging out based on block chain characterized by comprising
Client node receives the invoice data for service node transmission of making out an invoice, and the invoice data includes at least invoice identification code;
The client node inquires the corresponding invoice data of the invoice identification code in block chain, and by the invoice identification code Corresponding invoice data user identity information associated storage corresponding with the client node;
When reimbursement service node receives the invoice reimbursement request that the client node is sent, the hair is inquired in block chain Corresponding first invoice data of the first invoice identification code and associated first user identity information in ticket reimbursement request;
The reimbursement service node is determined whether according to first invoice data and associated first user identity information The invoice of the client node submits an expense account request;
If the invoice of the client node is allowed to submit an expense account request, the reimbursement service node safeguards the shape of first invoice data State is to have submitted an expense account state.
2. a kind of invoice data method of charging out based on block chain, which is characterized in that apply to client node, the method packet It includes:
The invoice data for service node transmission of making out an invoice is received, the invoice data includes at least invoice identification code;
Inquire the corresponding invoice data of the invoice identification code in block chain, and by the corresponding invoice number of the invoice identification code According to user identity information associated storage corresponding with the client node.
3. a kind of invoice data method of charging out based on block chain, which is characterized in that apply to submit an expense account service node, the method Include:
It receives the invoice that client node is sent and submits an expense account request, and inquire the first hair in the invoice reimbursement request in block chain Corresponding first invoice data of ticket identification code and associated first user identity information;
The hair of the client node is determined whether according to first invoice data and associated first user identity information Ticket reimbursement request;
If the invoice of the client node is allowed to submit an expense account request, safeguard that the state of first invoice data is to have submitted an expense account shape State.
4. according to the method described in claim 3, it is characterized in that, described according to first invoice data and associated first User identity information determines whether the invoice reimbursement request of the client node, comprising:
Judge whether first invoice data is in the state of reimbursement, if first invoice data, which is in, has submitted an expense account state, The invoice of the client node is not allowed then to submit an expense account request;
And/or judge whether first invoice data matches with the invoice data in invoice reimbursement request, if not Match, then the invoice of the client node is not allowed to submit an expense account request;
And/or judge whether first user identity information user identity information corresponding with the client node is identical, if It is not identical, then do not allow the invoice of the client node to submit an expense account request.
5. according to the method described in claim 4, it is characterized in that,
It further include the consumption cryptographic Hash generated according to the first invoice data in first invoice data, the invoice reimbursement request In further include verification cryptographic Hash;
It is described to judge whether first invoice data matches with the invoice data in invoice reimbursement request, comprising:
Judge whether the consumption cryptographic Hash and the verification cryptographic Hash are consistent, if unanimously, whether is first invoice data It is matched with the invoice data in invoice reimbursement request.
6. method according to any one of claim 3 to 5, which is characterized in that described to inquire the hair in block chain Corresponding first invoice data of the first invoice identification code in ticket reimbursement request, comprising:
Information inquiring request is sent to service node of making out an invoice according to the invoice identification code, includes institute in the information inquiring request The first encryption algorithm identification that the key agreement parameter and the reimbursement service side for stating reimbursement service node are chosen;
The key agreement parameter for the service node of making out an invoice that service node of making out an invoice described in reception is sent;
It is calculated altogether according to the key agreement private key of the key agreement parameter of the service node of making out an invoice and the reimbursement service node Same shared key;
The target data that service node of making out an invoice described in obtaining from block chain uploads, the target data are the service section of making out an invoice Point is generated according to first Encryption Algorithm and the shared key pair invoice data encryption.
The target data, which is decrypted, according to the shared key obtains corresponding invoice data.
7. method according to any one of claim 3 to 5, which is characterized in that described to inquire the hair in block chain Corresponding first invoice data of the first invoice identification code in ticket reimbursement request, comprising:
Information inquiring request is sent to service node of making out an invoice according to the invoice identification code, includes institute in the information inquiring request State the block chain public key of reimbursement service node;
The target data that service node of making out an invoice described in obtaining from block chain uploads, the target data include the first encryption data And third encryption data, wherein first encryption data is to be encrypted using symmetric encipherment algorithm and symmetric key to invoice data It generates, the third encryption data is to be identified using the block chain public key of the reimbursement service node to the symmetric encipherment algorithm And its symmetric key encryption generates;
The third encryption data, which is decrypted, according to the block chain private key of the reimbursement service node obtains the symmetric encipherment algorithm Mark and its symmetric key;
Corresponding invoice number is obtained according to the first encryption data described in symmetric encipherment algorithm mark and its symmetric key decryption According to.
8. a kind of invoice data based on block chain submits an expense account system characterized by comprising
Submit an expense account service node, make out an invoice service node and client node;
Invoice data is sent to client node for generating invoice data according to consumption details by the service node of making out an invoice;
The service node of making out an invoice is also used to encrypt invoice data, generates target data, and the target data is same It walks to block chain;
The client node is used to receive the invoice data of the service node transmission of making out an invoice, and the hair is inquired in block chain The corresponding invoice data of ticket identification code, and by the corresponding invoice data of invoice identification code use corresponding with the client node Family identification information associated storage;
The reimbursement service node is used to receive the invoice reimbursement request that the client node is sent, and institute is inquired in block chain State corresponding first invoice data of the first invoice identification code and associated first user identity information in invoice reimbursement request;
The reimbursement service node is also used to The no invoice for allowing the client node submits an expense account request;
If the invoice of the client node is allowed to submit an expense account request, the reimbursement service node is also used to safeguard the first invoice number According to state be submitted an expense account state.
9. a kind of server for applying to client node, which is characterized in that the server includes processor, and the processor is used Following steps are realized when executing the computer program stored in memory:
The invoice data for service node transmission of making out an invoice is received, the invoice data includes at least invoice identification code;
Inquire the corresponding invoice data of the invoice identification code in block chain, and by the corresponding invoice number of the invoice identification code According to user identity information associated storage corresponding with the client node.
10. a kind of server for applying to submit an expense account service node, which is characterized in that the server includes processor, the place It realizes when reason device is for executing the computer program stored in memory such as any one of claim 3 to 7 the method Step.
CN201810922801.1A 2018-08-14 2018-08-14 Invoice data method of charging out, system and relevant device based on block chain Pending CN109165957A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810922801.1A CN109165957A (en) 2018-08-14 2018-08-14 Invoice data method of charging out, system and relevant device based on block chain

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810922801.1A CN109165957A (en) 2018-08-14 2018-08-14 Invoice data method of charging out, system and relevant device based on block chain

Publications (1)

Publication Number Publication Date
CN109165957A true CN109165957A (en) 2019-01-08

Family

ID=64895521

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810922801.1A Pending CN109165957A (en) 2018-08-14 2018-08-14 Invoice data method of charging out, system and relevant device based on block chain

Country Status (1)

Country Link
CN (1) CN109165957A (en)

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107273455A (en) * 2017-05-31 2017-10-20 深圳前海微众银行股份有限公司 Block chain data access method and device
CN110223034A (en) * 2019-05-21 2019-09-10 西藏纳旺网络技术有限公司 A kind of method, apparatus, electronic equipment and the storage medium of file verification management
CN110264325A (en) * 2019-04-26 2019-09-20 国家电网有限公司 A kind of invoice checking method and device based on block chain
CN110443612A (en) * 2019-07-31 2019-11-12 阿里巴巴集团控股有限公司 A kind of dividing method of submitting an expense account, device and electronic equipment based on block chain
CN110458562A (en) * 2019-08-08 2019-11-15 腾讯科技(深圳)有限公司 Bill method of charging out, device and equipment and computer storage medium
CN110471986A (en) * 2019-07-31 2019-11-19 阿里巴巴集团控股有限公司 Bill real name based on block chain gets method, apparatus and electronic equipment
CN110473081A (en) * 2019-07-31 2019-11-19 阿里巴巴集团控股有限公司 Based on the electronic bill method of charging out and device of block chain, electronic equipment
CN110471932A (en) * 2019-08-13 2019-11-19 爱信诺征信有限公司 Invoice management method and system based on block chain
US10956903B2 (en) 2019-07-31 2021-03-23 Advanced New Technologies Co., Ltd. Obtaining a blockchain-based, real-name, electronic bill
US10963854B2 (en) 2019-07-31 2021-03-30 Advanced New Technologies Co., Ltd. Blockchain-based electronic bill reimbursement method, apparatus, and electronic device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106339939A (en) * 2016-08-26 2017-01-18 南京喜玛拉云信息技术有限公司 Tamper-proofing distributed bill system based on safety hardware and transaction processing method
CN106952124A (en) * 2017-03-16 2017-07-14 北京牛链科技有限公司 Electronic bill management system and method based on distribution book keeping operation
CN106991334A (en) * 2016-11-24 2017-07-28 阿里巴巴集团控股有限公司 A kind of method, system and device of data access
CN107528877A (en) * 2017-06-09 2017-12-29 中国银联股份有限公司 Security electronic document handling system and method based on block chain structure
CN108305106A (en) * 2018-01-31 2018-07-20 复旦大学 A kind of electronic invoice register method based on block chain

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106339939A (en) * 2016-08-26 2017-01-18 南京喜玛拉云信息技术有限公司 Tamper-proofing distributed bill system based on safety hardware and transaction processing method
CN106991334A (en) * 2016-11-24 2017-07-28 阿里巴巴集团控股有限公司 A kind of method, system and device of data access
CN106952124A (en) * 2017-03-16 2017-07-14 北京牛链科技有限公司 Electronic bill management system and method based on distribution book keeping operation
CN107528877A (en) * 2017-06-09 2017-12-29 中国银联股份有限公司 Security electronic document handling system and method based on block chain structure
CN108305106A (en) * 2018-01-31 2018-07-20 复旦大学 A kind of electronic invoice register method based on block chain

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107273455A (en) * 2017-05-31 2017-10-20 深圳前海微众银行股份有限公司 Block chain data access method and device
CN110264325A (en) * 2019-04-26 2019-09-20 国家电网有限公司 A kind of invoice checking method and device based on block chain
CN110223034A (en) * 2019-05-21 2019-09-10 西藏纳旺网络技术有限公司 A kind of method, apparatus, electronic equipment and the storage medium of file verification management
CN110473081A (en) * 2019-07-31 2019-11-19 阿里巴巴集团控股有限公司 Based on the electronic bill method of charging out and device of block chain, electronic equipment
US10963854B2 (en) 2019-07-31 2021-03-30 Advanced New Technologies Co., Ltd. Blockchain-based electronic bill reimbursement method, apparatus, and electronic device
CN110471986A (en) * 2019-07-31 2019-11-19 阿里巴巴集团控股有限公司 Bill real name based on block chain gets method, apparatus and electronic equipment
CN110443612A (en) * 2019-07-31 2019-11-12 阿里巴巴集团控股有限公司 A kind of dividing method of submitting an expense account, device and electronic equipment based on block chain
US10956903B2 (en) 2019-07-31 2021-03-23 Advanced New Technologies Co., Ltd. Obtaining a blockchain-based, real-name, electronic bill
WO2021017442A1 (en) * 2019-07-31 2021-02-04 创新先进技术有限公司 Method and device for electronic negotiable instrument reimbursement based on blockchain, and electronic device
CN110599276A (en) * 2019-08-08 2019-12-20 腾讯科技(深圳)有限公司 Bill reimbursement method, device and equipment and computer storage medium
CN110458562A (en) * 2019-08-08 2019-11-15 腾讯科技(深圳)有限公司 Bill method of charging out, device and equipment and computer storage medium
CN110458562B (en) * 2019-08-08 2021-05-18 腾讯科技(深圳)有限公司 Bill reimbursement method, device and equipment and computer storage medium
CN110471932A (en) * 2019-08-13 2019-11-19 爱信诺征信有限公司 Invoice management method and system based on block chain

Similar Documents

Publication Publication Date Title
CN109165957A (en) Invoice data method of charging out, system and relevant device based on block chain
CN103918219B (en) Based on the method and apparatus of the electronic content distribution of privacy share
KR20200127264A (en) Data transmission method, apparatus and system
CN110537346A (en) Safe decentralization domain name system
CN107528688A (en) A kind of keeping of block chain key and restoration methods, device based on encryption commission technology
CN106357396A (en) Digital signature method, digital signature system and quantum key card
CN109151053A (en) Anti- quantum calculation cloud storage method and system based on public asymmetric key pond
US8806206B2 (en) Cooperation method and system of hardware secure units, and application device
CN106487506B (en) Multi-mechanism KP-ABE method supporting pre-encryption and outsourcing decryption
CN107612934A (en) A kind of block chain mobile terminal computing system and method based on Secret splitting
CN102244575A (en) Secure transmission system and method for online tax filling data of value-added tax
CN108366057A (en) A kind of data processing method, client and electronic equipment
CN105245326B (en) A kind of smart grid security communication means based on combination pin
CN109309569A (en) The method, apparatus and storage medium of collaboration signature based on SM2 algorithm
CN109756329A (en) Anti- quantum calculation shared key machinery of consultation and system based on private key pond
CN108965338B (en) Three-factor identity authentication and key agreement method under multi-server environment
CN103973440A (en) File cloud security management method and system based on CPK
CN109064324A (en) Method of commerce, electronic device and readable storage medium storing program for executing based on alliance's chain
CN104954447B (en) Support the intelligent movable equipment safety service implementing method and system of attribute base encryption
CN109067528A (en) Crypto-operation, method, cryptographic service platform and the equipment for creating working key
CN109347923A (en) Anti- quantum calculation cloud storage method and system based on unsymmetrical key pond
CN109034793A (en) Digital cash method of commerce and digital cash wallet hardware based on block chain
CN108306732A (en) A kind of random digit generation method, relevant device and system
CN101997835A (en) Network security communication method, data security processing device and system for finance
CN111865917A (en) Block chain-based safe delivery method, system and medium for Internet of things equipment

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
CB02 Change of applicant information

Address after: 27D, building 2, building 1, Dachong Business Center (phase II), 9678 Shennan Avenue, Dachong community, Yuehai street, Nanshan District, Shenzhen City, Guangdong Province

Applicant after: Shenzhen Gaodeng Computer Technology Co., Ltd

Address before: 571900 Hainan provincial high-tech industrial demonstration zone Hainan Ecological Software Park

Applicant before: HAINAN GAODENG TECHNOLOGY Co.,Ltd.

CB02 Change of applicant information